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