PR ld/5761
[external/binutils.git] / ld / ChangeLog
1 2008-02-16  Alan Modra  <amodra@bigpond.net.au>
2
3         PR ld/5761
4         * ldexp.c (fold_name <LOADADDR>): Check result of evaluating
5         load_base before calling make_abs.
6
7 2008-02-15  Alan Modra  <amodra@bigpond.net.au>
8
9         * emultempl/alphaelf.em (alpha_after_open): Use elf_object_id.
10         * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
11         Likewise.
12         * emultempl/ppc64elf.em (ppc_create_output_section_statements):
13         Likewise.
14         * emultempl/ppc32elf.em (is_ppc_elf32_vec): Delete.  Replace all
15         uses with..
16         (is_ppc_elf): ..this new macro.
17
18 2008-02-15  Alan Modra  <amodra@bigpond.net.au>
19
20         * ldmain.h (output_bfd): Delete.
21         * ldmain.c (output_bfd): Delete.
22         Replace all occurrences of output_bfd with link_info.output_bfd.
23         * ldcref.c: Likewise.
24         * ldctor.c: Likewise.
25         * ldemul.c: Likewise.
26         * ldexp.c: Likewise.
27         * ldfile.c: Likewise.
28         * ldlang.c: Likewise.
29         * ldmisc.c: Likewise.
30         * ldwrite.c: Likewise.
31         * pe-dll.c: Likewise.
32         * emultempl/aix.em: Likewise.
33         * emultempl/alphaelf.em: Likewise.
34         * emultempl/armcoff.em: Likewise.
35         * emultempl/armelf.em: Likewise.
36         * emultempl/avrelf.em: Likewise.
37         * emultempl/beos.em: Likewise.
38         * emultempl/elf-generic.em: Likewise.
39         * emultempl/elf32.em: Likewise.
40         * emultempl/gld960.em: Likewise.
41         * emultempl/hppaelf.em: Likewise.
42         * emultempl/irix.em: Likewise.
43         * emultempl/linux.em: Likewise.
44         * emultempl/lnk960.em: Likewise.
45         * emultempl/m68hc1xelf.em: Likewise.
46         * emultempl/mmix-elfnmmo.em: Likewise.
47         * emultempl/mmo.em: Likewise.
48         * emultempl/pe.em: Likewise.
49         * emultempl/pep.em: Likewise.
50         * emultempl/ppc32elf.em: Likewise.
51         * emultempl/ppc64elf.em: Likewise.
52         * emultempl/scoreelf.em: Likewise.
53         * emultempl/sh64elf.em: Likewise.
54         * emultempl/spuelf.em: Likewise.
55         * emultempl/sunos.em: Likewise.
56         * emultempl/vanilla.em: Likewise.
57         * emultempl/vxworks.em: Likewise.
58         * emultempl/xtensaelf.em: Likewise.
59         * emultempl/z80.em: Likewise.
60         * ldlang.c (open_output): Don't return output, instead write
61         link_info_output_bfd directly.
62         * emultempl/alphaelf.em: Replace occurrences of link_info.hash->creator
63         with link_info.output_bfd->xvec.
64         * emultempl/hppaelf.em: Likewise.
65         * emultempl/ppc32elf.em: Likewise.
66         * emultempl/ppc64elf.em: Likewise.
67         * emultempl/spuelf.em: Likewise.
68
69 2008-02-07  Alan Modra  <amodra@bigpond.net.au>
70
71         * ldlang.c (new_afile): Don't pass unadorned NULL to concat.
72         * ldfile.c (ldfile_add_library_path): Likewise.
73         * emultempl/elf32.em (check_ld_elf_hints, check_ld_so_conf): Likewise.
74         * emultempl/lnk960.em (lnk960_before_parse): Likewise.
75         * emultempl/spuelf.em (embedded_spu_file): Likewise.
76
77 2008-02-07  Alan Modra  <amodra@bigpond.net.au>
78
79         * emultempl/spu_ovl.S: Use low bit of _ovly_table.size as
80         a "present" bit rather than low bit of .buf.  Correct indexing
81         into _ovly_buf_table.  Use relative loads and stores to access
82         overlay manager local vars.
83         * emultempl/spu_ovl.o: Regenerate.
84
85 2008-02-04  H.J. Lu  <hongjiu.lu@intel.com>
86
87         PR 5715
88         * configure: Regenerated.
89
90 2008-01-31  Marc Gauthier  <marc@tensilica.com>
91
92         * configure.tgt (xtensa*-*-*): Recognize processor variants.
93
94 2008-01-28  Fabian Groffen  <grobian@gentoo.org>
95
96         * configure.tgt (x86_64-*-solaris2): Add support for this target.
97
98 2008-01-28  Vincent Riviere  <vincent.riviere@freesbee.fr>
99
100         PR ld/5652
101         * genscripts.sh: Check for the existence of BASH_LINENO not just
102         the BASH shell before generating line numbers in the emulation
103         file.
104
105 2008-01-28  Alan Modra  <amodra@bigpond.net.au>
106
107         * emultempl/spu_ovl.S: Rewrite.
108         * emultempl/spu_ovl.o: Regenerate.
109         * emultempl/spuelf.em (toe): Delete.
110         (spu_place_special_section): Add param to control section placement.
111         Adjust callers.
112         (spu_elf_load_ovl_mgr): Adjust for struct _spu_elf_section_data
113         changes.
114         (spu_before_allocation): Adjust spu_elf_size_stubs call.
115         (gld${EMULATION_NAME}_finish): Adjust spu_elf_build_stubs call.
116
117 2008-01-25  H.J. Lu  <hongjiu.lu@intel.com>
118
119         PR ld/5670
120         * ldlang.c (process_insert_statements): Silence gcc 4.1 alias
121         warning.
122
123 2008-01-25  Alan Modra  <amodra@bigpond.net.au>
124
125         * ld.texinfo (INSERT): Describe.
126         * ldgram.y (ldgram_in_script, ldgram_had_equals): Delete.
127         (INSERT_K, AFTER, BEFORE): Add as tokens.
128         (ifile_p1): Handle INSERT statements.
129         (saved_script_handle, force_make_executable): Move to..
130         * ldmain.c: ..here.
131         (previous_script_handle): New global var.
132         * ldmain.h (saved_script_handle, force_make_executable): Declare.
133         (previous_script_handle): Likewise.
134         * ldlex.l (INSERT_K, AFTER, BEFORE): Add tokens.
135         * lexsup.c (parge_args <-T>): Set previous_script_handle.
136         * ldlang.c (lang_for_each_statement_worker): Handle insert statement.
137         (map_input_to_output_sections, print_statement): Likewise.
138         (lang_size_sections_1, lang_do_assignments_1): Likewise.
139         (insert_os_after): New function, extracted from..
140         (lang_insert_orphan): ..here.
141         (process_insert_statements): New function.
142         (lang_process): Call it.
143         (lang_add_insert): New function.
144         * ldlang.h (lang_insert_statement_enum): New.
145         (lang_insert_statement_type): New.
146         (lang_statement_union_type): Add insert_statement.
147         (lang_add_insert): Declare.
148
149 2008-01-18  Bob Wilson  <bob.wilson@acm.org>
150
151         * scripttempl/elfxtensa.sc: Merge ENTRY and .note.gnu.build-id
152         changes from elf.sc.
153         
154 2008-01-16  Alan Modra  <amodra@bigpond.net.au>
155
156         * ldlang.c (lang_size_sections_1): Simplify SEC_NEVER_LOAD test.
157
158 2008-01-16  Alan Modra  <amodra@bigpond.net.au>
159
160         * ldlang.h (lang_afile_asection_pair_statement_enum): Delete.
161         (lang_afile_asection_pair_statement_type): Delete.
162         (lang_statement_union_type): Delete afile_asection_pair_statement.
163         * ldlang.c (lang_insert_orphan): Delete case handling the above.
164         (map_input_to_output_sections, print_statement): Likewise.
165
166 2008-01-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
167
168         * emulparams/shlelf_linux.sh (DATA_START_SYMBOLS): Use PROVIDE
169         with __data_start.
170         * emulparams/shelf_nbsd.sh (DATA_START_SYMBOLS): Likewise.
171
172 2008-01-15  Alan Modra  <amodra@bigpond.net.au>
173
174         PR 5604
175         * ldlang.c (lang_gc_sections): Move code to set SEC_KEEP on entry
176         syms to _bfd_elf_gc_keep.
177         * emultempl/ppc64elf.em (ppc_before_allocation): Don't call
178         ppc64_elf_edit_opd if no_opd_opt.
179
180 2008-01-11  Tristan Gingold  <gingold@adacore.com>
181             Eric Botcazou  <ebotcazou@adacore.com>
182
183         * ldlang.c (lang_end): Warns if the entry point is not found when
184         --gc-sections.
185         Emit an error if no root is specified when --gc-sections -r.
186         * ld.texinfo (Options): Document that --gc-sections is compatible
187         with -r and -q.
188         * ldmain.c (main): Do not error out if -r and --gc-sections.
189         * scripttempl/elf.sc: Emit ENTRY command only if relocating.
190
191 2008-01-10  Daniel Jacobowitz  <drow@sources.redhat.com>
192
193         PR ld/5533
194         * ldlang.c (lang_end): Issue a warning for a missing start symbol
195         of a shared library if the symbol was specified on the command
196         line.
197
198 2008-01-10  Alan Modra  <amodra@bigpond.net.au>
199
200         * ld.texinfo (--gc-sections): Describe linker behaviour.
201
202 For older changes see ChangeLog-2007
203 \f
204 Local Variables:
205 mode: change-log
206 left-margin: 8
207 fill-column: 74
208 version-control: never
209 End: