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