Properly report loading plugin error.
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
f9982339
L
12010-11-20 H.J. Lu <hongjiu.lu@intel.com>
2
3 PR ld/12247
4 * lexsup.c (parse_args): Properly report loading plugin error.
5
42a851a9
DK
62010-11-19 Dave Korn <dave.korn.cygwin@gmail.com>
7
8 * plugin.c (is_visible_from_outside): New function.
9 (get_symbols): Use it.
10
781303ce
MF
112010-11-16 Jie Zhang <jie.zhang@analog.com>
12
13 * Makefile.am (eelf32bfinfd.c, eelf32bfin.c): Depend on bfin.em.
14 * Makefile.in: Regenerated.
15 * emulparams/bfin.sh (EXTRA_EM_FILE): Set.
16 * emulparams/elf32bfinfd.sh (EXTRA_EM_FILE): Likewise.
17 * emultempl/bfin.em: New.
18
c85f715a
AM
192010-11-16 Yasuaki Taniguchi <taniguchi.yasua@jp.fujitsu.com>
20
21 * emultempl/pe.em (_list_options): Correct typo.
22 * emultempl/pep.em (_list_options): Likewise.
23
5940a93c
TS
242010-11-08 Thomas Schwinge <thomas@schwinge.name>
25
26 * configure.host: Add stanza for *-*-gnu*.
27
04ea1ddd 282010-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
a38ce0d0
RS
29
30 * emultempl/spuelf.em (new_tmp_file): Fix wrong first parameter.
31
2ee0aedf
TG
322010-11-05 Tristan Gingold <gingold@adacore.com>
33
34 * po/ld.pot: Regenerate
35 * po/POTFILES.in: Regenerate
36
44f45767
TG
372010-11-05 Tristan Gingold <gingold@adacore.com>
38
39 * NEWS: Add marker for 2.21.
40
d44ad554
DK
412010-11-05 Dave Korn <dave.korn.cygwin@gmail.com>
42
43 * plugin.h (plugin_active_plugins_p): New prototype.
44 (is_ir_dummy_bfd): Delete prototype.
45 * plugin.c: Fix formatting issues.
46 (is_ir_dummy_bfd): Make static.
47 (plugin_active_plugins_p): New function.
48 * ldfile.c (ldfile_try_open_bfd): Use it to save work if no plugins
49 are loaded. Always close file descriptor after claim handler returns.
50 * ldmain.c (add_archive_element): Likewise.
51
f4eaaf7f
AM
522010-11-05 Alan Modra <amodra@gmail.com>
53
54 * ldlang.c (lang_add_section): Distinguish ELF treatment of NOLOAD.
55 (map_input_to_output_sections): Likewise.
56 (lang_size_sections_1): Likewise.
57 (IGNORE_SECTION): Don't test SEC_NEVER_LOAD.
58 (lang_check_section_addresses): Likewise.
59
802d4822
KT
602010-11-04 Kai Tietz <kai.tietz@onevision.com>
61
62 * scripttempl/pe.sc (.debug_types): New.
63 * scripttempl/pep.sc: Likewise.
64
129b5d55
AM
652010-11-04 Alan Modra <amodra@gmail.com>
66
67 * plugin.c (is_ir_dummy_bfd): Don't segfault on NULL abfd.
68
e597fa08
NC
692010-11-03 Nick Clifton <nickc@redhat.com>
70
71 PR ld/12001
72 * ldlang.c (ldlang_def_chain_list): New variable. Contains a list
73 of symbols defined via the --defsym command line option and
74 currently waiting assignment.
75 (insert_defined): Add a defined symbol to the symbol table.
76 (ldlang_add_def): Add a entry to the ldlang_def_chain_list.
77 (lang_place_defineds): Walk ldlang_def_chain_list defining the
78 symbols.
79 (lang_process): Call lang_place_defineds.
80 (lang_add_assignment): If the assignment has come from a --defsym
81 command line option then call lang_add_def.
82
2ebf3964
AM
832010-11-03 Alan Modra <amodra@gmail.com>
84
85 * Makefile.am (eelf64hppa.c): Correct dependencies.
86 * Makefile.in: Regenerate.
87
34734a01
L
882010-11-02 H.J. Lu <hongjiu.lu@intel.com>
89
90 * scripttempl/armbpabi.sc: Include compressed DWARF debug
91 sections.
92 * scripttempl/avr.sc: Likewise.
93 * scripttempl/elf32cr16.sc: Likewise.
94 * scripttempl/elf32crx.sc: Likewise.
95 * scripttempl/elf32msp430.sc: Likewise.
96 * scripttempl/elf32msp430_3.sc: Likewise.
97 * scripttempl/elf32sh-symbian.sc: Likewise.
98 * scripttempl/elf64hppa.sc: Likewise.
99 * scripttempl/elf_chaos.sc: Likewise.
100 * scripttempl/elfd10v.sc: Likewise.
101 * scripttempl/elfd30v.sc: Likewise.
102 * scripttempl/elfi370.sc: Likewise.
103 * scripttempl/elfm68hc11.sc: Likewise.
104 * scripttempl/elfm68hc12.sc: Likewise.
105 * scripttempl/elfxtensa.sc: Likewise.
106 * scripttempl/ip2k.sc: Likewise.
107 * scripttempl/iq2000.sc: Likewise.
108 * scripttempl/mep.sc: Likewise.
109 * scripttempl/mmo.sc: Likewise.
110 * scripttempl/v850.sc: Likewise.
111 * scripttempl/xstormy16.sc: Likewise.
112
4a114e3e
L
1132010-10-29 H.J. Lu <hongjiu.lu@intel.com>
114
115 * ldfile.c (ldfile_try_open_bfd): Set BFD_DECOMPRESS after
116 bfd_openr returns.
117 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Likewise.
118
119 * scripttempl/elf.sc: Include compressed DWARF debug sections.
120
ace9d866
AM
1212010-10-28 Alan Modra <amodra@gmail.com>
122
123 * ldfile.c (find_scripts_dir): Don't look in absolute SCRIPTDIR.
124
9160ea82
AM
1252010-10-28 Matthias Klose <doko@ubuntu.com>
126
127 * ld.texinfo: Add directory section for info document.
128 * ldint.texinfo: Likewise.
129
71755fdf
AM
1302010-10-28 Alan Modra <amodra@gmail.com>
131
132 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): For
133 --no-undefined-version, don't report dot sym versions added by ld.
134
24898b70
AM
1352010-10-28 Alan Modra <amodra@gmail.com>
136
137 * ldlang.h (ldlang_add_undef): Add cmdline param.
138 * ldlang.c (undef_from_cmdline): New var.
139 (ldlang_add_undef): Add cmdline param. Set undef_from_cmdline.
140 (lang_end): Really require -e or -u from command line on
141 relocatable --gc-sections.
142 * ldemul.c (after_parse_default): Adjust ldlang_add_undef call.
143 * ldgram.y (extern_name_list_body): Likewise.
144 * lexsup.c (parse_args): Likewise.
145 * emultempl/aix.em (gld${EMULATION_NAME}_read_file): Likewise.
146
bc110b6e
AM
1472010-10-25 Alan Modra <amodra@gmail.com>
148
149 * plugin.c (plugin_get_ir_dummy_bfd): Set bfd_use_reserved_id.
150 Formatting.
151
1360ba76
RO
1522010-10-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
153
154 * emulparams/elf32_sparc_sol2.sh (OUTPUT_FORMAT): Set to
155 elf32-sparc-sol2.
156 * emulparams/elf64_sparc_sol2.sh (OUTPUT_FORMAT): Set to
157 elf64-sparc-sol2.
158
2b42b063
AM
1592010-10-22 Alan Modra <amodra@gmail.com>
160
161 * ldwrite.c (build_link_order <lang_data_statement_enum>): Don't
162 output when section has no contents.
163 (build_link_order <lang_reloc_statement_enum>): Likewise.
164
75fa6dc1
JM
1652010-10-21 Joseph Myers <joseph@codesourcery.com>
166
167 * emulparams/elf32_tic6x_le.sh (ATTRS_SECTIONS): Use
168 .c6xabi.attributes, not __TI_build_attributes.
169
7bac81d3
DK
1702010-10-20 Dave Korn <dave.korn.cygwin@gmail.com>
171
172 * plugin.c (get_symbols): Check symbol type correctly.
173
3917d5d5
DK
1742010-10-15 Dave Korn <dave.korn.cygwin@gmail.com>
175
176 * configure.in: If <dlfcn.h> can't be found, try for <Windows.h>
177 * configure: Regenerate.
178 * config.in: Likewise.
179 * plugin.c [!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlopen): Provide
180 trival LoadLibrary-based replacement for Windows systems.
181 [!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlsym): Likewise trivial
182 replacement based on GetProcAddress.
183 [!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlsym): Likewise FreeLibrary.
184 * sysdep.h: Don't infer presence of <dlfcn.h> from ENABLE_PLUGINS
185 anymore, use its own guard.
186
d4cb7acd
DK
1872010-10-15 Dave Korn <dave.korn.cygwin@gmail.com>
188
189 * plugin.c (add_input_file): Take copy of input string.
190 (add_input_library): Likewise.
191 (set_extra_library_path): Likewise.
192
2b42b063 1932010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
5d3236ee
DK
194
195 Apply LD plugin patch series (part 6/6).
196 * ldlang.c (load_symbols): Handle bfd subsitution when calling the
197 add_archive_element callback.
198 * ldmain.c (add_archive_element)[ENABLE_PLUGINS]: Offer the archive
199 member to the plugins and if claimed set "subsbfd" output parameter to
200 point to the dummy IR-only BFD.
201
2b42b063 2022010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
5d3236ee
DK
203
204 Apply LD plugin patch series (part 5/6).
205 * plugin.c (asymbol_from_plugin_symbol): If the bfd is an ELF bfd,
206 find the elf symbol data and set the visibility in the st_other field.
207
2b42b063 2082010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
5d3236ee
DK
209
210 Apply LD plugin patch series (part 4/6).
211 * ldlang.c (lang_process)[ENABLE_PLUGINS]: Move invocation of
212 plugin_call_all_symbols_read to before setting of gc_sym_list, and
213 open any new input files that may have been added during it.
214 * ldmain.c (multiple_definition)[ENABLE_PLUGINS]: Call out to
215 plugin_multiple_definition and let it have first say over what to do
216 with the clashing definitions.
217 * plugin.c (no_more_claiming): New boolean variable.
218 (plugin_cached_allow_multiple_defs): Likewise.
219 (add_input_file): Implement.
220 (add_input_library): Likewise.
221 (set_extra_library_path): Likewise.
222 (plugin_call_claim_file): Don't do anything when no_more_claiming set.
223 (plugin_call_all_symbols_read): Set it. Disable link info
224 "allow_multiple_definition" flag, but cache its value.
225 (plugin_multiple_definition): New function.
226 * plugin.h (plugin_multiple_definition): Add prototype.
227 * testplug.c (addfile_enum_t): New enumerated typedef.
228 (add_file_t): New struct typedef.
229 (addfiles_list): New variable.
230 (addfiles_tail_chain_ptr): Likewise.
231 (record_add_file): New function.
232 (parse_option): Parse "add:", "lib:" and "dir:" options and call it.
233 (onall_symbols_read): Iterate the list of new files, libs and dirs,
234 adding them.
235
2b42b063 2362010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
5d3236ee
DK
237
238 Apply LD plugin patch series (part 3/6).
239 * ldmain.c (notice)[ENABLE_PLUGINS]: Call plugin_notice.
240 * plugin.c (non_ironly_hash): Add new bfd hash table.
241 (plugin_load_plugins): Exit early if no plugins to load. If plugins
242 do load successfully, set notice_all flag in link info.
243 (get_symbols): Implement.
244 (plugin_load_plugins): Exit early if no plugins to load, else after
245 loading plugins successfully enable notice_all mode.
246 (init_non_ironly_hash): Lazily init non_ironly_hash table.
247 (plugin_notice): Record symbols referenced from non-IR files in the
248 non_ironly_hash. Suppress tracing, cref generation and nocrossrefs
249 tracking for symbols from dummy IR bfds.
250 * plugin.h: Fix formatting.
251 (plugin_notice): Add prototype.
252 * testplug.c (dumpresolutions): New global var.
253 (parse_options): Accept "dumpresolutions".
254 (onall_symbols_read): Get syms and dump resolutions if it was given.
255
2b42b063 2562010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
5d3236ee
DK
257
258 Apply LD plugin patch series (part 2/6).
259 * ldfile.c (ldfile_try_open_bfd)[ENABLE_PLUGINS]: Don't return early
260 during compat checks if they pass, instead offer any successfully
261 opened and accepted file to the plugin claim file hooks chain. Create
262 a dummy bfd to accept symbols added by the plugin, if the plugin
263 claims the file.
264 * ldlang.c (lang_process)[ENABLE_PLUGINS]: Call plugin all symbols
265 read hook chain before ldemul_after_open.
266 * ldlang.h (struct lang_input_statement_struct): Add new single-bit
267 'claimed' flag.
268 * plugin.c (IRONLY_SUFFIX): New macro for dummy bfd file suffix.
269 (IRONLY_SUFFIX_LEN): Length of the above string.
270 (plugin_get_ir_dummy_bfd): New function to create the dummy bfd used
271 to store symbols for ir-only files.
272 (is_ir_dummy_bfd): New function to check if a bfd is ir-only.
273 (asymbol_from_plugin_symbol): New function converts symbol formats.
274 (add_symbols): Call it to convert plugin syms to bfd syms and add
275 them to the dummy bfd.
276 * plugin.h: Add missing include guards.
277 (plugin_get_ir_dummy_bfd): Add prototype.
278 (is_ir_dummy_bfd): Likewise.
279 * testplug.c (TV_MESSAGE): New helper macro.
280 (struct claim_file): New struct.
281 (claim_file_t): New typedef.
282 (tag_names[]): Make static and const.
283 (claimfiles_list): New variable.
284 (claimfiles_tail_chain_ptr): Likewise.
285 (last_claimfile): Likewise.
286 (record_claim_file): Record a file to claim on a singly-linked list.
287 (parse_symdefstr): Parse an ASCII representation of a symbol from a
288 plugin option into the fields of a struct ld_plugin_symbol.
289 (record_claimed_file_symbol): Use it to parse plugin option for
290 adding a symbol.
291 (parse_option): Parse claim file and add symbol options.
292 (dump_tv_tag): Use TV_MESSAGE.
293 (onload): Likewise.
294 (onclaim_file): Make static. Use TV_MESSAGE. Scan list of files to
295 claim and claim this file if required, adding any symbols specified.
296 (onall_symbols_read): Make static and use TV_MESSAGE.
297 (oncleanup): Likewise.
298
2b42b063 2992010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
5d3236ee
DK
300
301 Apply LD plugin patch series (part 1/6).
302 * configure.in: Add AC_CHECKs for file io and dlfcn headers and
303 functions and AC_SEARCH for -ldl.
304 (enable_plugins): New shell variable set if above tests find dlopen
305 functionality.
306 (ENABLE_PLUGINS): Add related automake conditional.
307 * configure: Regenerate.
308 * config.in: Likewise.
309 * Makefile.am (PLUGIN_C): Declare plugin C source file, conditional
310 on ENABLE_PLUGINS being defined.
311 (PLUGIN_H): Likewise for header file.
312 (PLUGIN_OBJECT): Likewise for object file.
313 (PLUGIN_CFLAGS): Likewise -D flag required to compile plugin support.
314 (AM_CPPFLAGS): Use PLUGIN_CFLAGS.
315 (CFILES): Use PLUGIN_C.
316 (HFILES): Use PLUGIN_H.
317 (OFILES): Use PLUGIN_OBJECT.
318 (ld_new_SOURCES): Use PLUGIN_C.
319 (noinst_LTLIBRARIES)[ENABLE_PLUGINS]: Declare test plugin.
320 (libldtestplug_la_SOURCES)[ENABLE_PLUGINS]: Add automake definition
321 for test plugin.
322 (libldtestplug_la_CFLAGS)[ENABLE_PLUGINS]: Likewise.
323 (libldtestplug_la_LDFLAGS)[ENABLE_PLUGINS]: Likewise.
324 * Makefile.in: Regenerate.
325 * sysdep.h: Include stdarg.h, unistd.h and one of fcntl.h or
326 sys/file.h where available. Include dlfcn.h when ENABLE_PLUGINS.
327 (O_RDONLY): Supply default definition likewise to bfd's sysdep.h
328 (O_WRONLY): Likewise.
329 (O_RDWR): Likewise.
330 (O_ACCMODE): Likewise.
331 (O_BINARY): Likewise.
332 (SEEK_SET): Likewise.
333 (SEEK_CUR): Likewise.
334 (SEEK_END): Likewise.
335 * ldmisc.c (vfinfo): Make non-static. Add %p format char.
336 * ldmisc.h (vfinfo): Declare extern prototype.
337 * lexsup.c (enum option_values)[ENABLE_PLUGINS]: Add new entries for
338 OPTION_PLUGIN and OPTION_PLUGIN_OPT.
339 (ld_options[])[ENABLE_PLUGINS]: Add option data for the above two.
340 (parse_args)[ENABLE_PLUGINS]: Handle them, and load all plugins once
341 option parsing is complete.
342 * ldmain.c (main)[ENABLE_PLUGINS]: Call plugin cleanup hooks just
343 after lang_finish.
344 * plugin.c: New source file.
345 * plugin.h: Likewise new header.
346 * testplug.c: New source file.
347
18a1a992
RO
3482010-10-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
349
350 * emultempl/solaris2.em (elf_solaris2_before_allocation): Renamed
351 basever_syms to global_syms.
352 Emit global_syms into .dynamic section for all executables and
353 shared objects.
354 (elf_solaris2_after_allocation): New function.
355 (LDEMUL_AFTER_ALLOCATION): Use it.
356 * emulparams/solaris2.sh: New file.
357 * emulparams/elf32_sparc_sol2.sh: Use it.
358 * emulparams/elf64_sparc_sol2.sh: Likewise.
359 * emulparams/elf_i386_sol2.sh: Likewise.
360 * emulparams/elf_x86_64_sol2.sh: Likewise.
361 * Makefile.am (eelf32_sparc_sol2.c): Depend on
362 $(srcdir)/emulparams/solaris2.sh.
363 (eelf64_sparc_sol2.c): Likewise.
364 (eelf_x86_64_sol2.c): Likewise.
365 (eelf_i386_sol2.c): Likewise.
366 * Makefile.in: Regenerate.
367
ea5cae92
NC
3682010-10-06 Nick Clifton <nickc@redhat.com>
369
370 * ld.texinfo: Update description of computation of VMA and LMA
371 addresses for output sections.
372
9034a328
RW
3732010-10-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
374
4560bc04
RW
375 * Makefile.am (ALL_64_EMULATIONS): Fix typo in last commit.
376 * Makefile.in: Regenerate.
377
9034a328
RW
378 * Makefile.am (ALL_EMULATIONS): Rewrite in terms of ...
379 (ALL_EMULATION_SOURCES): ... this new variable.
380 (ALL_64_EMULATIONS): Rewrite in terms of ...
381 (ALL_64_EMULATION_SOURCES): ... this new variable.
382 (EXTRA_ld_new_SOURCES): Rewrite in terms of the _SOURCES
383 variables.
384 (eelf32microblaze.c): Fix indentation.
385 * Makefile.in: Regenerate.
386
d4730f92
BS
3872010-10-04 Bernd Schmidt <bernds@codesourcery.com>
388
389 * emultempl/xtensaelf.em (replace_insn_sec_with_prop_sec): Use
390 _bfd_elf_single_rel_hdr.
391
abf4be64
AM
3922010-10-01 Alan Modra <amodra@gmail.com>
393
394 PR ld/12066
395 * ldexp.c (fold_name): Treat absolute symbols as plain numbers.
396 * ld.texinfo (Expression Section): Don't say absolute symbols
397 are addresses.
398
30920cab
AM
3992010-09-29 Alan Modra <amodra@gmail.com>
400
401 * ldlang.c (lang_place_orphans): Zero vma when relocatable or non-load
402 section for orphans handled here.
403
3cac54d2
RW
4042010-09-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
405
406 * configure: Regenerate.
407
9396a3ce
DK
4082010-09-23 Dave Korn <dave.korn.cygwin@gmail.com>
409
410 * scripttempl/armcoff.sc: Revert 2010-09-22 change.
411
0814be7d
AM
4122010-09-23 Alan Modra <amodra@gmail.com>
413
414 * ldlang.c (lang_add_section): Don't copy SEC_RELOC from input
415 to output section on a final link.
416
d4874973
KT
4172010-09-22 Kai Tietz <kai.tietz@onevision.com>
418
e4b0fe2f
KT
419 * ldlang.c (lang_add_section): Allow for debugging
420 section to be marked as noload but to keep content.
421 (IGNORE_SECTION): Likewise.
422 (lang_check_section_addresses): Likewise.
423 * ldwrite.c (build_link_order): Likewise.
424
d4874973
KT
425 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Add
426 idata to orphan set.
427 * emultempl/pep.em: Likewise.
428 * scripttempl/armcoff.sc: Separate idata
429 and add __IAT_start__ and __IAT_end__ labels.
430 * scripttempl/pe.sc: Likewise.
431 * scripttempl/pep.sc: Likewise.
432
d9b807ab
DM
4332010-09-20 David S. Miller <davem@davemloft.net>
434
435 * emulparams/elf32_sparc.sh: Set NOP to 0x01000000
436
2e76e85a
AM
4372010-09-16 Alan Modra <amodra@gmail.com>
438
439 * ld.texinfo (NOLOAD): Do not erroneously state that contents will
440 appear in output file.
441 * ldlang.c (lang_add_section): Clear SEC_HAS_CONTENTS on noload
442 unless SEC_COFF_SHARED_LIBRARY.
443 (map_input_to_output_sections): Don't set SEC_HAS_CONTENTS for noload
444 output sections.
445 (lang_size_sections_1): Don't test SEC_NEVER_LOAD when deciding
446 to update dot in region. Ditto when setting SEC_ALLOC if dot
447 advanced due to assignment.
448 * ldwrite.c (build_link_order): Don't test SEC_NEVER_LOAD.
449
2d7f4929
KT
4502010-09-15 Kai Tietz <kai.tietz@onevision.com>
451
d3fe237d
KT
452 * scripttempl/pep.sc: Add .xdata segment and
453 put into .pdata all segments beginning with .pdata.
2d7f4929 454
8658f989
AM
4552010-09-10 Alan Modra <amodra@gmail.com>
456
457 PR ld/11931
458 * ldlang.h (lang_for_each_statement_worker): Declare.
459 * ldlang.c (lang_for_each_statement_worker): Make global. Don't
460 recurse into children of output_section_statement with constraint
461 set to -1.
462 (print_assignment): Handle NULL output_section->bfd_section.
463 (lang_size_sections_1): Ignore output section statement address
464 when constraint is -1.
465 * emultempl/xtensaelf.em (lang_for_each_statement_worker): Delete.
466
75875724
TG
4672010-09-09 Tristan Gingold <gingold@adacore.com>
468
469 * NEWS: Add a entry for alpha-vms.
470
3dbcc61d
NC
4712010-09-07 Andrew Burgess <aburgess@broadcom.com>
472
473 * ldwrite.c (clone_section): Call bfd_copy_private_section_data on
474 newly cloned section.
475
c518ddd8
RH
4762010-09-02 Richard Henderson <rth@redhat.com>
477
478 * configure.tgt (x86_64-*-mingw*): Add 32-bit pe emulations too.
479
107c6e11
NC
4802010-08-31 Nick Clifton <nickc@redhat.com>
481
482 * ldlex.l (WILDCHAR): Add the caret and exclamation point
0d6cedc0 483 characters, so that they can be used inside globs.
107c6e11 484
c09e9a8c
NC
4852010-08-31 Nick Clifton <nickc@redhat.com>
486
487 * ld.texinfo (MEMORY): Clarify the behaviour of the ! character in
488 a region's attributes.
489
6be999b8
AM
4902010-08-31 Alan Modra <amodra@gmail.com>
491
492 * scripttempl/mmo.sc: Move assignment to "Main" inside .text
493 output section statement.
494
8dd881b6
L
4952010-08-25 H.J. Lu <hongjiu.lu@intel.com>
496
497 PR ld/11946
498 * emultempl/elf32.em (_before_allocation): Check audit entry
499 only on ELF input.
500
4440bb77
L
5012010-08-22 H.J. Lu <hongjiu.lu@intel.com>
502
503 PR ld/11937
504 * emultempl/elf32.em (_after_open): Find one .eh_frame section
505 for --eh-frame-hdr.
506
a654efd6
L
5072010-08-22 H.J. Lu <hongjiu.lu@intel.com>
508
509 PR ld/11937
510 * emultempl/elf32.em (_after_open): Find an ELF input for
511 --build-id and --eh-frame-hdr.
512
d820eaae
MR
5132010-08-20 Maciej W. Rozycki <macro@codesourcery.com>
514
515 * Makefile.am (eshlelf_fd.c): Correct the name of the tool
516 directory.
517 * Makefile.in: Regenerate.
518
c13526ca
NC
5192010-08-20 Nick Clifton <nickc@redhat.com>
520
521 * emultempl/elf32.em (_after_open): Check for get_elf_backend_data
522 returning NULL.
523
5fec8599
L
5242010-08-19 Alan Modra <amodra@gmail.com>
525
526 * NEWS: Mention change in linker script expression evaluation.
527
7542af2a
AM
5282010-08-19 Alan Modra <amodra@gmail.com>
529
530 * ld.texinfo (Expression Section): Detail expression evaluation.
531 (Builtin Functions <ADDR>): Correct.
532 (Builtin Functions <LOADADDR>): Don't mention LOADADDR normally
533 the same as ADDR.
534 (Builtin Functions <SEGMENT_START>): Typo fix.
535 * ldexp.c (new_number): New function.
536 (make_abs, exp_get_abs_int): Cope with NULL expld.result.section.
537 (fold_unary <'~', '!', '-'>): Don't make_abs.
538 (fold_binary): Simplify result section logic. Return NULL section
539 for logical ops.
540 (fold_binary <SEGMENT_START>): Use new_rel_from_abs to set value to
541 a consistent result.
542 (fold_name <SIZEOF_HEADERS>): Return new_number, not new_abs.
543 (fold_name <DEFINED, SIZEOF, ALIGNOF, LENGTH, CONSTANT>): Likewise.
544 (fold_name <NAME>): No need to handle absolute symbols differently
545 from relative ones.
546 (fold_name <ORIGIN>): Don't return valid result when
547 lang_first_phase_enum. Return new_rel_from_abs, not new_abs.
548 (exp_fold_tree_1 <etree_value>): Return new_number, not new_rel.
549 (exp_fold_tree_1): Ajust for NULL expld.result.section. When assigning
550 a plain number to dot, assume the value is relative to expld.section.
551 Make terms not in an output section, absolute.
552 * ldlang.c (print_assignment): Fix style nit.
553 (lang_size_sections_1): Cope with NULL expld.result.section.
554 (lang_do_assignments_1): Likewise.
555
5942515f
AM
5562010-08-12 Alan Modra <amodra@gmail.com>
557
558 * ldexp.c (new_rel): Remove "str". Update all call sites.
559 (exp_fold_tree_1): When assigning to dot, calculate nextdot
560 using expld.result.section rather than expld.section.
561
1e0061d2
AM
5622010-08-06 Alan Modra <amodra@gmail.com>
563
564 PR ld/11887
565 * ldlang.c (lang_add_vers_depend): Don't leave version_needed
566 uninitialised.
567
ae78bbeb
AM
5682010-07-28 Alan Modra <amodra@gmail.com>
569
570 * ldexp.c (exp_print_tree): Print function-like binary nodes as
571 functions rather than in-fix operators. Use fputs and fputc
572 where appropriate.
573
1cd986c5
NC
5742010-07-23 Naveen.H.S <naveen.S@kpitcummins.com>
575 Ina Pandit <ina.pandit@kpitcummins.com>
576
577 * configure.tgt: Match all v850 targets.
578
bb1515f2
MF
5792010-07-20 Mike Frysinger <vapier@gentoo.org>
580
581 * ld.texinfo (VERSION): Remove "int" from example script and add ";".
582 Declare the default language as C.
583
f4427a75
AM
5842010-07-17 Alan Modra <amodra@gmail.com>
585
586 * ldlang.c (lang_check_section_addresses): Catch overlap for
587 sections that wrap around the address space.
588
ec51c381
NC
5892010-06-29 Nick Clifton <nickc@redhat.com>
590
591 * scripttempl/xstormy16.sc (.gcc_except_table): Include sections
592 with the .gcc_except_table. prefix.
593
360cfc9c
AM
5942010-06-29 Alan Modra <amodra@gmail.com>
595
596 * emulparams/maxqcoff.sh: Delete file.
597 * scripttempl/maxqcoff.sc: Delete file.
598 * Makefile.am: Remove references to maxq.
599 * configure.tgt: Likewise.
600 * Makefile.in: Regenerate.
601 * configure: Regenerate.
602 * po/POTFILES.in: Regenerate.
603
c7e2358a
AM
6042010-06-27 Alan Modra <amodra@gmail.com>
605
606 * pe-dll.c (fill_edata): Avoid set but unused warning.
607 (pe_walk_relocs_of_symbol): Delete set but unused variables.
608 (generate_reloc, pe_implied_import_dll): Likewise.
609 * emultempl/aix.em (open_dynamic_archive): Likewise.
610 * emultempl/xtensaelf.em (replace_insn_sec_with_prop_sec): Likewise.
611 (xtensa_layout_wild): Likewise.
612 (xtensa_colocate_output_literals_callback): Likewise.
613
ba761f19
AM
6142010-06-25 Alan Modra <amodra@gmail.com>
615
616 * emultempl/ppc64elf.em (prelim_size_sections): New function.
617 (ppc_before_allocation): Use it. Size sections before toc edit too.
618
bded3693
AM
6192010-06-25 Alan Modra <amodra@gmail.com>
620
621 * emultempl/elf32.em (find_exp_assignment): Handle etree_provided.
622
09db93a8
DS
6232010-06-20 Danny Smith <dannysmith@users.sourceforge.net>
624
625 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Make
bded3693
AM
626 auto-import and merge-rdata defaults same for i[3-7]86 and
627 x86_64 mingw.
628
59e6276b
JM
6292010-06-15 Joseph Myers <joseph@codesourcery.com>
630
631 * emulparams/elf32_tic6x_le.sh (ATTRS_SECTIONS): Define.
632
75898d57
DK
6332010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
634
635 PR ld/11603
636 * pe-dll.c (process_def_file_and_drectve): Reorder check for
637 forwarded export name after check for ordinary export.
638
11dd4e37
BS
6392010-06-08 Bernd Schmidt <bernds@codesourcery.com>
640
641 * emulparams/elf32_tic6x_le.sh (OTHER_BSS_SECTIONS): New.
642
9fbcbd81
NC
6432010-06-08 Nick Clifton <nickc@redhat.com>
644
645 * fdl.texi: Replace with v1.3 text.
646 * ld.texinfo: Replace abbreviated 20th century year numbers with
647 full versions.
648 * ldint.texinfo: Likewise.
649 Relicense under GFDL v1.3. Replace text of v1.1 FDL with an
650 include of the fdl.texi file.
651
46d00b8a
TG
6522010-06-01 Tristan Gingold <gingold@adacore.com>
653
654 * scripttempl/alphavms.sc: Add comments. Move $LINK$ to the
655 readonly output-section. Handle LIB$INITIALIZE and sections
656 created by gcc.
657 * emultempl/vms.em (vms_place_orphan): Add comments.
658
de072cdc
NC
6592010-05-28 Nick Clifton <nickc@redhat.com>
660
661 * Makefile.am (eshlelf_fd.c): Fix typo in rule.
662 * Makefile.in: Regenerate.
663
c8ce5710
L
6642010-05-26 H.J. Lu <hongjiu.lu@intel.com>
665
666 PR ld/11628
667 * ldexp.c (fold_binary): Warn if value of SEGMENT_START isn't
668 multiple of maximum page size.
669
d19e70fb
NC
6702010-05-25 Nick Clifton <nickc@redhat.com>
671
672 * Makefile.am: Fix typo.
673 * Makefile.in: Regenerate.
674
8e45593f
NC
6752010-05-25 Daniel Jacobowitz <dan@codesourcery.com>
676 Joseph Myers <joseph@codesourcery.com>
677 Andrew Stubbs <ams@codesourcery.com>
678
679 * Makefile.am (ALL_EMULATIONS): Add eshelf_fd.o and eshlelf_fd.o.
680 (eshelf_fd.c, eshlelf_fd.c): New rules.
681 * Makefile.in: Regenerate.
682 * configure.tgt (sh-*-uclinux*): Add shelf_fd and shlelf_fd
683 emulations.
684 * emulparams/shelf_fd.sh: New file.
685 * emulparams/shlelf_fd.sh: New file.
686 * emulparams/shlelf_linux.sh: Update comment.
687
52a6ecd2
NC
6882010-05-25 Jay Krell <jay.krell@cornell.edu>
689
690 PR ld/11621
691 * Makefile.am: Replace all occurences of .o with .@OBJEXT@
692 * Makefile.in: Regenerate.
693
ca5f2203
KT
6942010-05-25 Kai Tietz <kai.tietz@onevision.com>
695
770c040b
KT
696 * deffilep.y (opt_name): Allow leading dot.
697 (dot_name): Likewise.
698 (anylang_id): Likewise.
6ec6c79c
KT
699 * emultempl/pep.em (gld_${EMULATION_NAME}_before_parse): Enable by
700 default auto_import.
701 (gld${EMULATION_NAME}_handle_option): Warn about v1.
702 (pep_find_data_imports): Remove superflous warnings about
703 auto-import.
704 (gld_${EMULATION_NAME}_get_script): Don't merge for auto-import
705 and active pseudo-relocation-v2 rdata into data section.
ca5f2203
KT
706 * emultempl/pe.em (default_merge_rdata): New shell variable.
707 (MERGE_RDATA_V2): New macro.
708 (gld_${EMULATION_NAME}_get_script): Adjust rule for auto-import
709 selected script.
710
d74720d2
KT
7112010-05-15 Kai Tietz <kai.tietz@onevision.com>
712
713 * emultempl/pe.em (is_underscoring): New helper function.
714 (gld_${EMULATION_NAME}_before_parse): Replace code
715 for pe(p)_leading_underscore detection by is_underscoring.
716 (U): Likewise.
717 (GET_INIT_SYMBOL_NAME): Likewise.
718 (U_SIZE): Likewise.
719 (set_pe_name):
720 (set_entry_point):
721 (gld_${EMULATION_NAME}_set_symbols):
722 * emultempl/pep.em: Likewise.
723 * pe-dll.c (pe_detail_list): Set default
724 underscoring for x64 target.
725 (pe_dll_id_target): Add initialization of
726 pe(p)_leading_underscore.
727
1b610c93
DK
7282010-05-15 Dave Korn <dave.korn.cygwin@gmail.com>
729
730 * pe-dll.c: Removed trailing whitespaces.
731
e092cb30
AM
7322010-05-14 Alan Modra <amodra@gmail.com>
733
734 PR ld/11583
735 * ldexp.c (exp_fold_tree_1): If assignment source expression is
736 invalid, make the destination symbol undefined.
737
b804e4af
KT
7382010-05-11 Kai Tietz <kai.tietz@onevision.com>
739
740 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
741 Initialize pe(p)_leading_underscore variable.
742 (set_pe_name): Likewise.
743 * emultempl/pep.em: Likewise.
744 Additional change default to non-underscore for
745 pep_leading_underscore equal to -1.
746
6540b386
TG
7472010-05-07 Tristan Gingold <gingold@adacore.com>
748
749 * Makefile.in: Regenerate with automake 1.11.1.
750 * aclocal.m4: Ditto.
751
3e01a7fd
NC
7522010-05-05 Nick Clifton <nickc@redhat.com>
753
754 * po/es.po: Updated Spanish translation.
755
17f73277
KT
7562010-04-27 Kai Tietz <kai.tietz@onevision.com>
757
758 * pe-dll.c (_nm_-symbols): Use always underscored variant
759 for symbols.
760 (__imp_-symbols): Likewise.
761 (___imp_-symbols): Likewise.
762 * NEWS: Mention ABI change for x64 PE-COFF.
763
7ad2014a
L
7642010-04-27 H.J. Lu <hongjiu.lu@intel.com>
765
766 * Makefile.am (install-exec-local): Properly install ld as
767 default cross linker.
768 * Makefile.in: Regenerated.
769
4fda8867
NC
7702010-04-27 H.J. Lu <hongjiu.lu@intel.com>
771 Nick Clifton <nickc@redhat.com>
772
773 * configure.in (install_as_default): Define and set to true
774 unless --enable-gold=both/gold has been specified.
775 * configure: Regenerate.
776
777 * Makefile.am (transform): Use ld.bfd as the default name of
778 the linker.
779 (install-exec-local): Also install the executable as a binary
780 named 'ld' if install_as_default is true.
781 * Makefile.in: Regenerate.
782
9c9c98a5
NC
7832010-04-22 Nick Clifton <nickc@redhat.com>
784
785 * po/ld.pot: Updated by the Translation project.
786 * po/vi.po: Updated Vietnamese translation.
787 * po/bg.po: Updated Bulgarian translation.
788
85fdf906
AH
7892010-04-15 Andrew Haley <aph@redhat.com>
790
791 * emultempl/armelf.em (merge_exidx_entries): New variable.
792 (OPTION_NO_MERGE_EXIDX_ENTRIES): New definition.
793 ("no-merge-exidx-entries"): New option.
794 * ld.texinfo (merge-exidx-entries): Document this option.
795
8b351884
TG
7962010-04-14 Tristan Gingold <gingold@adacore.com>
797
798 * emulparams/alphavms.sh: New file.
799 * emultempl/vms.em: New file.
800 * scripttempl/alphavms.sc: New file.
801 * configure.tgt (alpha*-*-*vms*): Added.
802 * Makefile.am (ALL_EMULATIONS): Add ealphavms.o
803 (ealphavms.c): New target.
804 * Makefile.in: Regenerate.
805
3d540e93
NC
8062010-04-09 Nick Clifton <nickc@redhat.com>
807
808 * ldlang.c (wild_sort): Remove unused variable section_name.
809
397841b5
AM
8102010-04-07 Alan Modra <amodra@gmail.com>
811
812 * configure: Regenerate.
813
6f8bcf84
L
8142010-04-06 H.J. Lu <hongjiu.lu@intel.com>
815
816 PR ld/11434
817 * ld/testsuite/ld-x86-64/unique1.d: New.
818 * ld/testsuite/ld-x86-64/unique1.s: Likewise.
819
820 * ld-x86-64/x86-64.exp: Run unique1.
821
522f09cd
KT
8222010-04-05 Kai Tietz <kai.tietz@onevision.com>
823
824 * emultempl/pep.em (U): Macro modified.
825 (U_SIZE): New helper macro.
826 (GET_INIT_SYMBOL_NAME): Likewise.
827 (enum options): Add OPTION_NO_LEADING_UNDERSCORE
828 and OPTION_LEADING_UNDERSCORE enumerator-values.
829 (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
830 option.
831 (definfo): Add new member is_c_symbol.
832 (D): Add to macro underscore mode parameter.
833 (init): Add definition for is_c_symbol.
834 (gld_${EMULATION_NAME}_list_options): Display new options.
835 (set_pep_name): Adjust underscoring dependent fixed
836 symbol handling.
837 (gld_${EMULATION_NAME}_set_symbols): Likewise.
838 (saw_option): Likewise.
839 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
840 (set_entry_point): Initial initial_symbol_char dependent to
841 target's default and new option flag pep_leading_underscore.
842 * emultempl/pe.em (U): Macro modified.
843 (U_SIZE): New helper macro.
844 (GET_INIT_SYMBOL_NAME): Likewise.
845 (OPTION_LEADING_UNDERSCORE): Add new option define.
846 (OPTION_NO_LEADING_UNDERSCORE): Likewise.
847 (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
848 option.
849 (definfo): Add new member is_c_symbol.
850 (D): Add to macro underscore mode parameter.
851 (init): Add definition for is_c_symbol.
852 (gld_${EMULATION_NAME}_list_options): Display new options.
853 (set_pep_name): Adjust underscoring dependent fixed
854 symbol handling.
855 (gld_${EMULATION_NAME}_set_symbols): Likewise.
856 (saw_option): Likewise.
857 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
858 (set_entry_point): Initial initial_symbol_char dependent to
859 target's default and new option flag pep_leading_underscore.
860 * pe-dll.c (pe_leading_underscore): New flag variable.
861 (pe_detail_list): Remove const to allow modify of
862 member underscore.
863 (pe_dll_id_target): Initialize pe_details' underscore variable
864 dependent to target's default and flag pe_leading_underscore.
865 * pe-dll.h (pe_leading_underscore): Add extern declaration of
866 option flag.
867 * pep-dll.c (pe_leading_underscore): Add alias define for
868 pep_leading_underscore.
869 * pep-dll.h (pep_leading_underscore) Add extern declaration of
870 option flag.
871 * ld.texinfo: Add documentation for --(no-)leading-underscore
872 option.
873
edc314c9
AM
8742010-03-26 Alan Modra <amodra@gmail.com>
875
876 PR ld/11426
877 * configure.host (many linux targets <HOSTING_CRT0>): Remove edits.
878 (m68*-motorola-sysv <HOSTING_LIBS>): Use here doc, not echo.
879
40b36596
JM
8802010-03-25 Joseph Myers <joseph@codesourcery.com>
881
882 * Makefile.am (ALL_EMULATIONS): Add eelf32_tic6x_be.o and
883 eelf32_tic6x_le.o.
884 (eelf32_tic6x_be.c, eelf32_tic6x_le.c): New.
885 * NEWS: Add news entry for TI C6X support.
886 * configure.tgt (tic6x-*-*): New.
887 * emulparams/elf32_tic6x_be.sh, emulparams/elf32_tic6x_le.sh: New.
888
349e935b
JM
8892010-03-23 Joseph Myers <joseph@codesourcery.com>
890
891 * scripttempl/elf.sc (RODATA_NAME, SDATA_NAME, SBSS_NAME,
892 BSS_NAME): Define if not already defined. Use in place of some
893 hardcoded section names.
894
576ee33a
L
8952010-03-18 H.J. Lu <hongjiu.lu@intel.com>
896
897 * scripttempl/elf.sc (INIT_ARRAY): Re-indent.
898
54801c2d
NC
8992010-03-18 Aymeric Vincent <vincent@labri.fr>
900
901 PR ld/11384
902 * emultempl/sh64elf.em: Add missing EOF.
903
17299ac7
NC
9042010-03-18 Doug Semler <dougsemler@gmail.com>
905
906 * pe-dll.c (make_one): Make text section readonly.
907 (make_one): Add *ABS* symbol @feat.00 with value 1 to tag
908 the jump stub on X86 as /SAFESEH compatible for
909 native toolchains.
910
e535e147
AM
9112010-03-17 Alan Modra <amodra@gmail.com>
912
913 * ldlang.c (lang_size_sections_1): Remove "s" param. Set "s" from
914 *prev instead. Update all callers.
915
f77c3948
DJ
9162010-03-15 Daniel Jacobowitz <dan@codesourcery.com>
917
918 * ldlang.c (lang_insert_orphan): Place loadable orphans in the same
919 region and phdrs as their placement section.
920
d43d0b53
AM
9212010-03-15 Alan Modra <amodra@gmail.com>
922
923 * emultempl/ppc64elf.em (move_input_section, sort_toc_sections): New.
924 (ppc_before_allocation): Call sort_toc_sections.
925 (no_toc_sort, OPTION_NO_TOC_SORT): New.
926 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
927 PARSE_AND_LIST_OPTIONS): Handle --no-toc-sort.
928
70cc837d
AM
9292010-03-14 Alan Modra <amodra@gmail.com>
930
931 PR ld/11378
932 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation): Call
933 ppc64_elf_check_init_fini and warn if .init/.fini use different TOCs.
934
806fc311
AM
9352010-03-11 George Gensure <werkt0@gmail.com>
936
937 PR ld/11367
938 * ldcref.c (handle_asneeded_cref): Correct copying of refs.
939
a6cc6b3b
RO
9402010-03-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
941
942 * Makefile.am (ALL_EMULATIONS): Add eelf32_sparc_sol2.o,
943 eelf_i386_sol2.o.
944 (ALL_64_EMULATIONS): Add eelf_x86_64_sol2.o, eelf64_sparc_sol2.o.
945 (eelf32_sparc_sol2.c): New rule.
946 (eelf64_sparc_sol2.c): Likewise.
947 (eelf_x86_64_sol2.c): Likewise.
948 (eelf_i386_sol2.c): Likewise.
949 * Makefile.in: Regenerate.
950 * configure.tgt (i[3-7]86-*-solaris2*): Change targ_emul to
951 elf_i386_sol2.
952 Add elf_i386_ldso, elf_x86_64_sol2 to targ_extra_emuls.
953 (x86_64-*-solaris2*): Change targ_emul to elf_x86_64_sol2.
954 Add elf_x86_64, elf_i386_sol2, elf_i386 to targ_extra_emuls.
955 (sparc-*-solaris2.[0-6]*): Change targ_emul to elf32_sparc_sol2.
956 Add target_extra_emuls.
957 (sparc-*-solaris2*): Change targ_emul to elf32_sparc_sol2.
958 Add elf32_sparc, elf64_sparc_sol2 to targ_extra_emuls.
959 (sparcv9-*-solaris2*): Change targ_emul to elf64_sparc_sol2.
960 Add elf64_sparc, elf32_sparc_sol2 to target_extra_emuls.
961 * emulparams/elf32_sparc_sol2.sh: New file.
962 * emulparams/elf64_sparc_sol2.sh: New file.
963 * emulparams/elf_i386_sol2.sh: New file.
964 * emulparams/elf_x86_64_sol2.sh: New file.
965 * emultempl/solaris2.em: New file.
966
fc073cb7
L
9672010-02-27 H.J. Lu <hongjiu.lu@intel.com>
968
969 PR ld/11330
970 * ld.texinfo: Replace explicitely with explicitly.
971
3cff7cc7
JZ
9722010-02-27 Jie Zhang <jie@codesourcery.com>
973
974 * scripttempl/armbpabi.sc: Don't combine .init_array.* or
975 .fini_array.* when do relocatable linking.
976 * scripttempl/elf.sc: Likewise.
977 * scripttempl/elf32sh-symbian.sc: Likewise.
978 * scripttempl/elf64hppa.sc: Likewise.
979 * scripttempl/elfxtensa.sc: Likewise.
980
9445af9a
AM
9812010-02-26 Alan Modra <amodra@gmail.com>
982
983 * scripttempl/elf.sc (.fini_array): Place input .fini_array after
984 .fini_array.*.
985 * scripttempl/armbpabi.sc: Likewise.
986 * scripttempl/elf32sh-symbian.sc: Likewise.
987 * scripttempl/elf64hppa.sc: Likewise.
988 * scripttempl/elfxtensa.sc: Likewise.
989
dfa7b0b8
AM
9902010-02-25 Alan Modra <amodra@gmail.com>
991
992 PR ld/11304
993 * ldlang.c (init_os): Remove isec param. Don't check for
994 bfd_section already set or call bfd_init_private_section_data
995 here.
996 (exp_init_os): Update init_os call.
997 (lang_add_section): Tidy. Really don't set SEC_LINK_ONCE
998 flags. Call bfd_init_private_section_data here.
999 (map_input_to_output_sections): Tidy. Update init_os calls.
1000 Use os->sectype to select sec flags for lang_data_statement.
1001
a431bc2e
AM
10022010-02-23 Alan Modra <amodra@gmail.com>
1003
1004 PR ld/11304
1005 * ldlang.c: Revert last patch.
1006
1c063135
NC
10072010-02-23 Nick Clifton <nickc@redhat.com>
1008
1009 * po/bg.po: Updated Bulgarian translation.
1010
c380a809
AM
10112010-02-22 Alan Modra <amodra@gmail.com>
1012
1013 PR ld/11304
1014 * ldlang.c (exp_init_os): Delete forward declaration.
1015 (init_os): Don't check for bfd_section already created and don't
1016 init addr_tree and load_base expressions here.
1017 (map_input_to_output_sections): Only map input to output sections
1018 and set constraints here, and as an exception, create output
1019 sections which have their address set. Move all the other code to..
1020 (create_other_output_sections): ..here. New function. Handle init
1021 of addr_tree and load_base here too.
1022 (lang_process): Call create_other_output_sections.
1023
c8c66882
AM
10242010-02-19 Alan Modra <amodra@gmail.com>
1025
1026 * Makefile.am (eelf32_i960.c): Depend on ELF_GEN_DEPS, not ELF_DEPS.
1027 * Makefile.in: Regenerate.
1028
d0bf826b
AM
10292010-02-19 Alan Modra <amodra@gmail.com>
1030
1031 * ldlang.c (unique_section_p): Add os param. Allow group
1032 sections to match /DISCARD/. Update all callers.
1033 * emultempl/genelf.em (gld${EMULATION_NAME}_before_allocation): New.
1034 (LDEMUL_BEFORE_ALLOCATION): Define.
1035
ab7875de
NC
10362010-02-15 Nick Clifton <nickc@redhat.com>
1037
1038 * po/vi.po: Updated Vietnamese translation.
1039
45e481d1
RS
10402010-02-10 Richard Sandiford <r.sandiford@uk.ibm.com>
1041
1042 * Makefile.am (CFILES): Add ldlex-wrapper.c.
1043 (OFILES): Replace ldlex.c with ldlex-wrapper.c.
1044 (ldlex.o): Replace with...
1045 (ldlex-wrapper.o): ...this new rule.
1046 (EXTRA_ld_new_SOURCES): Add ldlex.l.
1047 (ld_new_SOURCES): Replace ldlex.l with ldlex-wrapper.c.
1048 * Makefile.in: Regenerate.
1049 * ldlex.l (sysdep.h): Don't include here.
1050 * ldlex-wrapper.c: New file.
1051
33c0ec9d
AM
10522010-02-09 Alan Modra <amodra@gmail.com>
1053
1054 * emultempl/ppc64elf.em (ppc_before_allocation): Update for changed
1055 function parameters.
1056
ef3f88be
NC
10572010-02-05 Nick Clifton <nickc@redhat.com>
1058
1059 * configure.in (ALL_LIBGUAS): Add bg.
1060 * configure: Regenerate.
1061 * po/bg.po: New Bulgarian translation.
1062
f8266dc4
NC
10632010-02-05 Ryan Mansfield <rmansfield@qnx.com>
1064
1065 * emultempl/armelf.em (PARSE_AND_LIST_OPTIONS): Fix help for
1066 --target1-abs and --target1-rel options.
1067
4dfe6ac6
NC
10682010-02-03 Nick Clifton <nickc@redhat.com>
1069
1070 * emultempl/alphaelf.em: Update value expected from elf_object_id.
1071 * emultempl/hppaelf.em: Likewise.
1072 * emultempl/mipself.em: Likewise.
1073 * emultempl/ppc32elf.em: Likewise.
1074 * emultempl/ppc64elf.em: Likewise.
1075
927be08e
AM
10762010-02-03 Alan Modra <amodra@gmail.com>
1077
1078 * emultempl/ppc64elf.em (build_toc_list): Report errors from
1079 ppc64_elf_next_toc_section.
1080 (after_allocation): Update for changed function names and params.
1081 Run second pass of multitoc partitioning.
1082
c4b78195
NC
10832010-01-21 Jon Grant <jg@jguk.org>
1084 Nick Clifton <nickc@redhat.com>
1085
1086 PR 4437
1087 * ldfile.c: (ldfile_open_file): Do not stop link upon encountering
1088 a missing file or library. Instead mark the entry as missing and
1089 set the global flag to indicate that missing files were
1090 encountered.
1091 * ldlang.c (missing_files): New exported variable.
1092 (load_symbols): Skip loading if the file is missing.
1093 (open_input_bfds): Terminate link if any input files were
1094 missing.
1095 * ldlang.h (struct lang_input_statement_struct): Add missing_file
1096 field.
1097 Add export of missing_file variable.
1098
b5f14a6d
DD
10992010-01-13 DJ Delorie <dj@redhat.com>
1100
1101 * emultempl/elf32.em (_place_orphan): If an input section doesn't
1102 match an existing output section, but an unused output section
1103 statement does match, use it.
1104 * emultempl/pe.em (_place_orphan): Likewise.
1105 * emultempl/pep.em (_place_orphan): Likewise.
1106
3725885a
RW
11072010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1108
1109 * configure: Regenerate.
1110 * Makefile.in: Regenerate.
1111
5256a5b0
L
11122010-01-08 H.J. Lu <hongjiu.lu@intel.com>
1113
1114 * ldver.c (ldversion): Change to "Copyright 2010".
1115
b903363e
AM
11162010-01-08 Alan Modra <amodra@gmail.com>
1117
1118 PR 11107
1119 * emultempl/vxworks.em: Expand tr arguments to suit non-GNU tr.
9dda37c1 1120
43ecc30f 1121For older changes see ChangeLog-2009
252b5132
RH
1122\f
1123Local Variables:
1124mode: change-log
1125left-margin: 8
1126fill-column: 74
1127version-control: never
1128End:
This page took 0.611853 seconds and 4 git commands to generate.