1 2009-09-27 Christopher Faylor <me+cygwin@cgf.cx>
3 * ldlang.c (lang_size_sections_1): Always force output vma to zero for
5 (lang_size_sections_1): Revert previous COFF-only accommodation for
8 2009-09-25 Martin Thuresson <martint@google.com>
10 Update soruces to make arm targets compile cleanly with
12 * emultempl/armelf.em: Add casts.
14 2009-09-23 Matt Rice <ratmice@gmail.com>
16 * emultempl/elf32.em (gld${EMULATION_NAME}_add_options): Add --audit,
17 --depaudit, and -P options.
18 (gld${EULATION_NAME}_handle_options): Ditto.
19 (gld${EULATION_NAME}_list_options): Ditto.
20 (gld${EMULATION_NAME}_append_to_separated_string): New function for
21 handling rpath-like colon separated strings.
22 (gld${EMULATION_NAME}_before_allocation): Pass the audit and depaudit
23 libs to bfd. Propagate DT_AUDIT from needed libs to depaudit.
24 * ld.texinfo: Document new options.
26 2009-09-23 Nick Clifton <nickc@redhat.com>
28 * po/vi.po: Updated Vietnamese translation.
30 2009-09-22 Alan Modra <amodra@bigpond.net.au>
32 * scripttempl/a29k.sc: Delete.
33 * scripttempl/ebmon29k.sc: Delete.
34 * scripttempl/m68klynx.sc: Delete.
35 * scripttempl/sa29200.sc: Delete.
36 * scripttempl/sparclynx.sc: Delete.
38 2009-09-21 Alan Modra <amodra@bigpond.net.au>
40 * emultempl/ppc32elf.em (no_tls_get_addr_opt): New var.
41 (ppc_before_allocation): Pass to ppc_elf_tls_setup.
42 (OPTION_NO_TLS_GET_ADDR_OPT): Define. Redefine other options in
43 terms of previous option.
44 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add
45 --no-tls-get-addr-optimize.
46 (PARSE_AND_LIST_ARGS_CASES): Handle it.
47 * emultempl/ppc64elf.em (no_tls_get_addr_opt): New var.
48 (ppc_before_allocation): Pass to ppc64_elf_tls_setup.
49 (OPTION_NO_TLS_GET_ADDR_OPT): Define.
50 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add
51 --no-tls-get-addr-optimize.
52 (PARSE_AND_LIST_ARGS_CASES): Handle it.
54 2009-09-18 Nick Clifton <nickc@redhat.com>
56 * po/es.po: Updated Spanish translation.
58 2009-09-13 Alan Modra <amodra@bigpond.net.au>
61 * lexsup.c (parse_args <-e>): Revert 2009-03-18 change.
62 * ldemul.c (after_parse_default): Add entry symbol as undef.
63 * emultempl/alphaelf.em (alpha_after_parse): Call after_parse_default.
64 * emultempl/cr16elf.em (cr16elf_after_parse): Likewise.
65 * emultempl/crxelf.em (crxelf_after_parse): Likewise.
66 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
67 * emultempl/ia64elf.em (gld${EMULATION_NAME}_after_parse): Likewise.
68 * emultempl/pe.em (gld_${EMULATION_NAME}_after_parse): Call
69 after_parse_default and delete now duplicate code.
70 * emultempl/pep.em (gld_${EMULATION_NAME}_after_parse): Likewise.
71 * scripttempl/elf32cr16.sc: No need to make entry extern.
72 * scripttempl/elf32cr16c.sc: Likewise.
73 * scripttempl/elf32crx.sc: Likewise.
74 * scripttempl/elf32xc16xs.sc: Only provide ENTRY on final link.
76 2009-09-11 Nick Clifton <nickc@redhat.com>
78 * po/ld.pot: Updated by the Translation project.
79 * po/fi.po: Updated Finnish translation.
81 2009-09-11 Martin Thuresson <martint@google.com>
83 Updated sources to compile cleanly with -Wc++-compat:
84 * ld.h (enum endian_enum,enum symbolic_enum,enum
85 dynamic_list_enum): Move to top level.
86 * ldcref.c: Add casts.
87 * ldctor.c: Add casts.
89 * ldexp.h (enum node_tree_enum,enum phase_enum): Move to top level.
90 * ldlang.c: Add casts. (lang_insert_orphan): Use enum name instead
92 * ldlang.h (enum statement_enum): Move to top level.
93 * ldmain.c: Add casts.
94 * ldwrite.c: Add casts.
95 * lexsup.c: Add casts. (enum control_enum): Move to top level.
96 * mri.c: Add casts. (mri_draw_tree): Use enum name instead of
99 2009-09-09 Alan Modra <amodra@bigpond.net.au>
101 * scripttempl/aix.sc: Only provide ENTRY on final link.
102 * scripttempl/alpha.sc: Likewise.
103 * scripttempl/armcoff.sc: Likewise.
104 * scripttempl/crisaout.sc: Likewise.
105 * scripttempl/delta68.sc: Likewise.
106 * scripttempl/ebmon29k.sc: Likewise.
107 * scripttempl/elf32xc16x.sc: Likewise.
108 * scripttempl/elf32xc16xl.sc: Likewise.
109 * scripttempl/elfmicroblaze.sc: Likewise.
110 * scripttempl/epocpe.sc: Likewise.
111 * scripttempl/h8300.sc: Likewise.
112 * scripttempl/h8300h.sc: Likewise.
113 * scripttempl/h8300hn.sc: Likewise.
114 * scripttempl/h8300s.sc: Likewise.
115 * scripttempl/h8300sn.sc: Likewise.
116 * scripttempl/h8300sx.sc: Likewise.
117 * scripttempl/h8300sxn.sc: Likewise.
118 * scripttempl/hppaelf.sc: Likewise.
119 * scripttempl/i386beos.sc: Likewise.
120 * scripttempl/i386coff.sc: Likewise.
121 * scripttempl/i386go32.sc: Likewise.
122 * scripttempl/m68kaux.sc: Likewise.
123 * scripttempl/m68klynx.sc: Likewise.
124 * scripttempl/m88kbcs.sc: Likewise.
125 * scripttempl/maxqcoff.sc: Likewise.
126 * scripttempl/mcorepe.sc: Likewise.
127 * scripttempl/mips.sc: Likewise.
128 * scripttempl/ppcpe.sc: Likewise.
129 * scripttempl/sa29200.sc: Likewise.
130 * scripttempl/sparccoff.sc: Likewise.
131 * scripttempl/sparclynx.sc: Likewise.
132 * scripttempl/tic4xcoff.sc: Likewise.
133 * scripttempl/tic54xcoff.sc: Likewise.
134 * scripttempl/tic80coff.sc: Likewise.
135 * scripttempl/z8000.sc: Likewise.
137 2009-09-07 Tristan Gingold <gingold@adacore.com>
139 * po/ld.pot: Regenerate.
141 2009-09-05 Martin Thuresson <martin@mtme.org>
143 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols,
144 gld${EMULATION_NAME}_try_needed): Rename variable class to
147 2009-09-04 Tristan Gingold <gingold@adacore.com>
149 * NEWS: Add marker for 2.20.
151 2009-09-04 Alan Modra <amodra@bigpond.net.au>
153 * scripttempl/elf.sc (.text): Add cold text sections.
155 2009-09-04 Jie Zhang <jie.zhang@analog.com>
157 * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Add .l2.text
160 2009-09-03 Dave Korn <dave.korn.cygwin@gmail.com>
162 * scripttempl/pe.sc (.text): Add "*(.text.*)" in order to catch
163 new GCC hot/cold/unlikely partitions.
164 * scripttempl/pep.sc: Likewise.
165 * scripttempl/epocpe.sc: Likewise.
166 * scripttempl/mcorepe.sc: Likewise.
167 * scripttempl/ppcpe.sc: Likewise.
169 2009-09-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
171 * Makefile.am (ldgram.o, ldlex.o, deffilep.o): Supply correct
172 source file name for generated files which may be in $(srcdir).
173 * Makefile.in: Regenerate.
175 2009-09-01 H.J. Lu <hongjiu.lu@intel.com>
177 * ldver.c (ldversion): Change to "Copyright 2009".
179 2009-09-01 Jie Zhang <jie.zhang@analog.com>
181 * scripttempl/elf.sc: Add ${USER_LABEL_PREFIX} to _start, etext,
182 _stack and __bss_start.
183 * emulparams/bfin.sh (ENTRY): Remove.
185 2009-08-30 Alan Modra <amodra@bigpond.net.au>
188 * ldexp.c (fold_name <MAXPAGESIZE>): Return config.maxpagesize.
189 (fold_name <COMMONPAGESIZE>): Similarly.
190 * ldlang.c (output_target): Make global.
191 * ldlang.h (output_target): Declare.
192 * ldmain.c (main): Set config.maxpagesize from bfd_emul_get_maxpagesize.
193 Similarly for config.commonpagesize.
194 * ldemul.c (set_output_arch_default): Call bfd_emul_set_maxpagesize
195 and bfd_emul_set_commonpagesize.
196 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Don't call
197 bfd_emul_set_maxpagesize or bfd_emul_set_commonpagesize here.
199 2009-08-29 Martin Thuresson <martin@mtme.org>
201 * ldexp.c (exp_intop, exp_bigintop, exp_relop, exp_binop)
202 (exp_trinop, exp_unop, exp_nameop, exp_assop): Rename variable new
204 * ldfile.c (ldfile_add_library_path): Rename variable new to
205 new_dirs. (ldfile_add_arch): Rename variable new to new_arch.
206 * ldlang.c (new_statement, lang_final, lang_add_wild)
207 (lang_target, lang_add_fill, lang_add_data, lang_add_assignment)
208 (lang_add_insert): Rename variable new to new_stmt. (new_afile):
209 Added missing cast. (lang_memory_region_lookup): Rename variable
210 new to new_region. (init_os): Rename variable new to
211 new_userdata. (lang_add_section): Rename variable new to
212 new_section. (ldlang_add_undef): Rename variable new to
213 new_undef. (realsymbol): Rename variable new to new_name.
215 2009-08-26 Nick Clifton <nickc@redhat.com>
218 * emultempl/elf32.em (_after_open): Do not create a
219 .note.gnu-build-id section if there are no input files.
221 2009-08-24 Nick Clifton <nickc@redhat.com>
223 * scripttempl/elfxtensa.sc (DISCARDED): Discard sections with
225 * scripttempl/armbpabi.sc: Likewise.
226 * scripttempl/elf32sh-symbian.sc: Likewise.
227 * scripttempl/elf64hppa.sc: Likewise.
228 * scripttempl/mep.sc: Likewise.
230 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
232 * Makefile.am (ldmain.o, ldfile.o): Fix typos in non-fastdep
234 (eelf32_spu.o): Add dependency tracking.
235 * Makefile.in: Regenerate.
237 * Makefile.am (am__skiplex, am__skipyacc): New.
238 * Makefile.in: Regenerate.
240 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
242 * Makefile.am (bin_PROGRAMS): Renamed from ...
243 (noinst_PROGRAMS): ... this.
244 (transform): Override, including the renaming of ld-new to ld.
245 (install-exec-local): Installation of ld in $(bindir) not needed
247 (AM_CPPFLAGS): Renamed from ...
248 (INCLUDES): ... this.
249 (MAINTAINERCLEANFILES): Add ld.1.
250 * Makefile.in: Regenerate.
252 * Makefile.am (AUTOMAKE_OPTIONS): Remove cygnus. Add
253 no-texinfo.tex, no-dist, foreign.
254 (TEXINFO_TEX): New variable.
255 (install-data-local): Removed, not needed any more.
256 (all): Dependencies upon info and ld.1 not needed any more.
257 (MKDEP, DEP, DEP1, dep.sed, dep, dep-in, dep-am): Removed.
258 (mkdep generated section): Removed.
259 (ldgram.o, ldlex.o, deffilep.o, ldmain.o, ldfile.o): Rewrite to
260 use automake dependency tracking mechanism.
261 (EXTRA_ld_new_SOURCES): Add pep-dll.c, pe-dll.c, and
262 $(ALL_EMULATIONS:.o=.c) $(ALL_64_EMULATIONS:.o=.c) so their
263 dependencies are tracked too.
264 (BUILT_SOURCES): New, list $(GENERATED_HFILES) to ensure they
266 * configure.in: Use AM_MAINTAINER_MODE.
267 * aclocal.m4, configure, Makefile.in: Regenerate.
269 * Makefile.am (pdf__strip_dir, install-pdf, install-pdf-am)
270 (install-pdf-recursive, html__strip_dir, install-html)
271 (install-html-am, install-html-recursive): Remove.
272 * Makefile.in: Regenerate.
274 * Makefile.in: Regenerate.
275 * aclocal.m4: Likewise.
276 * config.in: Likewise.
277 * configure: Likewise.
279 2009-08-21 Richard Guenther <rguenther@suse.de>
281 * scripttempl/elf.sc: Discard sections with .gnu.lto_ prefix.
283 2009-08-12 Tristan Gingold <gingold@adacore.com>
285 * ld.h (fat_user_section_struct): Add map_symbol_def_count field.
286 * ldlang.c (hash_entry_addr_cmp): New function.
287 (print_all_symbols): Sort the symbols by address before printing them.
289 2009-08-10 Alan Modra <amodra@bigpond.net.au>
292 * ldemul.c (after_allocation_default): Run lang_relax_sections.
293 * ldlang.h (lang_relax_sections): Declare.
294 * ldlang.c (relax_sections): Delete.
295 (lang_relax_sections): New function.
296 (lang_process): Don't relax directly from here.
297 * emultempl/alphaelf.em (alpha_finish): Call finish_default.
298 * emultempl/armelf.em (arm_elf_after_allocation): Delete. Move body..
299 (gld${EMULATION_NAME}_finish): ..to here. Move existing code..
300 (gld${EMULATION_NAME}_after_allocation): ..to here. New function.
301 (LDEMUL_AFTER_ALLOCATION): Update.
302 * emultempl/avrelf.em (avr_elf_finish, LDEMUL_FINISH): Delete.
303 (avr_elf_after_allocation): New function.
304 (LDEMUL_AFTER_ALLOCATION): Define.
305 * emultempl/elf-generic.em (gld${EMULATION_NAME}_map_segments): Call
307 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Delete. Move..
308 (gld${EMULATION_NAME}_after_allocation): ..code to here. New function.
309 (LDEMUL_AFTER_ALLOCATION, LDEMUL_FINISH): Update.
310 * emultempl/genelf.em (gld${EMULATION_NAME}_finish): Delete. Move..
311 (gld${EMULATION_NAME}_after_allocation): ..code to here. New function.
312 (LDEMUL_FINISH): Delete.
313 (LDEMUL_AFTER_ALLOCATION): Define.
314 * emultempl/hppaelf.em (gld${EMULATION_NAME}_finish): Delete. Move..
315 (gld${EMULATION_NAME}_after_allocation): ..to here. New function.
316 (LDEMUL_FINISH): Delete.
317 (LDEMUL_AFTER_ALLOCATION): Define.
318 * emultempl/m68hc1xelf.em (m68hc11elf_finish): Delete. Move..
319 (m68hc11elf_after_allocation): ..to here. New function.
320 (LDEMUL_FINISH): Delete.
321 (LDEMUL_AFTER_ALLOCATION): Define.
322 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
323 gld${EMULATION_NAME}_after_allocation.
324 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Call
325 gld${EMULATION_NAME}_after_allocation.
326 * emultempl/mmo.em (mmo_finish): Delete. Move body..
327 (gld${EMULATION_NAME}_after_allocation): ..to here. New function.
328 (LDEMUL_FINISH): Define.
329 * emultempl/ppc64elf.em (ppc_layout_sections_again): Set elf_gp.
330 (gld${EMULATION_NAME}_finish): Move code sizing sections..
331 (gld${EMULATION_NAME}_after_allocation): ..to here.
332 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
333 Call gld${EMULATION_NAME}_after_allocation.
334 * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Delete
335 bfd_elf_discard_info and map_segments call.
337 2009-08-06 Michael Eager <eager@eagercon.com>
339 * Makefile.am: Add eelf32mb_linux.o, eelf32microblaze.o to
340 ALL_EMULATIONS, targets.
341 * Makefile.in: Regenerate.
342 * configure.tgt: Add microblaze*-linux*, microblaze* targets.
343 * emulparams/elf32mb_linux.sh: New.
344 * emulparams/elf32microblaze.sh. New.
345 * scripttempl/elfmicroblaze.sc: New.
347 2009-08-05 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
349 * emulparams/elf32_spu.sh (OTHER_READONLY_SECTIONS): Add .fixup
350 section and __fixup_start symbol.
351 * emultempl/spuelf.em (params): Initialize emit_fixups member.
352 (spu_before_allocation): Call spu_elf_size_sections.
353 (OPTION_SPU_EMIT_FIXUPS): Define.
354 (PARSE_AND_LIST_LONGOPTS): Add --emit-fixups.
355 (PARSE_AND_LIST_ARGS_CASES): Handle --emit-fixups.
356 * ld.texinfo (--emit-fixups): Document.
358 2009-08-04 Alan Modra <amodra@bigpond.net.au>
361 * emultempl/ppc32elf.em (ppc_before_allocation): Test rawsize,
362 not size, after lang_reset_memory_regions.
364 2009-07-30 Alan Modra <amodra@bigpond.net.au>
366 * emulparams/elf32ppc.sh (PLT): Don't include ".iplt".
367 * emulparams/elf_i386.sh (IREL_IN_PLT): Define.
368 * emulparams/elf_x86_64.sh (IREL_IN_PLT): Define.
369 * scripttempl/elf.sc: Create separate .iplt and .rela.iplt sections
372 2009-07-29 Hans-Peter Nilsson <hp@bitrange.com>
374 * scripttempl/mmo.sc: For relocateable links, set $OUTPUT_FORMAT to
375 the new $RELOCATEABLE_OUTPUT_FORMAT, if set.
376 (OUTPUT_FORMAT): Use the variable $OUTPUT_FORMAT.
377 (ENTRY): Don't emit for relocateable links.
378 (/DISCARD/): Don't discard .gnu.warning.* for relocateable links.
379 * emulparams/mmo.sh (RELOCATEABLE_OUTPUT_FORMAT): Set, to
381 * emulparams/elf64mmix.sh (OTHER_TEXT_SECTIONS): Empty, don't
382 provide "Main" or set "_start.", for relocateable links.
384 2009-07-27 Nick Clifton <nickc@redhat.com>
386 * (po/fi.po): Updated Finnish translation.
388 2009-07-25 H.J. Lu <hongjiu.lu@intel.com>
390 * configure.tgt (targ64_extra_emuls): Add elf_l1om if elf_x86_64
391 is supported. Add elf_l1om_fbsd if elf_x86_64_fbsd is supported.
392 (targ_extra_emuls): Likewise.
394 * Makefile.am (ALL_64_EMULATIONS): Add eelf_l1om.o and
397 (eelf_l1om_fbsd.c): Likewise.
398 * Makefile.in: Regenerated.
400 * emulparams/elf_l1om.sh: New.
401 * emulparams/elf_l1om_fbsd.sh: Likewise.
403 2009-07-23 Ulrich Drepper <drepper@redhat.com>
405 * NEWS: Mention the linker's support for symbols with a binding of
408 2009-07-22 H.J. Lu <hongjiu.lu@intel.com>
411 * ldlang.c (insert_os_after): Tie assignments to non-alloc
412 output sections if there is no-input section.
414 2009-07-11 Alan Modra <amodra@bigpond.net.au>
416 * ldlang.c (insert_os_after): Don't tie assignments to non-alloc
419 2009-07-10 Alan Modra <amodra@bigpond.net.au>
421 * emultempl/ppc32elf.em (ppc_before_allocation): Turn on
422 linker relaxation if it might be necessary.
424 2009-07-10 Alan Modra <amodra@bigpond.net.au>
426 * emulparams/elf32ppc.sh (GOTPLT, PLT): Handle .iplt.
428 2009-07-06 Matthias Klose <doko@ubuntu.com>
430 * ld.texinfo: Fix typo.
432 2009-07-03 Tristan Gingold <gingold@adacore.com>
434 * scripttempl/pep.sc: Put .eh_frame in its own section.
435 * scripttempl/pe.sc: Ditto.
437 2009-06-26 Kai Tietz <kai.tietz@onevision.com>
439 * scripttempl/pe.sc (.debug_pubtypes): Added section rule.
440 * scripttempl/pep.sc: Likewise.
442 2009-06-25 Tristan Gingold <gingold@adacore.com>
444 * ldlang.c (print_input_section): Add is_discarded parameter. Adjust
446 (lang_map): Print the size of discarded sections.
447 (print_statement): Adjust call to print_input_section.
449 2009-06-18 Dave Korn <dave.korn.cygwin@gmail.com>
451 Merge cegcc and mingw32ce target name changes from CeGCC project:
453 2008-09-24 Pedro Alves <pedroalves@users.sourceforge.net>
455 * configure.tgt (arm*-*-cegcc*): Set LIB_PATH to
456 ${tooldir}/lib/w32api.
458 2007-12-25 Pedro Alves <pedro_alves@portugalmail.pt>
460 * configure.tgt: Add arm*-*-cegcc* target.
462 2007-12-17 Pedro Alves <pedro_alves@portugalmail.pt>
464 * configure.tgt: Add arm-*-mingw32ce* target.
466 2009-06-10 Philip Blundell <philb@gnu.org>
468 * emultempl/armelf.em (gld${EMULATION_NAME}_finish): Avoid crash
469 if section has no ELF data.
471 2009-06-06 H.J. Lu <hongjiu.lu@intel.com>
473 * scripttempl/elf.sc: Add .rel.ifunc and .rela.ifunc.
475 2009-06-05 H.J. Lu <hongjiu.lu@intel.com>
477 * scripttempl/elf.sc: Remove .rel.ifunc.dyn and .rela.ifunc.dyn.
479 2009-06-04 Alan Modra <amodra@bigpond.net.au>
481 * dep-in.sed: Don't use \n in replacement part of s command.
482 * Makefile.am (DEP1): LC_ALL for uniq.
483 * Makefile.in: Regenerate.
485 2009-06-01 H.J. Lu <hongjiu.lu@intel.com>
487 * scripttempl/elf.sc (PLT): Add "*(.iplt)".
488 (GOT): Add "*(.igot.plt)a" and "*(.igot)".
489 (GOTPLT): Add "*(.igot)".
490 (__rel_iplt_start): New.
491 (__rel_iplt_end): Likewise.
492 (__rela_iplt_start): Likewise.
493 (__rela_iplt_end): Likewise.
495 2009-05-27 Dave Korn <dave.korn.cygwin@gmail.com>
497 * deffilep.y (%union): Add new string-type semantic value 'digits'.
498 (%token): Remove NUMBER as token, add DIGITS.
499 (%type): Add NUMBER as type. Add new id types anylang_id, opt_id.
500 (ALIGNCOMM): Parse an anylang_id instead of a plain ID.
501 (anylang_id): New production.
502 (opt_digits): Likewise.
505 (def_lex): Return strings of digits in raw string form as DIGITS
506 token, instead of converting to numeric integer type.
508 2009-05-26 Nathan Sidwell <nathan@codesourcery.com>
510 * ldmain.c (main): Don't reject --relax -r.
511 * ld.texinfo (PowerPC ELF32): Document behaviour of relaxing
514 2009-05-26 Nick Clifton <nickc@redhat.com>
516 * po/id.po: Updated Indonesian translation.
517 * po/ld.pot: Updated template file.
519 2009-05-26 Alan Modra <amodra@bigpond.net.au>
521 * dep-in.sed: Output one filename per line with all lines having
522 continuation backslash. Prefix first line with "A", following
524 * Makefile.am (DEP): Don't use dep.sed here.
525 (DEP1): Run $MKDEP on single files, use dep.sed here on dependencies,
527 * Makefile.in: Regenerate.
529 2009-05-26 Alan Modra <amodra@bigpond.net.au>
531 * ldlang.c (lang_check_section_addresses): Ignore non-alloc sections.
533 2009-05-22 Julian Brown <julian@codesourcery.com>
535 * emultempl/armelf.em (fix_cortex_a8): New.
536 (arm_elf_before_allocation): Call bfd_elf32_arm_set_cortex_a8_fix.
537 (arm_elf_create_output_section_statements): Add fix_cortex_a8 to
538 bfd_elf32_arm_set_target_relocs.
539 (OPTION_FIX_CORTEX_A8, OPTION_NO_FIX_CORTEX_A8): New.
540 (PARSE_AND_LIST_LONGOPTS): Add [no-]fix-cortex-a8 options.
541 (PARSE_AND_LIST_OPTIONS): Add [no-]fix-cortex-a8 options.
542 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_[NO_]FIX_CORTEX_A8.
543 * ld.texinfo (--[no-]fix-cortex-a8): Briefly document new options.
545 2009-05-22 Nathan Sidwell <nathan@codesourcery.com>
547 * ldlang.c (lang_check_section_addresses): Ignore non-loadable
548 sections when checking for overlap. Clarify error message
549 concerns load address.
551 2009-05-22 Alan Modra <amodra@bigpond.net.au>
553 * Makefile.am: Run "make dep-am".
554 * Makefile.in: Regenerate.
556 2009-05-19 Dave Korn <dave.korn.cygwin@gmail.com>
558 * NEWS: Mention new feature.
559 * deffile.h (def_file_aligncomm): Add new struct definition.
560 (def_file): Add new def_file_aligncomm member.
561 * deffilep.y (%token): Add new ALIGNCOMM token.
562 (command): Add production rule for ALIGNCOMM.
563 (def_file_free): Free any chained def_file_aligncomm structs.
564 (diropts[]): Add entry for '-aligncomm' .drectve command.
565 (def_aligncomm): New grammar function.
566 * ld.texinfo: Document new feature.
567 * pe-dll.c (process_def_file): Rename from this ...
568 (process_def_file_and_drectve): ... to this, updating all callers,
569 and process any aligncomms chained to the def file after scanning
570 all .drectve sections.
571 (generate_edata): Updated to match.
572 (pe_dll_build_sections): Likewise.
574 2009-05-17 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
576 * pe-dll.c (process_def_file): Do not create empty export table.
578 2009-05-15 Alan Modra <amodra@bigpond.net.au>
580 * ldlang.c (lang_output_section_statement_lookup): Add function
581 comment. Make "name" non-const. Ensure duplicate entries use
582 the same string, allowing simple comparison in hash bucket loop.
583 Tweak constraint check.
584 (next_matching_output_section_statement): New function.
585 * ldlang.h (lang_output_section_statement_lookup): Update.
586 (next_matching_output_section_statement): Declare.
587 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
588 combine orphan sections when input sections flags differ in
590 * emultempl/pe.em: Formatting throughout.
591 (gld${EMULATION_NAME}_place_orphan): As for elf32.em.
592 * emultempl/pep.em: Formatting throughout.
593 (gld${EMULATION_NAME}_place_orphan): As for elf32.em.
595 2009-05-14 Ulrich Weigand <uweigand@de.ibm.com>
597 * emultempl/spuelf.em (PARSE_AND_LIST_ARGS_CASES): Always use
598 compact stubs with software i-cache.
600 2009-05-14 Alan Modra <amodra@bigpond.net.au>
602 * emultempl/spuelf.em (spu_before_allocation): Call
603 spu_elf_place_overlay_data.
605 2009-05-14 Alan Modra <amodra@bigpond.net.au>
607 * ldlang.c (lang_insert_orphan): Add __start_<section> symbol
608 assignment inside output section statement. Ensure only one
609 set of symbols per output section.
610 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Add non-
611 dollar sections before dollar sections. Correct add_child
613 * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
615 2009-05-05 Paul Brook <paul@codesourcery.com>
617 * emultempl/armelf.em (compare_output_sec_vma): New function.
618 (gld${EMULATION_NAME}_finish): Add exidx munging code.
620 2009-05-05 Anatoly Sokolov <aesok@post.ru>
622 * scripttempl/avr.sc (MEMORY): Use DATA_ORIGIN.
623 * emulparams/avr1.sh (DATA_ORIGIN): Add.
624 * emulparams/avr2.sh (DATA_ORIGIN): Add.
625 * emulparams/avr25.sh (DATA_ORIGIN): Add.
626 * emulparams/avr3.sh (DATA_ORIGIN): Add.
627 * emulparams/avr31.sh (DATA_ORIGIN): Add.
628 * emulparams/avr35.sh (DATA_ORIGIN): Add.
629 * emulparams/avr4.sh (DATA_ORIGIN): Add.
630 * emulparams/avr5.sh (DATA_ORIGIN): Add.
631 * emulparams/avr51.sh (DATA_ORIGIN): Add.
632 (DATA_LENGTH): Update.
633 * emulparams/avr6.sh (DATA_ORIGIN): Add.
634 (DATA_LENGTH): Update.
636 2009-05-04 Dave Korn <dave.korn.cygwin@gmail.com>
638 * NEWS: Mention new feature.
639 * ld.texinfo (--version-script): Document extent of PE support.
640 (WIN32): Mention --version-script. Extend auto-export description.
641 * pe-dll.c (process_def_file): Use version script info to filter
642 symbols from auto-export.
643 * testsuite/ld-pe/vers-script-1.d: New file.
644 * testsuite/ld-pe/vers-script-2.d: New file.
645 * testsuite/ld-pe/vers-script-3.d: New file.
646 * testsuite/ld-pe/vers-script-4.d: New file.
647 * testsuite/ld-pe/vers-script-1.ver: New file.
648 * testsuite/ld-pe/vers-script-2.ver: New file.
649 * testsuite/ld-pe/vers-script-3.ver: New file.
650 * testsuite/ld-pe/vers-script-4.ver: New file.
651 * testsuite/ld-pe/vers-script-dll.c: New file.
652 * testsuite/ld-pe/vers-script.exp: New test script.
654 2009-05-01 Nathan Sidwell <nathan@codesourcery.com>
656 * emulparams/vxworks.sh (TEXT_START_ADDR): Override.
658 2009-04-30 Nick Clifton <nickc@redhat.com>
660 * NEWS: Mention support for IFUNC symbols.
662 2009-04-29 Anthony Green <green@moxielogic.com>
664 * emulparams/elf32moxie.sh (STACK_ADDR): Move default stack
665 position out to accommodate larger programs.
667 2009-04-29 Chris Demetriou <cgd@google.com>
669 * lexsup.c (option_values): Add OPTION_NO_EXPORT_DYNAMIC.
670 (ld_options): Likewise.
671 (parse_args): Likewise.
672 * ld.texinfo: Document --no-export-dynamic.
673 * NEWS: Mention --no-export-dynamic.
675 2009-04-29 Alan Modra <amodra@bigpond.net.au>
677 * deffilep.y (STACKSIZE_K): Rename from STACKSIZE.
679 2009-04-25 Alan Modra <amodra@bigpond.net.au>
682 * genscripts.sh: Don't pass $EMULATION_NAME as $CUSTOMIZER_SCRIPT
685 2009-04-21 Daniel Jacobowitz <dan@codesourcery.com>
687 * emultempl/armelf.em (bfd_for_interwork, arm_elf_after_open)
688 (arm_elf_set_bfd_for_interworking): Delete.
689 (arm_elf_before_allocation): Do not set the interworking BFD.
690 Move allocation inside not-dynamic block.
691 (arm_elf_create_output_section_statements): Create glue sections
692 and set the interworking BFD here.
693 (LDEMUL_AFTER_OPEN): Delete.
695 2009-04-16 Richard Sandiford <r.sandiford@uk.ibm.com>
697 * ldlang.c (lang_one_common): Use bfd_define_common_symbol.
699 2009-04-15 Anthony Green <green@moxielogic.com>
701 * configure.tgt: Add moxie support.
702 * Makefile.am: Add moxie files.
703 * Makefile.in: Rebuilt.
704 * emulparams/elf32moxie.sh: New file.
705 * scripttempl/moxie.sc: New file.
707 2009-04-15 Kazu Hirata <kazu@codesourcery.com>
709 * ldlang.c: Do not include limits.h.
711 2009-04-14 Alan Modra <amodra@bigpond.net.au>
714 * ldfile.c (find_scripts_dir): Use make_relative_prefix to find
715 ldscripts in build tree. Don't repeat search for ../lib/ldscripts.
717 2009-04-13 H.J. Lu <hongjiu.lu@intel.com>
719 * ldfile.c (ldfile_find_command_file): Revert the last change.
721 2009-04-11 H.J. Lu <hongjiu.lu@intel.com>
724 * ldfile.c (ldfile_find_command_file): First try raw name.
726 2009-04-09 Nick Clifton <nickc@redhat.com>
729 * ld.texinfo (Output Section Constraint): New node. Documents the
730 ONLY_IF_RO and ONLY_IF_RW constraints.
731 (Symbolic Constants): New node. Documents the CONSTANT operator.
733 2009-04-09 Thilo Fischer <thilo.fischer@uni-muenster.de>
735 * emultempl/spuelf.em (embedded_spu_file): Use pex_one in place
738 2009-04-08 H.J. Lu <hongjiu.lu@intel.com>
740 * lexsup.c (option_values): Add OPTION_WARN_ALTERNATE_EM.
741 (ld_options): Likewise.
742 (parse_args): Likewise.
744 * ld.texinfo: Document --warn-alternate-em.
746 * NEWS: Mention --warn-alternate-em.
748 2009-04-07 DJ Delorie <dj@redhat.com>
750 * emulparams/elf32mep.sh: Change default endian to little.
752 2009-04-07 Nick Clifton <nickc@redhat.com>
754 * ld.texinfo (Output Section Address): Note that specifying an
755 address for an output section will only change the location
756 counter if the output section is used.
758 2009-04-06 Kazu Hirata <kazu@codesourcery.com>
760 * ldfile.c (ldfile_find_command_file): Initialize result.
762 2009-04-06 Kazu Hirata <kazu@codesourcery.com>
764 * ld.texinfo (-L): Mention that -L options do not affect how ld
765 searches for a linker script unless -T option is specified.
766 * ldfile.c (ldfile_find_command_file): Append the path obtained
767 from the program name to the search path instead of
768 prepending. Add a new parameter "default_only". Restrict the
769 search to the default script location if the new parameter is
771 (ldfile_open_command_file_1): New.
772 (ldfile_open_command_file): Call ldfile_open_command_file_1.
773 (ldfile_open_default_command_file): New.
775 2009-04-03 Nathan Sidwell <nathan@codesourcery.com>
777 * ldlang.c (lang_leave_output_section_statement): Set lma_region
778 if it is not overridden and section is for the same vma region as
779 the previous section.
781 2009-04-02 Dave Korn <dave.korn.cygwin@gmail.com>
784 * ld.texinfo (--export-dynamic): Mention --export-all-symbols.
785 * emultempl/pe.em (gld_${EMULATION_NAME}_after_parse): Issue
786 warning if --export-dynamic was passed on command-line.
787 * emultempl/pep.em (gld_${EMULATION_NAME}_after_parse): Likewise.
789 2009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com>
791 * emultempl/aix.em (gld${EMULATION_NAME}_open_dynamic_archive): New
793 (ld_${EMULATION_NAME}_emulation): Use it.
795 2009-03-20 H.J. Lu <hongjiu.lu@intel.com>
798 * ldlang.c (lang_end): Warn missing entry symbol for -pie.
800 2009-03-19 Alan Modra <amodra@bigpond.net.au>
802 * emultempl/spuelf.em (spu_before_allocation): Report errors from
803 spu_elf_find_overlays.
805 2009-03-18 H.J. Lu <hongjiu.lu@intel.com>
808 * lexsup.c (parse_args): Call ldlang_add_undef for -e.
810 2009-03-18 Alan Modra <amodra@bigpond.net.au>
812 * ld.h: Remove alloca handling.
814 2009-03-17 Alan Modra <amodra@bigpond.net.au>
816 * emultempl/spu_icache.S: Add new entry to dummy handler.
817 * emultempl/spu_icache.o_c: Regenerate.
818 * emultempl/spuelf.em (params): Init new field.
819 (no_overlays): New static var.
820 (spu_before_allocation): Use it.
821 (OPTION_SPU_COMPACT_STUBS): Define.
822 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add compact-stubs.
823 (PARSE_AND_LIST_ARGS_CASES): Handle compact-stubs. Adjust no-overlays
826 2009-03-17 Alan Modra <amodra@bigpond.net.au>
828 * configure.host (HOSTING_LIBS): Two dollars on shell variable
829 expansion to suit make.
831 2009-03-17 Alan Modra <amodra@bigpond.net.au>
833 * configure.in: Invoke ACX_PROG_CMP_IGNORE_INITIAL.
834 * Makefile.am (check-DEJAGNU): Set DO_COMPARE.
835 * aclocal.m4: Regenerate.
836 * configure: Regenerate.
837 * Makefile.in: Regenerate.
839 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
841 * emultempl/aix.em (auto_export_flags): New variable.
842 (explicit_auto_export_flags): Likewise.
843 (OPTION_EXPALL, OPTION_EXPFULL): New enum values.
844 (OPTION_NOEXPALL, OPTION_NOEXPFULL): Likewise.
845 (gld${EMULATION_NAME}_add_options): Add -bexpall, -bexpfull,
846 -bnoexpall and -bnoexpfull.
847 (gld${EMULATION_NAME}_handle_option): Handle them.
848 (gld${EMULATION_NAME}_before_allocation): Update the call to
849 bfd_size_dynamic_sections.
851 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
853 * emultempl/aix.em (gld${EMULATION_NAME}_handle_option): Make
854 -berok and -bernotok control link_info.unresolved_syms_in_objects
855 and link_info.unresolved_syms_in_shared_libs instead of
856 force_make_executable.
858 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
860 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Set
861 config.dynamic_link to TRUE.
863 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
865 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Mark
866 .text, .data and .bss output sections as SEC_KEEP.
868 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
870 * configure.tgt: Extend AIX 5 behavior to AIX 6 and above.
872 2009-03-14 Dave Korn <dave.korn.cygwin@gmail.com>
873 Danny Smith <dannysmith@users.sourceforge.net>
875 * emultmpl/pe.em (pe_dll_characteristics): New variable.
876 (OPTION_DYNAMIC_BASE, OPTION_FORCE_INTEGRITY, OPTION_NX_COMPAT,
877 OPTION_NO_ISOLATION. OPTION_NO_SEH, OPTION_NO_BIND,
878 OPTION_WDM_DRIVER, OPTION_TERMINAL_SERVER_AWARE):
879 New macros for options to set DllCharacteristics flag bits.
880 (gld${EMULATION_NAME}_add_options): Add dynamicbase, forceinteg,
881 nxcompat, no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
882 (init): Add DllCharacteristics field.
883 (gld_${EMULATION_NAME}_list_options): List new options.
884 (gld${EMULATION_NAME}_handle_option): Handle new options.
885 * emultmpl/pep.em (pe_dll_characteristics): New variable.
886 (OPTION_DYNAMIC_BASE, OPTION_FORCE_INTEGRITY, OPTION_NX_COMPAT,
887 OPTION_NO_ISOLATION. OPTION_NO_SEH, OPTION_NO_BIND,
888 OPTION_WDM_DRIVER, OPTION_TERMINAL_SERVER_AWARE):
889 New macros for options to set DllCharacteristics flags.
890 (gld${EMULATION_NAME}_add_options): Add dynamicbase, forceinteg,
891 nxcompat,no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
892 (init): Add DllCharacteristics field.
893 (gld_${EMULATION_NAME}_list_options): List new options.
894 (gld${EMULATION_NAME}_handle_option): Handle new options.
895 * ldtexinfo : Document dynamicbase, forceinteg, nxcompat,
896 no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
898 2009-03-06 Nick Clifton <nickc@redhat.com>
900 * po/es.po: Updated Spanish translation.
902 2009-03-03 Dave Korn <dave.korn.cygwin@gmail.com>
904 * emultempl/pe.em (debug_section_p): New bfd_map_over_sections hook.
905 (gld_${EMULATION_NAME}_after_open): Use it to iterate all sections
906 of all input BFDs, looking for debug info. Enable long section names
908 * emultempl/pe.em (debug_section_p): Likewise.
909 (gld_${EMULATION_NAME}_after_open): Likewise.
910 * NEWS: Retrospectively adjust news announcement.
911 * ld.texinfo: Update documentation to mention new behaviour.
913 2009-03-03 Alan Modra <amodra@bigpond.net.au>
915 * Makefile.am: Run "make dep-am".
916 * Makefile.in: Regenerate.
918 2009-03-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
920 * ldgram.y: Add support for REGION_ALIAS operator.
921 * ldlang.c: Likewise.
922 * ldlang.h: Likewise.
924 * NEWS: Mention the new feature.
925 * ld.texinfo: Document the new feature.
927 2009-03-02 Qinwei <qinwei@sunnorth.com.cn>
929 * Makefile.am: Replace score elf emulation with score3 and score7
931 * Makefile.in: Regenerate,
932 * NEWS: Mention support for Score7 architecture.
933 * configure.tgt: Add score7 emulation to score-elf target.
934 * emulparams/scoreelf.sh: Add score7 support.
935 * emultempl/scoreelf.em: Likewise.
937 2009-03-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
939 * configure.tgt: Only use elf64hppa target emulation for hpux.
940 * emulparams/elf64hppa.sh: Don't include hppa64linux.sh.
941 (SCRIPT_NAME): Use new script elf64hppa.
942 (SCRIPT_NAME, ELFSIZE, NO_REL_RELOCS, ARCH, MACHINE, ENTRY,
943 TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT, OTHER_READONLY_SECTIONS,
944 OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS, OTHER_GOT_RELOC_SECTIONS,
945 DATA_START_SYMBOLS, OTHER_SYMBOLS, DATA_PLT, PLT_BEFORE_GOT,
946 TEXT_DYNAMIC): Define.
947 * emulparams/hppa64linux.sh: Adjust comments.
948 * scripttempl/elf64hppa.sc: New file.
950 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
952 * configure: Regenerate.
954 2009-02-27 Dave Korn <dave.korn.cygwin@gmail.com>
956 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Set
957 default state of auto-import flag based on $target.
959 2009-02-24 Joseph Myers <joseph@codesourcery.com>
961 * ld.texinfo (ARM): Document changed meaning of --stub-group-size.
962 * emultempl/armelf.em (hook_in_stub): Insert after the input section.
963 (elf32_arm_add_stub_section): Update comment.
964 (PARSE_AND_LIST_OPTIONS): Update help for --stub-group-size.
966 2009-02-24 Sandra Loosemore <sandra@codesourcery.com>
968 * ld.texinfo (Options): Correct typos in example. Recommend
969 using joined forms of syntax for passing options with arguments
971 (-a): Use consistent syntax for documenting option arguments.
972 Clean up indexing and markup.
973 (-A/--architecture): Likewise.
974 (-f/--auxiliary): Likewise.
975 (-F/--filter): Likewise.
977 (-G/--gpsize): Likewise.
978 (-h/-soname):Likewise.
980 (-l/--library): Likewise.
981 (-L/--library-path): Likewise.
983 (--defsym): Likewise.
984 (-I/--dynamic-linker): Likewise.
986 (--oformat): Likewise.
987 (--retain-symbols-file): Likewise.
989 (-rpath-link): Likewise.
990 (--sort-common): Likewise.
991 (--sort-section): Likewise.
992 (--split-by-file): Likewise.
993 (--split-by-reloc): Likewise.
994 (--sysroot): Likewise.
995 (--section-start): Likewise.
996 (-Tbss, -Tdata, -Ttext): Likewise.
997 (-Ttext-segment): Likewise.
998 (--version-script): Likewise.
1001 2009-02-18 Dave Korn <dave.korn.cygwin@gmail.com>
1003 * ld.texinfo: Update to mention long section name options.
1004 * NEWS: Mention new behaviour and command-line options.
1005 * pe-dll.c (pe_use_coff_long_section_names): New global variable.
1006 (pe_output_file_set_long_section_names): New function.
1007 (pe_dll_build_sections): Call it on output BFDs.
1008 (pe_exe_build_sections): Likewise.
1009 (pe_dll_fill_sections): Likewise.
1010 (pe_exe_fill_sections): Likewise.
1011 * pe-dll.h (pe_use_coff_long_section_names): Declare extern.
1012 (pe_output_file_set_long_section_names): Add prototype.
1013 * pep-dll.c (pe_use_coff_long_section_names): Define pep_ alias.
1014 (pe_output_file_set_long_section_names): Likewise.
1015 * pep-dll.h (pep_use_coff_long_section_names): Declare extern.
1016 (pep_output_file_set_long_section_names): Add prototype.
1017 * pe.em (OPTION_ENABLE_LONG_SECTION_NAMES): New getopt value macro.
1018 (OPTION_DISABLE_LONG_SECTION_NAMES): Likewise.
1019 (gld${EMULATION_NAME}_add_options): Add new options to xtra_long[].
1020 (gld_${EMULATION_NAME}_list_options): Describe them.
1021 (gld${EMULATION_NAME}_handle_option): Set or clear global
1022 pe_use_coff_long_section_names flag when options recognised.
1023 (gld_${EMULATION_NAME}_after_open): En/disable long section names
1024 for main output bfd by calling pe_output_file_set_long_section_names.
1025 * pep.em (enum options): Extend enum with new getopt option values.
1026 (gld${EMULATION_NAME}_add_options): Add new options to xtra_long[].
1027 (gld_${EMULATION_NAME}_list_options): Describe them.
1028 (gld${EMULATION_NAME}_handle_option): Set or clear global
1029 pe_use_coff_long_section_names flag when options recognised.
1030 (gld_${EMULATION_NAME}_after_open): En/disable long section names
1031 for main output bfd by calling pep_output_file_set_long_section_names.
1033 2009-02-16 Dave Korn <dave.korn.cygwin@gmail.com>
1035 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Don't emit
1036 inadvertent .reloc sections caused by refactoring accident.
1038 2009-02-16 Alan Modra <amodra@bigpond.net.au>
1040 * ldlang.c (process_insert_statements): ASSERT that output section
1041 statements are in order.
1043 2009-02-16 Alan Modra <amodra@bigpond.net.au>
1045 * ldlang.c (push_stat_ptr, pop_stat_ptr): New functions.
1046 (stat_save, stat_save_ptr): New variables.
1047 (lang_insert_orphan): Use push_stat_ptr and pop_stat_ptr.
1048 (load_symbols): Likewise. Delete dead "bad_load" code.
1049 (open_input_bfds): Warn on script containing output sections.
1050 (lang_enter_output_section_statement): Use push_stat_ptr.
1051 (lang_enter_group): Likewise.
1052 (lang_leave_output_section_statement): Use pop_stat_ptr.
1053 (lang_leave_group): Likewise.
1054 * ldlang.h (push_stat_ptr, pop_stat_ptr): Declare.
1055 * ldctor.c (ldctor_build_sets): Use push_stat_ptr and pop_stat_ptr.
1056 * emultempl/beos.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
1057 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
1058 * emultempl/pep.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
1059 * emultempl/spuelf.em (spu_place_special_section): Likewise.
1060 * emultempl/xtensaelf.em (ld_xtensa_insert_page_offsets): Likewise.
1062 2009-02-09 Nathan Sidwell <nathan@codesourcery.com>
1064 Missing piece of 2009-01-26 commit
1065 * ldlang.c (lang_process): Don't consider relocatable flag when
1066 checking for overlap.
1068 2009-02-05 Joseph Myers <joseph@codesourcery.com>
1070 * emulparams/m68kelf.sh: Add newline at end of file.
1072 2009-02-04 Nick Clifton <nickc@redhat.com>
1075 * ld.texinfo (--allow-shlib-undefined): Correct description of
1076 default settings and tidy up the rest of the entry.
1078 2009-02-04 Alan Modra <amodra@bigpond.net.au>
1080 * emultempl/spuelf.em (spu_after_open): Don't combine .text.ia.*
1081 during relocatable link.
1083 2009-02-03 Nick Clifton <nickc@redhat.com>
1086 * ld.texinfo (Constants): Document the base-encoding suffixes
1087 supported in linker scripts.
1089 2009-02-03 Alan Modra <amodra@bigpond.net.au>
1091 * NEWS: Mention --as-needed change.
1093 2009-02-03 Carlos O'Donell <carlos@codesourcery.com>
1095 * configure.in: AC_SUBST pdfdir.
1096 * Makefile.am: Add install-pdf, install-pdf-am,
1097 and install-pdf-recursive targets. Define pdf__strip_dir.
1098 * po/Make-in: Add install-pdf target.
1099 * configure: Regenerate.
1100 * Makefile.in: Regenerate.
1102 2009-01-31 Alan Modra <amodra@bigpond.net.au>
1104 * ld.texinfo (--as-needed): Update.
1106 2009-01-29 Andrew Jenner <andrew@codesourcery.com>
1108 * emultempl/armelf.em: Correct formatting of help text for
1109 --no-enum-size-warning option.
1111 2009-01-26 Nathan Sidwell <nathan@codesourcery.com>
1113 * lexsup.c (parse_args): Set check_section_addresses to 1 or 0.
1114 * ld.h (args_type): Make check_section_addresses a char.
1115 * ldmain.c (main): Default check_section_addresses to -1. Check it
1116 for relocatable links.
1117 * ld.texinfo (--check-sections): Update documentation.
1119 2009-01-26 Kai Tietz <kai.tietz@onevision.com>
1121 * pe-dll.c (tmp_seq2): New static variable.
1122 (make_singleton_name_imp): New.
1123 (make_import_fixup_entry): Use for v2 the _imp_<name> symbol and
1124 avoid duplicate import table generation for same symbol.
1125 (pe_create_runtime_relocator_reference): Make reference for
1128 2009-01-21 Alan Modra <amodra@bigpond.net.au>
1130 * emultempl/spuelf.em (params): Init new field.
1131 (OPTION_SPU_NON_IA_TEXT): Define.
1132 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --non-ia-text.
1133 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_SPU_NON_IA_TEXT.
1135 2009-01-16 H.J. Lu <hongjiu.lu@intel.com>
1137 * lexsup.c (option_values): Add OPTION_TTEXT_SEGMENT.
1138 (ld_options): Add -Ttext-segment.
1139 (parse_args): Handle OPTION_TTEXT_SEGMENT.
1141 * ld.texinfo: Document -Ttext-segment.
1143 * NEWS: Mention -Ttext-segment.
1145 * scripttempl/elf.sc (TEXT_START_ADDR): Use SEGMENT_START.
1146 (SHLIB_TEXT_START_ADDR): Likewise.
1148 2009-01-13 Alan Modra <amodra@bigpond.net.au>
1150 * emultempl/spu_icache.o_c: Regenerate.
1152 2009-01-12 Alan Modra <amodra@bigpond.net.au>
1154 * emultempl/spuelf.em (params): Init new fields.
1155 (num_lines_set, line_size_set, icache_mgr, icache_mgr_stream): New vars.
1156 (spu_place_special_section): Adjust placement for soft-icache. Pad
1157 soft-icache section to a fixed size. Clear addr_tree.
1158 (spu_elf_load_ovl_mgr): Support soft-icache. Map overlay manager
1159 sections a little more intelligently.
1160 (gld${EMULATION_NAME}_finish): Don't call spu_elf_build_stubs.
1161 (OPTION_SPU_NUM_LINES): Rename from OPTION_SPU_NUM_REGIONS.
1162 (OPTION_SPU_SOFT_ICACHE, OPTION_SPU_LINE_SIZE): Define.
1163 (OPTION_SPU_LRLIVE): Define.
1164 (PARSE_AND_LIST_LONGOPTS): Add new soft-icache options.
1165 (PARSE_AND_LIST_OPTIONS): Likewise.
1166 (PARSE_AND_LIST_ARGS_CASES): Handle them.
1167 * emultempl/spu_icache.S: Dummy file.
1168 * emultempl/spu_icache.o_c: Regenerate.
1169 * Makefile.am (eelf32_spu.c): Depend on spu_icache.o_c.
1170 (spu_icache.o_c): Add rule to build.
1171 (CLEANFILES): Zap temp files.
1172 (EXTRA_DIST): Add spu_icache.o_c.
1173 * Makefile.in: Regenerate.
1175 2009-01-08 Kai Tietz <kai.tietz@onevision.com>
1177 * pe.em (OPTION_USE_NUL_PREFIXED_IMPORT_TABLES): New.
1178 (gld..._add_options): Add new option
1179 --use-nul-prefixed-import-tables.
1180 (gld..._handle_option): Likewise.
1181 * pep.em: Same as for pe.em.
1182 * ld.texinfo: Add new option documentation for
1183 --use-nul-prefixed-import-tables.
1184 * pe-dll.c (pe_use_nul_prefixed_import_tables): New.
1185 (make_head): Make prefix leading zero prefix element for
1186 idata$4 and idata$5 dependent to new flag.
1187 (make_import_fixup_entry): Remove idata4/5 prefix.
1188 * pe-dll.h (pe_use_nul_prefixed_import_tables): New.
1189 * pep-dll.c (pe_use_nul_prefixed_import_tables): New.
1190 * pep-dll.h (pep_use_nul_prefixed_import_tables): New.
1191 * NEWS: Add new option.
1193 2009-01-05 Kai Tietz <kai.tietz@onevision.com>
1195 * emultempl/pe.em: Prefix dollar characters to be outputed in
1197 * emultempl/pep.em: Likewise.
1199 2009-01-03 Dave Korn <dave.korn.cygwin@gmail.com>
1201 * NEWS: Mention new feature --exclude-modules-for-implib.
1202 * ld.texinfo: Document new --exclude-modules-for-implib option.
1203 * pe-dll.c (exclude_list_struct): Change type member from int to
1204 new enumeration exclude_type.
1205 (pe_dll_add_excludes): Accept exclude_type instead of int param.
1206 (auto_export): Replace magic constants by exclude_type values and
1207 handle new choice EXCLUDEFORIMPLIB.
1208 (pe_dll_generate_implib): Accept a pointer to the link_info and
1209 iterate all input BFDs looking for EXCLUDEFORIMPLIB modules; re-open
1210 fresh BFDs for any found and link into import lib archive chain.
1211 * pe-dll.h (exclude_type): Add new enumerated type to replace magic
1212 constants previously used for exclude_list_struct type member.
1213 (pe_dll_add_excludes, pe_dll_generate_implib): Update prototypes.
1214 * pep-dll.h (exclude_type, pe_dll_add_excludes,
1215 pe_dll_generate_implib): Likewise to all the above.
1216 * emultempl/pe.em (OPTION_EXCLUDE_MODULES_FOR_IMPLIB): Define new
1217 getopts long option code for new --exclude-modules-for-implib option.
1218 (gld${EMULATION_NAME}_add_options): Add new entry to xtra_long[].
1219 (gld_${EMULATION_NAME}_list_options): List usage for it.
1220 (gld${EMULATION_NAME}_handle_option): Use exclude_type enumerated
1221 values when calling pe_dll_add_excludes, and handle EXCLUDEFORIMPLIB.
1222 (gld_${EMULATION_NAME}_finish): Pass pointer to link_info when
1223 calling pe_dll_generate_implib.
1224 * emultempl/pep.em (options): Define new enumerated value for getopts
1225 long option code for new --exclude-modules-for-implib option.
1226 (gld${EMULATION_NAME}_add_options, gld_${EMULATION_NAME}_list_options,
1227 gld${EMULATION_NAME}_handle_option, gld_${EMULATION_NAME}_finish):
1228 Again, likewise to all the above.
1230 2009-01-03 Dave Korn <dave.korn.cygwin@gmail.com>
1232 * pe-dll.c (autofilter_liblist): Add entry for shared libgcc.
1233 (libnamencmp): New function.
1234 (auto_export): Use it in place of strncmp when filtering libraries.
1236 For older changes see ChangeLog-2008
1242 version-control: never