1 2005-11-17 Alan Modra <amodra@bigpond.net.au>
3 * ldlang.h (lang_input_section_type): Remove "ifile" field.
4 (lang_insert_orphan, lang_add_section): Update prototypes.
5 * ldlang.c (lang_insert_orphan): Remove "file" param.
6 (lang_add_section): Likewise. Update all callers.
7 (wild_sort): Get an input section's bfd via "section->owner".
8 (size_input_section): Access just_syms_flag via bfd usrdata.
9 (lang_place_orphans): Update ldemul_place_orphan call.
10 * ldemul.h (ldemul_place_orphan): Remove input_statement param.
11 (struct ld_emulation_xfer_struct <place_orphan>): Likewise.
12 * ldemul.c (ldemul_place_orphan): Likewise.
13 * ldwrite.c (build_link_order): Access just_syms_flag via bfd usrdata.
14 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
15 * emultempl/beos.em (sort_by_file_name): Access bfd by section->owner.
16 (sort_sections): Likewise.
17 (place_orphan): Remove "file" param. Adjust lang_add_section call.
18 * emultempl/elf32.em (place_orphan): Remove "file" param. Adjust
19 lang_add_section and lang_insert_orphan calls.
20 * emultempl/hppaelf.em (hppaelf_add_stub_section): Adjust
21 lang_add_section call.
22 (build_section_lists): Access just_syms_flag via bfd usrdata.
23 * emultempl/m68hc1xelf.em (m68hc11elf_add_stub_section): Adjust
24 lang_add_section call.
25 * emultempl/mmo.em (mmo_place_orphan): Remove "file" param. Adjust
26 lang_add_section and lang_insert_orphan calls.
27 * emultempl/pe.em (place_orphan): Likewise. Access bfd via section
29 * emultempl/ppc64elf.em (ppc_add_stub_section): Adjust
30 lang_add_section call.
31 (build_toc_list): Access just_syms_flag via bfd usrdata.
32 (build_section_lists): Likewise.
33 * emultempl/xtensaelf.em (elf_xtensa_place_orphan): Remove "file"
34 param. Adjust place_orphan call.
35 (ld_build_required_section_dependence): Access bfd via section owner.
37 2005-11-16 Alan Modra <amodra@bigpond.net.au>
39 * ldlang.h (lang_output_section_statement_type): Add prev.
40 * ldlang.c (new_afile): Always init header.type.
41 (output_statement_newfunc): Set os.prev.
42 (output_prev_sec_find): Use os.prev.
43 (lang_enter_output_section_statement): Formatting.
44 (lang_final, lang_add_target, lang_add_fill): Likewise.
45 (lang_add_data, lang_add_reloc): Likewise.
46 (lang_add_attribute): Only alloc the header.
48 2005-11-16 Alan Modra <amodra@bigpond.net.au>
50 * ld.texinfo (Forced Output Alignment): Specify that this is an
51 alignment increase, not an override.
52 * ldlang.c (init_os): Set output section alignment here..
53 (lang_add_section): ..rather than here.
54 (lang_size_sections_1): Consolidate alignment code. Warn if section
55 alignment affects start address when explicit address given.
57 2005-11-07 Steve Ellcey <sje@cup.hp.com>
59 * configure: Regenerate after modifying bfd/warning.m4.
61 2005-11-07 Olaf Hering <olh@suse.de>
63 * ldmain.c (main): Add \n to error message.
65 2005-11-04 Alan Modra <amodra@bigpond.net.au>
67 * ldlang.c (struct output_statement_hash_entry): Don't indirect to os.
68 (output_statement_newfunc): Rewrite.
69 (lang_output_section_find_1): Merge into..
70 (lang_output_section_find): ..here.
71 (lang_output_section_statement_lookup_1): Rewrite to handle
72 multiple sections with the same name.
73 (output_statement_table_init): Commonise error message.
74 (lang_init, open_output): Likewise.
76 2005-11-03 Paul Brook <paul@codesourcery.com>
78 * scripttempl/elf.sc: Add .init_array.* and .fini_array.*.
79 * scripttempl/armbpabi.sc: Make init/fini array consistent with
81 * scripttempl/elf32sh-symbian.sc: Ditto.
82 * scripttempl/elfxtensa.sc: Ditto.
84 2005-11-03 Alan Modra <amodra@bigpond.net.au>
86 * ldlang.h (lang_output_section_statement_type): Rearrange. Remove
87 memspec. Make "processed" a bitfield.
88 (lang_data_statement_type, lang_reloc_statement_type): Rename
89 output_vma to output_offset.
90 * ldlang.c (lang_output_section_statement_lookup_1): Init
91 all_input_readonly. Don't init memspec.
92 (init_os): Remove incorrect comment.
93 (print_data_statement, print_reloc_statement): Adjust for
94 lang_data_statement_type and lang_reloc_statement_type change.
95 (lang_size_sections_1, lang_add_reloc): Likewise.
96 * ldwrite.c (build_link_order): Likewise.
98 2005-10-30 Mark Mitchell <mark@codesourcery.com>
100 * lexsup.c (help): Document "@FILE".
102 2005-10-30 H.J. Lu <hongjiu.lu@intel.com>
104 * Makefile.am: Run "make dep-am".
105 * Makefile.in: Regenerated.
107 * dep-in.sed: Replace " ./" with " ".
109 2005-10-25 Arnold Metselaar <arnold.metselaar@planet.nl>
111 * Makefile.am: Add support for Z80
112 * Makefile.in: Regenerated
113 * configure.tgt: Add z80-*-coff
114 * emulparams/z80.sh: New file.
115 * emultempl/z80.em: New file.
116 * scripttempl/z80.sc New file.
117 * NEWS: Mention this new support.
119 2005-10-25 Alan Modra <amodra@bigpond.net.au>
121 * po/ld.pot: Regenerate.
123 2005-10-25 Chris Metcalf <cdmetcalf@comcast.net>
125 * ld.texinfo (--reduce-memory-overheads): Fix typo.
127 2005-10-23 H.J. Lu <hongjiu.lu@intel.com>
130 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
131 bfd_match_sections_by_type to match section types.
133 * ldlang.c (init_os): Take the input section. Call
134 bfd_init_private_section_data if the input section isn't NULL.
135 (exp_init_os): Pass NULL to init_os.
136 (map_input_to_output_sections): Likewise.
137 (lang_add_section): Pass the input section to init_os.
139 2005-10-19 Paul Brook <paul@codesourcery.com>
141 * emulparams/armelf.sh: Add .ARM.attributes to OTHER_SECTIONS.
143 2005-10-15 H.J. Lu <hongjiu.lu@intel.com>
146 * emultempl/elf32.em: Include "elf-bfd.h".
147 (gld${EMULATION_NAME}_place_orphan): Check section type and
148 don't use section name for ELF input sections.
150 * ld.texinfo: Document orphan section processing.
152 * ldlang.c (lang_output_section_find_by_flags): Match section
153 types by calling bfd_match_sections_by_type.
155 2005-10-13 Mark Mitchell <mark@codesourcery.com>
157 * ld.texino: Describe double-quoted string syntax for version
159 * ldlang.h (lang_new_vers_pattern): Add literal_p parameter.
160 * ldgram.y (vers_defns): Allow NAME as well as VERS_IDENTIFIER.
161 Adjust calls to lang_new_vers_pattern to pass literal_p argument.
162 * ldlang.c (lang_vers_match): Fix indentation. Do not glob-match
163 version nodes without a pattern.
164 (lang_new_vers_pattern): Add literal_p parameter.
165 (lang_do_version_exports_section): Pass it.
167 2005-10-12 Mark Mitchell <mark@codesourcery.com>
169 * NEWS: Mention @file.
171 2005-10-05 H.J. Lu <hongjiu.lu@intel.com>
174 * ldcref.c (check_refs): Accept bfd_boolean.
175 (check_local_sym_xref): Pass FALSE to check_refs.
176 (check_nocrossref): Pass TRUE to check_refs.
177 (check_refs_info): Add bfd_boolean.
178 (check_refs): Add bfd_boolean to check_refs_info.
179 (check_reloc_refs): Match relocations with proper symbols.
181 * ldmisc.c (vfinfo): Don't add extra ":\n".
183 2005-10-05 Danny Smith <dannysmith@users.sourceforge.net>
185 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Set
186 default entry symbol to ENTRY here.
187 * scripttempl/pe.sc: Not here.
189 2005-09-30 James E Wilson <wilson@specifix.com>
191 * ldlang.c (lang_startup): Add missing ": " to einfo call.
193 2005-09-30 H.J. Lu <hongjiu.lu@intel.com>
195 * Makefile.am: Run "make dep-am".
196 * Makefile.in: Regenerated.
197 * aclocal.m4: Likewise.
199 2005-09-30 H.J. Lu <hongjiu.lu@intel.com>
201 * ldlang.c (output_statement_hash_entry): New type.
202 (output_statement_table): New variable for hash table.
203 (output_statement_newfunc): New function.
204 (output_statement_table_init): Likewise.
205 (output_statement_table_free): Likewise.
206 (lang_init): Call output_statement_table_init.
207 (lang_finish): Renamed to ...
209 (lang_process): Updated.
210 (lang_finish): New function.
211 (lang_output_section_find_1): Use hash table.
212 (lang_output_section_statement_lookup_1): Likewise.
214 * ldlang.h (lang_finish): New.
216 * ldmain.c (main): Call lang_finish.
218 2005-09-30 Mark Mitchell <mark@codesourcery.com>
220 * ldmain.c (main): Use expandargv.
222 2005-09-30 Catherine Moore <clm@cm00re.com>
224 * Makefile.am: Bfin support.
225 * Makefile.in: Regenerated.
226 * aclocal.m4: Regenerated.
227 * configure.tgt: Bfin support.
228 * emulparams/bfin.sh: New file.
229 * emultempl/bfin.em: New file.
231 2005-09-30 Matthias Kurz <mk@baerlap.north.de>
233 * ld.h: Prevent the inclusion of <libintl.h> from the Solaris
234 version of <locale.h> when ENABLE_NLS is not defined.
236 2005-09-27 H.J. Lu <hongjiu.lu@intel.com>
238 * ld.texinfo (ALIGN): Document it as forcing output section
241 * ldgram.y (ALIGN): Support it for forcing output section
244 2005-09-20 Alan Modra <amodra@bigpond.net.au>
246 * ldlang.h (lang_output_section_statement_struct): Change type of
247 "processed" to bfd_boolean.
248 * ldexp.c (fold_name): Update references to os->processed.
249 * ldlang.c (lang_output_section_statement_lookup_1): Likewise.
250 (lang_size_sections_1): Likewise.
251 (lang_reset_memory_regions): Likewise.
254 * ldlang.c (lang_size_sections_1): Process addr_tree earlier,
255 so that unused output section statements affect dot.
257 2005-09-08 Jakub Jelinek <jakub@redhat.com>
259 * ld.texinfo: Document -z {no,}execstack, -z {no,}relro
260 and --eh-frame-hdr options.
262 2005-09-07 Alan Modra <amodra@bigpond.net.au>
264 * ldexp.c (fold_name <SIZEOF>): Return 0 for non-existent section.
265 (exp_fold_tree_1): Print assert message only in final stage of
266 linking. Trigger assertion failure if expression cannot be
269 2005-09-06 H.J. Lu <hongjiu.lu@intel.com>
272 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Check
273 --just-symbols on DSO.
275 2005-08-18 Alan Modra <amodra@bigpond.net.au>
277 * scripttempl/elf.sc: Remove commented out defines.
279 2005-08-18 Alan Modra <amodra@bigpond.net.au>
281 * emulparams/a29k.sh: Delete.
282 * emulparams/ebmon29k.sh: Delete.
283 * emulparams/sa29200.sh: Delete.
284 * Makefile.am: Remove a29k support.
285 * configure.tgt: Likewise.
286 * ld.texinfo: Likewise.
287 * Makefile.in: Regenerate.
289 2005-08-17 Jakub Jelinek <jakub@redhat.com>
291 * ldgram.y (vers_defns): Don't lose pattern list before
292 extern NAME {}. Handle global, local and extern symbol names.
294 2005-08-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
296 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
297 Don't increment rel_count of .cranges here. Set rawsize of .cranges.
299 2005-08-10 Nick Clifton <nickc@redhat.com>
301 * pe-dll.c (pe_exe_fill_sections): Call lang_reset_memory_regions
302 before lang_size_sections.
304 2005-08-09 Alan Modra <amodra@bigpond.net.au>
306 * emulparams/hppa64linux.sh (LARGE_SECTIONS): Remove .tbss.
308 2005-08-08 Eric Doenges <Eric.Doenges@betty-tv.com>
310 * Makefile.am (ALL_EMULATIONS): Add msp430x21xx variants.
311 Add rules to build these emulations.
312 * Makefile.in: Regenerate.
313 * configure.tgt (msp430): Add the new variants to the
314 targ_extra_emuls list.
315 * emulparams/msp430all.sh: Add entries for the msp430x21xx
318 2005-08-05 H.J. Lu <hongjiu.lu@intel.com>
320 * ld.texinfo: Document PROVIDE_HIDDEN.
322 * ldexp.c (exp_fold_tree_1): Hide a provided symbol if asked.
323 (exp_provide): Add and set hidden.
325 * ldexp.h (etree_type): Add hidden to assign.
327 * ldgram.y (PROVIDE_HIDDEN): New.
328 * ldlex.l (PROVIDE_HIDDEN): Likewise.
330 * scripttempl/elf.sc: Use PROVIDE_HIDDEN on array bound
333 2005-08-05 Alan Modra <amodra@bigpond.net.au>
335 * emulparams/elf_x86_64.sh: Revert last change.
336 * scripttempl/elf.sc (REL_LARGE, LARGE_SECTIONS): Define here.
338 2005-08-05 Alan Modra <amodra@bigpond.net.au>
340 * emulparams/armelf.sh (OTHER_BSS_END_SYMBOLS): Split out from
342 * emulparams/armelf_linux.sh: Likewise.
343 * emulparams/armnto.sh: Likewise.
344 * emulparams/criself.sh: Likewise.
345 * emulparams/elf32mcore.sh: Likewise.
346 * emulparams/criself.sh (OTHER_SYMBOLS): Define.
347 * emulparams/crislinux.sh (OTHER_SYMBOLS): Define.
348 (OTHER_END_SYMBOLS): Don't define.
349 * emulparams/elf32fr30.sh: Likewise.
350 * emulparams/elf64mmix.sh: Likewise.
351 * emulparams/hppa64linux.sh: Likewise.
352 * emulparams/m32relf.sh: Likewise.
353 * emulparams/vxworks.sh: Likewise.
354 * scripttempl/armbpabi.sc (OTHER_BSS_SECTIONS): Delete.
355 (OTHER_BSS_END_SYMBOLS): Add.
356 (OTHER_END_SYMBOLS): Move before current end sym definitions.
357 (OTHER_SYMBOLS): Replace OTHER_END_SYMBOLS near end of script.
358 * scripttempl/elf.sc: Likewise.
359 * scripttempl/elf32sh-symbian.sc: Likewise.
360 * scripttempl/elf_chaos.sc: Likewise.
361 * scripttempl/elfxtensa.sc: Likewise.
362 * scripttempl/iq2000.sc: Likewise.
363 * scripttempl/xstormy16.sc: Likewise.
365 * scripttempl/elf.sc (LBSS, LARGE_SECTIONS): Delete.
366 (REL_LDATA, REL_LBSS, REL_LRODATA): Delete.
367 (REL_LARGE, LARGE_SECTIONS): Add.
368 * emulparams/elf_x86_64.sh (LARGE_SECTIONS): Define as script text.
370 * emulparams/hppa64linux.sh (OTHER_BSS_SECTIONS): Don't define.
371 (LARGE_SECTIONS): Define.
372 * emulparams/hppa64linux.sh (OTHER_BSS_SECTIONS): Don't define.
373 (LARGE_SECTIONS): Define.
375 2005-08-04 Alan Modra <amodra@bigpond.net.au>
377 * ldemul.c (ldemul_do_assignments, do_assignments_default): Delete.
378 * ldemul.h (ldemul_do_assignments, do_assignments_default): Delete.
379 (struct ld_emulation_xfer_struct): Remove do_assignments field.
380 * ldlang.c (lang_do_assignments): Don't call ldemul_do_assignments.
381 * emulparams/elf32ppc.sh (SDATA_START_SYMBOLS): New.
382 (SDATA2_START_SYMBOLS, SBSS_START_SYMBOLS, SBSS_END_SYMBOLS): New.
383 * emultempl/aix.em (ld_*_emulation): Delete do_assignments init.
384 * emultempl/armcoff.em: Likewise.
385 * emultempl/beos.em: Likewise.
386 * emultempl/generic.em: Likewise.
387 * emultempl/gld960.em: Likewise.
388 * emultempl/gld960c.em: Likewise.
389 * emultempl/linux.em: Likewise.
390 * emultempl/lnk960.em: Likewise.
391 * emultempl/m68kcoff.em: Likewise.
392 * emultempl/pe.em: Likewise.
393 * emultempl/sunos.em: Likewise.
394 * emultempl/ticoff.em: Likewise.
395 * emultempl/vanilla.em: Likewise.
396 * emultempl/elf32.em: Likewise.
397 (gld*_provide_bound_symbols): Delete.
398 (gld*_provide_init_fini_syms): Delete.
399 (gld*_before_allocation): Don't call ldemul_do_assignments.
400 * emultempl/ppc32elf.em (ppc_do_assignments): Delete.
401 (LDEMUL_DO_ASSIGNMENTS): Delete.
402 * scripttempl/elf.sc: Provide init/fini syms. Add SBSS_START_SYMBOLS,
403 SBSS_END_SYMBOLS, SDATA2_START_SYMBOLS.
405 2005-08-04 Alan Modra <amodra@bigpond.net.au>
407 * Makefile.am (eelf32m32c.c): Fix dependencies.
408 * Makefile.in: Regenerate.
410 2005-08-04 Alan Modra <amodra@bigpond.net.au>
412 * ldemul.c (ldemul_finish): Call ld_emulation->finish unconditionally.
413 (finish_default): New function.
414 * ldemul.h (finish_default): Declare.
415 * emultempl/aix.em (gld*_before_allocation): Call
416 before_allocation_default rather than strip_excluded_output_sections.
417 (ld_*_emulation): Init finish field to finish_default.
418 * emultempl/armcoff.em: Likewise.
419 * emultempl/beos.em: Likewise.
420 * emultempl/elf32.em: Likewise.
421 * emultempl/generic.em: Likewise.
422 * emultempl/gld960.em: Likewise.
423 * emultempl/gld960c.em: Likewise.
424 * emultempl/hppaelf.em: Likewise.
425 * emultempl/linux.em: Likewise.
426 * emultempl/lnk960.em: Likewise.
427 * emultempl/m68kcoff.em: Likewise.
428 * emultempl/mmo.em: Likewise.
429 * emultempl/pe.em: Likewise.
430 * emultempl/ppc64elf.em: Likewise.
431 * emultempl/sunos.em: Likewise.
432 * emultempl/ticoff.em: Likewise.
433 * emultempl/vanilla.em: Likewise.
435 2005-08-03 Alan Modra <amodra@bigpond.net.au>
437 * ldlang.c (exp_init_os): Handle etree_provide.
438 * emulparams/armelf.sh (OTHER_END_SYMBOLS): Rename from..
439 (OTHER_BSS_END_SYMBOLS): ..this.
440 * emulparams/armelf_linux.sh: Likewise.
441 * emulparams/armnto.sh: Likewise.
442 * emulparams/criself.sh: Likewise.
443 * emulparams/crislinux.sh: Likewise.
444 * emulparams/elf32frv.sh: Likewise.
445 * emulparams/elf32mcore.sh: Likewise.
446 * emulparams/elf32ppc.sh: Likewise.
447 * emulparams/elf32ppclinux.sh: Likewise.
448 * emulparams/hppa64linux.sh: Likewise.
449 * scripttempl/armbpabi.sc: Substitute $OTHER_END_SYMBOLS, not
450 $OTHER_BSS_END_SYMBOLS.
451 * scripttempl/elf32sh-symbian.sc: Likewise.
452 * scripttempl/elf_chaos.sc: Likewise.
453 * scripttempl/iq2000.sc: Likewise.
454 * scripttempl/xstormy16.sc: Likewise.
455 * scripttempl/elf.sc: Likewise. Delete __bss_start comment.
456 * scripttempl/elfxtensa.sc: Likewise.
458 2005-07-29 Nick Clifton <nickc@redhat.com>
460 * ldmain.c (main): Allow -shared and -static to be used together.
461 * ld.texinfo (-static): Mention that it is allowed with -shared.
463 2005-07-28 DJ Delorie <dj@redhat.com>
465 * ldlang.c (lang_output_section_statement_lookup_1): Don't cast a
466 unary & address operator, as that breaks GCC's strict aliasing
469 2005-07-25 Jan Hubicka <jh@suse.cz>
470 H.J. Lu <hongjiu.lu@intel.com>
472 * emulparams/elf_x86_64.sh (LARGE_SECTIONS): New.
474 * scripttempl/elf.sc: Updated for large section support.
476 2005-07-21 Ralf Corsepius <ralf.corsepius@rtems.org>
478 * configure.tgt: Remove i[3-7]86-*-rtemself*.
479 Remove sparc-*-rtemself*.
481 2005-07-21 Ben Elliston <bje@gnu.org>
483 * ldgram.y (ldgram_want_filename): Remove unused static.
485 2005-07-20 DJ Delorie <dj@redhat.com>
487 * emulparams/elf32m32c.sh (TEMPLATE_NAME): New.
488 (EXTRA_EM_FILE): New.
490 2005-07-19 H.J. Lu <hongjiu.lu@intel.com>
492 * ldmain.c (main): Reindent.
494 2005-07-19 Paul Brook <paul@codesourcery.com>
496 * configure.host (HOSTING_CRT0): Parse output of gcc --help --verbose
497 to determine dynamic linker name.
499 2005-07-18 Nick Clifton <nickc@redhat.com>
501 * configure.tgt: Restore alpha ordering to list of arches.
503 2005-07-16 Alan Modra <amodra@bigpond.net.au>
505 * emultempl/elf32.em (gld*_provide_init_fini_syms): Prototype.
506 (gld*_before_allocation): Call ldemul_do_assignments rather than
507 gld*_provide_init_fini_syms directly.
508 * emultempl/ppc32elf.em (gld*_after_allocation): Delete.
509 (ppc_do_assignments): New function.
510 (LDEMUL_AFTER_ALLOCATION): Don't define.
511 (LDEMUL_DO_ASSIGNMENTS): Define.
513 2005-07-16 Alan Modra <amodra@bigpond.net.au>
515 * Makefile.am: Run "make dep-am".
516 (emipsidt.c, emipsidtl.c): Depend on generic.em.
517 * Makefile.in: Regenerate.
519 2005-07-15 Alan Modra <amodra@bigpond.net.au>
521 * ldemul.c (ldemul_do_assignments): New function.
522 (do_assignments_default): New function.
523 * ldemul.h (ldemul_do_assignments): Declare.
524 (do_assignments_default): Declare.
525 (struct ld_emulation_xfer_struct): Add do_assignments.
526 * ldlang.c (lang_do_assignments) Call ldemul_do_assignments.
527 * emultempl/aix.em (ld_*_emulation): Init do_assignments field.
528 * emultempl/armcoff.em: Likewise.
529 * emultempl/beos.em: Likewise.
530 * emultempl/generic.em: Likewise.
531 * emultempl/gld960.em: Likewise.
532 * emultempl/gld960c.em: Likewise.
533 * emultempl/linux.em: Likewise.
534 * emultempl/lnk960.em: Likewise.
535 * emultempl/m68kcoff.em: Likewise.
536 * emultempl/pe.em: Likewise.
537 * emultempl/sunos.em: Likewise.
538 * emultempl/ticoff.em: Likewise.
539 * emultempl/vanilla.em: Likewise.
540 * emultempl/elf32.em: Likewise, to call gld*_provide_init_fini_syms.
541 (gld*_find_exp_assignment): Adjust bfd_elf_record_link_assignment call.
543 2005-07-14 Jim Blandy <jimb@redhat.com>
545 Add support for the Renesas M32C and M16C.
546 * Makefile.am (ALL_EMULATIONS): Add eelf32m32c.o.
547 (eelf32m32c.c): New target.
548 * Makefile.in: Regenerated.
549 * configure.tgt: Add case for m32c-*-elf.
550 * emulparams/elf32m32c.sh: New file.
552 2005-07-14 Alan Modra <amodra@bigpond.net.au>
554 * ldlang.c (strip_excluded_output_sections): Don't call
556 * emultempl/elf32.em (gld*_provide_bound_symbols): Move.
557 (gld*_provide_init_fini_syms): Move.
558 (gld*_before_allocation): Call the above from here..
559 (gld*_finish): ..not here. Call _bfd_elf_fix_excluded_sec_syms.
560 * emultempl/hppaelf.em (hppaelf_finish): Likewise.
561 * emultempl/ppc64elf.em (ppc_finish): Likewise.
563 2005-07-10 Ralf Corsepius <ralf.corsepius@rtems.org>
565 * configure.tgt: Remove sparc*-*-rtemsaout*, i[3-7]86-go32-rtems*,
566 i[3-7]86-*-rtemscoff*, hppa*-*-rtems*, mips*el-*-rtems*,
569 2005-07-09 Christopher Faylor <cgf@timesys.com>
571 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Enable runtime
572 relocation by default.
573 (compute_dll_image_base): Avoid linking into cygwin dll address space.
575 2005-07-08 Alan Modra <amodra@bigpond.net.au>
577 * ldlang.c (wild_sort): Formatting.
578 (strip_excluded_output_sections): Strip zero size sections here.
579 * emultempl/elf32.em (gld*_strip_empty_sections): Delete.
580 (gld*_finish): Don't call the above.
581 * emultempl/hppaelf.em (hppaelf_finish): Likewise.
582 * emultempl/ppc64elf.em (ppc_finish): Likewise.
584 2005-07-05 Paul Brook <paul@codesourcery.com>
586 * Makefile.am (ALL_EMULATIONS): Add eelf32ppcvxworks.o.
587 (eelf32ppcvxworks.o): Add dependencies.
588 * Makefile.in: Regenerate.
589 * configure.tgt: Add entry for powerpc-vxworks.
590 * emulparams/elf32-ppc.c: Mention elf32ppcvxworks.sh in comment.
591 * emulparams/elf32ppcvxworks.sh: New file.
592 * emultempl/ppc32elf.em (bfd_elf32_powerpc_vxworks_vec): Declare.
593 (is_ppc_elf32_vec): New function.
594 (ppc_after_open, ppc_before_allocation,
595 gld${EMULATION_NAME}_after_allocation): Use it.
597 2005-07-05 Peter S. Mazinger" <ps.m@gmx.net>
599 * emulparams/elf32bmip.sh (GENERATE_PIE_SCRIPT): Define as "yes".
600 * emulparams/elf32bmipn32-defs.sh (GENERATE_PIE_SCRIPT): Define as "yes".
602 2005-07-04 Mike Frysinger <vapier@gentoo.org>
604 * emulparams/hppalinux.sh (GENERATE_PIE_SCRIPT): Fix typo in
607 2005-07-04 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
609 * emulparams/m32relf_linux.sh (GENERATE_PIE_SCRIPT): Set to yes.
611 2005-07-04 Aurelien Jarno <aurel32@debian.org>
613 * emultempl/elf32.em: Enable use of ld.so.conf for *-*-k*bsd-*.
615 2005-07-01 Alan Modra <amodra@bigpond.net.au>
617 * scripttempl/elf.sc (.gcc_except_table): Don't KEEP.
619 2005-06-30 Ben Elliston <bje@gnu.org>
621 * Makefile.am (check-DEJAGNU): Don't search for expect.
622 * Makefile.in: Regenerate.
624 2005-06-30 Ben Elliston <bje@gnu.org>
626 * Makefile.am (EXPECT): Set to expect.
627 (RUNTEST): Likewise, set to runtest.
628 * Makefile.in: Regenerate.
630 2005-06-16 Alexander Klimov <alserkli@inbox.ru>
632 * emultempl/armelf.em: Add quotes to avoid a null test
635 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
637 * ld.texinfo (Command Line Options): Add @item for --hash-size.
639 2005-06-10 Alan Modra <amodra@bigpond.net.au>
641 * scripttempt/elf.sc (.bss): Align tail in a way that allows
642 empty section pruning.
644 2005-06-09 Steve Ellcey <sje@cup.hp.com>
646 * configure.in (AM_BINUTILS_WARNINGS): Add.
647 (BFD_NEED_DECLARATION) Replace with AC_CHECK_DECLS.
648 * config.in: Regenerate.
649 * configure: Regenerate.
650 * sysdep.h (NEED_DECLARATION_*): Replace with HAVE_DECL_*
653 2005-06-09 Alan Modra <amodra@bigpond.net.au>
655 * ldexp.c (fold_unary <ALIGN_K>): Revert last change.
657 2005-06-09 Alan Modra <amodra@bigpond.net.au>
659 * ld.h (lang_phase_type): Move to..
660 * ldexp.h: ..here. Add lang_mark_phase_enum.
661 (node_type): Remove etree_undef and etree_unspec.
662 (exp_data_seg): Delete.
663 (struct ldexp_control, expld): New.
664 (invalid, exp_mark_used_section): Delete.
665 (exp_fold_tree, exp_get_vma, exp_get_value_int, exp_get_fill,
666 exp_get_abs_int): Update prototypes.
667 * ldexp.c (assigning_to_dot): Delete.
669 (make_abs): Operate directly on expld.result. Update all callers.
670 (new_abs): Likewise. Return void.
671 (new_rel_from_abs): Rename from new_rel_from_section.
672 (new_rel, new_rel_from_abs): Operate on expld.result and return void.
674 (fold_unary): Operate on expld.result and return void. Remove
675 "current_section", "allocation_done", "dot", "dotp" and "mark_used"
676 params. Update all callers.
677 (fold_binary, fold_trinary, fold_name, exp_fold_tree_1): Likewise.
678 (fold_unary <ALIGN_K>): Ensure alignment is absolute.
679 (fold_unary <ABSOLUTE>): Use make_abs.
680 (fold_unary <DATA_SEGMENT_END>): Evaluate mark_phase as for
682 (fold_binary <DATA_SEGMENT_ALIGN, DATA_SEGMENT_RELRO_END, >): Ditto.
683 (fold_binary <'%','/'>): Don't error if marking.
684 (fold_name <SIZEOF_HEADERS>): Don't call bfd_sizeof_headers when
686 (fold_name <NAME>): Remove FIXME; -R is handled correctly. Don't
688 (fold_name <ADDR, LOADADDR, SIZEOF>): Don't set SEC_KEEP.
689 (exp_fold_tree_1): Don't error when marking.
690 (exp_fold_tree_1 <etree_rel>): Evaluate in all phases except first.
691 (exp_fold_tree_1 <etree_assign to dot>): Don't check for NULL
692 current section, instead check for NULL dotp.
693 (exp_fold_tree_1 <etree_provide>): Don't evaluate the assignment
694 source unless the symbol is referenced and undefined.
695 (exp_fold_tree): Remove "allocation_done" and "dot" params. Save
697 (exp_fold_tree_no_dot): Remove "current_section", "allocation_done
698 and "mark_used" params. Save params to expld. Update all callers.
699 (exp_assop): Do without temp var.
700 (exp_print_tree <etree_undef>): Delete code.
701 (exp_get_vma): Remove "allocation_done" param. Correct error return.
702 (exp_get_fill, exp_get_abs_int): Likewise.
703 (exp_get_value_int): Remove "allocation_done" param.
704 (exp_mark_used_section): Delete.
705 * ldgram.y (fill_exp): Update exp_get_fill call.
706 (origin_spec, length_spec): Update exp_get_vma call.
707 * ldlang.c (lang_init): Don't bother clearing lang_statement_iteration.
708 (lang_mark_used_section_1, lang_mark_used_section): Delete.
709 (strip_excluded_output_sections): Call one_lang_size_sections_pass in
710 marking mode. Merge old lang_mark_used_section code. Correct handling
711 of output sections with excluded input sections and data statements.
712 Don't drop non-zero sized sections. Don't zap os->bfd_section.
713 Do set SEC_EXCLUDE when appropriate.
714 (print_output_section_statement): Update for changed ldexp.c
716 (print_assignment, lang_size_sections_1): Likewise.
717 (lang_do_assignments_1, lang_enter_output_section_statement): Likewise.
718 (lang_new_phdr, lang_record_phdrs): Likewise.
719 (lang_size_sections): Likewise.
720 (insert_pad): Use following statement if it is a pad, rather than
722 (lang_size_sections_1 <lang_output_section_statement_enum>): Do
723 process ignored output section to set vma and lma, but don't
724 update dot for these sections. Don't error if marking.
725 (lang_size_sections_1 <lang_assignment_statement_enum>): Don't
726 update dot for ignored sections.
727 (lang_size_sections_1 <lang_data_statement_enum>): Don't mark absolute
728 section with SEC_ALLOC.
729 (one_lang_size_sections_pass): New function.
730 (lang_size_sections): Remove first five params. Set expld.phase on
731 entry and exit. Use one_lang_size_sections_pass.
732 (lang_do_assignments): Remove all params. Update all callers.
733 (lang_reset_memory_regions): Clear os->processed for all output
735 * ldlang.h (lang_do_assignments): Update prototype.
736 (lang_size_sections): Likewise.
737 (one_lang_size_sections_pass): Declare.
738 * pe-dll.c (pe_dll_fill_sections, pe_exe_fill_sections): Update
739 lang_size_sections and lang_do_assignments calls.
740 * emultempl/elf32.em (layout_sections_again): Likewise.
741 * emultempl/ppc64elf.em (ppc_before_allocation): Use
742 one_lang_size_sections_pass.
744 2005-06-08 Aldy Hernandez <aldyh@redhat.com>
746 * emulparams/elf32ms1.sh: New.
748 2005-06-07 Eric Christopher <echristo@redhat.com>
750 * Makefile.am (eelf32ms1.c): Use tab.
751 * Makefile.in: Regenerate.
753 2005-06-07 Aldy Hernandez <aldyh@redhat.com>
754 Michael Snyder <msnyder@redhat.com>
755 Stan Cox <scox@redhat.com>
757 * configure.tgt: Same.
759 * Makefile.am (ALL_EMULATIONS): Depend on eelf32ms1.o.
760 (eelf32ms1.c): Add eelf32ms1.c rule.
762 * Makefile.in: Regenerate.
764 2005-06-06 Alan Modra <amodra@bigpond.net.au>
766 * emultempl/ppc64elf.em (ppc_before_allocation): Always run
769 2005-06-05 H.J. Lu <hongjiu.lu@intel.com>
771 * ldexp.c (exp_mark_used_section): Set SEC_KEEP on current
772 section only if the symbol will be defined.
774 2005-06-04 H.J. Lu <hongjiu.lu@intel.com>
777 * ldexp.c (exp_mark_used_section): Set SEC_KEEP on current
778 section for etree_assign, etree_provide and etree_provided.
779 Call fold_binary on etree_binary.
781 * ldlang.c (lang_mark_used_section_1): Handle load base.
783 2005-06-03 Alan Modra <amodra@bigpond.net.au>
785 * ldmain.c (link_callbacks): Add einfo.
786 (add_archive_element): Use passed info, not link_info.
787 (constructor_callback): Likewise.
788 (reloc_overflow): Don't handle null bfd specially.
789 (reloc_dangerous, unattached_reloc): Likewise.
790 * ldmisc.c (vfinfo <B>): Print "ld generated" for null bfd.
791 (vfinfo <C, D, G>): Handle null bfd. Wrap comments.
793 2005-06-02 Alan Modra <amodra@bigpond.net.au>
795 * ldexp.h (etree_value_type): Use "asection *" in place of
796 "struct lang_output_section_statement_struct *" for "section".
797 (exp_fold_tree): Likewise.
798 (exp_mark_used_section): Likewise.
799 * ldexp.c (new_rel, new_rel_from_section, fold_unary, fold_binary,
800 fold_trinary, fold_name, exp_fold_tree_1, exp_fold_tree,
801 exp_mark_used_section): Likewise for "current_section" param.
802 (make_abs, new_abs, exp_binop, exp_unop, exp_get_vma, exp_get_fill,
803 exp_get_abs_int): Adjust for above changes.
804 * ldlang.c (lang_mark_used_section_1, print_assignment,
805 lang_size_sections_1, lang_do_assignments_1): Likewise.
806 * ldexp.c (fold_name): Init entire result struct.
808 2005-06-01 Maciej W. Rozycki <macro@linux-mips.org>
810 * emulparams/elf32btsmip.sh: Unset DATA_ADDR.
812 2005-05-31 Zack Weinberg <zack@codesourcery.com>
814 * ldlang.c (entry_symbol_default): New file-scope global.
815 (lang_finish): Use it, not a hardwired "start".
816 (lang_default_entry): Set it.
817 * ldlang.h: Declare lang_default_entry.
818 * emultempl/beos.em, emultempl/pe.em: Use lang_default_entry,
819 not lang_add_entry, to override default entry point symbol.
821 2005-05-29 Richard Henderson <rth@redhat.com>
823 * emulparams/elf64alpha.sh (PLT): New.
825 * emultempl/alphaelf.em (disable_relaxation): New.
826 (limit_32bit): Rename from elf64alpha_32bit; update all users.
827 (elf64_alpha_use_secureplt): Declare.
828 (bfd_elf64_alpha_vec, bfd_elf64_alpha_freebsd_vec): Declare.
829 (alpha_after_open): New.
830 (alpha_before_allocation): New.
831 (OPTION_NO_RELAX, OPTION_SECUREPLT, OPTION_NO_SECUREPLT): New.
832 (PARSE_AND_LIST_LONGOPTS): Include them.
833 (PARSE_AND_LIST_OPTIONS): Likewise.
834 (PARSE_AND_LIST_ARGS_CASES): Likewise.
835 (LDEMUL_AFTER_OPEN, LDEMUL_BEFORE_ALLOCATION): New.
836 * scripttempl/elf.sc (TEXT_PLT): New.
839 2005-05-27 Andreas Schwab <schwab@suse.de>
841 * configure.host (HOSTING_LIBS): Add libunwind.a if it exists.
843 2005-05-24 Alan Modra <amodra@bigpond.net.au>
845 * emultempl/ppc32elf.em (after_allocation): Don't call
846 ppc_elf_set_sdata_syms when relocatable.
848 2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
850 * Makefile.am (ld.1): Revert the last 2 changes.
851 (info-recursive): Depend on ld.1.
852 * Makefile.in: Regenerated.
854 2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
856 * Makefile.am (ld.1): Depend on "info" instead of
857 "configdoc.texi ldver.texi".
858 * Makefile.in: Regenerated.
860 2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
862 * Makefile.am (ld.1): Depend on "info".
863 * Makefile.in: Regenerated.
865 2005-05-19 Zack Weinberg <zack@codesourcery.com>
867 * Makefile.am: Have 'all' depend on 'info' and 'ld.1'.
868 * Makefile.in: Regenerate.
870 2005-05-17 Zack Weinberg <zack@codesourcery.com>
872 * ld-arm/mixed-app.d: Adjust expected disassembly a little.
874 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
876 * Makefile.am (ldver.texi): Don't use $<.
877 * Makefile.in: Regenerated.
879 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
881 * Makefile.am (AM_MAKEINFOFLAGS, TEXI2DVI): Explicitly include
882 $(srcdir) before $(BFDDIR)/doc.
883 * Makefile.in: Regenerated.
885 2005-05-17 H.J. Lu <hongjiu.lu@intel.com>
888 * ldexp.c (exp_fold_tree_1): Renamed from exp_fold_tree and
889 take take a bfd_boolean, mark_used. Ignore assert failure if
891 (exp_fold_tree) Call exp_fold_tree_1 with mark_used == FALSE.
892 (exp_fold_tree_no_dot): Updated to take a bfd_boolean,
893 mark_used and pass down.
894 (fold_unary): Likewise.
895 (fold_binary): Likewise.
896 (fold_trinary): Likewise.
897 (exp_binop): Add FALSE to call to exp_fold_tree_no_dot.
898 (exp_trinop): Likewise.
899 (exp_unop): Likewise.
900 (exp_nameop): Likewise.
901 (exp_get_vma): Likewise.
902 (exp_get_fill): Likewise.
903 (exp_get_abs_int): Likewise.
904 (fold_name): Likewise. Set SEC_KEEP in output section flags.
905 (exp_mark_used_section): New.
907 * ldexp.h (exp_mark_used_section): New.
909 * ldlang.c (lang_output_section_statement_lookup_1): Set the
910 ignored field to FALSE.
911 (lang_mark_used_section_1): New.
912 (lang_mark_used_section): Call lang_mark_used_section_1.
913 (strip_excluded_output_sections): Call lang_mark_used_section
914 and check for unused sections.
915 (lang_size_sections_1): Skip an output section if it should
917 (lang_do_assignments_1): Likewise.
918 (lang_process): Don't call lang_mark_used_section here.
920 * ldlang.h (lang_output_section_statement_type): Change
921 all_input_readonly to bitfield. Add ignored.
923 2005-05-17 Lennert Buytenhek <buytenh@wantstofly.org>
924 Peter S. Mazinger" <ps.m@gmx.net>
926 * emulparams/armelf_linux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
927 * emulparams/hppalinux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
929 2005-05-17 Julian Brown <julian@codesourcery.com>
931 * ldlang.c (print_assignment): Do not rely upon a valid result
932 having a section associated with it.
934 2005-05-17 Nick Clifton <nickc@redhat.com>
936 * ldlang.c (Scan_for_self_assignment): Check an assignment tree to
937 see if the same value is being used on the rhs as on the lhs.
938 (print_assignment): Call scan_for_self_assignment and if it
939 returns true, do no display the result of the computation but
940 instead just the final value of the symbol on the lhs.
941 * ld.texinfo: Document this behaviour and provide an example of
944 2005-05-15 Daniel Jacobowitz <dan@codesourcery.com>
946 * Makefile.am (AM_MAKEINFOFLAGS): Define.
948 (ldver.texi): Depend on distributed files instead of built files.
949 (ld.info): Include $(srcdir) in the rule target. Remove actions.
950 (ld.dvi): Remove actions.
951 (MAINTAINERCLEANFILES): Add configdoc.texi.
952 (CONFIG_STATUS_DEPENDENCIES): Add bfd/configure.in.
953 (install-data-local): Renamed from install.
954 (Makefile): Remove explicit dependency.
955 * acinclude.m4: Remove obsolete code.
956 * configure.in: Update AC_PREREQ. Remove extra $CONFIG_SHELL.
957 * Makefile.in, aclocal.m4, config.in, configure: Regenerated.
959 2005-05-11 Bob Wilson <bob.wilson@acm.org>
961 * scripttempl/elfxtensa.sc: Sync up with elf.sc.
962 * emulparams/elf32xtensa.sh (PLT, GOT): Define.
964 2005-05-11 Alan Modra <amodra@bigpond.net.au>
966 * ldgram.y: Add SPECIAL token.
967 (sect_constraint): Handle SPECIAL.
968 * ldlang.c (lang_output_section_find_1): Don't match SPECIAL.
969 (map_input_to_output_sections): Likewise.
970 * ldlex.l (SPECIAL): Define.
971 * emulparams/elf32ppc.sh (DATA_GOT, SDATA_GOT, SEPARATE_GOTPLT,
972 GOT, PLT, GOTPLT): Define.
973 * emultempl/ppc32elf.em (old_plt, old_got): New static vars.
974 (ppc_after_open): New function.
975 (PARSE_AND_LIST_PROLOGUE): Define OPTION_OLD_LPT and OPTION_OLD_GOT.
976 (PARSE_AND_LIST_LONGOPTS): Add "bss-plt" and "sdata-got".
977 (PARSE_AND_LIST_OPTIONS): Document them.
978 (PARSE_AND_LIST_ARGS_CASES): Handle them.
979 (LDEMUL_AFTER_OPEN): Define.
980 * scripttempl/elf.sc (PLT): Don't override existing define.
981 (DATA_GOT, SDATA_GOT): Define and use to enable alternate got
982 placement rather than using NO_SMALL_DATA. Emit GOTPLT for RELRO_NOW.
984 2005-05-10 Alan Modra <amodra@bigpond.net.au>
986 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_GOTPLT_END): Delete.
987 (DATA_SEGMENT_RELRO_END): Use SEPARATE_GOTPLT value.
988 (GOTPLT): Remove DATA_SEGMENT_RELRO_GOTPLT_END. Place after
989 DATA_SEGMENT_RELRO_END in script.
991 2005-05-09 H.J. Lu <hongjiu.lu@intel.com>
993 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
994 Don't use a removed section.
996 2005-05-09 H.J. Lu <hongjiu.lu@intel.com>
998 * ldmain.c (reloc_overflow): Use output_bfd if the symbol
999 is defined in the ABS section.
1001 2005-05-06 H.J. Lu <hongjiu.lu@intel.com>
1003 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
1004 Put back !link_info.relocatable.
1006 2005-05-06 H.J. Lu <hongjiu.lu@intel.com>
1009 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
1010 Just check link_info.executable.
1012 2005-05-06 Nick Clifton <nickc@redhat.com>
1014 * Update the address and phone number of the FSF organization in
1015 the GPL notices in the following files:
1016 aclocal.m4, deffile.h, deffilep.y, fdl.texi, ld.h, ldcref.c,
1017 ldctor.c, ldctor.h, ldemul.c, ldexp.c, ldexp.h, ldfile.c,
1018 ldfile.h, 20ldgram.y, ldint.texinfo, ldlang.c, ldlang.h, ldlex.h,
1019 ldlex.l, ldmain.c, ldmain.h, ldmisc.c, ldmisc.h, ldver.c, ldver.h,
1020 ldwrite.c, ldwrite.h, lexsup.c, mri.c, mri.h, pe-dll.c, pe-dll.h,
1021 sysdep.h, emultempl/aix.em, emultempl/alphaelf.em,
1022 emultempl/armcoff.em, emultempl/armelf.em, emultempl/beos.em,
1023 emultempl/crxelf.em, emultempl/elf32.em, emultempl/generic.em,
1024 emultempl/gld960.em, emultempl/gld960c.em, emultempl/hppaelf.em,
1025 emultempl/ia64elf.em, emultempl/irix.em, emultempl/linux.em,
1026 emultempl/lnk960.em, emultempl/m68hc1xelf.em,
1027 emultempl/m68kcoff.em, emultempl/m68kelf.em,
1028 emultempl/mipsecoff.em, emultempl/mmix-elfnmmo.em,
1029 emultempl/mmixelf.em, emultempl/mmo.em, emultempl/needrelax.em,
1030 emultempl/pe.em, emultempl/ppc32elf.em, emultempl/ppc64elf.em,
1031 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em,
1032 emultempl/vanilla.em, emultempl/xtensaelf.em
1034 2005-05-05 H.J. Lu <hongjiu.lu@intel.com>
1036 * scripttempl/elf.sc: Document the usage of __bss_start.
1038 2005-05-05 Paul Brook <paul@codesourcery.com>
1040 * Makefile.am: Add eelf_i386_vxworks.
1041 * Makefile.in: Regenerate.
1042 * configure.tgt: Make i?86-*-vxworks use targ_emul=elf_i386_vxworks.
1043 * emulparams/elf_i386_vxworks.sh: New file.
1044 * emulparams/vxworks.sh: New file.
1045 * scripttempl/elf.sc: Add DATA_END_SYMBOLS and ETEXT_NAME.
1047 2005-05-04 H.J. Lu <hongjiu.lu@intel.com>
1049 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
1050 Call _bfd_elf_provide_section_bound_symbols.
1052 2005-05-04 Alan Modra <amodra@bigpond.net.au>
1054 * ldemul.c: Include bfdlink.h.
1055 (ldemul_before_allocation): Assume before_allocation is non-zero.
1056 (before_allocation_default): Call strip_excluded_output_sections.
1057 * ldlang.c (stripped_excluded_sections): New variable.
1058 (lang_add_section): Build input section list for each output
1059 section, attached via map_head and map_tail pointers.
1060 (strip_excluded_output_sections): Make global. Traverse the
1061 input section lists to find which output sections can go. Clear
1062 link_order pointers and set stripped_excluded_sections.
1063 (lang_process): Call strip_excluded_output_sections.
1064 * ldlang.h (strip_excluded_output_sections): Declare.
1065 * ldwrite.c: Update throuhout for link_order_head -> map_head change.
1066 * emultempl/aix.em (before_allocation): Call
1067 strip_excluded_output_sections.
1068 * emultempl/armcoff.em (before_allocation): Likewise.
1069 * emultempl/beos.em (before_allocation): Likewise.
1070 * emultempl/linux.em (before_allocation): Likewise.
1071 * emultempl/pe.em (before_allocation): Likewise.
1072 * emultempl/sunos.em (before_allocation): Likewise.
1073 * emultempl/elf32.em (before_allocation): Likewise. Call
1074 bfd_elf_size_dynsym_hash_dynstr too.
1075 * emultempl/lnk960.em (lnk960_before_allocation): Delete.
1076 (ld_lnk960): Use before_allocation_default.
1078 2005-05-02 H.J. Lu <hongjiu.lu@intel.com>
1080 * emultempl/elf32.em (gld${EMULATION_NAME}_strip_empty_section):
1081 Updated for bfd_section_list_remove change.
1082 * ldlang.c (lang_insert_orphan): Likewise.
1083 (strip_excluded_output_sections): Likewise.
1084 (sort_sections_by_lma): New.
1085 (lang_check_section_addresses): Sort the sections before
1088 2005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
1090 * configure.tgt: Add h8300*-*-rtemscoff.
1091 Switch h8300*-*-rtems* to elf.
1093 2005-04-29 Ben Elliston <bje@au.ibm.com>
1095 * ldgram.y (lang_memory_region_type): Make static.
1096 (ldgram_want_filename): Likewise.
1097 * ldemul.c (ld_emulation): Make static.
1098 * ldfile.h (ldfile_find_command_file): Remove extern.
1099 * ldfile.c (ldfile_find_command_file): Make static.
1100 * ldlang.h (unique_section_list): Remove extern declaration.
1101 * ldlang.c (unique_section_list): Make static.
1102 * mri.h (symbol_truncate): Remove extern declaration.
1103 * mri.c (symbol_truncate): Make static.
1104 (order, only_load, address, alias): Likewise.
1105 (alignment, subalignment): Likewise.
1107 2005-04-27 H.J. Lu <hongjiu.lu@intel.com>
1109 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
1110 Use the first SEC_ALLOC section which isn't SEC_READONLY or the
1111 last SEC_ALLOC section if such a section doesn't exist.
1113 2005-04-24 Mark Kettenis <kettenis@gnu.org>
1115 * configure.host: Add *-*-openbsd support.
1117 2005-04-15 Julian Brown <julian@codesourcery.com>
1119 * ld.texinfo: Document --use-blx.
1120 * emultempl/armelf.em (use_blx): New variable.
1121 (arm_elf_create_output_section_statements): Communicate value of
1123 (PARSE_AND_LIST_PROLOGUE): Add OPTION_USE_BLX.
1124 (PARSE_AND_LIST_OPTIONS): Add --use-blx option.
1125 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_USE_BLX case.
1127 2005-04-14 Alan Modra <amodra@bigpond.net.au>
1129 * Makefile.am (NO_WERROR): Define. Use instead of -Wno-error.
1130 * configure.in: Include ../bfd/warning.m4 contents.
1131 * Makefile.in: Regenerate.
1132 * configure: Regenerate.
1134 2005-04-12 Alan Modra <amodra@bigpond.net.au>
1136 * Makefile.am: Run "make dep-am".
1137 (ldgram.o, ldlex.o, deffilep.o): Add -Wno-error to command.
1138 * Makefile.in: Regenerate.
1139 * config.in: Regenerate.
1141 2005-04-11 Alan Modra <amodra@bigpond.net.au>
1143 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Ignore
1144 as_needed libs that were not needed.
1145 (gld${EMULATION_NAME}_check_needed): Likewise.
1147 2005-04-07 Nick Clifton <nickc@redhat.com>
1149 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h so that
1150 ldfile.h can use the lang_input_statement type.
1152 2005-04-06 Jakub Jelinek <jakub@redhat.com>
1154 * ldlang.c: Formatting.
1155 (walk_wild_consider_section): Remember return value from wildcardp.
1156 (is_simple_wild): Use strcspn instead of 2 strpbrk calls and strlen.
1157 (wild_spec_can_overlap): Use strcspn instead of strpbrk and strlen.
1159 2005-04-06 Robert O'Callahan <rocallahan@novell.com>
1161 * ld.h (lean_section_userdata_type): Remove.
1162 (fat_section_userdata_type): Remove file field.
1163 (SECTION_USERDATA_SIZE): Remove.
1164 * ldlang.c (init_os): Eliminate initialization of unused
1165 lean_section_userdata_type.
1167 * ldlang.h (callback_t, walk_wild_section_handler_t): New
1169 (struct lang_wild_statement_struct): Add walk_wild_section_handler
1170 and handler_data fields.
1171 * ldlang.c (callback_t): Removed.
1172 (walk_wild_consider_section, walk_wild_section_general,
1173 section_iterator_callback, find_section, is_simple_wild,
1174 match_simple_wild, walk_wild_section_specs1_wild0,
1175 walk_wild_section_specs1_wild1, walk_wild_section_specs2_wild1,
1176 walk_wild_section_specs3_wild2, walk_wild_section_specs4_wild2,
1177 wild_spec_can_overlap, analyze_walk_wild_section_handler): New
1179 (lang_add_wild): Call analyze_walk_wild_section_handler.
1180 (walk_wild_section): Renamed to walk_wild_section_general and
1181 created a wrapper function.
1182 (section_iterator_callback_data): New typedef.
1184 2005-04-04 Nick Clifton <nickc@redhat.com>
1186 * configure.in: Add a check for <unistd.h> providing a prototype
1187 for getopt() which is compatible with the one in
1188 include/getopt.h. If so then define HAVE_DECL_GETOPT.
1189 * configure: Regenerate.
1190 * config.in (HAVE_DECL_GETOPT): Add.
1191 * ldemul.c: Include config.h
1192 * lexsup.c: Likewise.
1193 * emultempl/elf32.sc: Likewise.
1195 2005-03-29 Alan Modra <amodra@bigpond.net.au>
1197 * emultempl/elf32.em (gld${EMULATION_NAME}_layout_sections_again):
1198 New function, extracted from static void gld${EMULATION_NAME}_finish.
1199 (gld${EMULATION_NAME}_strip_empty_sections): Likewise.
1200 (gld${EMULATION_NAME}_provide_init_fini_syms): Likewise.
1201 * emultempl/ppc64elf.em: Revert last change.
1202 (ppc_layout_sections_again): Use
1203 gld${EMULATION_NAME}_layout_sections_again.
1204 (ppc_finish): Don't call gld${EMULATION_NAME}_finish. Instead call
1205 gld${EMULATION_NAME}_strip_empty_sections and
1206 gld${EMULATION_NAME}_provide_init_fini_syms.
1207 * emultempl/hppaelf.em: Similarly.
1209 2005-03-29 Alan Modra <amodra@bigpond.net.au>
1211 * emultempl/ppc64elf.em (need_laying_out): Delete. Remove all refs.
1212 (ppc_finish): Don't call bfd_elf_discard_info.
1213 * emultempl/hppaelf.em: Similarly.
1215 2005-03-24 Nick Clifton <nickc@redhat.com>
1217 * po/fr.po: Updated French translation.
1219 2005-03-23 Mike Frysinger <vapier@gentoo.org>
1220 Nick Clifton <nickc@redhat.com>
1222 * configure.host: Accept any C library to accompany a GNU Linux
1223 implementation, not just the GNU C library.
1224 * configure.tgt: Likewise.
1225 * emultempl/elf32.em: Likewise.
1227 2005-03-22 H.J. Lu <hongjiu.lu@intel.com>
1229 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols): New
1230 (gld${EMULATION_NAME}_finish): Call
1231 gld${EMULATION_NAME}_provide_bound_symbols to provide
1232 __preinit_array_start, __preinit_array_end, __init_array_start,
1233 __init_array_end, __fini_array_start and __fini_array_end.
1235 * scripttempl/elf.sc: Don't provide __preinit_array_start,
1236 __preinit_array_end, __init_array_start, __init_array_end,
1237 __fini_array_start nor __fini_array_end.
1239 2005-03-23 Alan Modra <amodra@bigpond.net.au>
1241 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Set
1242 SEC_EXCLUDE on .gnu.warning sections.
1244 2005-03-22 Alan Modra <amodra@bigpond.net.au>
1246 * scripttempl/elf.sc (SBSS): Don't provide sbss start and end syms.
1248 2005-03-21 Alan Modra <amodra@bigpond.net.au>
1250 * emultempl/ppc32elf.em (gld${EMULATION_NAME}_after_allocation): New
1252 (LDEMUL_AFTER_ALLOCATION): Define.
1254 2005-03-21 Alan Modra <amodra@bigpond.net.au>
1256 * emultempl/ppc64elf.em (ppc_finish): Rename from
1257 gld${EMULATION_NAME}_finish. Call gld${EMULATION_NAME}_finish.
1258 (LDEMUL_FINISH): Update.
1259 * emultempl/hppaelf.em (hppaelf_finish, LDEMUL_FINISH): Likewise.
1260 * emultempl/m68hc1xelf.em (m68hc11elf_finish, LDEMUL_FINISH): Likewise.
1262 2005-03-18 Julian Brown <julian@codesourcery.com>
1264 * scripttempl/armbpapi.sc (.rel.dyn): Add .rel.init_array,
1266 (.rela.dyn): Add .rela.init_array, .rela.fini_array.
1267 (SECTIONS): Add .rel.other, .rela.other, .reli.other after PLT relocs.
1269 2005-03-18 H.J. Lu <hongjiu.lu@intel.com>
1271 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Don't set
1272 bfd_section when removing unused empty output sections for
1273 non-relocatable link.
1275 2005-03-19 Alan Modra <amodra@bigpond.net.au>
1277 * ldlang.c (lang_insert_orphan): Use old section_tail rather than
1278 traversing the bfd section list to find pointer to new section.
1280 2005-03-18 Alan Modra <amodra@bigpond.net.au>
1282 * scripttempl/elf.sc: When CREATE_SHLIB, put .sdata2 and .sbss2
1283 input sections into .sdata and .sbss output respectively.
1285 2005-03-16 David Heine <dlheine@tensilica.com>
1286 Bob Wilson <bob.wilson@acm.org>
1288 * ldlang.c (IGNORE_SECTION): Remove check for zero size.
1289 (lang_check_section_addresses): Ignore zero size sections here.
1291 2005-03-16 H.J. Lu <hongjiu.lu@intel.com>
1293 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Remove
1294 unused empty output sections for non-relocatable link.
1296 * ld.h (args_type): Remove gc_sections.
1298 * ldlang.c (lang_mark_used_section): New.
1299 (lang_gc_sections): Use link_info.gc_sections instead of
1300 command_line.gc_sections.
1301 * ldmain.c (main): Likewise.
1302 * lexsup.c (parse_args): Likewise.
1303 * ldlang.c (lang_process): Call lang_mark_used_section.
1305 * ldmain.c (main): Initialize link_info.gc_sections to FALSE.
1307 2005-03-16 Nick Clifton <nickc@redhat.com>
1308 Ben Elliston <bje@au.ibm.com>
1310 * configure.in (werror): New switch: Add -Werror to the
1311 compiler command line. Enabled by default. Disable via
1313 * configure: Regenerate.
1315 2005-03-16 Alan Modra <amodra@bigpond.net.au>
1317 * emulparams/elf32ppclinux.sh (OTHER_READWRITE_SECTION): Delete.
1318 (OTHER_RELRO_SECTIONS): Set this instead.
1320 2005-03-15 Nick Clifton <nickc@redhat.com>
1322 * NEWS: Add cutoff for changes in 2.16 release.
1324 2005-03-15 Mikkel Krautz <krautz@gmail.com>
1326 * configure.tgt (x86_64-elf): Add target.
1328 2005-03-15 Alan Modra <amodra@bigpond.net.au>
1330 * po/es.po: Commit new Spanish translation.
1332 2005-03-14 Alan Modra <amodra@bigpond.net.au>
1334 * ldexp.c (exp_fold_tree): Ensure return value is initialized.
1335 Tidy etree_assert case.
1337 2005-03-14 Alan Modra <amodra@bigpond.net.au>
1339 * po/tr.po: Commit new Turkish translation.
1341 2005-03-11 Daniel Jacobowitz <dan@codesourcery.com>
1343 * Makefile.am: Remove references to em68klynx.o and esparclynx.o.
1344 * Makefile.in: Regenerated.
1345 * emulparams/m68klynx.sh, emulparams/sparclynx.sh: Remove.
1347 2005-03-07 Nick Clifton <nickc@redhat.com>
1349 * po/fr.po: Updated translation.
1351 2005-03-05 Alan Modra <amodra@bigpond.net.au>
1353 * po/ld.pot: Regenerate.
1355 2005-03-02 Jan Beulich <jbeulich@novell.com>
1357 * ldmain.c (remove_output): Use unlink_if_ordinary instead of unlink.
1358 * pe-dll.c (pe_dll_generate_implib): Likewise.
1360 2005-02-24 Ben Elliston <bje@au.ibm.com>
1362 * ldfile.c: Remove GNU960 conditional code.
1363 * emultempl/gld960.em: Likewise.
1364 * emultempl/gld960c.em: Likewise.
1365 * emultempl/lnk960.em: Likewise.
1367 2005-02-24 Nick Clifton <nickc@redhat.com>
1369 * emultempl/lnk960.em (lnk960_before_parse): Remove redundant
1370 empty string from calls to concat.
1372 2005-02-23 Nick Clifton <nickc@redhat.com>
1374 * emultempl/lnk960.em (lnk960_before_parse): Terminate list of
1375 arguments passed to concat() with a NULL.
1377 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h because they
1378 define types needed by ldfile.h
1380 2005-02-23 Alan Modra <amodra@bigpond.net.au>
1382 * pe-dll.c: Warning fixes.
1383 * emultempl/sunos.em: Likewise.
1385 2005-02-22 Daniel Jacobowitz <dan@codesourcery.com>
1387 * ldlang.c (section_already_linked): Don't call
1388 bfd_section_already_linked for dynamic objects.
1390 2005-02-22 Alan Modra <amodra@bigpond.net.au>
1392 * ldexp.c: Warning fixes.
1393 * ldwrite.c: Likewise.
1394 * emultempl/elf32.em: Likewise.
1396 2005-02-21 H.J. Lu <hongjiu.lu@intel.com>
1398 * ldlang.c (lang_add_section): Check SEC_TIC54X_BLOCK for TI
1400 (lang_size_sections_1): Check SEC_COFF_SHARED_LIBRARY for COFF
1401 and ECOFF output only.
1403 2005-02-21 Alan Modra <amodra@bigpond.net.au>
1405 * config.in: Regenerate.
1406 * configure: Regenerate.
1408 2005-02-17 Zack Weinberg <zack@codesourcery.com>
1410 * ldexp.c (assigning_to_dot): New global flag.
1411 (fold_name): If assigning_to_dot is true, object immediately to
1412 an undefined symbol.
1413 (exp_fold_tree): Set and clear assigning_to_dot around the
1414 recursive call to exp_fold_tree to process the right-hand side
1415 of an assignment to the location counter.
1417 2005-02-17 Paul Brook <paul@codesourcery.com>
1419 * scripttempl/armbpabi.sc: Add dummy name to version block.
1421 2005-02-17 Alan Modra <amodra@bigpond.net.au>
1423 * ldexp.c (new_abs): Init new.str.
1425 2005-02-15 Mark Mitchell <mark@codesourcery.com>
1427 * configure.in (AC_CHECK_FUNCS): Add glob.
1428 * configure: Regenerated.
1429 * emultempl/elf32.em (<glob.h>): Do not include if HAVE_GLOB is
1431 (gld${EMULATION_NAME}_parse_ld_so_conf_include): Do not use glob
1432 if HAVE_GLOB is not defined.
1434 2005-02-16 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1436 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define
1437 lib_path if NATIVE is yes.
1439 2005-02-16 Alan Modra <amodra@bigpond.net.au>
1441 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Make
1442 an error creating fake bfd fatal.
1443 (ppc_before_allocation): Continue on after errors.
1444 (gld${EMULATION_NAME}_finish): Likewise.
1446 2005-02-15 Nick Clifton <nickc@redhat.com>
1448 * ldlex.l (YY_NO_UNPUT): Define so that the yy_unput function is
1449 not declared. It is not used and its presence causes a compile
1452 2005-02-11 Zack Weinberg <zack@codesourcery.com>
1454 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed):
1455 If st.st_ino is zero, do not treat the library as a duplicate.
1457 2005-02-10 Jakub Jelinek <jakub@redhat.com>
1459 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
1460 Set BFD_LINKER_CREATED on the stubs bfd.
1461 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
1464 2005-02-08 Mark Mitchell <mark@codesourcery.com>
1466 * scripttempl/armbpabi.sc (VERSION): Make special section symbols
1468 (Image$$ER_RO$$Base): Define whenever RELOCATING.
1469 (Image$$ER_RO$$Limit): Likewise.
1470 (SHT$$INIT_ARRAY$$Base): Likewise.
1471 (SHT$$INIT_ARRAY$$Limit): Likeise.
1473 2005-02-10 Ben Elliston <bje@au.ibm.com>
1475 * emultempl/beos.em: Remove #if 0 and #if 1 blocks.
1477 2005-02-08 Richard Sandiford <rsandifo@redhat.com>
1479 * configure.tgt (mips64*el-*-linux-gnu*): Define targ_extra_libpath
1480 to include o32 and n64 emulations.
1481 (mips64*-*-linux-gnu*): Likewise.
1483 2005-02-08 Hans-Peter Nilsson <hp@axis.com>
1485 * ldmain.c (warning_callback, warning_find_reloc): Prepend
1486 "warning: " to warning messages.
1488 2005-02-04 Alan Modra <amodra@bigpond.net.au>
1490 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't
1491 look up symbol for etree_provide here.
1493 2005-02-02 Daniel Jacobowitz <dan@codesourcery.com>
1495 * emulparams/elf32bmip.sh (TEXT_DYNAMIC): Always set.
1497 2005-02-01 Edward Welbourne <eddy@opera.com>
1498 Nick Clifton <nickc@redhat.com>
1500 * ld.texinfo (Source Code Reference): New node describing how to
1501 access linker script defined variables from source code.
1503 2005-02-01 Alan Modra <amodra@bigpond.net.au>
1505 * ld.texinfo: Clarify --as-needed operation.
1507 2005-01-31 Andrew Cagney <cagney@gnu.org>
1509 * configure: Regenerate to track ../gettext.m4.
1511 2005-01-31 Nick Clifton <nickc@redhat.com>
1513 * ldver.c (ldversion): Bump reported copyright date to 2005.
1515 2005-01-31 Nick Clifton <nickc@redhat.com>
1517 * configure.tgt: Remove obsolete targets m68k-lynxos and
1520 2005-01-28 Julian Brown <julian@codesourcery.com>
1522 * emultempl/armelf.em (fix_v4bx): New variable.
1523 (arm_elf_create_output_section_statements): Communicate fix_v4bx flag
1525 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_FIX_V4BX.
1526 (PARSE_AND_LIST_LONGOPTS): Add option --fix-v4bx.
1527 (PARSE_AND_LIST_OPTIONS): Add option --fix-v4bx.
1528 (PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX.
1529 * NEWS: Mention --fix-v4bx.
1530 * ld.texinfo: Document --fix-v4bx.
1532 2005-01-25 Mark Mitchell <mark@codesourcery.com>
1534 * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Define, so
1535 as to include .ARM.exidx$${Base,Limit}.
1536 * ld/scripttempl/armbpabi.sc: Move .plt to end of text segment.
1537 Define IMAGE$$ER_RO$${Base,Limit} and SHT$$INIT_ARRAY$${Base,Limit}.
1538 Put .init_array, .fini_array, etc. into the read-only data
1541 2005-01-25 Alan Modra <amodra@bigpond.net.au>
1543 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Formatting.
1544 (gld${EMULATION_NAME}_after_open): Ignore needed libs if they were
1545 only needed by an as-needed lib that didn't get linked.
1547 2005-01-23 Alan Modra <amodra@bigpond.net.au>
1549 * ld.texinfo (Output Section Keywords <CONSTRUCTORS>): Correct
1550 __DTOR_LIST__ description.
1552 2005-01-23 Alan Modra <amodra@bigpond.net.au>
1554 * ld.texinfo (Location Counter <dot outside sections>): Document
1555 effects of orphan section placement, and ". = ." workaround.
1556 * Makefile.in: Regenerate.
1558 2005-01-22 Richard Sandiford <rsandifo@redhat.com>
1560 * emulparams/elf32bmip.sh (OTHER_GOT_SECTIONS): Add ". = .;".
1561 * emulparams/elf32bmipn32-defs.sh (OTHER_GOT_SECTIONS): Likewise.
1563 2005-01-21 Jakub Jelinek <jakub@redhat.com>
1565 * ldgram.y (AS_NEEDED): New token.
1566 (input_list): Handle AS_NEEDED ( input_list ).
1567 * ldlex.l (AS_NEEDED): Add.
1568 * ld.texinfo: Document AS_NEEDED ().
1569 * NEWS: Mention AS_NEEDED ().
1571 2005-01-21 Ben Elliston <bje@au.ibm.com>
1573 * ldlang.c (lang_reasonable_defaults): Remove.
1574 (lang_process): Don't call lang_reasonable_defaults.
1576 * ldexp.c (exp_assop): Remove #if 0'd code.
1577 (exp_print_tree): Likewise.
1578 * ldlang.c (lang_memory_region_lookup): Likewise.
1579 (open_output): Likewise.
1580 (lang_do_assignments_1): Likewise.
1581 (lang_place_orphans): Likewise.
1582 (lang_enter_output_section_statement): Likewise.
1583 (lang_reasonable_defaults): Likewise.
1584 * ldlang.h (struct lang_input_statement_struct): Likewise.
1585 * mri.c (mri_draw_tree): Likewise.
1586 (mri_load): Likewise.
1587 * pe-dll.c (generate_reloc): Likewise.
1588 (make_import_fixup_entry): Likewise.
1589 (pe_as16): Likewise.
1590 * emultempl/beos.em (set_pe_subsystem): Likewise.
1591 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
1592 * emultempl/pe.em: Likewise.
1593 * emultempl/xtensaelf.em (xtensa_colocate_literals): Likewise.
1595 2005-01-20 Daniel Jacobowitz <dan@codesourcery.com>
1597 * Makefile.am (ALL_EMULATIONS): Add earmelfb_linux_eabi.o.
1598 (earmelfb_linux_eabi.c): New target.
1599 * Makefile.in: Regenerated.
1600 * configure.tgt (arm*b-*-linux-gnueabi): New target.
1601 * emulparams/armelfb_linux_eabi.sh: New file.
1603 2005-01-20 Nick Hudson <skrll@netbsd.org>
1606 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
1607 Handle bfd_elf32_hppa_nbsd_vec.
1609 2005-01-19 Richard Sandiford <rsandifo@redhat.com>
1611 * ldmain.h (ld_sysroot): Change type to a constant string.
1612 * ldmain.c (ld_sysroot): Likewise.
1613 (get_relative_sysroot, get_sysroot): New functions, adding command-line
1614 support for changing the sysroot.
1615 (main): Call the new functions.
1616 * lexsup.c (OPTION_SYSROOT): New.
1617 (ld_options): Add --sysroot.
1618 (parse_args): Add a dummy handler for it.
1619 * ld.texinfo (--sysroot): Document.
1620 * NEWS: Mention the new --sysroot option.
1622 2005-01-18 Alan Modra <amodra@bigpond.net.au>
1624 * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
1625 (lang_place_orphans): Don't abort on just_syms_flag, instead call
1628 2005-01-16 Danny Smith <dannysmith@users.sourceforge.net>
1630 * defilep.y (def_name, def_library): Combine into...
1631 (def_image_name): New function. Strip name to basename,
1634 2005-01-12 Mark Kettenis <kettenis@gnu.org>
1636 * configure.in: Be sure to invoke config.sub using the shell.
1637 * configure: Regenerate.
1639 2005-01-11 Alan Modra <amodra@bigpond.net.au>
1641 * configure.host: Correct sed patterns for last change.
1643 2005-01-10 Nick Clifton <nickc@redhat.com>
1646 * ldmisc.c (vfinfo): Add an extra argument: is_warning. Use this
1647 to determine whether config.make_executable should be set to FALSE in
1648 conjunction with config.fatal_warnings.
1649 (info_msg, minfo, lfinof): Pass FALSE as the extra argument.
1650 (einfo): Pass TRUE as the extra argument.
1652 2005-01-10 Greg Schaffer <gschafer@zip.com.au>
1654 * configure.host (linux targets): Use "${CC} -dumpspecs" instead
1655 of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0.
1656 (ia64-*-aix): Delete - this target is obsolete, and would be
1657 broken by this patch.
1659 2005-01-06 Eric Botcazou <ebotcazou@libertysurf.fr>
1661 * configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*.
1662 (sparc64-sun-solaris2*): New host.
1664 2005-01-06 Paul Brook <paul@codesourcery.com>
1666 * Makefie.am: Add earmelf_vxworks.
1667 * Makefile.in: Regenerate.
1668 * configure.tgt: Make arm-*-vxworks a separate case.
1669 * emulparams/armelf_vxworks.sh: New function.
1671 2005-01-06 Alan Modra <amodra@bigpond.net.au>
1673 * emultempl/ppc64elf.em (no_multi_toc): New var.
1674 (gld${EMULATION_NAME}_finish): Pass to ppc64_elf_setup_section_lists.
1675 (OPTION_NO_MULTI_TOC): Define.
1676 (PARSE_AND_LIST_LONGOPTS): Add --no-multi-toc support.
1677 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
1679 2005-01-05 Nick Clifton <nickc@redhat.com>
1682 * ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
1683 Standard's specification for parsable error messages.
1685 2005-01-04 Paul Brook <paul@codesourcery.com>
1687 * Makefile.am: Correct dependency for earmsymbian.c.
1688 * Makefile.in: Regenerate.
1690 2004-12-28 Danny Smith <dannysmith@users.sourceforge.net>
1692 * emultempl/pe.em (set_pe_subsystem): Change second arg to
1693 lang_add_entry to FALSE.
1695 2004-12-23 Nick Clifton <nickc@redhat.com>
1698 * emulparams/shelf.sh (.stack): Increase stack start address to
1701 2004-12-20 Nick Clifton <nickc@redhat.com>
1703 * ldmain.c (main): Issue an error message if -static and -shared
1706 2004-12-17 Jakub Jelinek <jakub@redhat.com>
1708 * ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
1709 * ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
1710 * ldlang.c (lang_size_sections): Use them to avoid wasting virtual
1711 address space at DATA_SEGMENT_ALIGN. Fix computation of expected
1712 PT_GNU_RELRO segment end.
1714 2004-12-14 P.J. Darcy <darcypj@us.ibm.com>
1716 * configure.tgt: Add s390x-ibm-tpf support.
1718 2004-12-16 Martin Kögler <mkoegler@auto.tuwien.ac.at>
1720 * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
1723 2004-12-07 Ben Elliston <bje@gnu.org>
1725 * ldemul.h: Forward declare struct option.
1727 2004-12-01 Danny Smith <dannysmith@users.sourceforge.net>
1729 * scripttempl/pe.sc (.data): Add .jcr subsection.
1731 2004-11-30 Paul Brook <paul@codesourcery.com>
1733 * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
1735 2004-11-30 Tero Niemela <tero_niemela@yahoo.com>
1737 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
1738 * Makefile.in: Regenerate.
1740 2004-11-26 Melissa Mears <asterisk@graces.dricas.com>
1742 * emultempl/pe.em: Add --subsystem:xbox as well as
1744 * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
1745 and numeric subsystems.
1747 2004-11-24 Alan Modra <amodra@bigpond.net.au>
1749 * ldexp.c (fold_name): Correct PR 338 fix.
1751 2004-11-19 Mark Mitchell <mark@codesourcery.com>
1753 * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
1754 (earmelf_linux_eabi.c): New target.
1755 * configure.tgt (arm*-*-linux-gnueabi): Handle it.
1756 * emulparams/armelf_linux_eabi.sh: New file.
1757 * Makefile.in: Regenerated.
1759 2004-11-19 Nick Clifton <nickc@redhat.com>
1762 * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
1763 LENGTH fields in the MEMORY command, to explicitly state that
1764 symbols cannot be used in their expressions.
1766 2004-11-19 Jon Beniston <jon@beniston.com>
1768 * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
1769 * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
1770 * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
1771 which return the length and origin of a memory.
1772 * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
1773 * NEWS: Mention support for ORIGIN and LENGTH operators.
1775 2004-11-17 Daniel Jacobowitz <dan@codesourcery.com>
1777 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
1778 a dynamic object for stubs.
1780 2004-11-04 Paul Brook <paul@codesourcery.com>
1782 * ld.texinfo: Document --default-imported-symver.
1783 * ldmain.c (main): Set link_info.default_imported_symver.
1784 * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
1785 (ld_options): Add --default-imported-symver.
1786 (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
1788 2004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
1789 Vineet Sharma <vineets@noida.hcltech.com>
1791 * Makefile.am: Add entries for new maxq-coff target.
1792 * Makefile.in: Regenerate.
1793 * configure.tgt: Add support for maxq.
1794 * emulparams/maxqcoff.sh: New File.
1795 * scripttempl/maxqcoff.sc: New linker script for target maxq.
1796 * NEWS: Mention the new target.
1798 2004-11-04 Daniel Jacobowitz <dan@debian.org>
1800 * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
1801 (earmelf_oabi.c): Remove rule.
1802 * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
1803 * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
1804 * Makefile.in: Regenerated.
1806 2004-11-04 Hans-Peter Nilsson <hp@axis.com>
1808 * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
1809 * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
1810 (FINI_START): Ditto.
1811 (INIT_END): Remove emitted "jump [sp+]".
1814 2004-11-04 Alan Modra <amodra@bigpond.net.au>
1816 * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
1817 (no_opd_opt, no_toc_opt): New static vars.
1818 (ppc_before_allocation): Don't edit opt if no_opd_opt. Call
1820 (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
1821 (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
1822 (PARSE_AND_LIST_OPTIONS): Describe new options.
1823 (PARSE_AND_LIST_ARGS_CASES): Handle them.
1825 2004-10-27 Nick Clifton <nickc@redhat.com>
1827 * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
1828 parameter to invocation of lang_section_start.
1829 * emultempl/aix.em (_handle_option): Likewise.
1831 * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
1832 eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
1833 * Makefile.in: Regenerate.
1835 2004-10-26 Mark Mitchell <mark@codesourcery.com>
1837 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
1838 __exidx_{start,end} when not relocating.
1840 2004-10-25 Mark Mitchell <mark@codesourcery.com>
1842 * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
1843 * ldexp.h (segment_type): New type.
1844 (segments): New variable.
1845 * ldexp.c (segments): New variable.
1846 (exp_print_token): Handle SEGMENT_START.
1847 (fold_binary): Likewise.
1848 * ldgram.y (SEGMENT_START): Declare it as a token.
1849 (exp): Handle SEGMENT_START.
1850 * ldlang.h (lang_address_statement_type): Add segment field.
1851 (lang_section_start): Change prototype.
1852 * ldlang.c (map_input_to_output_sections): Do not process section
1853 assignments if a corresponding SEGMENT_START has already been
1855 (lang_section_start): Add segment parameter.
1856 * ldlex.l (SEGMENT_START): Add it.
1857 * lexsup.c (seg_segment_start): New function.
1858 (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
1859 * ld.texinfo (SEGMENT_START): Document it.
1860 * emulparams/armsymbian.sh (EMBEDDED): Set it.
1861 * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
1862 base addresses. Do not map relocations.
1863 * NEWS: Mention SEGMENT_START.
1865 2004-10-26 Paul Brook <paul@codesourcery.com>
1867 * ld.texinfo: Document --default-symver.
1868 * ldmain.c (main): Set link_info.create_default_symver.
1869 * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
1870 (ld_options): Add default-symver.
1871 (parse_args): Handle OPTION_DEFAULT_SYMVER.
1873 2004-10-24 Danny Smith <dannysmith@users.sourceforge.net>
1875 * pe-dll.c (process_def_file): Don't export all symbols by default if
1876 building a position-independent executable.
1878 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
1881 * ldmain.c (reloc_overflow): Accept a pointer to struct
1882 bfd_link_hash_entry. Report symbol location for relocation
1885 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
1887 * genscripts.sh (libpath.exp): Really generate for first
1890 2004-10-19 Danny Smith <dannysmith@users.sourceforge.net>
1892 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
1893 comparison and replacement of filenames.
1895 2004-10-19 H.J. Lu <hongjiu.lu@intel.com>
1898 * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
1899 option on linker script as the one for linker script.
1901 2004-10-16 Daniel Jacobowitz <dan@debian.org>
1903 * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
1904 (check_excluded_libs): New.
1905 (load_symbols): Call check_excluded_libs.
1906 * ldlang.h (add_excluded_libs): New prototype.
1907 * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
1908 (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
1909 (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
1910 * ld.texinfo (Command Line Variables): Document --exclude-libs.
1911 (Options Specific to i386 PE Targets): Remove --exclude-libs.
1913 2004-10-15 Alan Modra <amodra@bigpond.net.au>
1915 * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
1916 failing link script assert.
1918 * ldctor.c (ldctor_add_set_entry): Fix comment typo.
1920 2004-10-14 H.J. Lu <hongjiu.lu@intel.com>
1923 * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
1924 (SMALL_DATA_DTOR): Set.
1925 * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
1926 (SMALL_DATA_DTOR): Unset.
1927 * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
1928 after .data. If SMALL_DATA_DTOR is set, move .dtors after
1931 2004-10-14 Alan Modra <amodra@bigpond.net.au>
1934 * ldlang.h (lang_output_section_statement_type): Make "next" a
1935 struct lang_output_section_statement_struct *.
1936 (struct orphan_save): Move from elf32.em. Add "name" and "flags".
1937 (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
1938 * ldlang.c (lang_output_section_find_1): Adjust for changed
1939 output_section_statement "next".
1940 (strip_excluded_output_sections): Likewise.
1941 (lang_record_phdrs): Likewise.
1942 (lang_output_section_find_by_flags): New function.
1943 (output_prev_sec_find): Move from pe.em. Adjust iterator.
1944 (lang_insert_orphan): New function. Tail end of elf32.em's
1945 place_orphan merged with that from pe.em. Allow bfd_section to
1946 be placed first. New heuristic for placing new output section
1947 statement in existing script, and accompanying split of __start
1948 symbol alignment into a separate assignment to dot.
1949 (lang_add_section): Consistently use output->bfd_section rather than
1950 an alias, section->output_section.
1951 (map_input_to_output_sections): Rename overly long arg. Move
1952 initialization of data_statement output section to here..
1953 (lang_check_section_addresses): ..from here.
1954 (print_assignment): Correct printing of etree_assert.
1955 (print_all_symbols): Don't bomb if userdata is NULL.
1956 (IGNORE_SECTION): Rearrange.
1957 * emultempl/elf32.em (output_rel_find): Adjust interator.
1958 (output_prev_sec_find): Delete.
1959 (struct orphan_save): Delete.
1960 (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
1961 flags without creating a duplicate output section statement.
1962 Revise code holding history of various orphan section placements.
1963 Allow orphan sections to place before script specified output
1964 sections. Call lang_output_section_find_by_flags when placement
1965 by name fails. Use lang_insert_orphan.
1966 * emultempl/mmo.em (output_prev_sec_find): Delete.
1967 (struct orphan_save): Delete.
1968 (mmo_place_orphan): Revise code holding history of orphan placement.
1969 Allow orphans to place before existing output sections. Use
1971 * emultempl/pe.em (output_prev_sec_find): Delete.
1972 (struct orphan_save): Delete.
1973 (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
1976 2004-10-13 Mark Mitchell <mark@codesourcery.com>
1978 * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
1981 2004-10-13 Alan Modra <amodra@bigpond.net.au>
1984 * ldcref.c (check_section_sym_xref): Delete.
1985 (check_local_sym_xref): New function.
1986 (check_nocrossrefs): Adjust call.
1987 * emultempl/pe.em (struct orphan_save): Add os_tail.
1988 (place_orphan): Backport assorted fixes from elf32.em.
1990 2004-10-12 Bob Wilson <bob.wilson@acm.org>
1992 * emultempl/xtensaelf.em: Use ISO C90 formatting.
1994 2004-10-11 Jakub Jelinek <jakub@redhat.com>
1996 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
1997 getline for portability.
1999 * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
2000 (gld${EMULATION_NAME}_parse_ld_so_conf,
2001 gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
2002 (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
2004 2004-10-11 Alan Modra <amodra@bigpond.net.au>
2007 * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
2008 rejected when linking statically.
2010 2004-10-08 Daniel Jacobowitz <dan@debian.org>
2012 * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
2014 2004-10-07 Bob Wilson <bob.wilson@acm.org>
2016 * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
2017 assembler-generated longcall sequences. Describe new --size-opt
2019 * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
2020 * emultempl/xtensaelf.em (remove_section,
2021 replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
2022 elf_xtensa_after_open): New.
2023 (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
2024 OPTION_NO_LITERAL_MOVEMENT): Define.
2025 (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
2026 (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
2027 (PARSE_AND_LIST_OPTIONS): Add --size-opt.
2028 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
2029 OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
2030 (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
2031 * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
2032 * Makefile.am (eelf32xtensa.c): Update dependencies.
2033 * Makefile.in: Regenerate.
2035 2004-10-07 Jeff Baker <jbaker@qnx.com>
2037 * lexsup.c: Handle --warn-shared-textrel option.
2038 (ld_options): Restore alpha sorting of options.
2039 * ldmain.c (main): Initialise warn_shared_info field to FALSE.
2040 * ld.texinfo: Add documentation for --warn-shared-textrel.
2041 * NEWS: Added mention of --warn-shared-textrel option.
2043 2004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
2045 * emultempl/crxelf.em (disable_relaxation): Add.
2046 (crxelf_before_allocation): Enable --relax option by default.
2047 (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
2048 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
2049 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
2051 2004-10-04 H.J. Lu <hongjiu.lu@intel.com>
2053 * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
2054 --sort-section name|alignment.
2056 * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
2057 --sort-section name|alignment.
2059 * ld.h (sort_type): New enum.
2060 (wildcard_spec): Change the type of `sorted' to sort_type.
2062 * ldgram.y (SORT): Removed.
2063 (SORT_BY_NAME): Added.
2064 (SORT_BY_ALIGNMENT): Added.
2065 (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
2067 (input_section_spec_no_keep): Updated `sorted'.
2068 (statement): Replace SORT with SORT_BY_NAME.
2070 * ldlang.c (compare_section): New function to compare 2
2071 sections with different sorting schemes.
2072 (wild_sort): Updated. Use compare_section.
2073 (update_wild_statements): New function.
2074 (lang_process): Call update_wild_statements before
2075 map_input_to_output_sections.
2077 * ldlex.l (SORT_BY_NAME): New.
2078 (SORT_BY_ALIGNMENT): New.
2079 (SORT): Return SORT_BY_NAME.
2081 * ldmain.c (sort_section): New. Defined.
2082 (main): Initialize it to none.
2084 * lexsup.c (option_values): Add OPTION_SORT_SECTION.
2085 (ld_options): Add an entry for OPTION_SORT_SECTION.
2086 (parse_args): Handle OPTION_SORT_SECTION.
2088 * mri.c (mri_draw_tree): Updated `sorted'.
2090 2004-10-04 Jakub Jelinek <jakub@redhat.com>
2092 * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
2093 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
2095 (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
2096 and . as second argument.
2097 (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
2098 * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
2099 (fold_binary): Add it here. Insert padding to make relro_end
2100 COMMONPAGESIZE bytes aligned. For DATA_SEGMENT_ALIGN in
2101 exp_dataseg_relro_adjust phase just use previously computed
2103 * ldlang.c (lang_size_sections): Set exp_data_seg.base for
2104 relro_adjust here. Call lang_size_sections_1 once more if there
2105 was too big padding at DATA_SEGMENT_RELRO_END.
2106 * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
2108 2004-10-01 Paul Brook <paul@codesourcery.com>
2110 * emulparams/armelf.sh: Add unwinding table sections.
2112 2004-09-30 Filip Navara <navaraf@reactos.com>
2114 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
2115 correct base address for position independant executables.
2116 * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
2117 executables as DLLs.
2119 2004-09-30 Paul Brook <paul@codesourcery.com>
2121 * ld.texinfo: Document --target2=abs.
2122 * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
2124 2004-09-29 Nick Clifton <nickc@redhat.com>
2126 * scripttempl/xstormy16.sc: Only perform the assignments to the
2127 ROM region when not performing a relocatable link. The ROM region
2128 does not start at address 0, but the sections will.
2129 * Makefile.am: Fix linker script dependency for the generation of
2131 * Makefile.in: Regenerate.
2133 2004-09-18 Filip Navara <navaraf@reactos.com>
2135 * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
2136 emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
2137 emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
2139 * scripttempl/pe.sc: Make the virtual address and file offset synced if
2140 the alignment is lower than the target page size.
2142 2004-09-27 Filip Navara <navaraf@reactos.com>
2144 * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
2145 def_file_parse to handle pe_def_file if NULL and prevent crash with
2148 2004-09-27 Alan Modra <amodra@bigpond.net.au>
2150 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
2151 --emit-stub-syms automatically when --emit-relocs.
2153 2004-09-24 Paul Brook <paul@codeosurcery.com>
2155 * scripttempl/elf.sc: Keep .preinit_array, .init_array and
2156 .fini_array sections.
2158 2004-09-19 Andreas Schwab <schwab@suse.de>
2160 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
2161 base so that relro end is suitably aligned.
2163 2004-09-17 Paul Brook <paul@codesourcery.com>
2165 * ld.texinfo: Rename arm-specific section. Document --target*
2166 * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
2167 * emulparams/armelf_linux.sh: Ditto.
2168 * emulparams/armelf_nbsd.sh: Ditto.
2169 * emultempl/armelf.em: Set default for TARGET2_TYPE.
2170 (target2_type): New variable.
2171 (arm_elf_before_allocation): Don't pass target1_type.
2172 (arm_elf_create_output_section_statements): New function.
2173 (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
2174 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
2175 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
2176 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
2177 * emultempl/armelf_oabi.em (_before_allocation): Remove extra
2178 argument to bfd_elf32_arm_process_before_allocation.
2180 2004-09-17 Alan Modra <amodra@bigpond.net.au>
2182 * ldexp.c (fold_name): Update u.undef.next refs.
2183 * emultempl/pe.em: Likewise.
2184 * emultempl/sunos.em: Likewise.
2186 2004-09-17 Alan Modra <amodra@bigpond.net.au>
2188 * Makefile.am: Run "make dep-am".
2189 * Makefile.in: Regenerate.
2190 * config.in: Regenerate.
2191 * configure: Regenerate.
2192 * aclocal.m4: Regenerate.
2193 * po/ld.pot: Regenerate.
2195 2004-09-16 Tomer Levi <Tomer.Levi@nsc.com>
2197 * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
2201 2004-09-16 Alan Modra <amodra@bigpond.net.au>
2203 * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
2204 to bfd_elf32_arm_process_before_allocation call.
2206 2004-09-13 Paul Brook <paul@codesourcery.com>
2208 * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
2209 * emultempl/armelf.em: Use TARGET1_IS_REL. Add --target1-{rel,abs}.
2211 2004-09-07 H.J. Lu <hongjiu.lu@intel.com>
2213 * configure: Regenerated with autconfig 2.13.
2215 2004-09-07 Andreas Schwab <schwab@suse.de>
2217 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
2218 alignment before adjusting DATA_SEGMENT_RELRO_END.
2220 2004-09-06 Mark Mitchell <mark@codesourcery.com>
2222 * emulparams/armsymbian.sh: Use armbpabi script.
2223 * scripttempl/armbpabi.sc: New script.
2225 2004-09-02 Mark Mitchell <mark@codesourcery.com>
2227 * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
2228 (earmsymbian.c): New target.
2229 * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
2230 * Makefile.in: Regenerated.
2231 * aclocal.m4: Likewise.
2232 * configure: Likewise.
2233 * emulparams/armsymbian.sh: New file.
2235 2004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
2237 * scripttempl/elf32crx.sc: Edit file with comments.
2238 (.init): Add new section.
2240 (.ctor): Control the linkage order.
2243 2004-08-27 Nick Clifton <nickc@redhat.com>
2245 * emultempl/pe.em (after_open): Do not assume that either bfd is
2248 2004-08-26 Alan Modra <amodra@bigpond.net.au>
2250 * ldlang.c (lang_init): Don't compare with TRUE.
2252 2004-08-25 Dmitry Diky <diwil@spec.ru>
2254 * emulparams/msp430all.sh: Fix RAM sizes for all targets.
2255 * scripttempl/elf32msp430.sc: Add .profiler section definition.
2257 2004-08-24 H.J. Lu <hongjiu.lu@intel.com>
2259 * ldlang.c (wildcardp): Defined as a macro with strpbrk.
2261 2004-08-19 Mark Mitchell <mark@codesourcery.com>
2263 * configure.tgt (arm*-*-symbianelf*): New target.
2264 (arm*-*-eabi*): Likewise.
2266 2004-08-19 Jakub Jelinek <jakub@redhat.com>
2268 * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
2269 (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
2270 (OPTION_NON_OVERLAPPING_OPD): Define.
2271 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
2272 --non-overlapping-opd option.
2274 2004-08-18 Alan Modra <amodra@bigpond.net.au>
2277 * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
2278 was already on the undefs list.
2280 2004-08-17 Alan Modra <amodra@bigpond.net.au>
2282 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
2283 prefix the symbol field too.
2285 2004-08-13 Alan Modra <amodra@bigpond.net.au>
2287 * ldmain.c (link_callbacks): Remove "error_handler".
2288 * ldmisc.c: Include elf-bfd.h.
2289 (vfinfo): Sort comment. Handle %A. Use %A instead of
2290 bfd_get_section_indent.
2291 (error_handler): Delete.
2292 * ldmisc.h (error_handler): Delete declaration.
2294 2004-08-10 Alan Modra <amodra@bigpond.net.au>
2296 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
2297 ppc64_elf_restore_symbols.
2299 2004-08-09 Alan Modra <amodra@bigpond.net.au>
2301 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
2302 .toc is too large on relocatable linking.
2304 2004-08-09 Alan Modra <amodra@bigpond.net.au>
2306 * emultempl/ppc64elf.em (ppc_after_open): Delete.
2307 (LDEMUL_AFTER_OPEN): Don't define.
2309 2004-08-02 Stephane Carrez <stcarrez@nerim.fr>
2311 * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
2313 2004-08-01 Stephane Carrez <stcarrez@nerim.fr>
2315 * scripttempl/elfm68hc12.sc: Align text, rodata and data section
2318 2004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
2320 * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
2322 2004-07-26 Dmitry Diky <diwil@spec.ru>
2324 * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
2325 msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
2327 * configure.tgt: Likewise.
2328 * emulparams/msp430all.sh: Likewise.
2329 * Makefile.in: Regenerate.
2331 2004-07-23 Nick Clifton <nickc@redhat.com>
2333 * emultempl/elf32.em (_place_orphan): Use an already existing
2334 section name if that section does not have any flags set.
2336 2004-07-21 H.J. Lu <hongjiu.lu@intel.com>
2338 * ldlang.c (already_linked_hash_entry): Removed.
2339 (already_linked): Likewise.
2340 (already_linked_table): Likewise.
2341 (section_already_linked): Call bfd_section_already_linked.
2342 (lang_process): Replace already_linked_table_init with
2343 bfd_section_already_linked_table_init and check return. Replace
2344 already_linked_table_free with bfd_section_already_linked_table_free.
2346 2004-07-21 Nick Clifton <nickc@redhat.com>
2348 * ldlang.c (init_os): Make sure that the newly allocated userdata
2349 structure is zeroed out.
2351 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
2353 * NEWS: Mention the new --add-needed/--no-add-needed and
2354 --as-needed/--no-as-needed options.
2356 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
2358 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
2359 check the add_needed field.
2360 (dt_needed): New struct.
2361 (gld${EMULATION_NAME}_try_needed): Change the first argument
2362 to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
2363 bit in the file where the DT_NEEDED entry comes from.
2364 (gld${EMULATION_NAME}_search_needed): Change the second
2365 argument to a pointer to struct dt_needed.
2366 (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
2367 (gld${EMULATION_NAME}_after_open): Likewise.
2369 * ld.texinfo: Add --add-needed document.
2370 * ldlang.c (new_afile): Set p->add_needed.
2371 * ldlang.h (lang_input_statement_type): Add add_needed field.
2372 * ldmain.h (add_needed): Declare.
2373 * ldmain.c (add_needed): New global var.
2374 * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
2375 OPTION_NO_ADD_NEEDED.
2376 (ld_options): Likewise.
2377 (parse_args): Handle them.
2379 2004-07-13 Christof Petig <christof@petig-baender.de>
2381 * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
2382 for endian-ness of extracted addend.
2384 2004-07-13 Danny Smith <dannysmith@usesr.sourceforge.net>
2386 * pe-dll.c (auto_export): Filter on just the import prefix,
2387 "_imp_", not "_imp__".
2389 2004-07-09 Nick Clifton <nickc@redhat.com>
2391 * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
2393 2004-07-06 Tomer Levi <Tomer.Levi@nsc.com>
2395 * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
2396 (eelf32crx.c): New target.
2397 * Makefile.in: Regenerate.
2398 * configure.tgt: Handle crx-*-elf*.
2399 * emulparams/elf32crx.sh: New file.
2400 * emultempl/crxelf.em: New file.
2401 * scripttempl/elf32crx.sc: New file.
2402 * NEWS: Mention new target.
2404 2004-07-06 Nick Clifton <nickc@redhat.com>
2406 * Makefile.am: Add eshlsymbian.c.
2407 * Makefile.in: Regenerate.
2408 * configure.tgt: Add sh*-symbian-elf target.
2409 * emulparams/shlsymbian.sh: New file. Configure the
2410 sh-symbian-elf linker scripts.
2411 * scripttemp/elf32sh-symbian.sc: New file. Linker script
2412 template for the sh-symbian-elf target.
2414 2004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2416 * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
2417 * emulparams/hppalinux.sh: Likewise.
2418 * scripttempl/elf.sc: Place .plt just before .got when .plt is in
2419 data segment and PLT_BEFORE_GOT is defined.
2421 2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
2423 * ld.texinfo (WIN32): Document PE weak symbols.
2425 2004-07-02 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2427 * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
2429 2004-07-01 H.J. Lu <hongjiu.lu@intel.com>
2431 * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
2434 2004-06-29 Alan Modra <amodra@bigpond.net.au>
2436 * ldlang.c (lang_reset_memory_regions): Save last relax pass section
2439 2004-06-24 Alan Modra <amodra@bigpond.net.au>
2441 * ldlang.c (print_output_section_statement): Don't print size before
2443 (IGNORE_SECTION): Remove bfd arg. Update all callers.
2445 * ldexp.c (fold_name): .. See below.
2446 * ldlang.c (section_already_linked, print_output_section_statement,
2447 print_input_section, insert_pad, size_input_section,
2448 lang_check_section_addresses, lang_size_sections_1,
2449 lang_size_sections, lang_do_assignments_1, lang_set_startof,
2450 lang_one_common, lang_reset_memory_regions, lang_process,
2451 lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
2452 * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
2453 * pe-dll.c (process_def_file, generate_reloc): ..
2454 * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
2455 gld${EMULATION_NAME}_before_allocation): ..
2456 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
2457 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
2458 sh64_elf_${EMULATION_NAME}_after_allocation): ..
2459 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
2460 * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
2461 ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
2462 "size" instead of "_raw_size" and "_cooked_size". Expand
2463 bfd_section_size macro invocations.
2465 2004-06-22 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
2467 * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
2468 ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
2469 ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
2471 (.tls): Define ___tls_start__ and ___tls_end__.
2473 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
2475 * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
2477 2004-06-18 Adam Nemet <anemet@lnxw.com>
2479 * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
2480 * configure: Regenerate.
2482 2004-06-15 Jakub Jelinek <jakub@redhat.com>
2484 * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
2485 .gcc_except_table output sections lost accidentally with
2488 2004-06-15 Alan Modra <amodra@bigpond.net.au>
2490 * ldwrite.c (build_link_order): Use bfd_get_section_size
2491 instead of bfd_get_section_size_before_reloc or _raw_size.
2492 * pe-dll.c (process_def_file): Likewise.
2494 2004-06-14 Alan Modra <amodra@bigpond.net.au>
2496 From Richard Wirth <r.wirth@wirthware.de>
2497 * ldlang.c (lang_finish): Don't free lang_definedness_table.
2499 2004-05-29 Alan Modra <amodra@bigpond.net.au>
2501 * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
2502 (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
2504 2004-05-28 Alan Modra <amodra@bigpond.net.au>
2506 * ldlang.c: Formatting. Wrap long lines, expand bfd_get_section_flags
2508 * lexsup.c: Formatting. Wrap long lines.
2509 * ldwrite.c: Update copyright date.
2511 * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
2512 (output_section_callback): Nor SEC_KEEP here.
2513 (gc_section_callback): Twiddle SEC_EXCLUDE here.
2514 (lang_gc_wild): Delete. Fold into..
2515 (lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage
2517 (lang_process): Always call lang_gc_sections.
2518 (lang_place_orphans): Handle SEC_EXCLUDE sections.
2519 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
2522 2004-05-26 H.J. Lu <hongjiu.lu@intel.com>
2524 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
2525 SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
2526 * ldlang.c (lang_add_section): Likewise.
2528 2004-05-26 Alan Modra <amodra@bigpond.net.au>
2530 * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
2531 sections when doing a final link. Clear SEC_EXCLUDE when doing
2532 a relocable link, except for SEC_DEBUGGING sections.
2533 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
2534 same condition here to drop SEC_EXCLUDE orphan sections.
2536 2004-05-25 Alan Modra <amodra@bigpond.net.au>
2538 * ldlang.c (lang_process): Call bfd_merge_sections later, and
2539 only when not a relocatable link.
2540 (print_input_section): Handle SEC_EXCLUDE sections.
2541 (size_input_section): Don't update dot on SEC_EXCLUDE sections.
2542 (lang_do_assignments_1): Likewise.
2543 * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
2544 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
2545 * emultempl/hppaelf.em (build_section_lists): Likewise.
2546 * emultempl/ppc64elf.em (build_toc_list): Likewise.
2547 (build_section_lists): Likewise.
2549 2004-05-23 Andreas Schwab <schwab@suse.de>
2551 * ld.texinfo (Options): Fix typo in last change.
2553 2004-05-21 Andy Chittenden <achittenden@bluearc.com>
2555 * ld.h (ld_config_type): Add new field: hash_table_size.
2556 * ldmain.c: Initialise the new field to zero. If it is non-zero
2557 after parsing the linker's command line call
2558 bfd_hash_set_default_size.
2559 * lexsup.c (option_values): Add OPTION_HASH_SIZE.
2560 (ld_options): Add hash-size.
2561 (parse_args): Parse --hash-size option. Allow
2562 --reduce-memory-overheads to set the default hash table size as
2564 * ld.texinfo: Document the new switch. Also mention that
2565 --reduce-memory-overheads can affect the hash table size.
2566 * NEWS: Mention the new feature.
2568 2004-05-19 J"orn Rennecke <joern.rennecke@superh.com>
2570 * NEWS: Mention new linker map file generation and the
2571 --reduce-memory-overheads option.
2572 * ld.texinfo: Document --reduce-memory-overheads option.
2573 * ld.h (map_symbol_def): New struct.
2574 (struct user_section_struct, section_userdata_type): Rename to:
2575 (struct lean_user_section_struct, lean_section_userdata_type).
2576 (struct fat_user_section_struct, fat_section_userdata_type): New.
2577 (SECTION_USERDATA_SIZE): Define.
2578 (args_type): New member reduce_memory_overheads.
2579 * ldlang.c (map_obstack): New static variable.
2580 (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
2581 (lang_map): Unless command_line.reduce_memory_overheads is set,
2582 initialize lists of defined symbols for each section.
2583 (print_input_section): Unless command_line.reduce_memory_overheads
2584 is set, use print_all_symbols.
2585 (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
2586 * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
2587 * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
2588 (ld_options): Add entry for --reduce-memory-overheads.
2589 (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
2591 2004-05-19 Jakub Jelinek <jakub@redhat.com>
2593 * ldgram.y (sect_constraint): New.
2594 (ONLY_IF_RO, ONLY_IF_RW): New tokens.
2595 (section): Add sect_constraint. Pass additional argument
2596 to lang_enter_output_section_statement.
2597 * mri.c (mri_draw_tree): Pass additional argument to
2598 lang_enter_output_section_statement.
2599 * emultempl/pe.em (place_orphan): Likewise.
2600 (output_prev_sec_find): Disregard output section statements with
2602 * emultempl/mmo.em (output_prev_sec_find): Likewise.
2603 (mmo_place_orphan): Pass additional argument to
2604 lang_enter_output_section_statement.
2605 * emultempl/elf32.em (output_prev_sec_find): Disregard output section
2606 statements with constraint == -1.
2607 (place_orphan): Pass additional argument to
2608 lang_enter_output_section_statement.
2609 * ldlang.c (lang_enter_overlay_section): Likewise.
2610 (lang_output_section_find_1): New.
2611 (lang_output_section_find): Use it.
2612 (lang_output_section_statement_lookup_1): New.
2613 (lang_output_section_statement_lookup): Use it.
2614 (check_section_callback, check_input_sections): New.
2615 (map_input_to_output_sections): Check if all input sections
2616 are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
2617 (strip_excluded_output_sections): Disregard output section statements
2618 with constraint == -1.
2619 (lang_record_phdrs): Likewise.
2620 (lang_enter_output_section_statement): Add constraint argument.
2621 Use lang_output_section_statement_lookup_1.
2622 * ldlang.h (lang_output_section_statement_type): Add constraint
2623 and all_input_readonly fields.
2624 (lang_enter_output_section_statement): Adjust prototype.
2625 * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
2626 * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
2627 segment if all input sections are readonly.
2629 2004-05-19 Adam Nemet <anemet@lnxw.com>
2631 * scripttempl/i386lynx.sc: Remove file.
2633 2004-05-17 Bob Wilson <bob.wilson@acm.org>
2635 * ld.texinfo (Output Section Address): Correct subsection name.
2637 2004-05-17 Adam Nemet <anemet@lnxw.com>
2639 * configure.tgt (powerpc-*-lynxos* case): New case.
2640 * configure.host (i[3-7]86-*-lynxos* case): Remove case.
2641 * emulparams/ppclynx.sh: New file.
2642 * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
2643 * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
2644 (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
2645 (eppclynx.c): New rule.
2646 * Makefile.in: Regenerate.
2648 2004-05-13 Joel Sherrill <joel@oarcorp.com>
2650 * configure.tgt (or32-*-rtems*): Switch to elf and
2651 support versioned targets.
2653 2004-05-13 Nick Clifton <nickc@redhat.com>
2655 * po/fr.po: Updated French translation.
2657 2004-05-11 Jakub Jelinek <jakub@redhat.com>
2659 * genscripts.sh: Generate -z combreloc -z now -z relro scripts
2660 for binaries, -shared and -pie.
2661 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
2662 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
2663 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
2664 (OTHER_RELRO_SECTIONS): ... this.
2665 * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
2666 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
2667 -z relro and -z norelro.
2668 (gld${EMULATION_NAME}_list_options): Add it to usage.
2669 (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
2670 -z relro scripts when appropriate.
2671 * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
2672 Create separate .got.plt section if SEPARATE_GOTPLT.
2673 Move sections which are only written during relocation handling
2674 to the beginning of RW segment. If NO_SMALL_DATA, move .got
2675 before .data. Add DATA_SEGMENT_RELRO_END directive.
2676 Include OTHER_RELRO_SECTIONS.
2677 * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
2678 * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
2679 (fold_unary): Likewise.
2680 (fold_binary): Handle -z relro.
2681 * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
2682 exp_dataseg_relro_adjust phases. Add relro_end field.
2683 * ldmain.c (main): Initialize link_info.relro to FALSE.
2684 * ldlang.c (lang_size_sections): Handle -z relro.
2686 2004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
2688 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
2690 2004-05-07 J"orn Rennecke <joern.rennecke@superh.com>
2692 * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
2693 before printing it with %W.
2695 2004-05-07 Brian Ford <ford@vss.fsi.com>
2696 DJ Delorie <dj@redhat.com>
2698 * emultempl/pe.em (real_flags): New static.
2699 (OPTION_LARGE_ADDRESS_AWARE): New define.
2700 (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
2701 (gld_${EMULATION_NAME}_list_options): Likewise.
2702 (gld${EMULATION_NAME}_handle_option): Likewise.
2703 (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
2704 * ld.texinfo: Document it.
2707 2004-05-07 Brian Ford <ford@vss.fsi.com>
2709 * NEWS: Mention DWARF 2 support for i386pe.
2711 2004-05-05 Alexandre Oliva <aoliva@redhat.com>
2713 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
2716 2004-04-30 Alan Modra <amodra@bigpond.net.au>
2718 * ldlang.c (unique_section_p): Pass section parm, return true on
2720 (output_section_callback): Adjust.
2721 * ldlang.h (unique_section_p): Update prototype.
2722 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
2724 2004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
2726 * ld.texinfo (--gc-sections): Remove restriction for
2729 2004-04-29 Brian Ford <ford@vss.fsi.com>
2731 * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
2732 for DWARF 2/3. Update stab section's syntax.
2734 2004-04-29 Alan Modra <amodra@bigpond.net.au>
2736 * pe-dll.c: Revert changes accidentally committed 2004-03-08.
2737 (fill_edata): Correct pointer arithmetic.
2739 2004-04-21 Chris Demetriou <cgd@broadcom.com>
2741 * ld.texinfo: Remove MIPS --embedded-relocs documentation.
2742 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
2743 * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
2744 (EXTRA_EM_FILE): Use mipsecoff.em
2745 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
2746 (EXTRA_EM_FILE): Use mipsecoff.em
2747 * emultempl/mipsecoff.em: Restructure to be included as an
2748 extra emulation file.
2749 (check_sections, gld${EMULATION_NAME}_after_open)
2750 (gld${EMULATION_NAME}_after_allocation)
2751 (gld${EMULATION_NAME}_get_script)
2752 (ld_${EMULATION_NAME}_emulation): Remove
2753 (gld${EMULATION_NAME}_before_parse): Rename to...
2754 (mipsecoff_before_parse): This.
2755 (LDEMUL_BEFORE_PARSE): Define.
2756 * emultempl/mipself.em: Remove file.
2757 * scripttempl/mips.sc (.rel.sdata): Do not include in output.
2758 (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
2760 * Makefile.am: Remove dependencies on emultempl/mipself.em.
2761 * Makefile.in: Regenerate.
2763 2004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
2765 * ld.texinfo (synthesizing on H8/300): Information about linker
2766 relaxation support for bit manipulation instructions and system
2767 control instructions is added.
2769 2004-04-21 Hans-Peter Nilsson <hp@axis.com>
2771 * NEWS: Mention change in DEFINED semantics.
2773 2004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
2775 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
2776 (.data): Add KEEP for .gnu.linkonce.d.*personality*.
2777 (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
2779 2004-04-21 Ben Elliston <bje@au.ibm.com>
2781 * ld.texinfo (Simple Example): Add missing punctuation.
2783 2004-04-20 Chris Demetriou <cgd@broadcom.com>
2785 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
2787 2004-04-19 Jakub Jelinek <jakub@redhat.com>
2789 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
2792 2004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
2794 * scriptempl/pe.sc: Put numbered .ctors.* after .ctors
2795 with default priority. Likewise for dtors.
2797 2004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2799 * configure.host: Remove mips*-dec-bsd* target.
2800 * configure.tgt: Likewise.
2802 2004-04-08 Richard Sandiford <rsandifo@redhat.com>
2804 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
2805 * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
2806 * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
2807 * emultempl/irix.em: New file.
2808 * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
2810 * Makefile.in: Regenerate.
2812 2004-04-01 Paul Brook <paul@codesourcery.com>
2814 * emultempl/armelf.em (byteswap_code): Add.
2815 (arm_elf_before_allocation): Pass extra parameter.
2816 (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
2817 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
2818 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
2819 * emultempl/armelf_oabi.em: Pass extra parameter.
2820 * ld.texinfo: Document --be8.
2822 2004-03-30 Stan Shebs <shebs@apple.com>
2824 Remove long-obsolete MPW support.
2825 * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
2826 * Makefile.am (mpw): Remove file-presynthesizing actions.
2827 * Makefile.in: Likewise.
2828 * ldfile.c (slash): Remove MPW case.
2829 * ldlex.l [MPW]: Remove unused definition.
2831 2004-03-30 Galit Heller <Galit.Heller@nsc.com>
2833 * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
2834 (eelf32cr16c.c): New target.
2835 * Makefile.in: Regenerate.
2836 * configure.tgt: Handle cr16c-*-elf*.
2837 * emulparams/elf32cr16c.sh: New file.
2838 * scripttempl/elfcr16c.sc: Likewise
2839 * NEWS: Mention support for new target.
2841 2004-03-30 Nick Clifton <nickc@redhat.com>
2843 * po/sv.po: Updated Swedish translation.
2845 2004-03-27 Alan Modra <amodra@bigpond.net.au>
2847 * emultempl/elf32.em: Update new bfd_elf_discard_info name.
2848 * emultempl/hppaelf.em: Likewise.
2849 * emultempl/ppc64elf.em: Likewise.
2850 * emultempl/sh64elf.em: Likewise.
2852 2004-03-25 Alan Modra <amodra@bigpond.net.au>
2854 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
2855 size_dynamic_sections call.
2857 2004-03-23 Alan Modra <amodra@bigpond.net.au>
2860 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
2861 link_info.wrap_char.
2863 2004-03-20 H.J. Lu <hongjiu.lu@intel.com>
2865 * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
2866 or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
2868 2004-03-20 Alexandre Oliva <aoliva@redhat.com>
2870 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
2872 2004-03-19 Alan Modra <amodra@bigpond.net.au>
2874 * config.in: Regenerate.
2875 * po/ld.pot: Regenerate.
2877 2004-03-18 Alan Modra <amodra@bigpond.net.au>
2879 * ld.texinfo: Add --as-needed doco.
2880 * ldmain.c (as_needed): New global var.
2881 * ldmain.h (as_needed): Declare.
2882 * lexsup.c (option_values): Add OPTION_AS_NEEDED and
2883 OPTION_NO_AS_NEEDED.
2884 (ld_options): Likewise.
2885 (parse_args): Handle them.
2886 * ldlang.h (lang_input_statement_type): Add as_needed field.
2887 * ldlang.c (new_afile): Set p->as_needed.
2888 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
2889 (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
2890 (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
2892 * ldlang.c (open_input_bfds): Remove useless cast.
2893 (lang_do_assignments_1): Likewise.
2894 (lang_for_each_input_section): Delete.
2896 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2898 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
2900 2004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
2902 * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
2903 private when building implib.
2905 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
2907 * ldlang.c (lang_add_section): Don't force SEC_LOAD on
2909 (IGNORE_SECTION): Ignore .tbss sections too.
2910 (lang_size_sections_1): .tbss sections do not advance dot.
2912 2004-03-01 Andreas Schwab <schwab@suse.de>
2914 * ld.texinfo (Options): Fix example for --wrap.
2916 2004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
2918 * pe-dll.c (fill_edata): Check that exported_symbol_sections is
2921 2004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
2923 * ldlang.c (lang_check): Use %P, not %E, in error message.
2925 2004-02-23 Nathan Sidwell <nathan@codesourcery.com>
2927 * ldlang.h (struct lang_output_section_state): Change processed
2929 * ldexp.c (check, invalid): Remove.
2930 (fold_name): Move valid_p assignments. Create undefined symbol
2931 when needed. Directly exampine section's processd flag.
2932 * ldlang.c (lang_output_section_statement_lookup): Adjust
2933 processed field init.
2934 (lang_size_sections_1): Allow LOADADDR when determining section's
2935 VMA. Adjust error message. Fold data statement's expr.
2936 (lang_size_sections): Correctly increment lang_statement_iteration.
2938 2004-02-23 Alan Modra <amodra@bigpond.net.au>
2940 * ldexp.c (fold_tree): Follow indirect symbols.
2942 2004-02-20 Nathan Sidwell <nathan@codesourcery.com>
2944 * ldgram.y (exp): Add two operand ALIGN.
2945 * ldexp.c (fold_binary): Add ALIGN_K case.
2946 * ld.texinfo (ALIGN): Document two operand version.
2948 2004-02-19 Nathan Sidwell <nathan@codesourcery.com>
2950 * ldlang.c (map_input_to_output_sections): Initialize sections
2951 mentioned in a data statement expression.
2952 (lang_do_assignments_1): Add data statement's expression's
2955 2004-02-18 Nathan Sidwell <nathan@codesourcery.com>
2957 * ldgram.y (statement_anywhere): Add assert rule.
2958 * ldlang.c (exp_init_os): Add assert case.
2960 2004-02-14 Andrew Cagney <cagney@redhat.com>
2962 * ldmain.c (remove_output): Call bfd_cache_close.
2964 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
2966 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
2967 .MIPS.content* and .MIPS.events* sections.
2969 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
2971 * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
2972 .note.gnu.arm.ident to after allocated sections. Mark its
2975 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
2977 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
2978 * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
2979 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
2980 * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
2981 * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
2983 2004-02-05 Nick Clifton <nickc@redhat.com>
2985 * emultempl/pe.em (_after_open): Fix typo in previous delta.
2987 2004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
2989 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
2991 2004-01-28 Alan Modra <amodra@bigpond.net.au>
2993 * genscripts.sh: Fix typo.
2995 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
2997 2004-01-24 Jakub Jelinek <jakub@redhat.com>
2999 * emulparams/elf64_ia64.sh: Put .rela.opd into
3000 OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
3002 2004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
3004 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
3005 * ld.texinfo (--omagic): Note that writable text section
3006 does not conform to published PE-COFF specs.
3007 (--enable-auto-import): Likewise.
3009 2004-01-15 Alan Modra <amodra@bigpond.net.au>
3011 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
3013 2004-01-13 Nick Clifton <nickc@redhat.com>
3015 * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
3016 which if true will prevent the LMA region being used as a
3017 replacement for a default VMA region.
3018 (lang_leave_output_section_statement): Pass extra parameter.
3019 (lang_leave_overlay): Likewise.
3020 * ld.texinfo (Output Section LMA): Document that the LMA
3021 region can be set to the VMA region if no VMA has been set.
3022 * ldlang.h (struct lang_output_section_phdr_list): Create a
3023 typedef for this type. Minor formatting fixes.
3025 2004-01-13 Nick Clifton <nickc@redhat.com>
3027 * ldlang.c (lang_size_sections_1): If dot is advanced, then
3028 assume that the section should be allocated.
3030 2004-01-13 Alan Modra <amodra@bigpond.net.au>
3032 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
3033 sections. Do ignore SEC_NEVER_LOAD sections.
3034 (lang_size_sections_1): Remove test made redundant with the above.
3036 2004-01-09 Alan Modra <amodra@bigpond.net.au>
3038 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
3039 program_header_size.
3041 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
3043 2003-11-28 Alexandre Oliva <aoliva@redhat.com>
3044 * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
3045 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
3046 * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
3047 (MAXPAGESIZE): Set to 64Kb.
3048 (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
3049 __ROFIXUP_END__. Don't map .rofixup.got any more.
3050 * emulparams/elf32frv.sh (NOP): Set.
3051 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
3052 * configure.tgt: Add frv-*-*linux*.
3053 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
3054 * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
3055 (eelf32frvfd.c): New.
3056 * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
3057 * emulparams/elf32frv.sh: Reverted previous two patches.
3058 * emulparams/elf32frvfd.sh: New.
3059 * Makefile.in: Rebuilt.
3060 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
3061 * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
3062 .rofixup.got to .rofixup.
3063 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
3064 * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
3065 (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
3067 2004-01-05 Jakub Jelinek <jakub@redhat.com>
3069 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
3070 * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
3072 2004-01-03 Alan Modra <amodra@bigpond.net.au>
3074 * ldexp.c (align_n): Make static.
3075 * ldexp.h (align_n): Delete declaration.
3076 * ldlang.h (lang_enter_output_section_statement): Remove
3078 * ldlang.c (lang_enter_output_section_statement): Likewise.
3079 (TO_ADDR, TO_SIZE): Define.
3080 (opb_shift): New var.
3081 (init_opb): New function.
3082 (print_input_section): Call init_opb and use TO_ADDR.
3083 (print_data_statement, print_reloc_statement): Likewise.
3084 (print_padding_statement): Likewise.
3085 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
3086 (lang_check_section_addresses): Likewise.
3087 (lang_size_sections_1): Likewise.
3088 (lang_do_assignments_1): Likewise.
3089 (lang_set_startof): Likewise.
3090 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
3091 (lang_process): Call init_opb.
3092 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
3093 (lang_enter_overlay_section): Adjust
3094 lang_enter_output_section_statement call.
3095 * ldgram.y: Likewise.
3096 * mri.c (mri_draw_tree): Likewise.
3097 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
3098 * emultempl/mmo.em (mmo_place_orphan): Likewise.
3099 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
3101 * ldfile.c (ldfile_set_output_arch): Add defarch param.
3102 * ldfile.h (ldfile_set_output_arch): Ditto.
3103 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
3104 ldfile_set_output_arch.
3105 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
3106 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
3107 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
3108 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
3109 * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
3110 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
3111 * ldgram.y: Adjust ldfile_set_output_arch call.
3112 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
3113 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
3114 * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
3115 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
3116 * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
3117 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
3118 * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
3120 2004-01-02 Bernardo Innocenti <bernie@develer.com>
3122 * configure.tgt: Add m68k-uClinux target.
3124 For older changes see ChangeLog-0203
3130 version-control: never