*** empty log message ***
[deliverable/binutils-gdb.git] / gold / script.h
CommitLineData
dbe717ef
ILT
1// script.h -- handle linker scripts for gold -*- C++ -*-
2
6cb15b7f
ILT
3// Copyright 2006, 2007 Free Software Foundation, Inc.
4// Written by Ian Lance Taylor <iant@google.com>.
5
6// This file is part of gold.
7
8// This program is free software; you can redistribute it and/or modify
9// it under the terms of the GNU General Public License as published by
10// the Free Software Foundation; either version 3 of the License, or
11// (at your option) any later version.
12
13// This program is distributed in the hope that it will be useful,
14// but WITHOUT ANY WARRANTY; without even the implied warranty of
15// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16// GNU General Public License for more details.
17
18// You should have received a copy of the GNU General Public License
19// along with this program; if not, write to the Free Software
20// Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
21// MA 02110-1301, USA.
22
dbe717ef
ILT
23// We implement a subset of the original GNU ld linker script language
24// for compatibility. The goal is not to implement the entire
25// language. It is merely to implement enough to handle common uses.
26// In particular we need to handle /usr/lib/libc.so on a typical
27// GNU/Linux system, and we want to handle linker scripts used by the
28// Linux kernel build.
29
30#ifndef GOLD_SCRIPT_H
31#define GOLD_SCRIPT_H
32
33namespace gold
34{
35
36class General_options;
37class Symbol_table;
38class Layout;
39class Input_objects;
40class Input_group;
41class Input_file;
42class Task_token;
43
44// FILE was found as an argument on the command line, but was not
45// recognized as an ELF file. Try to read it as a script. We've
46// already read BYTES of data into P. Return true if the file was
47// handled. This has to handle /usr/lib/libc.so on a GNU/Linux
48// system.
49
50bool
51read_input_script(Workqueue*, const General_options&, Symbol_table*, Layout*,
52 const Dirsearch&, Input_objects*, Input_group*,
53 const Input_argument*, Input_file*, const unsigned char* p,
54 off_t bytes, Task_token* this_blocker,
55 Task_token* next_blocker);
56
57} // End namespace gold.
58
59#endif // !defined(GOLD_SCRIPT_H)
This page took 0.055196 seconds and 4 git commands to generate.