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