*** empty log message ***
[deliverable/binutils-gdb.git] / gold / script.h
1 // script.h -- handle linker scripts for gold -*- C++ -*-
2
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
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
33 namespace gold
34 {
35
36 class General_options;
37 class Symbol_table;
38 class Layout;
39 class Input_objects;
40 class Input_group;
41 class Input_file;
42 class 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
50 bool
51 read_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.043769 seconds and 5 git commands to generate.