1 2009-11-06 Kai Tietz <kai.tietz@onevision.com>
3 * pe.em (DEFAULT_PSEUDO_RELOC_VERSION): New macro.
4 (gld_XXX_before_parse): Set pseudo-relocation default
5 version to DEFAULT_PSEUDO_RELOC_VERSION.
6 (gldXXX_handle_option): Likewise.
9 2009-11-05 Nick Clifton <nickc@redhat.com>
11 * lexsup.c: Rename --add-needed to --copy-dt-needed-entries.
12 * ldlang.h (struct lang_input_statement_struct): Rename add_needed
13 to add_DT_NEEDED_for_dynamic. Rename as_needed to
14 add_DT_NEEDED_for_regular.
17 * ldlang.c: Use the new variable names.
19 * emultempl/elf32.em: Likewise.
20 * ld.texinfo: Document the renamed option. Also mention its
21 affect on the resolution of dynamic symbols.
22 * NEWS: Mention the changed option name.
24 2009-11-04 Kai Tietz <kai.tietz@onevision.com>
26 * emulparams/arm_epoc_pe.sh: Remove ENTRY.
27 * emulparams/arm_wince_pe.sh: Likewise.
28 * emulparams/i386pe.sh: Likewise.
29 * emulparams/i386pe_posix.sh: Likewise.
30 * emulparams/mcorepe.sh: Likewise.
31 * emulparams/mipspe.sh: Likewise.
32 * emulparams/ppcpe.sh: Likewise.
33 * emulparams/armpe.sh: Likewise.
34 * emulparams/i386pep.sh: Likewise.
35 * emulparams/shpe.sh: Likewise.
36 Additionally cleaned up double-defined
37 variables SUBSYSTEM and INITIAL_SYMBOL_CHAR.
38 * emultempl/pe.em: Remove use of ENTRY.
39 (pe_subsystem): New local variable.
40 (gld_XXX_before_parse): Don't set default
42 (set_entry_point): New function to set entry
44 (set_pe_subsystem): Remove code for entry point.
45 (gld_XXX_after_parse): Use set_entry_point here.
46 * emultempl/pep.em: Likewise.
48 2009-10-29 Nathan Sidwell <nathan@codesourcery.com>
50 * emulparams/vxworks.sh (OTHER_READONLY_SECTIONS): Move into ...
51 (OTHER_READWRITE_SECTIONS): ... here.
53 2009-10-28 Kai Tietz <kai.tietz@onevision.com>
55 * emultempl/pep.em (U): Define underscore macro.
56 (init): Use for __ImageBase U macro.
58 2009-10-23 Kai Tietz <kai.tietz@onevision.com>
60 * deffile.h (def_file_export): New member its_name.
61 (def_file_import): Likewise.
62 (def_file_add_export): Add argument its_name.
63 (def_file_add_import): Likewise.
64 * deffilep.y (def_exports): Add argument its_name.
65 (def_import): Likewise.
66 (EQUAL): Add new token for '=='.
67 (opt_equalequal_name): New rule.
68 (expline): Add rule opt_equalequal_name.
70 (def_file_free): Free for exports and imports
71 the optional member its_name.
72 (def_lex): Add scan of '==' as EQUAL.
73 * pe-dll.c (pe_export_sort): Sort for its_name too.
74 (process_def_file_and_drectve): Adjust calls to
76 (generate_edata): Take its_name in account.
78 (pe_process_import_defs): Likewise.
79 (pe_dll_generate_def_file): Add print of new '==' option.
80 * ld.texinfo: Extend documentation about .def file syntax.
81 * NEWS: Mention new feature.
83 2009-10-23 Kai Tietz <kai.tietz@onevision.com>
85 * deffilep.y (def_lex): Allow '<' and '>' characters in identifier
88 2009-10-23 Ryan Mansfield <rmansfield@qnx.com>
91 * emultempl/elf32.em (gld${EMULATION_NAME}_search_needed): Handle
92 drive specifiers for DOS based filesystems in rpath-link strings.
94 2009-10-19 Nick Clifton <nickc@redhat.com>
96 * Makefile.am: Remove spurious sanitization marker.
97 * Makefile.in: Regenerate.
99 2009-10-16 Dimitry Gorbachev <d.g.gorbachev@gmail.com>
101 * emultempl/pe.em (OPTION_EXCLUDE_ALL_SYMBOLS): New macro.
102 (gld${EMULATION_NAME}_add_options): Add new --exclude-all-symbols option
103 to exclude all symbols from automatic export.
104 (gld_${EMULATION_NAME}_list_options): Describe it.
105 (gld${EMULATION_NAME}_handle_option): Handle it.
106 * emultempl/pep.em: Likewise to all the above.
107 * pe-dll.c (pe_dll_exclude_all_symbols): New variable.
108 (process_def_file_and_drectve): Use it.
109 * pe-dll.h (pe_dll_exclude_all_symbols): Declare.
110 * pep-dll.c (pep_dll_exclude_all_symbols): Define pep_ alias.
111 * pep-dll.h (pe_dll_exclude_all_symbols): Declare.
112 * NEWS: Mention the new feature.
113 * ld.texinfo: Document the new command line switch.
115 2009-10-14 Andreas Schwab <schwab@linux-m68k.org>
117 * ldlex.l (yy_input): Remove second argument and return the value
121 2009-10-14 Alan Modra <amodra@bigpond.net.au>
123 * emultempl/netbsd.em (gldnetbsd_before_parse): Typo fix.
125 2009-10-14 Ryan Mansfield <rmansfield@qnx.com>
127 * ldlang.c (load_symbols): Set whole_archive from entry when
128 parsing a linker script.
130 2009-10-10 Alan Modra <amodra@bigpond.net.au>
132 * scripttempl/elf32cr16.sc: Revert 2009-09-28 changes.
133 * scripttempl/elf32cr16c.sc: Likewise.
134 * scripttempl/elf32crx.sc: Likewise.
135 * scripttempl/tic54xcoff.sc: Likewise.
136 * scripttempl/aix.sc: Likewise.
137 * scripttempl/avr.sc: Likewise.
138 * scripttempl/elf32msp430.sc: Likewise.
139 * scripttempl/elf32msp430_3.sc: Likewise.
140 * scripttempl/elf32sh-symbian.sc: Likewise.
141 * scripttempl/elf_chaos.sc: Likewise.
142 * scripttempl/elfi370.sc: Likewise.
143 * scripttempl/nw.sc: Likewise.
144 * scripttempl/psos.sc: Likewise.
145 * scripttempl/armbpabi.sc: Likewise.
146 * scripttempl/elf.sc: Likewise.
147 * scripttempl/elf64hppa.sc: Likewise.
148 * scripttempl/elfd10v.sc: Likewise.
149 * scripttempl/elfd30v.sc: Likewise.
150 * scripttempl/elfm68hc11.sc: Likewise.
151 * scripttempl/elfm68hc12.sc: Likewise.
152 * scripttempl/elfmicroblaze.sc: Likewise.
153 * scripttempl/elfxtensa.sc: Likewise.
154 * scripttempl/iq2000.sc: Likewise.
155 * scripttempl/mep.sc: Likewise.
156 * scripttempl/xstormy16.sc: Likewise.
158 2009-10-09 Alan Modra <amodra@bigpond.net.au>
161 * ldlang.c (lang_size_sections_1): Zero section vmas only for COFF.
163 2009-10-08 Alan Modra <amodra@bigpond.net.au>
166 * ldlang.c (lang_new_phdr): Allow FILEHDR/PHDRS on more than the
167 first PT_LOAD header.
168 * ld.texinfo: Update.
170 2009-10-06 Nathan Sidwell <nathan@codesourcery.com>
172 * ldlang.c (lang_new_phdr): Check PHDRS and FILEHDR in loadable
173 segments do not appear after a different loadable segment.
174 * ld.texinfo (PHDRS): Document order of processing segments.
175 Document where PHDRS and FILEHDR may appear.
177 2009-10-03 Alan Modra <amodra@bigpond.net.au>
179 * emultempl/ppc32elf.em (emit_stub_syms): Init to -1.
180 (ppc_after_open): Set emit_stubs_syms by default when shared.
181 (OPTION_NO_STUBSYMS): Define.
182 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS,
183 PARSE_AND_LIST_ARGS_CASES): Handle --no-emit-stub-syms.
184 * emultempl/ppc64elf.em (emit_stub_syms): Init to -1.
185 (gld${EMULATION_NAME}_finish): Set emit_stubs_syms by default.
186 (OPTION_NO_STUBSYMS): Define.
187 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS,
188 PARSE_AND_LIST_ARGS_CASES): Handle --no-emit-stub-syms.
190 2009-09-29 Joel Sherrill <joel.sherrill@oarcorp.com>
192 * emulparams/m68kelf.sh (NOP): Use 0x4e71 (nop) rather than 0x4e75
195 2009-09-29 DJ Delorie <dj@redhat.com>
197 * Makefile.am: Add rules to build RX emulation.
198 * configure.tgt: Likewise.
199 * NEWS: Mention support for RX architecture.
200 * Makefile.in: Regenerate.
201 * emulparams/elf32rx.sh: New file.
202 * emultempl/rxelf.em: New file.
204 2009-09-29 Alan Modra <amodra@bigpond.net.au>
206 * ldlang.c (lang_size_sections_1): Allow scripts to specify a
207 non-zero vma even when relocatable.
209 2009-09-28 Alan Modra <amodra@bigpond.net.au>
211 * scripttempl/elf32cr16.sc: Emit empty script for ld -r and ld -Ur.
212 * scripttempl/elf32cr16c.sc: Likewise.
213 * scripttempl/elf32crx.sc: Likewise.
214 * scripttempl/tic54xcoff.sc: Likewise.
215 * scripttempl/aix.sc: Delete ${RELOCATING-0}.
216 * scripttempl/avr.sc: Likewise.
217 * scripttempl/elf32msp430.sc: Likewise.
218 * scripttempl/elf32msp430_3.sc: Likewise.
219 * scripttempl/elf32sh-symbian.sc: Likewise.
220 * scripttempl/elf_chaos.sc: Likewise.
221 * scripttempl/elfi370.sc: Likewise.
222 * scripttempl/nw.sc: Likewise.
223 * scripttempl/psos.sc: Likewise.
224 * scripttempl/armbpabi.sc: Delete ${RELOCATING-0} and ${CONSTRUCTING-0}.
225 * scripttempl/elf.sc: Likewise.
226 * scripttempl/elf64hppa.sc: Likewise.
227 * scripttempl/elfd10v.sc: Likewise.
228 * scripttempl/elfd30v.sc: Likewise.
229 * scripttempl/elfm68hc11.sc: Likewise.
230 * scripttempl/elfm68hc12.sc: Likewise.
231 * scripttempl/elfmicroblaze.sc: Likewise.
232 * scripttempl/elfxtensa.sc: Likewise.
233 * scripttempl/iq2000.sc: Likewise.
234 * scripttempl/mep.sc: Likewise.
235 * scripttempl/xstormy16.sc: Likewise.
237 2009-09-27 Christopher Faylor <me+cygwin@cgf.cx>
240 * ldlang.c (lang_size_sections_1): Always force output vma to zero for
241 relocatable sections.
242 (lang_size_sections_1): Revert previous COFF-only accommodation for
243 relocatable sections.
245 2009-09-25 Martin Thuresson <martint@google.com>
247 Update sources to make arm targets compile cleanly with
249 * emultempl/armelf.em: Add casts.
251 2009-09-23 Matt Rice <ratmice@gmail.com>
253 * emultempl/elf32.em (gld${EMULATION_NAME}_add_options): Add --audit,
254 --depaudit, and -P options.
255 (gld${EULATION_NAME}_handle_options): Ditto.
256 (gld${EULATION_NAME}_list_options): Ditto.
257 (gld${EMULATION_NAME}_append_to_separated_string): New function for
258 handling rpath-like colon separated strings.
259 (gld${EMULATION_NAME}_before_allocation): Pass the audit and depaudit
260 libs to bfd. Propagate DT_AUDIT from needed libs to depaudit.
261 * ld.texinfo: Document new options.
263 2009-09-23 Nick Clifton <nickc@redhat.com>
265 * po/vi.po: Updated Vietnamese translation.
267 2009-09-22 Alan Modra <amodra@bigpond.net.au>
269 * scripttempl/a29k.sc: Delete.
270 * scripttempl/ebmon29k.sc: Delete.
271 * scripttempl/m68klynx.sc: Delete.
272 * scripttempl/sa29200.sc: Delete.
273 * scripttempl/sparclynx.sc: Delete.
275 2009-09-21 Alan Modra <amodra@bigpond.net.au>
277 * emultempl/ppc32elf.em (no_tls_get_addr_opt): New var.
278 (ppc_before_allocation): Pass to ppc_elf_tls_setup.
279 (OPTION_NO_TLS_GET_ADDR_OPT): Define. Redefine other options in
280 terms of previous option.
281 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add
282 --no-tls-get-addr-optimize.
283 (PARSE_AND_LIST_ARGS_CASES): Handle it.
284 * emultempl/ppc64elf.em (no_tls_get_addr_opt): New var.
285 (ppc_before_allocation): Pass to ppc64_elf_tls_setup.
286 (OPTION_NO_TLS_GET_ADDR_OPT): Define.
287 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add
288 --no-tls-get-addr-optimize.
289 (PARSE_AND_LIST_ARGS_CASES): Handle it.
291 2009-09-18 Nick Clifton <nickc@redhat.com>
293 * po/es.po: Updated Spanish translation.
295 2009-09-13 Alan Modra <amodra@bigpond.net.au>
298 * lexsup.c (parse_args <-e>): Revert 2009-03-18 change.
299 * ldemul.c (after_parse_default): Add entry symbol as undef.
300 * emultempl/alphaelf.em (alpha_after_parse): Call after_parse_default.
301 * emultempl/cr16elf.em (cr16elf_after_parse): Likewise.
302 * emultempl/crxelf.em (crxelf_after_parse): Likewise.
303 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
304 * emultempl/ia64elf.em (gld${EMULATION_NAME}_after_parse): Likewise.
305 * emultempl/pe.em (gld_${EMULATION_NAME}_after_parse): Call
306 after_parse_default and delete now duplicate code.
307 * emultempl/pep.em (gld_${EMULATION_NAME}_after_parse): Likewise.
308 * scripttempl/elf32cr16.sc: No need to make entry extern.
309 * scripttempl/elf32cr16c.sc: Likewise.
310 * scripttempl/elf32crx.sc: Likewise.
311 * scripttempl/elf32xc16xs.sc: Only provide ENTRY on final link.
313 2009-09-11 Nick Clifton <nickc@redhat.com>
315 * po/ld.pot: Updated by the Translation project.
316 * po/fi.po: Updated Finnish translation.
318 2009-09-11 Martin Thuresson <martint@google.com>
320 Updated sources to compile cleanly with -Wc++-compat:
321 * ld.h (enum endian_enum,enum symbolic_enum,enum
322 dynamic_list_enum): Move to top level.
323 * ldcref.c: Add casts.
324 * ldctor.c: Add casts.
326 * ldexp.h (enum node_tree_enum,enum phase_enum): Move to top level.
327 * ldlang.c: Add casts. (lang_insert_orphan): Use enum name instead
329 * ldlang.h (enum statement_enum): Move to top level.
330 * ldmain.c: Add casts.
331 * ldwrite.c: Add casts.
332 * lexsup.c: Add casts. (enum control_enum): Move to top level.
333 * mri.c: Add casts. (mri_draw_tree): Use enum name instead of
336 2009-09-09 Alan Modra <amodra@bigpond.net.au>
338 * scripttempl/aix.sc: Only provide ENTRY on final link.
339 * scripttempl/alpha.sc: Likewise.
340 * scripttempl/armcoff.sc: Likewise.
341 * scripttempl/crisaout.sc: Likewise.
342 * scripttempl/delta68.sc: Likewise.
343 * scripttempl/ebmon29k.sc: Likewise.
344 * scripttempl/elf32xc16x.sc: Likewise.
345 * scripttempl/elf32xc16xl.sc: Likewise.
346 * scripttempl/elfmicroblaze.sc: Likewise.
347 * scripttempl/epocpe.sc: Likewise.
348 * scripttempl/h8300.sc: Likewise.
349 * scripttempl/h8300h.sc: Likewise.
350 * scripttempl/h8300hn.sc: Likewise.
351 * scripttempl/h8300s.sc: Likewise.
352 * scripttempl/h8300sn.sc: Likewise.
353 * scripttempl/h8300sx.sc: Likewise.
354 * scripttempl/h8300sxn.sc: Likewise.
355 * scripttempl/hppaelf.sc: Likewise.
356 * scripttempl/i386beos.sc: Likewise.
357 * scripttempl/i386coff.sc: Likewise.
358 * scripttempl/i386go32.sc: Likewise.
359 * scripttempl/m68kaux.sc: Likewise.
360 * scripttempl/m68klynx.sc: Likewise.
361 * scripttempl/m88kbcs.sc: Likewise.
362 * scripttempl/maxqcoff.sc: Likewise.
363 * scripttempl/mcorepe.sc: Likewise.
364 * scripttempl/mips.sc: Likewise.
365 * scripttempl/ppcpe.sc: Likewise.
366 * scripttempl/sa29200.sc: Likewise.
367 * scripttempl/sparccoff.sc: Likewise.
368 * scripttempl/sparclynx.sc: Likewise.
369 * scripttempl/tic4xcoff.sc: Likewise.
370 * scripttempl/tic54xcoff.sc: Likewise.
371 * scripttempl/tic80coff.sc: Likewise.
372 * scripttempl/z8000.sc: Likewise.
374 2009-09-07 Tristan Gingold <gingold@adacore.com>
376 * po/ld.pot: Regenerate.
378 2009-09-05 Martin Thuresson <martin@mtme.org>
380 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols,
381 gld${EMULATION_NAME}_try_needed): Rename variable class to
384 2009-09-04 Tristan Gingold <gingold@adacore.com>
386 * NEWS: Add marker for 2.20.
388 2009-09-04 Alan Modra <amodra@bigpond.net.au>
390 * scripttempl/elf.sc (.text): Add cold text sections.
392 2009-09-04 Jie Zhang <jie.zhang@analog.com>
394 * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Add .l2.text
397 2009-09-03 Dave Korn <dave.korn.cygwin@gmail.com>
399 * scripttempl/pe.sc (.text): Add "*(.text.*)" in order to catch
400 new GCC hot/cold/unlikely partitions.
401 * scripttempl/pep.sc: Likewise.
402 * scripttempl/epocpe.sc: Likewise.
403 * scripttempl/mcorepe.sc: Likewise.
404 * scripttempl/ppcpe.sc: Likewise.
406 2009-09-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
408 * Makefile.am (ldgram.o, ldlex.o, deffilep.o): Supply correct
409 source file name for generated files which may be in $(srcdir).
410 * Makefile.in: Regenerate.
412 2009-09-01 H.J. Lu <hongjiu.lu@intel.com>
414 * ldver.c (ldversion): Change to "Copyright 2009".
416 2009-09-01 Jie Zhang <jie.zhang@analog.com>
418 * scripttempl/elf.sc: Add ${USER_LABEL_PREFIX} to _start, etext,
419 _stack and __bss_start.
420 * emulparams/bfin.sh (ENTRY): Remove.
422 2009-08-30 Alan Modra <amodra@bigpond.net.au>
425 * ldexp.c (fold_name <MAXPAGESIZE>): Return config.maxpagesize.
426 (fold_name <COMMONPAGESIZE>): Similarly.
427 * ldlang.c (output_target): Make global.
428 * ldlang.h (output_target): Declare.
429 * ldmain.c (main): Set config.maxpagesize from bfd_emul_get_maxpagesize.
430 Similarly for config.commonpagesize.
431 * ldemul.c (set_output_arch_default): Call bfd_emul_set_maxpagesize
432 and bfd_emul_set_commonpagesize.
433 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Don't call
434 bfd_emul_set_maxpagesize or bfd_emul_set_commonpagesize here.
436 2009-08-29 Martin Thuresson <martin@mtme.org>
438 * ldexp.c (exp_intop, exp_bigintop, exp_relop, exp_binop)
439 (exp_trinop, exp_unop, exp_nameop, exp_assop): Rename variable new
441 * ldfile.c (ldfile_add_library_path): Rename variable new to
442 new_dirs. (ldfile_add_arch): Rename variable new to new_arch.
443 * ldlang.c (new_statement, lang_final, lang_add_wild)
444 (lang_target, lang_add_fill, lang_add_data, lang_add_assignment)
445 (lang_add_insert): Rename variable new to new_stmt. (new_afile):
446 Added missing cast. (lang_memory_region_lookup): Rename variable
447 new to new_region. (init_os): Rename variable new to
448 new_userdata. (lang_add_section): Rename variable new to
449 new_section. (ldlang_add_undef): Rename variable new to
450 new_undef. (realsymbol): Rename variable new to new_name.
452 2009-08-26 Nick Clifton <nickc@redhat.com>
455 * emultempl/elf32.em (_after_open): Do not create a
456 .note.gnu-build-id section if there are no input files.
458 2009-08-24 Nick Clifton <nickc@redhat.com>
460 * scripttempl/elfxtensa.sc (DISCARDED): Discard sections with
462 * scripttempl/armbpabi.sc: Likewise.
463 * scripttempl/elf32sh-symbian.sc: Likewise.
464 * scripttempl/elf64hppa.sc: Likewise.
465 * scripttempl/mep.sc: Likewise.
467 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
469 * Makefile.am (ldmain.o, ldfile.o): Fix typos in non-fastdep
471 (eelf32_spu.o): Add dependency tracking.
472 * Makefile.in: Regenerate.
474 * Makefile.am (am__skiplex, am__skipyacc): New.
475 * Makefile.in: Regenerate.
477 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
479 * Makefile.am (bin_PROGRAMS): Renamed from ...
480 (noinst_PROGRAMS): ... this.
481 (transform): Override, including the renaming of ld-new to ld.
482 (install-exec-local): Installation of ld in $(bindir) not needed
484 (AM_CPPFLAGS): Renamed from ...
485 (INCLUDES): ... this.
486 (MAINTAINERCLEANFILES): Add ld.1.
487 * Makefile.in: Regenerate.
489 * Makefile.am (AUTOMAKE_OPTIONS): Remove cygnus. Add
490 no-texinfo.tex, no-dist, foreign.
491 (TEXINFO_TEX): New variable.
492 (install-data-local): Removed, not needed any more.
493 (all): Dependencies upon info and ld.1 not needed any more.
494 (MKDEP, DEP, DEP1, dep.sed, dep, dep-in, dep-am): Removed.
495 (mkdep generated section): Removed.
496 (ldgram.o, ldlex.o, deffilep.o, ldmain.o, ldfile.o): Rewrite to
497 use automake dependency tracking mechanism.
498 (EXTRA_ld_new_SOURCES): Add pep-dll.c, pe-dll.c, and
499 $(ALL_EMULATIONS:.o=.c) $(ALL_64_EMULATIONS:.o=.c) so their
500 dependencies are tracked too.
501 (BUILT_SOURCES): New, list $(GENERATED_HFILES) to ensure they
503 * configure.in: Use AM_MAINTAINER_MODE.
504 * aclocal.m4, configure, Makefile.in: Regenerate.
506 * Makefile.am (pdf__strip_dir, install-pdf, install-pdf-am)
507 (install-pdf-recursive, html__strip_dir, install-html)
508 (install-html-am, install-html-recursive): Remove.
509 * Makefile.in: Regenerate.
511 * Makefile.in: Regenerate.
512 * aclocal.m4: Likewise.
513 * config.in: Likewise.
514 * configure: Likewise.
516 2009-08-21 Richard Guenther <rguenther@suse.de>
518 * scripttempl/elf.sc: Discard sections with .gnu.lto_ prefix.
520 2009-08-12 Tristan Gingold <gingold@adacore.com>
522 * ld.h (fat_user_section_struct): Add map_symbol_def_count field.
523 * ldlang.c (hash_entry_addr_cmp): New function.
524 (print_all_symbols): Sort the symbols by address before printing them.
526 2009-08-10 Alan Modra <amodra@bigpond.net.au>
529 * ldemul.c (after_allocation_default): Run lang_relax_sections.
530 * ldlang.h (lang_relax_sections): Declare.
531 * ldlang.c (relax_sections): Delete.
532 (lang_relax_sections): New function.
533 (lang_process): Don't relax directly from here.
534 * emultempl/alphaelf.em (alpha_finish): Call finish_default.
535 * emultempl/armelf.em (arm_elf_after_allocation): Delete. Move body..
536 (gld${EMULATION_NAME}_finish): ..to here. Move existing code..
537 (gld${EMULATION_NAME}_after_allocation): ..to here. New function.
538 (LDEMUL_AFTER_ALLOCATION): Update.
539 * emultempl/avrelf.em (avr_elf_finish, LDEMUL_FINISH): Delete.
540 (avr_elf_after_allocation): New function.
541 (LDEMUL_AFTER_ALLOCATION): Define.
542 * emultempl/elf-generic.em (gld${EMULATION_NAME}_map_segments): Call
544 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Delete. Move..
545 (gld${EMULATION_NAME}_after_allocation): ..code to here. New function.
546 (LDEMUL_AFTER_ALLOCATION, LDEMUL_FINISH): Update.
547 * emultempl/genelf.em (gld${EMULATION_NAME}_finish): Delete. Move..
548 (gld${EMULATION_NAME}_after_allocation): ..code to here. New function.
549 (LDEMUL_FINISH): Delete.
550 (LDEMUL_AFTER_ALLOCATION): Define.
551 * emultempl/hppaelf.em (gld${EMULATION_NAME}_finish): Delete. Move..
552 (gld${EMULATION_NAME}_after_allocation): ..to here. New function.
553 (LDEMUL_FINISH): Delete.
554 (LDEMUL_AFTER_ALLOCATION): Define.
555 * emultempl/m68hc1xelf.em (m68hc11elf_finish): Delete. Move..
556 (m68hc11elf_after_allocation): ..to here. New function.
557 (LDEMUL_FINISH): Delete.
558 (LDEMUL_AFTER_ALLOCATION): Define.
559 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
560 gld${EMULATION_NAME}_after_allocation.
561 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Call
562 gld${EMULATION_NAME}_after_allocation.
563 * emultempl/mmo.em (mmo_finish): Delete. Move body..
564 (gld${EMULATION_NAME}_after_allocation): ..to here. New function.
565 (LDEMUL_FINISH): Define.
566 * emultempl/ppc64elf.em (ppc_layout_sections_again): Set elf_gp.
567 (gld${EMULATION_NAME}_finish): Move code sizing sections..
568 (gld${EMULATION_NAME}_after_allocation): ..to here.
569 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
570 Call gld${EMULATION_NAME}_after_allocation.
571 * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Delete
572 bfd_elf_discard_info and map_segments call.
574 2009-08-06 Michael Eager <eager@eagercon.com>
576 * Makefile.am: Add eelf32mb_linux.o, eelf32microblaze.o to
577 ALL_EMULATIONS, targets.
578 * Makefile.in: Regenerate.
579 * configure.tgt: Add microblaze*-linux*, microblaze* targets.
580 * emulparams/elf32mb_linux.sh: New.
581 * emulparams/elf32microblaze.sh. New.
582 * scripttempl/elfmicroblaze.sc: New.
584 2009-08-05 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
586 * emulparams/elf32_spu.sh (OTHER_READONLY_SECTIONS): Add .fixup
587 section and __fixup_start symbol.
588 * emultempl/spuelf.em (params): Initialize emit_fixups member.
589 (spu_before_allocation): Call spu_elf_size_sections.
590 (OPTION_SPU_EMIT_FIXUPS): Define.
591 (PARSE_AND_LIST_LONGOPTS): Add --emit-fixups.
592 (PARSE_AND_LIST_ARGS_CASES): Handle --emit-fixups.
593 * ld.texinfo (--emit-fixups): Document.
595 2009-08-04 Alan Modra <amodra@bigpond.net.au>
598 * emultempl/ppc32elf.em (ppc_before_allocation): Test rawsize,
599 not size, after lang_reset_memory_regions.
601 2009-07-30 Alan Modra <amodra@bigpond.net.au>
603 * emulparams/elf32ppc.sh (PLT): Don't include ".iplt".
604 * emulparams/elf_i386.sh (IREL_IN_PLT): Define.
605 * emulparams/elf_x86_64.sh (IREL_IN_PLT): Define.
606 * scripttempl/elf.sc: Create separate .iplt and .rela.iplt sections
609 2009-07-29 Hans-Peter Nilsson <hp@bitrange.com>
611 * scripttempl/mmo.sc: For relocateable links, set $OUTPUT_FORMAT to
612 the new $RELOCATEABLE_OUTPUT_FORMAT, if set.
613 (OUTPUT_FORMAT): Use the variable $OUTPUT_FORMAT.
614 (ENTRY): Don't emit for relocateable links.
615 (/DISCARD/): Don't discard .gnu.warning.* for relocateable links.
616 * emulparams/mmo.sh (RELOCATEABLE_OUTPUT_FORMAT): Set, to
618 * emulparams/elf64mmix.sh (OTHER_TEXT_SECTIONS): Empty, don't
619 provide "Main" or set "_start.", for relocateable links.
621 2009-07-27 Nick Clifton <nickc@redhat.com>
623 * (po/fi.po): Updated Finnish translation.
625 2009-07-25 H.J. Lu <hongjiu.lu@intel.com>
627 * configure.tgt (targ64_extra_emuls): Add elf_l1om if elf_x86_64
628 is supported. Add elf_l1om_fbsd if elf_x86_64_fbsd is supported.
629 (targ_extra_emuls): Likewise.
631 * Makefile.am (ALL_64_EMULATIONS): Add eelf_l1om.o and
634 (eelf_l1om_fbsd.c): Likewise.
635 * Makefile.in: Regenerated.
637 * emulparams/elf_l1om.sh: New.
638 * emulparams/elf_l1om_fbsd.sh: Likewise.
640 2009-07-23 Ulrich Drepper <drepper@redhat.com>
642 * NEWS: Mention the linker's support for symbols with a binding of
645 2009-07-22 H.J. Lu <hongjiu.lu@intel.com>
648 * ldlang.c (insert_os_after): Tie assignments to non-alloc
649 output sections if there is no-input section.
651 2009-07-11 Alan Modra <amodra@bigpond.net.au>
653 * ldlang.c (insert_os_after): Don't tie assignments to non-alloc
656 2009-07-10 Alan Modra <amodra@bigpond.net.au>
658 * emultempl/ppc32elf.em (ppc_before_allocation): Turn on
659 linker relaxation if it might be necessary.
661 2009-07-10 Alan Modra <amodra@bigpond.net.au>
663 * emulparams/elf32ppc.sh (GOTPLT, PLT): Handle .iplt.
665 2009-07-06 Matthias Klose <doko@ubuntu.com>
667 * ld.texinfo: Fix typo.
669 2009-07-03 Tristan Gingold <gingold@adacore.com>
671 * scripttempl/pep.sc: Put .eh_frame in its own section.
672 * scripttempl/pe.sc: Ditto.
674 2009-06-26 Kai Tietz <kai.tietz@onevision.com>
676 * scripttempl/pe.sc (.debug_pubtypes): Added section rule.
677 * scripttempl/pep.sc: Likewise.
679 2009-06-25 Tristan Gingold <gingold@adacore.com>
681 * ldlang.c (print_input_section): Add is_discarded parameter. Adjust
683 (lang_map): Print the size of discarded sections.
684 (print_statement): Adjust call to print_input_section.
686 2009-06-18 Dave Korn <dave.korn.cygwin@gmail.com>
688 Merge cegcc and mingw32ce target name changes from CeGCC project:
690 2008-09-24 Pedro Alves <pedroalves@users.sourceforge.net>
692 * configure.tgt (arm*-*-cegcc*): Set LIB_PATH to
693 ${tooldir}/lib/w32api.
695 2007-12-25 Pedro Alves <pedro_alves@portugalmail.pt>
697 * configure.tgt: Add arm*-*-cegcc* target.
699 2007-12-17 Pedro Alves <pedro_alves@portugalmail.pt>
701 * configure.tgt: Add arm-*-mingw32ce* target.
703 2009-06-10 Philip Blundell <philb@gnu.org>
705 * emultempl/armelf.em (gld${EMULATION_NAME}_finish): Avoid crash
706 if section has no ELF data.
708 2009-06-06 H.J. Lu <hongjiu.lu@intel.com>
710 * scripttempl/elf.sc: Add .rel.ifunc and .rela.ifunc.
712 2009-06-05 H.J. Lu <hongjiu.lu@intel.com>
714 * scripttempl/elf.sc: Remove .rel.ifunc.dyn and .rela.ifunc.dyn.
716 2009-06-04 Alan Modra <amodra@bigpond.net.au>
718 * dep-in.sed: Don't use \n in replacement part of s command.
719 * Makefile.am (DEP1): LC_ALL for uniq.
720 * Makefile.in: Regenerate.
722 2009-06-01 H.J. Lu <hongjiu.lu@intel.com>
724 * scripttempl/elf.sc (PLT): Add "*(.iplt)".
725 (GOT): Add "*(.igot.plt)a" and "*(.igot)".
726 (GOTPLT): Add "*(.igot)".
727 (__rel_iplt_start): New.
728 (__rel_iplt_end): Likewise.
729 (__rela_iplt_start): Likewise.
730 (__rela_iplt_end): Likewise.
732 2009-05-27 Dave Korn <dave.korn.cygwin@gmail.com>
734 * deffilep.y (%union): Add new string-type semantic value 'digits'.
735 (%token): Remove NUMBER as token, add DIGITS.
736 (%type): Add NUMBER as type. Add new id types anylang_id, opt_id.
737 (ALIGNCOMM): Parse an anylang_id instead of a plain ID.
738 (anylang_id): New production.
739 (opt_digits): Likewise.
742 (def_lex): Return strings of digits in raw string form as DIGITS
743 token, instead of converting to numeric integer type.
745 2009-05-26 Nathan Sidwell <nathan@codesourcery.com>
747 * ldmain.c (main): Don't reject --relax -r.
748 * ld.texinfo (PowerPC ELF32): Document behaviour of relaxing
751 2009-05-26 Nick Clifton <nickc@redhat.com>
753 * po/id.po: Updated Indonesian translation.
754 * po/ld.pot: Updated template file.
756 2009-05-26 Alan Modra <amodra@bigpond.net.au>
758 * dep-in.sed: Output one filename per line with all lines having
759 continuation backslash. Prefix first line with "A", following
761 * Makefile.am (DEP): Don't use dep.sed here.
762 (DEP1): Run $MKDEP on single files, use dep.sed here on dependencies,
764 * Makefile.in: Regenerate.
766 2009-05-26 Alan Modra <amodra@bigpond.net.au>
768 * ldlang.c (lang_check_section_addresses): Ignore non-alloc sections.
770 2009-05-22 Julian Brown <julian@codesourcery.com>
772 * emultempl/armelf.em (fix_cortex_a8): New.
773 (arm_elf_before_allocation): Call bfd_elf32_arm_set_cortex_a8_fix.
774 (arm_elf_create_output_section_statements): Add fix_cortex_a8 to
775 bfd_elf32_arm_set_target_relocs.
776 (OPTION_FIX_CORTEX_A8, OPTION_NO_FIX_CORTEX_A8): New.
777 (PARSE_AND_LIST_LONGOPTS): Add [no-]fix-cortex-a8 options.
778 (PARSE_AND_LIST_OPTIONS): Add [no-]fix-cortex-a8 options.
779 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_[NO_]FIX_CORTEX_A8.
780 * ld.texinfo (--[no-]fix-cortex-a8): Briefly document new options.
782 2009-05-22 Nathan Sidwell <nathan@codesourcery.com>
784 * ldlang.c (lang_check_section_addresses): Ignore non-loadable
785 sections when checking for overlap. Clarify error message
786 concerns load address.
788 2009-05-22 Alan Modra <amodra@bigpond.net.au>
790 * Makefile.am: Run "make dep-am".
791 * Makefile.in: Regenerate.
793 2009-05-19 Dave Korn <dave.korn.cygwin@gmail.com>
795 * NEWS: Mention new feature.
796 * deffile.h (def_file_aligncomm): Add new struct definition.
797 (def_file): Add new def_file_aligncomm member.
798 * deffilep.y (%token): Add new ALIGNCOMM token.
799 (command): Add production rule for ALIGNCOMM.
800 (def_file_free): Free any chained def_file_aligncomm structs.
801 (diropts[]): Add entry for '-aligncomm' .drectve command.
802 (def_aligncomm): New grammar function.
803 * ld.texinfo: Document new feature.
804 * pe-dll.c (process_def_file): Rename from this ...
805 (process_def_file_and_drectve): ... to this, updating all callers,
806 and process any aligncomms chained to the def file after scanning
807 all .drectve sections.
808 (generate_edata): Updated to match.
809 (pe_dll_build_sections): Likewise.
811 2009-05-17 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
813 * pe-dll.c (process_def_file): Do not create empty export table.
815 2009-05-15 Alan Modra <amodra@bigpond.net.au>
817 * ldlang.c (lang_output_section_statement_lookup): Add function
818 comment. Make "name" non-const. Ensure duplicate entries use
819 the same string, allowing simple comparison in hash bucket loop.
820 Tweak constraint check.
821 (next_matching_output_section_statement): New function.
822 * ldlang.h (lang_output_section_statement_lookup): Update.
823 (next_matching_output_section_statement): Declare.
824 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
825 combine orphan sections when input sections flags differ in
827 * emultempl/pe.em: Formatting throughout.
828 (gld${EMULATION_NAME}_place_orphan): As for elf32.em.
829 * emultempl/pep.em: Formatting throughout.
830 (gld${EMULATION_NAME}_place_orphan): As for elf32.em.
832 2009-05-14 Ulrich Weigand <uweigand@de.ibm.com>
834 * emultempl/spuelf.em (PARSE_AND_LIST_ARGS_CASES): Always use
835 compact stubs with software i-cache.
837 2009-05-14 Alan Modra <amodra@bigpond.net.au>
839 * emultempl/spuelf.em (spu_before_allocation): Call
840 spu_elf_place_overlay_data.
842 2009-05-14 Alan Modra <amodra@bigpond.net.au>
844 * ldlang.c (lang_insert_orphan): Add __start_<section> symbol
845 assignment inside output section statement. Ensure only one
846 set of symbols per output section.
847 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Add non-
848 dollar sections before dollar sections. Correct add_child
850 * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
852 2009-05-05 Paul Brook <paul@codesourcery.com>
854 * emultempl/armelf.em (compare_output_sec_vma): New function.
855 (gld${EMULATION_NAME}_finish): Add exidx munging code.
857 2009-05-05 Anatoly Sokolov <aesok@post.ru>
859 * scripttempl/avr.sc (MEMORY): Use DATA_ORIGIN.
860 * emulparams/avr1.sh (DATA_ORIGIN): Add.
861 * emulparams/avr2.sh (DATA_ORIGIN): Add.
862 * emulparams/avr25.sh (DATA_ORIGIN): Add.
863 * emulparams/avr3.sh (DATA_ORIGIN): Add.
864 * emulparams/avr31.sh (DATA_ORIGIN): Add.
865 * emulparams/avr35.sh (DATA_ORIGIN): Add.
866 * emulparams/avr4.sh (DATA_ORIGIN): Add.
867 * emulparams/avr5.sh (DATA_ORIGIN): Add.
868 * emulparams/avr51.sh (DATA_ORIGIN): Add.
869 (DATA_LENGTH): Update.
870 * emulparams/avr6.sh (DATA_ORIGIN): Add.
871 (DATA_LENGTH): Update.
873 2009-05-04 Dave Korn <dave.korn.cygwin@gmail.com>
875 * NEWS: Mention new feature.
876 * ld.texinfo (--version-script): Document extent of PE support.
877 (WIN32): Mention --version-script. Extend auto-export description.
878 * pe-dll.c (process_def_file): Use version script info to filter
879 symbols from auto-export.
880 * testsuite/ld-pe/vers-script-1.d: New file.
881 * testsuite/ld-pe/vers-script-2.d: New file.
882 * testsuite/ld-pe/vers-script-3.d: New file.
883 * testsuite/ld-pe/vers-script-4.d: New file.
884 * testsuite/ld-pe/vers-script-1.ver: New file.
885 * testsuite/ld-pe/vers-script-2.ver: New file.
886 * testsuite/ld-pe/vers-script-3.ver: New file.
887 * testsuite/ld-pe/vers-script-4.ver: New file.
888 * testsuite/ld-pe/vers-script-dll.c: New file.
889 * testsuite/ld-pe/vers-script.exp: New test script.
891 2009-05-01 Nathan Sidwell <nathan@codesourcery.com>
893 * emulparams/vxworks.sh (TEXT_START_ADDR): Override.
895 2009-04-30 Nick Clifton <nickc@redhat.com>
897 * NEWS: Mention support for IFUNC symbols.
899 2009-04-29 Anthony Green <green@moxielogic.com>
901 * emulparams/elf32moxie.sh (STACK_ADDR): Move default stack
902 position out to accommodate larger programs.
904 2009-04-29 Chris Demetriou <cgd@google.com>
906 * lexsup.c (option_values): Add OPTION_NO_EXPORT_DYNAMIC.
907 (ld_options): Likewise.
908 (parse_args): Likewise.
909 * ld.texinfo: Document --no-export-dynamic.
910 * NEWS: Mention --no-export-dynamic.
912 2009-04-29 Alan Modra <amodra@bigpond.net.au>
914 * deffilep.y (STACKSIZE_K): Rename from STACKSIZE.
916 2009-04-25 Alan Modra <amodra@bigpond.net.au>
919 * genscripts.sh: Don't pass $EMULATION_NAME as $CUSTOMIZER_SCRIPT
922 2009-04-21 Daniel Jacobowitz <dan@codesourcery.com>
924 * emultempl/armelf.em (bfd_for_interwork, arm_elf_after_open)
925 (arm_elf_set_bfd_for_interworking): Delete.
926 (arm_elf_before_allocation): Do not set the interworking BFD.
927 Move allocation inside not-dynamic block.
928 (arm_elf_create_output_section_statements): Create glue sections
929 and set the interworking BFD here.
930 (LDEMUL_AFTER_OPEN): Delete.
932 2009-04-16 Richard Sandiford <r.sandiford@uk.ibm.com>
934 * ldlang.c (lang_one_common): Use bfd_define_common_symbol.
936 2009-04-15 Anthony Green <green@moxielogic.com>
938 * configure.tgt: Add moxie support.
939 * Makefile.am: Add moxie files.
940 * Makefile.in: Rebuilt.
941 * emulparams/elf32moxie.sh: New file.
942 * scripttempl/moxie.sc: New file.
944 2009-04-15 Kazu Hirata <kazu@codesourcery.com>
946 * ldlang.c: Do not include limits.h.
948 2009-04-14 Alan Modra <amodra@bigpond.net.au>
951 * ldfile.c (find_scripts_dir): Use make_relative_prefix to find
952 ldscripts in build tree. Don't repeat search for ../lib/ldscripts.
954 2009-04-13 H.J. Lu <hongjiu.lu@intel.com>
956 * ldfile.c (ldfile_find_command_file): Revert the last change.
958 2009-04-11 H.J. Lu <hongjiu.lu@intel.com>
961 * ldfile.c (ldfile_find_command_file): First try raw name.
963 2009-04-09 Nick Clifton <nickc@redhat.com>
966 * ld.texinfo (Output Section Constraint): New node. Documents the
967 ONLY_IF_RO and ONLY_IF_RW constraints.
968 (Symbolic Constants): New node. Documents the CONSTANT operator.
970 2009-04-09 Thilo Fischer <thilo.fischer@uni-muenster.de>
972 * emultempl/spuelf.em (embedded_spu_file): Use pex_one in place
975 2009-04-08 H.J. Lu <hongjiu.lu@intel.com>
977 * lexsup.c (option_values): Add OPTION_WARN_ALTERNATE_EM.
978 (ld_options): Likewise.
979 (parse_args): Likewise.
981 * ld.texinfo: Document --warn-alternate-em.
983 * NEWS: Mention --warn-alternate-em.
985 2009-04-07 DJ Delorie <dj@redhat.com>
987 * emulparams/elf32mep.sh: Change default endian to little.
989 2009-04-07 Nick Clifton <nickc@redhat.com>
991 * ld.texinfo (Output Section Address): Note that specifying an
992 address for an output section will only change the location
993 counter if the output section is used.
995 2009-04-06 Kazu Hirata <kazu@codesourcery.com>
997 * ldfile.c (ldfile_find_command_file): Initialize result.
999 2009-04-06 Kazu Hirata <kazu@codesourcery.com>
1001 * ld.texinfo (-L): Mention that -L options do not affect how ld
1002 searches for a linker script unless -T option is specified.
1003 * ldfile.c (ldfile_find_command_file): Append the path obtained
1004 from the program name to the search path instead of
1005 prepending. Add a new parameter "default_only". Restrict the
1006 search to the default script location if the new parameter is
1008 (ldfile_open_command_file_1): New.
1009 (ldfile_open_command_file): Call ldfile_open_command_file_1.
1010 (ldfile_open_default_command_file): New.
1012 2009-04-03 Nathan Sidwell <nathan@codesourcery.com>
1014 * ldlang.c (lang_leave_output_section_statement): Set lma_region
1015 if it is not overridden and section is for the same vma region as
1016 the previous section.
1018 2009-04-02 Dave Korn <dave.korn.cygwin@gmail.com>
1021 * ld.texinfo (--export-dynamic): Mention --export-all-symbols.
1022 * emultempl/pe.em (gld_${EMULATION_NAME}_after_parse): Issue
1023 warning if --export-dynamic was passed on command-line.
1024 * emultempl/pep.em (gld_${EMULATION_NAME}_after_parse): Likewise.
1026 2009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com>
1028 * emultempl/aix.em (gld${EMULATION_NAME}_open_dynamic_archive): New
1030 (ld_${EMULATION_NAME}_emulation): Use it.
1032 2009-03-20 H.J. Lu <hongjiu.lu@intel.com>
1035 * ldlang.c (lang_end): Warn missing entry symbol for -pie.
1037 2009-03-19 Alan Modra <amodra@bigpond.net.au>
1039 * emultempl/spuelf.em (spu_before_allocation): Report errors from
1040 spu_elf_find_overlays.
1042 2009-03-18 H.J. Lu <hongjiu.lu@intel.com>
1045 * lexsup.c (parse_args): Call ldlang_add_undef for -e.
1047 2009-03-18 Alan Modra <amodra@bigpond.net.au>
1049 * ld.h: Remove alloca handling.
1051 2009-03-17 Alan Modra <amodra@bigpond.net.au>
1053 * emultempl/spu_icache.S: Add new entry to dummy handler.
1054 * emultempl/spu_icache.o_c: Regenerate.
1055 * emultempl/spuelf.em (params): Init new field.
1056 (no_overlays): New static var.
1057 (spu_before_allocation): Use it.
1058 (OPTION_SPU_COMPACT_STUBS): Define.
1059 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add compact-stubs.
1060 (PARSE_AND_LIST_ARGS_CASES): Handle compact-stubs. Adjust no-overlays
1063 2009-03-17 Alan Modra <amodra@bigpond.net.au>
1065 * configure.host (HOSTING_LIBS): Two dollars on shell variable
1066 expansion to suit make.
1068 2009-03-17 Alan Modra <amodra@bigpond.net.au>
1070 * configure.in: Invoke ACX_PROG_CMP_IGNORE_INITIAL.
1071 * Makefile.am (check-DEJAGNU): Set DO_COMPARE.
1072 * aclocal.m4: Regenerate.
1073 * configure: Regenerate.
1074 * Makefile.in: Regenerate.
1076 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
1078 * emultempl/aix.em (auto_export_flags): New variable.
1079 (explicit_auto_export_flags): Likewise.
1080 (OPTION_EXPALL, OPTION_EXPFULL): New enum values.
1081 (OPTION_NOEXPALL, OPTION_NOEXPFULL): Likewise.
1082 (gld${EMULATION_NAME}_add_options): Add -bexpall, -bexpfull,
1083 -bnoexpall and -bnoexpfull.
1084 (gld${EMULATION_NAME}_handle_option): Handle them.
1085 (gld${EMULATION_NAME}_before_allocation): Update the call to
1086 bfd_size_dynamic_sections.
1088 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
1090 * emultempl/aix.em (gld${EMULATION_NAME}_handle_option): Make
1091 -berok and -bernotok control link_info.unresolved_syms_in_objects
1092 and link_info.unresolved_syms_in_shared_libs instead of
1093 force_make_executable.
1095 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
1097 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Set
1098 config.dynamic_link to TRUE.
1100 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
1102 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Mark
1103 .text, .data and .bss output sections as SEC_KEEP.
1105 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
1107 * configure.tgt: Extend AIX 5 behavior to AIX 6 and above.
1109 2009-03-14 Dave Korn <dave.korn.cygwin@gmail.com>
1110 Danny Smith <dannysmith@users.sourceforge.net>
1112 * emultmpl/pe.em (pe_dll_characteristics): New variable.
1113 (OPTION_DYNAMIC_BASE, OPTION_FORCE_INTEGRITY, OPTION_NX_COMPAT,
1114 OPTION_NO_ISOLATION. OPTION_NO_SEH, OPTION_NO_BIND,
1115 OPTION_WDM_DRIVER, OPTION_TERMINAL_SERVER_AWARE):
1116 New macros for options to set DllCharacteristics flag bits.
1117 (gld${EMULATION_NAME}_add_options): Add dynamicbase, forceinteg,
1118 nxcompat, no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
1119 (init): Add DllCharacteristics field.
1120 (gld_${EMULATION_NAME}_list_options): List new options.
1121 (gld${EMULATION_NAME}_handle_option): Handle new options.
1122 * emultmpl/pep.em (pe_dll_characteristics): New variable.
1123 (OPTION_DYNAMIC_BASE, OPTION_FORCE_INTEGRITY, OPTION_NX_COMPAT,
1124 OPTION_NO_ISOLATION. OPTION_NO_SEH, OPTION_NO_BIND,
1125 OPTION_WDM_DRIVER, OPTION_TERMINAL_SERVER_AWARE):
1126 New macros for options to set DllCharacteristics flags.
1127 (gld${EMULATION_NAME}_add_options): Add dynamicbase, forceinteg,
1128 nxcompat,no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
1129 (init): Add DllCharacteristics field.
1130 (gld_${EMULATION_NAME}_list_options): List new options.
1131 (gld${EMULATION_NAME}_handle_option): Handle new options.
1132 * ldtexinfo : Document dynamicbase, forceinteg, nxcompat,
1133 no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
1135 2009-03-06 Nick Clifton <nickc@redhat.com>
1137 * po/es.po: Updated Spanish translation.
1139 2009-03-03 Dave Korn <dave.korn.cygwin@gmail.com>
1141 * emultempl/pe.em (debug_section_p): New bfd_map_over_sections hook.
1142 (gld_${EMULATION_NAME}_after_open): Use it to iterate all sections
1143 of all input BFDs, looking for debug info. Enable long section names
1145 * emultempl/pe.em (debug_section_p): Likewise.
1146 (gld_${EMULATION_NAME}_after_open): Likewise.
1147 * NEWS: Retrospectively adjust news announcement.
1148 * ld.texinfo: Update documentation to mention new behaviour.
1150 2009-03-03 Alan Modra <amodra@bigpond.net.au>
1152 * Makefile.am: Run "make dep-am".
1153 * Makefile.in: Regenerate.
1155 2009-03-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
1157 * ldgram.y: Add support for REGION_ALIAS operator.
1158 * ldlang.c: Likewise.
1159 * ldlang.h: Likewise.
1160 * ldlex.l: Likewise.
1161 * NEWS: Mention the new feature.
1162 * ld.texinfo: Document the new feature.
1164 2009-03-02 Qinwei <qinwei@sunnorth.com.cn>
1166 * Makefile.am: Replace score elf emulation with score3 and score7
1168 * Makefile.in: Regenerate,
1169 * NEWS: Mention support for Score7 architecture.
1170 * configure.tgt: Add score7 emulation to score-elf target.
1171 * emulparams/scoreelf.sh: Add score7 support.
1172 * emultempl/scoreelf.em: Likewise.
1174 2009-03-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1176 * configure.tgt: Only use elf64hppa target emulation for hpux.
1177 * emulparams/elf64hppa.sh: Don't include hppa64linux.sh.
1178 (SCRIPT_NAME): Use new script elf64hppa.
1179 (SCRIPT_NAME, ELFSIZE, NO_REL_RELOCS, ARCH, MACHINE, ENTRY,
1180 TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT, OTHER_READONLY_SECTIONS,
1181 OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS, OTHER_GOT_RELOC_SECTIONS,
1182 DATA_START_SYMBOLS, OTHER_SYMBOLS, DATA_PLT, PLT_BEFORE_GOT,
1183 TEXT_DYNAMIC): Define.
1184 * emulparams/hppa64linux.sh: Adjust comments.
1185 * scripttempl/elf64hppa.sc: New file.
1187 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1189 * configure: Regenerate.
1191 2009-02-27 Dave Korn <dave.korn.cygwin@gmail.com>
1193 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Set
1194 default state of auto-import flag based on $target.
1196 2009-02-24 Joseph Myers <joseph@codesourcery.com>
1198 * ld.texinfo (ARM): Document changed meaning of --stub-group-size.
1199 * emultempl/armelf.em (hook_in_stub): Insert after the input section.
1200 (elf32_arm_add_stub_section): Update comment.
1201 (PARSE_AND_LIST_OPTIONS): Update help for --stub-group-size.
1203 2009-02-24 Sandra Loosemore <sandra@codesourcery.com>
1205 * ld.texinfo (Options): Correct typos in example. Recommend
1206 using joined forms of syntax for passing options with arguments
1208 (-a): Use consistent syntax for documenting option arguments.
1209 Clean up indexing and markup.
1210 (-A/--architecture): Likewise.
1211 (-f/--auxiliary): Likewise.
1212 (-F/--filter): Likewise.
1214 (-G/--gpsize): Likewise.
1215 (-h/-soname):Likewise.
1217 (-l/--library): Likewise.
1218 (-L/--library-path): Likewise.
1220 (--defsym): Likewise.
1221 (-I/--dynamic-linker): Likewise.
1223 (--oformat): Likewise.
1224 (--retain-symbols-file): Likewise.
1226 (-rpath-link): Likewise.
1227 (--sort-common): Likewise.
1228 (--sort-section): Likewise.
1229 (--split-by-file): Likewise.
1230 (--split-by-reloc): Likewise.
1231 (--sysroot): Likewise.
1232 (--section-start): Likewise.
1233 (-Tbss, -Tdata, -Ttext): Likewise.
1234 (-Ttext-segment): Likewise.
1235 (--version-script): Likewise.
1238 2009-02-18 Dave Korn <dave.korn.cygwin@gmail.com>
1240 * ld.texinfo: Update to mention long section name options.
1241 * NEWS: Mention new behaviour and command-line options.
1242 * pe-dll.c (pe_use_coff_long_section_names): New global variable.
1243 (pe_output_file_set_long_section_names): New function.
1244 (pe_dll_build_sections): Call it on output BFDs.
1245 (pe_exe_build_sections): Likewise.
1246 (pe_dll_fill_sections): Likewise.
1247 (pe_exe_fill_sections): Likewise.
1248 * pe-dll.h (pe_use_coff_long_section_names): Declare extern.
1249 (pe_output_file_set_long_section_names): Add prototype.
1250 * pep-dll.c (pe_use_coff_long_section_names): Define pep_ alias.
1251 (pe_output_file_set_long_section_names): Likewise.
1252 * pep-dll.h (pep_use_coff_long_section_names): Declare extern.
1253 (pep_output_file_set_long_section_names): Add prototype.
1254 * pe.em (OPTION_ENABLE_LONG_SECTION_NAMES): New getopt value macro.
1255 (OPTION_DISABLE_LONG_SECTION_NAMES): Likewise.
1256 (gld${EMULATION_NAME}_add_options): Add new options to xtra_long[].
1257 (gld_${EMULATION_NAME}_list_options): Describe them.
1258 (gld${EMULATION_NAME}_handle_option): Set or clear global
1259 pe_use_coff_long_section_names flag when options recognised.
1260 (gld_${EMULATION_NAME}_after_open): En/disable long section names
1261 for main output bfd by calling pe_output_file_set_long_section_names.
1262 * pep.em (enum options): Extend enum with new getopt option values.
1263 (gld${EMULATION_NAME}_add_options): Add new options to xtra_long[].
1264 (gld_${EMULATION_NAME}_list_options): Describe them.
1265 (gld${EMULATION_NAME}_handle_option): Set or clear global
1266 pe_use_coff_long_section_names flag when options recognised.
1267 (gld_${EMULATION_NAME}_after_open): En/disable long section names
1268 for main output bfd by calling pep_output_file_set_long_section_names.
1270 2009-02-16 Dave Korn <dave.korn.cygwin@gmail.com>
1272 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Don't emit
1273 inadvertent .reloc sections caused by refactoring accident.
1275 2009-02-16 Alan Modra <amodra@bigpond.net.au>
1277 * ldlang.c (process_insert_statements): ASSERT that output section
1278 statements are in order.
1280 2009-02-16 Alan Modra <amodra@bigpond.net.au>
1282 * ldlang.c (push_stat_ptr, pop_stat_ptr): New functions.
1283 (stat_save, stat_save_ptr): New variables.
1284 (lang_insert_orphan): Use push_stat_ptr and pop_stat_ptr.
1285 (load_symbols): Likewise. Delete dead "bad_load" code.
1286 (open_input_bfds): Warn on script containing output sections.
1287 (lang_enter_output_section_statement): Use push_stat_ptr.
1288 (lang_enter_group): Likewise.
1289 (lang_leave_output_section_statement): Use pop_stat_ptr.
1290 (lang_leave_group): Likewise.
1291 * ldlang.h (push_stat_ptr, pop_stat_ptr): Declare.
1292 * ldctor.c (ldctor_build_sets): Use push_stat_ptr and pop_stat_ptr.
1293 * emultempl/beos.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
1294 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
1295 * emultempl/pep.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
1296 * emultempl/spuelf.em (spu_place_special_section): Likewise.
1297 * emultempl/xtensaelf.em (ld_xtensa_insert_page_offsets): Likewise.
1299 2009-02-09 Nathan Sidwell <nathan@codesourcery.com>
1301 Missing piece of 2009-01-26 commit
1302 * ldlang.c (lang_process): Don't consider relocatable flag when
1303 checking for overlap.
1305 2009-02-05 Joseph Myers <joseph@codesourcery.com>
1307 * emulparams/m68kelf.sh: Add newline at end of file.
1309 2009-02-04 Nick Clifton <nickc@redhat.com>
1312 * ld.texinfo (--allow-shlib-undefined): Correct description of
1313 default settings and tidy up the rest of the entry.
1315 2009-02-04 Alan Modra <amodra@bigpond.net.au>
1317 * emultempl/spuelf.em (spu_after_open): Don't combine .text.ia.*
1318 during relocatable link.
1320 2009-02-03 Nick Clifton <nickc@redhat.com>
1323 * ld.texinfo (Constants): Document the base-encoding suffixes
1324 supported in linker scripts.
1326 2009-02-03 Alan Modra <amodra@bigpond.net.au>
1328 * NEWS: Mention --as-needed change.
1330 2009-02-03 Carlos O'Donell <carlos@codesourcery.com>
1332 * configure.in: AC_SUBST pdfdir.
1333 * Makefile.am: Add install-pdf, install-pdf-am,
1334 and install-pdf-recursive targets. Define pdf__strip_dir.
1335 * po/Make-in: Add install-pdf target.
1336 * configure: Regenerate.
1337 * Makefile.in: Regenerate.
1339 2009-01-31 Alan Modra <amodra@bigpond.net.au>
1341 * ld.texinfo (--as-needed): Update.
1343 2009-01-29 Andrew Jenner <andrew@codesourcery.com>
1345 * emultempl/armelf.em: Correct formatting of help text for
1346 --no-enum-size-warning option.
1348 2009-01-26 Nathan Sidwell <nathan@codesourcery.com>
1350 * lexsup.c (parse_args): Set check_section_addresses to 1 or 0.
1351 * ld.h (args_type): Make check_section_addresses a char.
1352 * ldmain.c (main): Default check_section_addresses to -1. Check it
1353 for relocatable links.
1354 * ld.texinfo (--check-sections): Update documentation.
1356 2009-01-26 Kai Tietz <kai.tietz@onevision.com>
1358 * pe-dll.c (tmp_seq2): New static variable.
1359 (make_singleton_name_imp): New.
1360 (make_import_fixup_entry): Use for v2 the _imp_<name> symbol and
1361 avoid duplicate import table generation for same symbol.
1362 (pe_create_runtime_relocator_reference): Make reference for
1365 2009-01-21 Alan Modra <amodra@bigpond.net.au>
1367 * emultempl/spuelf.em (params): Init new field.
1368 (OPTION_SPU_NON_IA_TEXT): Define.
1369 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --non-ia-text.
1370 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_SPU_NON_IA_TEXT.
1372 2009-01-16 H.J. Lu <hongjiu.lu@intel.com>
1374 * lexsup.c (option_values): Add OPTION_TTEXT_SEGMENT.
1375 (ld_options): Add -Ttext-segment.
1376 (parse_args): Handle OPTION_TTEXT_SEGMENT.
1378 * ld.texinfo: Document -Ttext-segment.
1380 * NEWS: Mention -Ttext-segment.
1382 * scripttempl/elf.sc (TEXT_START_ADDR): Use SEGMENT_START.
1383 (SHLIB_TEXT_START_ADDR): Likewise.
1385 2009-01-13 Alan Modra <amodra@bigpond.net.au>
1387 * emultempl/spu_icache.o_c: Regenerate.
1389 2009-01-12 Alan Modra <amodra@bigpond.net.au>
1391 * emultempl/spuelf.em (params): Init new fields.
1392 (num_lines_set, line_size_set, icache_mgr, icache_mgr_stream): New vars.
1393 (spu_place_special_section): Adjust placement for soft-icache. Pad
1394 soft-icache section to a fixed size. Clear addr_tree.
1395 (spu_elf_load_ovl_mgr): Support soft-icache. Map overlay manager
1396 sections a little more intelligently.
1397 (gld${EMULATION_NAME}_finish): Don't call spu_elf_build_stubs.
1398 (OPTION_SPU_NUM_LINES): Rename from OPTION_SPU_NUM_REGIONS.
1399 (OPTION_SPU_SOFT_ICACHE, OPTION_SPU_LINE_SIZE): Define.
1400 (OPTION_SPU_LRLIVE): Define.
1401 (PARSE_AND_LIST_LONGOPTS): Add new soft-icache options.
1402 (PARSE_AND_LIST_OPTIONS): Likewise.
1403 (PARSE_AND_LIST_ARGS_CASES): Handle them.
1404 * emultempl/spu_icache.S: Dummy file.
1405 * emultempl/spu_icache.o_c: Regenerate.
1406 * Makefile.am (eelf32_spu.c): Depend on spu_icache.o_c.
1407 (spu_icache.o_c): Add rule to build.
1408 (CLEANFILES): Zap temp files.
1409 (EXTRA_DIST): Add spu_icache.o_c.
1410 * Makefile.in: Regenerate.
1412 2009-01-08 Kai Tietz <kai.tietz@onevision.com>
1414 * pe.em (OPTION_USE_NUL_PREFIXED_IMPORT_TABLES): New.
1415 (gld..._add_options): Add new option
1416 --use-nul-prefixed-import-tables.
1417 (gld..._handle_option): Likewise.
1418 * pep.em: Same as for pe.em.
1419 * ld.texinfo: Add new option documentation for
1420 --use-nul-prefixed-import-tables.
1421 * pe-dll.c (pe_use_nul_prefixed_import_tables): New.
1422 (make_head): Make prefix leading zero prefix element for
1423 idata$4 and idata$5 dependent to new flag.
1424 (make_import_fixup_entry): Remove idata4/5 prefix.
1425 * pe-dll.h (pe_use_nul_prefixed_import_tables): New.
1426 * pep-dll.c (pe_use_nul_prefixed_import_tables): New.
1427 * pep-dll.h (pep_use_nul_prefixed_import_tables): New.
1428 * NEWS: Add new option.
1430 2009-01-05 Kai Tietz <kai.tietz@onevision.com>
1432 * emultempl/pe.em: Prefix dollar characters to be outputed in
1434 * emultempl/pep.em: Likewise.
1436 2009-01-03 Dave Korn <dave.korn.cygwin@gmail.com>
1438 * NEWS: Mention new feature --exclude-modules-for-implib.
1439 * ld.texinfo: Document new --exclude-modules-for-implib option.
1440 * pe-dll.c (exclude_list_struct): Change type member from int to
1441 new enumeration exclude_type.
1442 (pe_dll_add_excludes): Accept exclude_type instead of int param.
1443 (auto_export): Replace magic constants by exclude_type values and
1444 handle new choice EXCLUDEFORIMPLIB.
1445 (pe_dll_generate_implib): Accept a pointer to the link_info and
1446 iterate all input BFDs looking for EXCLUDEFORIMPLIB modules; re-open
1447 fresh BFDs for any found and link into import lib archive chain.
1448 * pe-dll.h (exclude_type): Add new enumerated type to replace magic
1449 constants previously used for exclude_list_struct type member.
1450 (pe_dll_add_excludes, pe_dll_generate_implib): Update prototypes.
1451 * pep-dll.h (exclude_type, pe_dll_add_excludes,
1452 pe_dll_generate_implib): Likewise to all the above.
1453 * emultempl/pe.em (OPTION_EXCLUDE_MODULES_FOR_IMPLIB): Define new
1454 getopts long option code for new --exclude-modules-for-implib option.
1455 (gld${EMULATION_NAME}_add_options): Add new entry to xtra_long[].
1456 (gld_${EMULATION_NAME}_list_options): List usage for it.
1457 (gld${EMULATION_NAME}_handle_option): Use exclude_type enumerated
1458 values when calling pe_dll_add_excludes, and handle EXCLUDEFORIMPLIB.
1459 (gld_${EMULATION_NAME}_finish): Pass pointer to link_info when
1460 calling pe_dll_generate_implib.
1461 * emultempl/pep.em (options): Define new enumerated value for getopts
1462 long option code for new --exclude-modules-for-implib option.
1463 (gld${EMULATION_NAME}_add_options, gld_${EMULATION_NAME}_list_options,
1464 gld${EMULATION_NAME}_handle_option, gld_${EMULATION_NAME}_finish):
1465 Again, likewise to all the above.
1467 2009-01-03 Dave Korn <dave.korn.cygwin@gmail.com>
1469 * pe-dll.c (autofilter_liblist): Add entry for shared libgcc.
1470 (libnamencmp): New function.
1471 (auto_export): Use it in place of strncmp when filtering libraries.
1473 For older changes see ChangeLog-2008
1479 version-control: never