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