1 2005-12-22 Santosh Raktawan <santoshr2@kpitcummins.com>
3 * ld/emulparms/h8300helf.sh (TINY_READONLY_SECTION,
4 TINY_DATA_SECTION, TINY_BSS_SECTION): Define.
5 * ld/emulparms/h8300self.sh: Likewise.
6 * ld/emulparms/h8300sxelf.sh: Likewise.
7 * ld/scripttempl/elf.sc: Add TINY_READONLY_SECTION,
8 TINY_DATA_SECTION, TINY_BSS_SECTION.
10 2005-12-19 H.J. Lu <hongjiu.lu@intel.com>
13 * ldlang.c (output_statement_newfunc): Revert the change made on
15 (output_prev_sec_find): Likewise.
16 * ldlang.h (lang_statement_list_type): Likewise.
18 2005-12-16 Nathan Sidwell <nathan@codesourcery.com>
20 Second part of ms1 to mt renaming.
21 * emulparams/elf32mt.sh (ARCH, OUTPUT_FORMAT): Adjust.
23 2005-12-14 Jakub Jelinek <jakub@redhat.com>
25 * scripttempl/elf.sc: Put .gnu.linkonce.d.rel.ro.* sections into
26 .data.rel.ro output section. Fix a pasto for -z nocombreloc
27 .rela.data.rel.ro section content.
29 2005-12-12 Nathan Sidwell <nathan@codesourcery.com>
31 * Makefile.am (ALL_EMULATIONS): Replace ms1 files with mt files.
32 (eelf32mt.c): Update target name and dependencies.
33 * Makefile.in: Rebuilt.
34 * configure.tgt: Replace ms1 arch with mt arch.
35 * emulparams/elf32mt.sh: Renamed from elf32ms1.sh. Update
38 2005-12-11 Bernhard Fischer <aldot@gcc.gnu.org>
40 * scripttempl/armbpabi.sc: Fix typo in comment for .ctors.
41 * scripttempl/elf.sc: Ditto.
42 * scripttempl/elf32sh-symbian.sc: Ditto.
43 * scripttempl/elf_chaos.sc: Ditto.
44 * scripttempl/elfd10v.sc: Ditto.
45 * scripttempl/elfd30v.sc: Ditto.
46 * scripttempl/elfxtensa.sc: Ditto.
47 * scripttempl/iq2000.sc: Ditto.
48 * scripttempl/xstormy16.sc: Ditto.
50 2005-12-08 Alan Modra <amodra@bigpond.net.au>
52 * emultempl/ppc32elf.em (emit_stub_syms): New var.
53 (ppc_after_open): Pass it to ppc_elf_select_plt_layout.
54 (PARSE_AND_LIST_PROLOGUE <OPTION_STUBSYMS>): Define.
55 (PARSE_AND_LIST_LONGOPTS): Add emit-stub-syms.
56 (PARSE_AND_LIST_OPTIONS): Describe emit-stub-syms.
57 (PARSE_AND_LIST_OPTIONS): Handle it.
59 2005-12-08 Alan Modra <amodra@bigpond.net.au>
61 * pe-dll.c (build_filler_bfd): Conform error message to standard.
62 (pe_dll_generate_implib): Use %E in error message.
63 (add_bfd_to_link): Likewise.
64 (pe_implied_import_dll): Likewise.
66 2005-12-07 Thiemo Seufer <ths@networkno.de>
67 H.J. Lu <hongjiu.lu@intel.com>
70 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment):
71 Adjust bfd_elf_record_link_assignment call.
73 * ldexp.c (exp_fold_tree_1): Remove call to bfd_hide_symbol.
75 2005-11-25 Jan Beulich <jbeulich@novell.com>
77 * Makefile.am: Make configdoc.texi writeable before trying
79 * Makefile.in: Refresh.
81 2005-11-24 Alan Modra <amodra@bigpond.net.au>
83 * ldlang.c (lang_output_section_find_by_flags): Add match_type param.
84 Run two passes, first using match_type, second without.
85 * ldlang.h (lang_match_sec_type_func): New typedef.
86 (lang_output_section_find_by_flags): Update prototype.
87 bfd_match_sections_by_type and lang_output_section_find_by_flags.
88 * emultempl/pe.em (place_orphan): Likewise.
90 2005-11-24 Alan Modra <amodra@bigpond.net.au>
92 * ldlang.c (lang_insert_orphan): Skip first assignment to dot
93 in script when looking for place to insert orphan statements.
95 2005-11-18 Alan Modra <amodra@bigpond.net.au>
97 * emulparams/elf64ppc.sh (.tocbss): Use new section alignment scheme.
98 (.got, .toc1, .opd): Likewise.
100 2005-11-18 Alan Modra <amodra@bigpond.net.au>
102 * ldlang.c (lang_size_sections_1): Revert 2005-11-16 functional
103 changes to section alignment.
104 * ldmisc.c (vfinfo): Handle %ld and %lu.
106 2005-11-16 Mark Mitchell <mark@codesourcery.com>
108 * Makefile.am (configdoc.texi): Set top_srcdir in configdoc.texi..
109 * Makefile.in: Regenerated.
110 * ld.texinfo: Include configdoc.texi and ldver.texi in man pages.
111 Add @file documentation.
113 2005-11-17 Alan Modra <amodra@bigpond.net.au>
115 * ldlang.h (lang_input_section_type): Remove "ifile" field.
116 (lang_insert_orphan, lang_add_section): Update prototypes.
117 * ldlang.c (lang_insert_orphan): Remove "file" param.
118 (lang_add_section): Likewise. Update all callers.
119 (wild_sort): Get an input section's bfd via "section->owner".
120 (size_input_section): Access just_syms_flag via bfd usrdata.
121 (lang_place_orphans): Update ldemul_place_orphan call.
122 * ldemul.h (ldemul_place_orphan): Remove input_statement param.
123 (struct ld_emulation_xfer_struct <place_orphan>): Likewise.
124 * ldemul.c (ldemul_place_orphan): Likewise.
125 * ldwrite.c (build_link_order): Access just_syms_flag via bfd usrdata.
126 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
127 * emultempl/beos.em (sort_by_file_name): Access bfd by section->owner.
128 (sort_sections): Likewise.
129 (place_orphan): Remove "file" param. Adjust lang_add_section call.
130 * emultempl/elf32.em (place_orphan): Remove "file" param. Adjust
131 lang_add_section and lang_insert_orphan calls.
132 * emultempl/hppaelf.em (hppaelf_add_stub_section): Adjust
133 lang_add_section call.
134 (build_section_lists): Access just_syms_flag via bfd usrdata.
135 * emultempl/m68hc1xelf.em (m68hc11elf_add_stub_section): Adjust
136 lang_add_section call.
137 * emultempl/mmo.em (mmo_place_orphan): Remove "file" param. Adjust
138 lang_add_section and lang_insert_orphan calls.
139 * emultempl/pe.em (place_orphan): Likewise. Access bfd via section
141 * emultempl/ppc64elf.em (ppc_add_stub_section): Adjust
142 lang_add_section call.
143 (build_toc_list): Access just_syms_flag via bfd usrdata.
144 (build_section_lists): Likewise.
145 * emultempl/xtensaelf.em (elf_xtensa_place_orphan): Remove "file"
146 param. Adjust place_orphan call.
147 (ld_build_required_section_dependence): Access bfd via section owner.
149 2005-11-16 Alan Modra <amodra@bigpond.net.au>
151 * ldlang.h (lang_output_section_statement_type): Add prev.
152 * ldlang.c (new_afile): Always init header.type.
153 (output_statement_newfunc): Set os.prev.
154 (output_prev_sec_find): Use os.prev.
155 (lang_enter_output_section_statement): Formatting.
156 (lang_final, lang_add_target, lang_add_fill): Likewise.
157 (lang_add_data, lang_add_reloc): Likewise.
158 (lang_add_attribute): Only alloc the header.
160 2005-11-16 Alan Modra <amodra@bigpond.net.au>
162 * ld.texinfo (Forced Output Alignment): Specify that this is an
163 alignment increase, not an override.
164 * ldlang.c (init_os): Set output section alignment here..
165 (lang_add_section): ..rather than here.
166 (lang_size_sections_1): Consolidate alignment code. Warn if section
167 alignment affects start address when explicit address given.
169 2005-11-07 Steve Ellcey <sje@cup.hp.com>
171 * configure: Regenerate after modifying bfd/warning.m4.
173 2005-11-07 Olaf Hering <olh@suse.de>
175 * ldmain.c (main): Add \n to error message.
177 2005-11-04 Alan Modra <amodra@bigpond.net.au>
179 * ldlang.c (struct output_statement_hash_entry): Don't indirect to os.
180 (output_statement_newfunc): Rewrite.
181 (lang_output_section_find_1): Merge into..
182 (lang_output_section_find): ..here.
183 (lang_output_section_statement_lookup_1): Rewrite to handle
184 multiple sections with the same name.
185 (output_statement_table_init): Commonise error message.
186 (lang_init, open_output): Likewise.
188 2005-11-03 Paul Brook <paul@codesourcery.com>
190 * scripttempl/elf.sc: Add .init_array.* and .fini_array.*.
191 * scripttempl/armbpabi.sc: Make init/fini array consistent with
193 * scripttempl/elf32sh-symbian.sc: Ditto.
194 * scripttempl/elfxtensa.sc: Ditto.
196 2005-11-03 Alan Modra <amodra@bigpond.net.au>
198 * ldlang.h (lang_output_section_statement_type): Rearrange. Remove
199 memspec. Make "processed" a bitfield.
200 (lang_data_statement_type, lang_reloc_statement_type): Rename
201 output_vma to output_offset.
202 * ldlang.c (lang_output_section_statement_lookup_1): Init
203 all_input_readonly. Don't init memspec.
204 (init_os): Remove incorrect comment.
205 (print_data_statement, print_reloc_statement): Adjust for
206 lang_data_statement_type and lang_reloc_statement_type change.
207 (lang_size_sections_1, lang_add_reloc): Likewise.
208 * ldwrite.c (build_link_order): Likewise.
210 2005-10-30 Mark Mitchell <mark@codesourcery.com>
212 * lexsup.c (help): Document "@FILE".
214 2005-10-30 H.J. Lu <hongjiu.lu@intel.com>
216 * Makefile.am: Run "make dep-am".
217 * Makefile.in: Regenerated.
219 * dep-in.sed: Replace " ./" with " ".
221 2005-10-25 Arnold Metselaar <arnold.metselaar@planet.nl>
223 * Makefile.am: Add support for Z80
224 * Makefile.in: Regenerated
225 * configure.tgt: Add z80-*-coff
226 * emulparams/z80.sh: New file.
227 * emultempl/z80.em: New file.
228 * scripttempl/z80.sc New file.
229 * NEWS: Mention this new support.
231 2005-10-25 Alan Modra <amodra@bigpond.net.au>
233 * po/ld.pot: Regenerate.
235 2005-10-25 Chris Metcalf <cdmetcalf@comcast.net>
237 * ld.texinfo (--reduce-memory-overheads): Fix typo.
239 2005-10-23 H.J. Lu <hongjiu.lu@intel.com>
242 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
243 bfd_match_sections_by_type to match section types.
245 * ldlang.c (init_os): Take the input section. Call
246 bfd_init_private_section_data if the input section isn't NULL.
247 (exp_init_os): Pass NULL to init_os.
248 (map_input_to_output_sections): Likewise.
249 (lang_add_section): Pass the input section to init_os.
251 2005-10-19 Paul Brook <paul@codesourcery.com>
253 * emulparams/armelf.sh: Add .ARM.attributes to OTHER_SECTIONS.
255 2005-10-15 H.J. Lu <hongjiu.lu@intel.com>
258 * emultempl/elf32.em: Include "elf-bfd.h".
259 (gld${EMULATION_NAME}_place_orphan): Check section type and
260 don't use section name for ELF input sections.
262 * ld.texinfo: Document orphan section processing.
264 * ldlang.c (lang_output_section_find_by_flags): Match section
265 types by calling bfd_match_sections_by_type.
267 2005-10-13 Mark Mitchell <mark@codesourcery.com>
269 * ld.texino: Describe double-quoted string syntax for version
271 * ldlang.h (lang_new_vers_pattern): Add literal_p parameter.
272 * ldgram.y (vers_defns): Allow NAME as well as VERS_IDENTIFIER.
273 Adjust calls to lang_new_vers_pattern to pass literal_p argument.
274 * ldlang.c (lang_vers_match): Fix indentation. Do not glob-match
275 version nodes without a pattern.
276 (lang_new_vers_pattern): Add literal_p parameter.
277 (lang_do_version_exports_section): Pass it.
279 2005-10-12 Mark Mitchell <mark@codesourcery.com>
281 * NEWS: Mention @file.
283 2005-10-05 H.J. Lu <hongjiu.lu@intel.com>
286 * ldcref.c (check_refs): Accept bfd_boolean.
287 (check_local_sym_xref): Pass FALSE to check_refs.
288 (check_nocrossref): Pass TRUE to check_refs.
289 (check_refs_info): Add bfd_boolean.
290 (check_refs): Add bfd_boolean to check_refs_info.
291 (check_reloc_refs): Match relocations with proper symbols.
293 * ldmisc.c (vfinfo): Don't add extra ":\n".
295 2005-10-05 Danny Smith <dannysmith@users.sourceforge.net>
297 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Set
298 default entry symbol to ENTRY here.
299 * scripttempl/pe.sc: Not here.
301 2005-09-30 James E Wilson <wilson@specifix.com>
303 * ldlang.c (lang_startup): Add missing ": " to einfo call.
305 2005-09-30 H.J. Lu <hongjiu.lu@intel.com>
307 * Makefile.am: Run "make dep-am".
308 * Makefile.in: Regenerated.
309 * aclocal.m4: Likewise.
311 2005-09-30 H.J. Lu <hongjiu.lu@intel.com>
313 * ldlang.c (output_statement_hash_entry): New type.
314 (output_statement_table): New variable for hash table.
315 (output_statement_newfunc): New function.
316 (output_statement_table_init): Likewise.
317 (output_statement_table_free): Likewise.
318 (lang_init): Call output_statement_table_init.
319 (lang_finish): Renamed to ...
321 (lang_process): Updated.
322 (lang_finish): New function.
323 (lang_output_section_find_1): Use hash table.
324 (lang_output_section_statement_lookup_1): Likewise.
326 * ldlang.h (lang_finish): New.
328 * ldmain.c (main): Call lang_finish.
330 2005-09-30 Mark Mitchell <mark@codesourcery.com>
332 * ldmain.c (main): Use expandargv.
334 2005-09-30 Catherine Moore <clm@cm00re.com>
336 * Makefile.am: Bfin support.
337 * Makefile.in: Regenerated.
338 * aclocal.m4: Regenerated.
339 * configure.tgt: Bfin support.
340 * emulparams/bfin.sh: New file.
341 * emultempl/bfin.em: New file.
343 2005-09-30 Matthias Kurz <mk@baerlap.north.de>
345 * ld.h: Prevent the inclusion of <libintl.h> from the Solaris
346 version of <locale.h> when ENABLE_NLS is not defined.
348 2005-09-27 H.J. Lu <hongjiu.lu@intel.com>
350 * ld.texinfo (ALIGN): Document it as forcing output section
353 * ldgram.y (ALIGN): Support it for forcing output section
356 2005-09-20 Alan Modra <amodra@bigpond.net.au>
358 * ldlang.h (lang_output_section_statement_struct): Change type of
359 "processed" to bfd_boolean.
360 * ldexp.c (fold_name): Update references to os->processed.
361 * ldlang.c (lang_output_section_statement_lookup_1): Likewise.
362 (lang_size_sections_1): Likewise.
363 (lang_reset_memory_regions): Likewise.
366 * ldlang.c (lang_size_sections_1): Process addr_tree earlier,
367 so that unused output section statements affect dot.
369 2005-09-08 Jakub Jelinek <jakub@redhat.com>
371 * ld.texinfo: Document -z {no,}execstack, -z {no,}relro
372 and --eh-frame-hdr options.
374 2005-09-07 Alan Modra <amodra@bigpond.net.au>
376 * ldexp.c (fold_name <SIZEOF>): Return 0 for non-existent section.
377 (exp_fold_tree_1): Print assert message only in final stage of
378 linking. Trigger assertion failure if expression cannot be
381 2005-09-06 H.J. Lu <hongjiu.lu@intel.com>
384 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Check
385 --just-symbols on DSO.
387 2005-08-18 Alan Modra <amodra@bigpond.net.au>
389 * scripttempl/elf.sc: Remove commented out defines.
391 2005-08-18 Alan Modra <amodra@bigpond.net.au>
393 * emulparams/a29k.sh: Delete.
394 * emulparams/ebmon29k.sh: Delete.
395 * emulparams/sa29200.sh: Delete.
396 * Makefile.am: Remove a29k support.
397 * configure.tgt: Likewise.
398 * ld.texinfo: Likewise.
399 * Makefile.in: Regenerate.
401 2005-08-17 Jakub Jelinek <jakub@redhat.com>
403 * ldgram.y (vers_defns): Don't lose pattern list before
404 extern NAME {}. Handle global, local and extern symbol names.
406 2005-08-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
408 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
409 Don't increment rel_count of .cranges here. Set rawsize of .cranges.
411 2005-08-10 Nick Clifton <nickc@redhat.com>
413 * pe-dll.c (pe_exe_fill_sections): Call lang_reset_memory_regions
414 before lang_size_sections.
416 2005-08-09 Alan Modra <amodra@bigpond.net.au>
418 * emulparams/hppa64linux.sh (LARGE_SECTIONS): Remove .tbss.
420 2005-08-08 Eric Doenges <Eric.Doenges@betty-tv.com>
422 * Makefile.am (ALL_EMULATIONS): Add msp430x21xx variants.
423 Add rules to build these emulations.
424 * Makefile.in: Regenerate.
425 * configure.tgt (msp430): Add the new variants to the
426 targ_extra_emuls list.
427 * emulparams/msp430all.sh: Add entries for the msp430x21xx
430 2005-08-05 H.J. Lu <hongjiu.lu@intel.com>
432 * ld.texinfo: Document PROVIDE_HIDDEN.
434 * ldexp.c (exp_fold_tree_1): Hide a provided symbol if asked.
435 (exp_provide): Add and set hidden.
437 * ldexp.h (etree_type): Add hidden to assign.
439 * ldgram.y (PROVIDE_HIDDEN): New.
440 * ldlex.l (PROVIDE_HIDDEN): Likewise.
442 * scripttempl/elf.sc: Use PROVIDE_HIDDEN on array bound
445 2005-08-05 Alan Modra <amodra@bigpond.net.au>
447 * emulparams/elf_x86_64.sh: Revert last change.
448 * scripttempl/elf.sc (REL_LARGE, LARGE_SECTIONS): Define here.
450 2005-08-05 Alan Modra <amodra@bigpond.net.au>
452 * emulparams/armelf.sh (OTHER_BSS_END_SYMBOLS): Split out from
454 * emulparams/armelf_linux.sh: Likewise.
455 * emulparams/armnto.sh: Likewise.
456 * emulparams/criself.sh: Likewise.
457 * emulparams/elf32mcore.sh: Likewise.
458 * emulparams/criself.sh (OTHER_SYMBOLS): Define.
459 * emulparams/crislinux.sh (OTHER_SYMBOLS): Define.
460 (OTHER_END_SYMBOLS): Don't define.
461 * emulparams/elf32fr30.sh: Likewise.
462 * emulparams/elf64mmix.sh: Likewise.
463 * emulparams/hppa64linux.sh: Likewise.
464 * emulparams/m32relf.sh: Likewise.
465 * emulparams/vxworks.sh: Likewise.
466 * scripttempl/armbpabi.sc (OTHER_BSS_SECTIONS): Delete.
467 (OTHER_BSS_END_SYMBOLS): Add.
468 (OTHER_END_SYMBOLS): Move before current end sym definitions.
469 (OTHER_SYMBOLS): Replace OTHER_END_SYMBOLS near end of script.
470 * scripttempl/elf.sc: Likewise.
471 * scripttempl/elf32sh-symbian.sc: Likewise.
472 * scripttempl/elf_chaos.sc: Likewise.
473 * scripttempl/elfxtensa.sc: Likewise.
474 * scripttempl/iq2000.sc: Likewise.
475 * scripttempl/xstormy16.sc: Likewise.
477 * scripttempl/elf.sc (LBSS, LARGE_SECTIONS): Delete.
478 (REL_LDATA, REL_LBSS, REL_LRODATA): Delete.
479 (REL_LARGE, LARGE_SECTIONS): Add.
480 * emulparams/elf_x86_64.sh (LARGE_SECTIONS): Define as script text.
482 * emulparams/hppa64linux.sh (OTHER_BSS_SECTIONS): Don't define.
483 (LARGE_SECTIONS): Define.
484 * emulparams/hppa64linux.sh (OTHER_BSS_SECTIONS): Don't define.
485 (LARGE_SECTIONS): Define.
487 2005-08-04 Alan Modra <amodra@bigpond.net.au>
489 * ldemul.c (ldemul_do_assignments, do_assignments_default): Delete.
490 * ldemul.h (ldemul_do_assignments, do_assignments_default): Delete.
491 (struct ld_emulation_xfer_struct): Remove do_assignments field.
492 * ldlang.c (lang_do_assignments): Don't call ldemul_do_assignments.
493 * emulparams/elf32ppc.sh (SDATA_START_SYMBOLS): New.
494 (SDATA2_START_SYMBOLS, SBSS_START_SYMBOLS, SBSS_END_SYMBOLS): New.
495 * emultempl/aix.em (ld_*_emulation): Delete do_assignments init.
496 * emultempl/armcoff.em: Likewise.
497 * emultempl/beos.em: Likewise.
498 * emultempl/generic.em: Likewise.
499 * emultempl/gld960.em: Likewise.
500 * emultempl/gld960c.em: Likewise.
501 * emultempl/linux.em: Likewise.
502 * emultempl/lnk960.em: Likewise.
503 * emultempl/m68kcoff.em: Likewise.
504 * emultempl/pe.em: Likewise.
505 * emultempl/sunos.em: Likewise.
506 * emultempl/ticoff.em: Likewise.
507 * emultempl/vanilla.em: Likewise.
508 * emultempl/elf32.em: Likewise.
509 (gld*_provide_bound_symbols): Delete.
510 (gld*_provide_init_fini_syms): Delete.
511 (gld*_before_allocation): Don't call ldemul_do_assignments.
512 * emultempl/ppc32elf.em (ppc_do_assignments): Delete.
513 (LDEMUL_DO_ASSIGNMENTS): Delete.
514 * scripttempl/elf.sc: Provide init/fini syms. Add SBSS_START_SYMBOLS,
515 SBSS_END_SYMBOLS, SDATA2_START_SYMBOLS.
517 2005-08-04 Alan Modra <amodra@bigpond.net.au>
519 * Makefile.am (eelf32m32c.c): Fix dependencies.
520 * Makefile.in: Regenerate.
522 2005-08-04 Alan Modra <amodra@bigpond.net.au>
524 * ldemul.c (ldemul_finish): Call ld_emulation->finish unconditionally.
525 (finish_default): New function.
526 * ldemul.h (finish_default): Declare.
527 * emultempl/aix.em (gld*_before_allocation): Call
528 before_allocation_default rather than strip_excluded_output_sections.
529 (ld_*_emulation): Init finish field to finish_default.
530 * emultempl/armcoff.em: Likewise.
531 * emultempl/beos.em: Likewise.
532 * emultempl/elf32.em: Likewise.
533 * emultempl/generic.em: Likewise.
534 * emultempl/gld960.em: Likewise.
535 * emultempl/gld960c.em: Likewise.
536 * emultempl/hppaelf.em: Likewise.
537 * emultempl/linux.em: Likewise.
538 * emultempl/lnk960.em: Likewise.
539 * emultempl/m68kcoff.em: Likewise.
540 * emultempl/mmo.em: Likewise.
541 * emultempl/pe.em: Likewise.
542 * emultempl/ppc64elf.em: Likewise.
543 * emultempl/sunos.em: Likewise.
544 * emultempl/ticoff.em: Likewise.
545 * emultempl/vanilla.em: Likewise.
547 2005-08-03 Alan Modra <amodra@bigpond.net.au>
549 * ldlang.c (exp_init_os): Handle etree_provide.
550 * emulparams/armelf.sh (OTHER_END_SYMBOLS): Rename from..
551 (OTHER_BSS_END_SYMBOLS): ..this.
552 * emulparams/armelf_linux.sh: Likewise.
553 * emulparams/armnto.sh: Likewise.
554 * emulparams/criself.sh: Likewise.
555 * emulparams/crislinux.sh: Likewise.
556 * emulparams/elf32frv.sh: Likewise.
557 * emulparams/elf32mcore.sh: Likewise.
558 * emulparams/elf32ppc.sh: Likewise.
559 * emulparams/elf32ppclinux.sh: Likewise.
560 * emulparams/hppa64linux.sh: Likewise.
561 * scripttempl/armbpabi.sc: Substitute $OTHER_END_SYMBOLS, not
562 $OTHER_BSS_END_SYMBOLS.
563 * scripttempl/elf32sh-symbian.sc: Likewise.
564 * scripttempl/elf_chaos.sc: Likewise.
565 * scripttempl/iq2000.sc: Likewise.
566 * scripttempl/xstormy16.sc: Likewise.
567 * scripttempl/elf.sc: Likewise. Delete __bss_start comment.
568 * scripttempl/elfxtensa.sc: Likewise.
570 2005-07-29 Nick Clifton <nickc@redhat.com>
572 * ldmain.c (main): Allow -shared and -static to be used together.
573 * ld.texinfo (-static): Mention that it is allowed with -shared.
575 2005-07-28 DJ Delorie <dj@redhat.com>
577 * ldlang.c (lang_output_section_statement_lookup_1): Don't cast a
578 unary & address operator, as that breaks GCC's strict aliasing
581 2005-07-25 Jan Hubicka <jh@suse.cz>
582 H.J. Lu <hongjiu.lu@intel.com>
584 * emulparams/elf_x86_64.sh (LARGE_SECTIONS): New.
586 * scripttempl/elf.sc: Updated for large section support.
588 2005-07-21 Ralf Corsepius <ralf.corsepius@rtems.org>
590 * configure.tgt: Remove i[3-7]86-*-rtemself*.
591 Remove sparc-*-rtemself*.
593 2005-07-21 Ben Elliston <bje@gnu.org>
595 * ldgram.y (ldgram_want_filename): Remove unused static.
597 2005-07-20 DJ Delorie <dj@redhat.com>
599 * emulparams/elf32m32c.sh (TEMPLATE_NAME): New.
600 (EXTRA_EM_FILE): New.
602 2005-07-19 H.J. Lu <hongjiu.lu@intel.com>
604 * ldmain.c (main): Reindent.
606 2005-07-19 Paul Brook <paul@codesourcery.com>
608 * configure.host (HOSTING_CRT0): Parse output of gcc --help --verbose
609 to determine dynamic linker name.
611 2005-07-18 Nick Clifton <nickc@redhat.com>
613 * configure.tgt: Restore alpha ordering to list of arches.
615 2005-07-16 Alan Modra <amodra@bigpond.net.au>
617 * emultempl/elf32.em (gld*_provide_init_fini_syms): Prototype.
618 (gld*_before_allocation): Call ldemul_do_assignments rather than
619 gld*_provide_init_fini_syms directly.
620 * emultempl/ppc32elf.em (gld*_after_allocation): Delete.
621 (ppc_do_assignments): New function.
622 (LDEMUL_AFTER_ALLOCATION): Don't define.
623 (LDEMUL_DO_ASSIGNMENTS): Define.
625 2005-07-16 Alan Modra <amodra@bigpond.net.au>
627 * Makefile.am: Run "make dep-am".
628 (emipsidt.c, emipsidtl.c): Depend on generic.em.
629 * Makefile.in: Regenerate.
631 2005-07-15 Alan Modra <amodra@bigpond.net.au>
633 * ldemul.c (ldemul_do_assignments): New function.
634 (do_assignments_default): New function.
635 * ldemul.h (ldemul_do_assignments): Declare.
636 (do_assignments_default): Declare.
637 (struct ld_emulation_xfer_struct): Add do_assignments.
638 * ldlang.c (lang_do_assignments) Call ldemul_do_assignments.
639 * emultempl/aix.em (ld_*_emulation): Init do_assignments field.
640 * emultempl/armcoff.em: Likewise.
641 * emultempl/beos.em: Likewise.
642 * emultempl/generic.em: Likewise.
643 * emultempl/gld960.em: Likewise.
644 * emultempl/gld960c.em: Likewise.
645 * emultempl/linux.em: Likewise.
646 * emultempl/lnk960.em: Likewise.
647 * emultempl/m68kcoff.em: Likewise.
648 * emultempl/pe.em: Likewise.
649 * emultempl/sunos.em: Likewise.
650 * emultempl/ticoff.em: Likewise.
651 * emultempl/vanilla.em: Likewise.
652 * emultempl/elf32.em: Likewise, to call gld*_provide_init_fini_syms.
653 (gld*_find_exp_assignment): Adjust bfd_elf_record_link_assignment call.
655 2005-07-14 Jim Blandy <jimb@redhat.com>
657 Add support for the Renesas M32C and M16C.
658 * Makefile.am (ALL_EMULATIONS): Add eelf32m32c.o.
659 (eelf32m32c.c): New target.
660 * Makefile.in: Regenerated.
661 * configure.tgt: Add case for m32c-*-elf.
662 * emulparams/elf32m32c.sh: New file.
664 2005-07-14 Alan Modra <amodra@bigpond.net.au>
666 * ldlang.c (strip_excluded_output_sections): Don't call
668 * emultempl/elf32.em (gld*_provide_bound_symbols): Move.
669 (gld*_provide_init_fini_syms): Move.
670 (gld*_before_allocation): Call the above from here..
671 (gld*_finish): ..not here. Call _bfd_elf_fix_excluded_sec_syms.
672 * emultempl/hppaelf.em (hppaelf_finish): Likewise.
673 * emultempl/ppc64elf.em (ppc_finish): Likewise.
675 2005-07-10 Ralf Corsepius <ralf.corsepius@rtems.org>
677 * configure.tgt: Remove sparc*-*-rtemsaout*, i[3-7]86-go32-rtems*,
678 i[3-7]86-*-rtemscoff*, hppa*-*-rtems*, mips*el-*-rtems*,
681 2005-07-09 Christopher Faylor <cgf@timesys.com>
683 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Enable runtime
684 relocation by default.
685 (compute_dll_image_base): Avoid linking into cygwin dll address space.
687 2005-07-08 Alan Modra <amodra@bigpond.net.au>
689 * ldlang.c (wild_sort): Formatting.
690 (strip_excluded_output_sections): Strip zero size sections here.
691 * emultempl/elf32.em (gld*_strip_empty_sections): Delete.
692 (gld*_finish): Don't call the above.
693 * emultempl/hppaelf.em (hppaelf_finish): Likewise.
694 * emultempl/ppc64elf.em (ppc_finish): Likewise.
696 2005-07-05 Paul Brook <paul@codesourcery.com>
698 * Makefile.am (ALL_EMULATIONS): Add eelf32ppcvxworks.o.
699 (eelf32ppcvxworks.o): Add dependencies.
700 * Makefile.in: Regenerate.
701 * configure.tgt: Add entry for powerpc-vxworks.
702 * emulparams/elf32-ppc.c: Mention elf32ppcvxworks.sh in comment.
703 * emulparams/elf32ppcvxworks.sh: New file.
704 * emultempl/ppc32elf.em (bfd_elf32_powerpc_vxworks_vec): Declare.
705 (is_ppc_elf32_vec): New function.
706 (ppc_after_open, ppc_before_allocation,
707 gld${EMULATION_NAME}_after_allocation): Use it.
709 2005-07-05 Peter S. Mazinger" <ps.m@gmx.net>
711 * emulparams/elf32bmip.sh (GENERATE_PIE_SCRIPT): Define as "yes".
712 * emulparams/elf32bmipn32-defs.sh (GENERATE_PIE_SCRIPT): Define as "yes".
714 2005-07-04 Mike Frysinger <vapier@gentoo.org>
716 * emulparams/hppalinux.sh (GENERATE_PIE_SCRIPT): Fix typo in
719 2005-07-04 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
721 * emulparams/m32relf_linux.sh (GENERATE_PIE_SCRIPT): Set to yes.
723 2005-07-04 Aurelien Jarno <aurel32@debian.org>
725 * emultempl/elf32.em: Enable use of ld.so.conf for *-*-k*bsd-*.
727 2005-07-01 Alan Modra <amodra@bigpond.net.au>
729 * scripttempl/elf.sc (.gcc_except_table): Don't KEEP.
731 2005-06-30 Ben Elliston <bje@gnu.org>
733 * Makefile.am (check-DEJAGNU): Don't search for expect.
734 * Makefile.in: Regenerate.
736 2005-06-30 Ben Elliston <bje@gnu.org>
738 * Makefile.am (EXPECT): Set to expect.
739 (RUNTEST): Likewise, set to runtest.
740 * Makefile.in: Regenerate.
742 2005-06-16 Alexander Klimov <alserkli@inbox.ru>
744 * emultempl/armelf.em: Add quotes to avoid a null test
747 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
749 * ld.texinfo (Command Line Options): Add @item for --hash-size.
751 2005-06-10 Alan Modra <amodra@bigpond.net.au>
753 * scripttempt/elf.sc (.bss): Align tail in a way that allows
754 empty section pruning.
756 2005-06-09 Steve Ellcey <sje@cup.hp.com>
758 * configure.in (AM_BINUTILS_WARNINGS): Add.
759 (BFD_NEED_DECLARATION) Replace with AC_CHECK_DECLS.
760 * config.in: Regenerate.
761 * configure: Regenerate.
762 * sysdep.h (NEED_DECLARATION_*): Replace with HAVE_DECL_*
765 2005-06-09 Alan Modra <amodra@bigpond.net.au>
767 * ldexp.c (fold_unary <ALIGN_K>): Revert last change.
769 2005-06-09 Alan Modra <amodra@bigpond.net.au>
771 * ld.h (lang_phase_type): Move to..
772 * ldexp.h: ..here. Add lang_mark_phase_enum.
773 (node_type): Remove etree_undef and etree_unspec.
774 (exp_data_seg): Delete.
775 (struct ldexp_control, expld): New.
776 (invalid, exp_mark_used_section): Delete.
777 (exp_fold_tree, exp_get_vma, exp_get_value_int, exp_get_fill,
778 exp_get_abs_int): Update prototypes.
779 * ldexp.c (assigning_to_dot): Delete.
781 (make_abs): Operate directly on expld.result. Update all callers.
782 (new_abs): Likewise. Return void.
783 (new_rel_from_abs): Rename from new_rel_from_section.
784 (new_rel, new_rel_from_abs): Operate on expld.result and return void.
786 (fold_unary): Operate on expld.result and return void. Remove
787 "current_section", "allocation_done", "dot", "dotp" and "mark_used"
788 params. Update all callers.
789 (fold_binary, fold_trinary, fold_name, exp_fold_tree_1): Likewise.
790 (fold_unary <ALIGN_K>): Ensure alignment is absolute.
791 (fold_unary <ABSOLUTE>): Use make_abs.
792 (fold_unary <DATA_SEGMENT_END>): Evaluate mark_phase as for
794 (fold_binary <DATA_SEGMENT_ALIGN, DATA_SEGMENT_RELRO_END, >): Ditto.
795 (fold_binary <'%','/'>): Don't error if marking.
796 (fold_name <SIZEOF_HEADERS>): Don't call bfd_sizeof_headers when
798 (fold_name <NAME>): Remove FIXME; -R is handled correctly. Don't
800 (fold_name <ADDR, LOADADDR, SIZEOF>): Don't set SEC_KEEP.
801 (exp_fold_tree_1): Don't error when marking.
802 (exp_fold_tree_1 <etree_rel>): Evaluate in all phases except first.
803 (exp_fold_tree_1 <etree_assign to dot>): Don't check for NULL
804 current section, instead check for NULL dotp.
805 (exp_fold_tree_1 <etree_provide>): Don't evaluate the assignment
806 source unless the symbol is referenced and undefined.
807 (exp_fold_tree): Remove "allocation_done" and "dot" params. Save
809 (exp_fold_tree_no_dot): Remove "current_section", "allocation_done
810 and "mark_used" params. Save params to expld. Update all callers.
811 (exp_assop): Do without temp var.
812 (exp_print_tree <etree_undef>): Delete code.
813 (exp_get_vma): Remove "allocation_done" param. Correct error return.
814 (exp_get_fill, exp_get_abs_int): Likewise.
815 (exp_get_value_int): Remove "allocation_done" param.
816 (exp_mark_used_section): Delete.
817 * ldgram.y (fill_exp): Update exp_get_fill call.
818 (origin_spec, length_spec): Update exp_get_vma call.
819 * ldlang.c (lang_init): Don't bother clearing lang_statement_iteration.
820 (lang_mark_used_section_1, lang_mark_used_section): Delete.
821 (strip_excluded_output_sections): Call one_lang_size_sections_pass in
822 marking mode. Merge old lang_mark_used_section code. Correct handling
823 of output sections with excluded input sections and data statements.
824 Don't drop non-zero sized sections. Don't zap os->bfd_section.
825 Do set SEC_EXCLUDE when appropriate.
826 (print_output_section_statement): Update for changed ldexp.c
828 (print_assignment, lang_size_sections_1): Likewise.
829 (lang_do_assignments_1, lang_enter_output_section_statement): Likewise.
830 (lang_new_phdr, lang_record_phdrs): Likewise.
831 (lang_size_sections): Likewise.
832 (insert_pad): Use following statement if it is a pad, rather than
834 (lang_size_sections_1 <lang_output_section_statement_enum>): Do
835 process ignored output section to set vma and lma, but don't
836 update dot for these sections. Don't error if marking.
837 (lang_size_sections_1 <lang_assignment_statement_enum>): Don't
838 update dot for ignored sections.
839 (lang_size_sections_1 <lang_data_statement_enum>): Don't mark absolute
840 section with SEC_ALLOC.
841 (one_lang_size_sections_pass): New function.
842 (lang_size_sections): Remove first five params. Set expld.phase on
843 entry and exit. Use one_lang_size_sections_pass.
844 (lang_do_assignments): Remove all params. Update all callers.
845 (lang_reset_memory_regions): Clear os->processed for all output
847 * ldlang.h (lang_do_assignments): Update prototype.
848 (lang_size_sections): Likewise.
849 (one_lang_size_sections_pass): Declare.
850 * pe-dll.c (pe_dll_fill_sections, pe_exe_fill_sections): Update
851 lang_size_sections and lang_do_assignments calls.
852 * emultempl/elf32.em (layout_sections_again): Likewise.
853 * emultempl/ppc64elf.em (ppc_before_allocation): Use
854 one_lang_size_sections_pass.
856 2005-06-08 Aldy Hernandez <aldyh@redhat.com>
858 * emulparams/elf32ms1.sh: New.
860 2005-06-07 Eric Christopher <echristo@redhat.com>
862 * Makefile.am (eelf32ms1.c): Use tab.
863 * Makefile.in: Regenerate.
865 2005-06-07 Aldy Hernandez <aldyh@redhat.com>
866 Michael Snyder <msnyder@redhat.com>
867 Stan Cox <scox@redhat.com>
869 * configure.tgt: Same.
871 * Makefile.am (ALL_EMULATIONS): Depend on eelf32ms1.o.
872 (eelf32ms1.c): Add eelf32ms1.c rule.
874 * Makefile.in: Regenerate.
876 2005-06-06 Alan Modra <amodra@bigpond.net.au>
878 * emultempl/ppc64elf.em (ppc_before_allocation): Always run
881 2005-06-05 H.J. Lu <hongjiu.lu@intel.com>
883 * ldexp.c (exp_mark_used_section): Set SEC_KEEP on current
884 section only if the symbol will be defined.
886 2005-06-04 H.J. Lu <hongjiu.lu@intel.com>
889 * ldexp.c (exp_mark_used_section): Set SEC_KEEP on current
890 section for etree_assign, etree_provide and etree_provided.
891 Call fold_binary on etree_binary.
893 * ldlang.c (lang_mark_used_section_1): Handle load base.
895 2005-06-03 Alan Modra <amodra@bigpond.net.au>
897 * ldmain.c (link_callbacks): Add einfo.
898 (add_archive_element): Use passed info, not link_info.
899 (constructor_callback): Likewise.
900 (reloc_overflow): Don't handle null bfd specially.
901 (reloc_dangerous, unattached_reloc): Likewise.
902 * ldmisc.c (vfinfo <B>): Print "ld generated" for null bfd.
903 (vfinfo <C, D, G>): Handle null bfd. Wrap comments.
905 2005-06-02 Alan Modra <amodra@bigpond.net.au>
907 * ldexp.h (etree_value_type): Use "asection *" in place of
908 "struct lang_output_section_statement_struct *" for "section".
909 (exp_fold_tree): Likewise.
910 (exp_mark_used_section): Likewise.
911 * ldexp.c (new_rel, new_rel_from_section, fold_unary, fold_binary,
912 fold_trinary, fold_name, exp_fold_tree_1, exp_fold_tree,
913 exp_mark_used_section): Likewise for "current_section" param.
914 (make_abs, new_abs, exp_binop, exp_unop, exp_get_vma, exp_get_fill,
915 exp_get_abs_int): Adjust for above changes.
916 * ldlang.c (lang_mark_used_section_1, print_assignment,
917 lang_size_sections_1, lang_do_assignments_1): Likewise.
918 * ldexp.c (fold_name): Init entire result struct.
920 2005-06-01 Maciej W. Rozycki <macro@linux-mips.org>
922 * emulparams/elf32btsmip.sh: Unset DATA_ADDR.
924 2005-05-31 Zack Weinberg <zack@codesourcery.com>
926 * ldlang.c (entry_symbol_default): New file-scope global.
927 (lang_finish): Use it, not a hardwired "start".
928 (lang_default_entry): Set it.
929 * ldlang.h: Declare lang_default_entry.
930 * emultempl/beos.em, emultempl/pe.em: Use lang_default_entry,
931 not lang_add_entry, to override default entry point symbol.
933 2005-05-29 Richard Henderson <rth@redhat.com>
935 * emulparams/elf64alpha.sh (PLT): New.
937 * emultempl/alphaelf.em (disable_relaxation): New.
938 (limit_32bit): Rename from elf64alpha_32bit; update all users.
939 (elf64_alpha_use_secureplt): Declare.
940 (bfd_elf64_alpha_vec, bfd_elf64_alpha_freebsd_vec): Declare.
941 (alpha_after_open): New.
942 (alpha_before_allocation): New.
943 (OPTION_NO_RELAX, OPTION_SECUREPLT, OPTION_NO_SECUREPLT): New.
944 (PARSE_AND_LIST_LONGOPTS): Include them.
945 (PARSE_AND_LIST_OPTIONS): Likewise.
946 (PARSE_AND_LIST_ARGS_CASES): Likewise.
947 (LDEMUL_AFTER_OPEN, LDEMUL_BEFORE_ALLOCATION): New.
948 * scripttempl/elf.sc (TEXT_PLT): New.
951 2005-05-27 Andreas Schwab <schwab@suse.de>
953 * configure.host (HOSTING_LIBS): Add libunwind.a if it exists.
955 2005-05-24 Alan Modra <amodra@bigpond.net.au>
957 * emultempl/ppc32elf.em (after_allocation): Don't call
958 ppc_elf_set_sdata_syms when relocatable.
960 2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
962 * Makefile.am (ld.1): Revert the last 2 changes.
963 (info-recursive): Depend on ld.1.
964 * Makefile.in: Regenerated.
966 2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
968 * Makefile.am (ld.1): Depend on "info" instead of
969 "configdoc.texi ldver.texi".
970 * Makefile.in: Regenerated.
972 2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
974 * Makefile.am (ld.1): Depend on "info".
975 * Makefile.in: Regenerated.
977 2005-05-19 Zack Weinberg <zack@codesourcery.com>
979 * Makefile.am: Have 'all' depend on 'info' and 'ld.1'.
980 * Makefile.in: Regenerate.
982 2005-05-17 Zack Weinberg <zack@codesourcery.com>
984 * ld-arm/mixed-app.d: Adjust expected disassembly a little.
986 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
988 * Makefile.am (ldver.texi): Don't use $<.
989 * Makefile.in: Regenerated.
991 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
993 * Makefile.am (AM_MAKEINFOFLAGS, TEXI2DVI): Explicitly include
994 $(srcdir) before $(BFDDIR)/doc.
995 * Makefile.in: Regenerated.
997 2005-05-17 H.J. Lu <hongjiu.lu@intel.com>
1000 * ldexp.c (exp_fold_tree_1): Renamed from exp_fold_tree and
1001 take take a bfd_boolean, mark_used. Ignore assert failure if
1003 (exp_fold_tree) Call exp_fold_tree_1 with mark_used == FALSE.
1004 (exp_fold_tree_no_dot): Updated to take a bfd_boolean,
1005 mark_used and pass down.
1006 (fold_unary): Likewise.
1007 (fold_binary): Likewise.
1008 (fold_trinary): Likewise.
1009 (exp_binop): Add FALSE to call to exp_fold_tree_no_dot.
1010 (exp_trinop): Likewise.
1011 (exp_unop): Likewise.
1012 (exp_nameop): Likewise.
1013 (exp_get_vma): Likewise.
1014 (exp_get_fill): Likewise.
1015 (exp_get_abs_int): Likewise.
1016 (fold_name): Likewise. Set SEC_KEEP in output section flags.
1017 (exp_mark_used_section): New.
1019 * ldexp.h (exp_mark_used_section): New.
1021 * ldlang.c (lang_output_section_statement_lookup_1): Set the
1022 ignored field to FALSE.
1023 (lang_mark_used_section_1): New.
1024 (lang_mark_used_section): Call lang_mark_used_section_1.
1025 (strip_excluded_output_sections): Call lang_mark_used_section
1026 and check for unused sections.
1027 (lang_size_sections_1): Skip an output section if it should
1029 (lang_do_assignments_1): Likewise.
1030 (lang_process): Don't call lang_mark_used_section here.
1032 * ldlang.h (lang_output_section_statement_type): Change
1033 all_input_readonly to bitfield. Add ignored.
1035 2005-05-17 Lennert Buytenhek <buytenh@wantstofly.org>
1036 Peter S. Mazinger" <ps.m@gmx.net>
1038 * emulparams/armelf_linux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
1039 * emulparams/hppalinux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
1041 2005-05-17 Julian Brown <julian@codesourcery.com>
1043 * ldlang.c (print_assignment): Do not rely upon a valid result
1044 having a section associated with it.
1046 2005-05-17 Nick Clifton <nickc@redhat.com>
1048 * ldlang.c (Scan_for_self_assignment): Check an assignment tree to
1049 see if the same value is being used on the rhs as on the lhs.
1050 (print_assignment): Call scan_for_self_assignment and if it
1051 returns true, do no display the result of the computation but
1052 instead just the final value of the symbol on the lhs.
1053 * ld.texinfo: Document this behaviour and provide an example of
1054 when it will happen.
1056 2005-05-15 Daniel Jacobowitz <dan@codesourcery.com>
1058 * Makefile.am (AM_MAKEINFOFLAGS): Define.
1060 (ldver.texi): Depend on distributed files instead of built files.
1061 (ld.info): Include $(srcdir) in the rule target. Remove actions.
1062 (ld.dvi): Remove actions.
1063 (MAINTAINERCLEANFILES): Add configdoc.texi.
1064 (CONFIG_STATUS_DEPENDENCIES): Add bfd/configure.in.
1065 (install-data-local): Renamed from install.
1066 (Makefile): Remove explicit dependency.
1067 * acinclude.m4: Remove obsolete code.
1068 * configure.in: Update AC_PREREQ. Remove extra $CONFIG_SHELL.
1069 * Makefile.in, aclocal.m4, config.in, configure: Regenerated.
1071 2005-05-11 Bob Wilson <bob.wilson@acm.org>
1073 * scripttempl/elfxtensa.sc: Sync up with elf.sc.
1074 * emulparams/elf32xtensa.sh (PLT, GOT): Define.
1076 2005-05-11 Alan Modra <amodra@bigpond.net.au>
1078 * ldgram.y: Add SPECIAL token.
1079 (sect_constraint): Handle SPECIAL.
1080 * ldlang.c (lang_output_section_find_1): Don't match SPECIAL.
1081 (map_input_to_output_sections): Likewise.
1082 * ldlex.l (SPECIAL): Define.
1083 * emulparams/elf32ppc.sh (DATA_GOT, SDATA_GOT, SEPARATE_GOTPLT,
1084 GOT, PLT, GOTPLT): Define.
1085 * emultempl/ppc32elf.em (old_plt, old_got): New static vars.
1086 (ppc_after_open): New function.
1087 (PARSE_AND_LIST_PROLOGUE): Define OPTION_OLD_LPT and OPTION_OLD_GOT.
1088 (PARSE_AND_LIST_LONGOPTS): Add "bss-plt" and "sdata-got".
1089 (PARSE_AND_LIST_OPTIONS): Document them.
1090 (PARSE_AND_LIST_ARGS_CASES): Handle them.
1091 (LDEMUL_AFTER_OPEN): Define.
1092 * scripttempl/elf.sc (PLT): Don't override existing define.
1093 (DATA_GOT, SDATA_GOT): Define and use to enable alternate got
1094 placement rather than using NO_SMALL_DATA. Emit GOTPLT for RELRO_NOW.
1096 2005-05-10 Alan Modra <amodra@bigpond.net.au>
1098 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_GOTPLT_END): Delete.
1099 (DATA_SEGMENT_RELRO_END): Use SEPARATE_GOTPLT value.
1100 (GOTPLT): Remove DATA_SEGMENT_RELRO_GOTPLT_END. Place after
1101 DATA_SEGMENT_RELRO_END in script.
1103 2005-05-09 H.J. Lu <hongjiu.lu@intel.com>
1105 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
1106 Don't use a removed section.
1108 2005-05-09 H.J. Lu <hongjiu.lu@intel.com>
1110 * ldmain.c (reloc_overflow): Use output_bfd if the symbol
1111 is defined in the ABS section.
1113 2005-05-06 H.J. Lu <hongjiu.lu@intel.com>
1115 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
1116 Put back !link_info.relocatable.
1118 2005-05-06 H.J. Lu <hongjiu.lu@intel.com>
1121 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
1122 Just check link_info.executable.
1124 2005-05-06 Nick Clifton <nickc@redhat.com>
1126 * Update the address and phone number of the FSF organization in
1127 the GPL notices in the following files:
1128 aclocal.m4, deffile.h, deffilep.y, fdl.texi, ld.h, ldcref.c,
1129 ldctor.c, ldctor.h, ldemul.c, ldexp.c, ldexp.h, ldfile.c,
1130 ldfile.h, 20ldgram.y, ldint.texinfo, ldlang.c, ldlang.h, ldlex.h,
1131 ldlex.l, ldmain.c, ldmain.h, ldmisc.c, ldmisc.h, ldver.c, ldver.h,
1132 ldwrite.c, ldwrite.h, lexsup.c, mri.c, mri.h, pe-dll.c, pe-dll.h,
1133 sysdep.h, emultempl/aix.em, emultempl/alphaelf.em,
1134 emultempl/armcoff.em, emultempl/armelf.em, emultempl/beos.em,
1135 emultempl/crxelf.em, emultempl/elf32.em, emultempl/generic.em,
1136 emultempl/gld960.em, emultempl/gld960c.em, emultempl/hppaelf.em,
1137 emultempl/ia64elf.em, emultempl/irix.em, emultempl/linux.em,
1138 emultempl/lnk960.em, emultempl/m68hc1xelf.em,
1139 emultempl/m68kcoff.em, emultempl/m68kelf.em,
1140 emultempl/mipsecoff.em, emultempl/mmix-elfnmmo.em,
1141 emultempl/mmixelf.em, emultempl/mmo.em, emultempl/needrelax.em,
1142 emultempl/pe.em, emultempl/ppc32elf.em, emultempl/ppc64elf.em,
1143 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em,
1144 emultempl/vanilla.em, emultempl/xtensaelf.em
1146 2005-05-05 H.J. Lu <hongjiu.lu@intel.com>
1148 * scripttempl/elf.sc: Document the usage of __bss_start.
1150 2005-05-05 Paul Brook <paul@codesourcery.com>
1152 * Makefile.am: Add eelf_i386_vxworks.
1153 * Makefile.in: Regenerate.
1154 * configure.tgt: Make i?86-*-vxworks use targ_emul=elf_i386_vxworks.
1155 * emulparams/elf_i386_vxworks.sh: New file.
1156 * emulparams/vxworks.sh: New file.
1157 * scripttempl/elf.sc: Add DATA_END_SYMBOLS and ETEXT_NAME.
1159 2005-05-04 H.J. Lu <hongjiu.lu@intel.com>
1161 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
1162 Call _bfd_elf_provide_section_bound_symbols.
1164 2005-05-04 Alan Modra <amodra@bigpond.net.au>
1166 * ldemul.c: Include bfdlink.h.
1167 (ldemul_before_allocation): Assume before_allocation is non-zero.
1168 (before_allocation_default): Call strip_excluded_output_sections.
1169 * ldlang.c (stripped_excluded_sections): New variable.
1170 (lang_add_section): Build input section list for each output
1171 section, attached via map_head and map_tail pointers.
1172 (strip_excluded_output_sections): Make global. Traverse the
1173 input section lists to find which output sections can go. Clear
1174 link_order pointers and set stripped_excluded_sections.
1175 (lang_process): Call strip_excluded_output_sections.
1176 * ldlang.h (strip_excluded_output_sections): Declare.
1177 * ldwrite.c: Update throuhout for link_order_head -> map_head change.
1178 * emultempl/aix.em (before_allocation): Call
1179 strip_excluded_output_sections.
1180 * emultempl/armcoff.em (before_allocation): Likewise.
1181 * emultempl/beos.em (before_allocation): Likewise.
1182 * emultempl/linux.em (before_allocation): Likewise.
1183 * emultempl/pe.em (before_allocation): Likewise.
1184 * emultempl/sunos.em (before_allocation): Likewise.
1185 * emultempl/elf32.em (before_allocation): Likewise. Call
1186 bfd_elf_size_dynsym_hash_dynstr too.
1187 * emultempl/lnk960.em (lnk960_before_allocation): Delete.
1188 (ld_lnk960): Use before_allocation_default.
1190 2005-05-02 H.J. Lu <hongjiu.lu@intel.com>
1192 * emultempl/elf32.em (gld${EMULATION_NAME}_strip_empty_section):
1193 Updated for bfd_section_list_remove change.
1194 * ldlang.c (lang_insert_orphan): Likewise.
1195 (strip_excluded_output_sections): Likewise.
1196 (sort_sections_by_lma): New.
1197 (lang_check_section_addresses): Sort the sections before
1200 2005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
1202 * configure.tgt: Add h8300*-*-rtemscoff.
1203 Switch h8300*-*-rtems* to elf.
1205 2005-04-29 Ben Elliston <bje@au.ibm.com>
1207 * ldgram.y (lang_memory_region_type): Make static.
1208 (ldgram_want_filename): Likewise.
1209 * ldemul.c (ld_emulation): Make static.
1210 * ldfile.h (ldfile_find_command_file): Remove extern.
1211 * ldfile.c (ldfile_find_command_file): Make static.
1212 * ldlang.h (unique_section_list): Remove extern declaration.
1213 * ldlang.c (unique_section_list): Make static.
1214 * mri.h (symbol_truncate): Remove extern declaration.
1215 * mri.c (symbol_truncate): Make static.
1216 (order, only_load, address, alias): Likewise.
1217 (alignment, subalignment): Likewise.
1219 2005-04-27 H.J. Lu <hongjiu.lu@intel.com>
1221 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
1222 Use the first SEC_ALLOC section which isn't SEC_READONLY or the
1223 last SEC_ALLOC section if such a section doesn't exist.
1225 2005-04-24 Mark Kettenis <kettenis@gnu.org>
1227 * configure.host: Add *-*-openbsd support.
1229 2005-04-15 Julian Brown <julian@codesourcery.com>
1231 * ld.texinfo: Document --use-blx.
1232 * emultempl/armelf.em (use_blx): New variable.
1233 (arm_elf_create_output_section_statements): Communicate value of
1235 (PARSE_AND_LIST_PROLOGUE): Add OPTION_USE_BLX.
1236 (PARSE_AND_LIST_OPTIONS): Add --use-blx option.
1237 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_USE_BLX case.
1239 2005-04-14 Alan Modra <amodra@bigpond.net.au>
1241 * Makefile.am (NO_WERROR): Define. Use instead of -Wno-error.
1242 * configure.in: Include ../bfd/warning.m4 contents.
1243 * Makefile.in: Regenerate.
1244 * configure: Regenerate.
1246 2005-04-12 Alan Modra <amodra@bigpond.net.au>
1248 * Makefile.am: Run "make dep-am".
1249 (ldgram.o, ldlex.o, deffilep.o): Add -Wno-error to command.
1250 * Makefile.in: Regenerate.
1251 * config.in: Regenerate.
1253 2005-04-11 Alan Modra <amodra@bigpond.net.au>
1255 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Ignore
1256 as_needed libs that were not needed.
1257 (gld${EMULATION_NAME}_check_needed): Likewise.
1259 2005-04-07 Nick Clifton <nickc@redhat.com>
1261 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h so that
1262 ldfile.h can use the lang_input_statement type.
1264 2005-04-06 Jakub Jelinek <jakub@redhat.com>
1266 * ldlang.c: Formatting.
1267 (walk_wild_consider_section): Remember return value from wildcardp.
1268 (is_simple_wild): Use strcspn instead of 2 strpbrk calls and strlen.
1269 (wild_spec_can_overlap): Use strcspn instead of strpbrk and strlen.
1271 2005-04-06 Robert O'Callahan <rocallahan@novell.com>
1273 * ld.h (lean_section_userdata_type): Remove.
1274 (fat_section_userdata_type): Remove file field.
1275 (SECTION_USERDATA_SIZE): Remove.
1276 * ldlang.c (init_os): Eliminate initialization of unused
1277 lean_section_userdata_type.
1279 * ldlang.h (callback_t, walk_wild_section_handler_t): New
1281 (struct lang_wild_statement_struct): Add walk_wild_section_handler
1282 and handler_data fields.
1283 * ldlang.c (callback_t): Removed.
1284 (walk_wild_consider_section, walk_wild_section_general,
1285 section_iterator_callback, find_section, is_simple_wild,
1286 match_simple_wild, walk_wild_section_specs1_wild0,
1287 walk_wild_section_specs1_wild1, walk_wild_section_specs2_wild1,
1288 walk_wild_section_specs3_wild2, walk_wild_section_specs4_wild2,
1289 wild_spec_can_overlap, analyze_walk_wild_section_handler): New
1291 (lang_add_wild): Call analyze_walk_wild_section_handler.
1292 (walk_wild_section): Renamed to walk_wild_section_general and
1293 created a wrapper function.
1294 (section_iterator_callback_data): New typedef.
1296 2005-04-04 Nick Clifton <nickc@redhat.com>
1298 * configure.in: Add a check for <unistd.h> providing a prototype
1299 for getopt() which is compatible with the one in
1300 include/getopt.h. If so then define HAVE_DECL_GETOPT.
1301 * configure: Regenerate.
1302 * config.in (HAVE_DECL_GETOPT): Add.
1303 * ldemul.c: Include config.h
1304 * lexsup.c: Likewise.
1305 * emultempl/elf32.sc: Likewise.
1307 2005-03-29 Alan Modra <amodra@bigpond.net.au>
1309 * emultempl/elf32.em (gld${EMULATION_NAME}_layout_sections_again):
1310 New function, extracted from static void gld${EMULATION_NAME}_finish.
1311 (gld${EMULATION_NAME}_strip_empty_sections): Likewise.
1312 (gld${EMULATION_NAME}_provide_init_fini_syms): Likewise.
1313 * emultempl/ppc64elf.em: Revert last change.
1314 (ppc_layout_sections_again): Use
1315 gld${EMULATION_NAME}_layout_sections_again.
1316 (ppc_finish): Don't call gld${EMULATION_NAME}_finish. Instead call
1317 gld${EMULATION_NAME}_strip_empty_sections and
1318 gld${EMULATION_NAME}_provide_init_fini_syms.
1319 * emultempl/hppaelf.em: Similarly.
1321 2005-03-29 Alan Modra <amodra@bigpond.net.au>
1323 * emultempl/ppc64elf.em (need_laying_out): Delete. Remove all refs.
1324 (ppc_finish): Don't call bfd_elf_discard_info.
1325 * emultempl/hppaelf.em: Similarly.
1327 2005-03-24 Nick Clifton <nickc@redhat.com>
1329 * po/fr.po: Updated French translation.
1331 2005-03-23 Mike Frysinger <vapier@gentoo.org>
1332 Nick Clifton <nickc@redhat.com>
1334 * configure.host: Accept any C library to accompany a GNU Linux
1335 implementation, not just the GNU C library.
1336 * configure.tgt: Likewise.
1337 * emultempl/elf32.em: Likewise.
1339 2005-03-22 H.J. Lu <hongjiu.lu@intel.com>
1341 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols): New
1342 (gld${EMULATION_NAME}_finish): Call
1343 gld${EMULATION_NAME}_provide_bound_symbols to provide
1344 __preinit_array_start, __preinit_array_end, __init_array_start,
1345 __init_array_end, __fini_array_start and __fini_array_end.
1347 * scripttempl/elf.sc: Don't provide __preinit_array_start,
1348 __preinit_array_end, __init_array_start, __init_array_end,
1349 __fini_array_start nor __fini_array_end.
1351 2005-03-23 Alan Modra <amodra@bigpond.net.au>
1353 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Set
1354 SEC_EXCLUDE on .gnu.warning sections.
1356 2005-03-22 Alan Modra <amodra@bigpond.net.au>
1358 * scripttempl/elf.sc (SBSS): Don't provide sbss start and end syms.
1360 2005-03-21 Alan Modra <amodra@bigpond.net.au>
1362 * emultempl/ppc32elf.em (gld${EMULATION_NAME}_after_allocation): New
1364 (LDEMUL_AFTER_ALLOCATION): Define.
1366 2005-03-21 Alan Modra <amodra@bigpond.net.au>
1368 * emultempl/ppc64elf.em (ppc_finish): Rename from
1369 gld${EMULATION_NAME}_finish. Call gld${EMULATION_NAME}_finish.
1370 (LDEMUL_FINISH): Update.
1371 * emultempl/hppaelf.em (hppaelf_finish, LDEMUL_FINISH): Likewise.
1372 * emultempl/m68hc1xelf.em (m68hc11elf_finish, LDEMUL_FINISH): Likewise.
1374 2005-03-18 Julian Brown <julian@codesourcery.com>
1376 * scripttempl/armbpapi.sc (.rel.dyn): Add .rel.init_array,
1378 (.rela.dyn): Add .rela.init_array, .rela.fini_array.
1379 (SECTIONS): Add .rel.other, .rela.other, .reli.other after PLT relocs.
1381 2005-03-18 H.J. Lu <hongjiu.lu@intel.com>
1383 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Don't set
1384 bfd_section when removing unused empty output sections for
1385 non-relocatable link.
1387 2005-03-19 Alan Modra <amodra@bigpond.net.au>
1389 * ldlang.c (lang_insert_orphan): Use old section_tail rather than
1390 traversing the bfd section list to find pointer to new section.
1392 2005-03-18 Alan Modra <amodra@bigpond.net.au>
1394 * scripttempl/elf.sc: When CREATE_SHLIB, put .sdata2 and .sbss2
1395 input sections into .sdata and .sbss output respectively.
1397 2005-03-16 David Heine <dlheine@tensilica.com>
1398 Bob Wilson <bob.wilson@acm.org>
1400 * ldlang.c (IGNORE_SECTION): Remove check for zero size.
1401 (lang_check_section_addresses): Ignore zero size sections here.
1403 2005-03-16 H.J. Lu <hongjiu.lu@intel.com>
1405 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Remove
1406 unused empty output sections for non-relocatable link.
1408 * ld.h (args_type): Remove gc_sections.
1410 * ldlang.c (lang_mark_used_section): New.
1411 (lang_gc_sections): Use link_info.gc_sections instead of
1412 command_line.gc_sections.
1413 * ldmain.c (main): Likewise.
1414 * lexsup.c (parse_args): Likewise.
1415 * ldlang.c (lang_process): Call lang_mark_used_section.
1417 * ldmain.c (main): Initialize link_info.gc_sections to FALSE.
1419 2005-03-16 Nick Clifton <nickc@redhat.com>
1420 Ben Elliston <bje@au.ibm.com>
1422 * configure.in (werror): New switch: Add -Werror to the
1423 compiler command line. Enabled by default. Disable via
1425 * configure: Regenerate.
1427 2005-03-16 Alan Modra <amodra@bigpond.net.au>
1429 * emulparams/elf32ppclinux.sh (OTHER_READWRITE_SECTION): Delete.
1430 (OTHER_RELRO_SECTIONS): Set this instead.
1432 2005-03-15 Nick Clifton <nickc@redhat.com>
1434 * NEWS: Add cutoff for changes in 2.16 release.
1436 2005-03-15 Mikkel Krautz <krautz@gmail.com>
1438 * configure.tgt (x86_64-elf): Add target.
1440 2005-03-15 Alan Modra <amodra@bigpond.net.au>
1442 * po/es.po: Commit new Spanish translation.
1444 2005-03-14 Alan Modra <amodra@bigpond.net.au>
1446 * ldexp.c (exp_fold_tree): Ensure return value is initialized.
1447 Tidy etree_assert case.
1449 2005-03-14 Alan Modra <amodra@bigpond.net.au>
1451 * po/tr.po: Commit new Turkish translation.
1453 2005-03-11 Daniel Jacobowitz <dan@codesourcery.com>
1455 * Makefile.am: Remove references to em68klynx.o and esparclynx.o.
1456 * Makefile.in: Regenerated.
1457 * emulparams/m68klynx.sh, emulparams/sparclynx.sh: Remove.
1459 2005-03-07 Nick Clifton <nickc@redhat.com>
1461 * po/fr.po: Updated translation.
1463 2005-03-05 Alan Modra <amodra@bigpond.net.au>
1465 * po/ld.pot: Regenerate.
1467 2005-03-02 Jan Beulich <jbeulich@novell.com>
1469 * ldmain.c (remove_output): Use unlink_if_ordinary instead of unlink.
1470 * pe-dll.c (pe_dll_generate_implib): Likewise.
1472 2005-02-24 Ben Elliston <bje@au.ibm.com>
1474 * ldfile.c: Remove GNU960 conditional code.
1475 * emultempl/gld960.em: Likewise.
1476 * emultempl/gld960c.em: Likewise.
1477 * emultempl/lnk960.em: Likewise.
1479 2005-02-24 Nick Clifton <nickc@redhat.com>
1481 * emultempl/lnk960.em (lnk960_before_parse): Remove redundant
1482 empty string from calls to concat.
1484 2005-02-23 Nick Clifton <nickc@redhat.com>
1486 * emultempl/lnk960.em (lnk960_before_parse): Terminate list of
1487 arguments passed to concat() with a NULL.
1489 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h because they
1490 define types needed by ldfile.h
1492 2005-02-23 Alan Modra <amodra@bigpond.net.au>
1494 * pe-dll.c: Warning fixes.
1495 * emultempl/sunos.em: Likewise.
1497 2005-02-22 Daniel Jacobowitz <dan@codesourcery.com>
1499 * ldlang.c (section_already_linked): Don't call
1500 bfd_section_already_linked for dynamic objects.
1502 2005-02-22 Alan Modra <amodra@bigpond.net.au>
1504 * ldexp.c: Warning fixes.
1505 * ldwrite.c: Likewise.
1506 * emultempl/elf32.em: Likewise.
1508 2005-02-21 H.J. Lu <hongjiu.lu@intel.com>
1510 * ldlang.c (lang_add_section): Check SEC_TIC54X_BLOCK for TI
1512 (lang_size_sections_1): Check SEC_COFF_SHARED_LIBRARY for COFF
1513 and ECOFF output only.
1515 2005-02-21 Alan Modra <amodra@bigpond.net.au>
1517 * config.in: Regenerate.
1518 * configure: Regenerate.
1520 2005-02-17 Zack Weinberg <zack@codesourcery.com>
1522 * ldexp.c (assigning_to_dot): New global flag.
1523 (fold_name): If assigning_to_dot is true, object immediately to
1524 an undefined symbol.
1525 (exp_fold_tree): Set and clear assigning_to_dot around the
1526 recursive call to exp_fold_tree to process the right-hand side
1527 of an assignment to the location counter.
1529 2005-02-17 Paul Brook <paul@codesourcery.com>
1531 * scripttempl/armbpabi.sc: Add dummy name to version block.
1533 2005-02-17 Alan Modra <amodra@bigpond.net.au>
1535 * ldexp.c (new_abs): Init new.str.
1537 2005-02-15 Mark Mitchell <mark@codesourcery.com>
1539 * configure.in (AC_CHECK_FUNCS): Add glob.
1540 * configure: Regenerated.
1541 * emultempl/elf32.em (<glob.h>): Do not include if HAVE_GLOB is
1543 (gld${EMULATION_NAME}_parse_ld_so_conf_include): Do not use glob
1544 if HAVE_GLOB is not defined.
1546 2005-02-16 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1548 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define
1549 lib_path if NATIVE is yes.
1551 2005-02-16 Alan Modra <amodra@bigpond.net.au>
1553 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Make
1554 an error creating fake bfd fatal.
1555 (ppc_before_allocation): Continue on after errors.
1556 (gld${EMULATION_NAME}_finish): Likewise.
1558 2005-02-15 Nick Clifton <nickc@redhat.com>
1560 * ldlex.l (YY_NO_UNPUT): Define so that the yy_unput function is
1561 not declared. It is not used and its presence causes a compile
1564 2005-02-11 Zack Weinberg <zack@codesourcery.com>
1566 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed):
1567 If st.st_ino is zero, do not treat the library as a duplicate.
1569 2005-02-10 Jakub Jelinek <jakub@redhat.com>
1571 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
1572 Set BFD_LINKER_CREATED on the stubs bfd.
1573 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
1576 2005-02-08 Mark Mitchell <mark@codesourcery.com>
1578 * scripttempl/armbpabi.sc (VERSION): Make special section symbols
1580 (Image$$ER_RO$$Base): Define whenever RELOCATING.
1581 (Image$$ER_RO$$Limit): Likewise.
1582 (SHT$$INIT_ARRAY$$Base): Likewise.
1583 (SHT$$INIT_ARRAY$$Limit): Likeise.
1585 2005-02-10 Ben Elliston <bje@au.ibm.com>
1587 * emultempl/beos.em: Remove #if 0 and #if 1 blocks.
1589 2005-02-08 Richard Sandiford <rsandifo@redhat.com>
1591 * configure.tgt (mips64*el-*-linux-gnu*): Define targ_extra_libpath
1592 to include o32 and n64 emulations.
1593 (mips64*-*-linux-gnu*): Likewise.
1595 2005-02-08 Hans-Peter Nilsson <hp@axis.com>
1597 * ldmain.c (warning_callback, warning_find_reloc): Prepend
1598 "warning: " to warning messages.
1600 2005-02-04 Alan Modra <amodra@bigpond.net.au>
1602 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't
1603 look up symbol for etree_provide here.
1605 2005-02-02 Daniel Jacobowitz <dan@codesourcery.com>
1607 * emulparams/elf32bmip.sh (TEXT_DYNAMIC): Always set.
1609 2005-02-01 Edward Welbourne <eddy@opera.com>
1610 Nick Clifton <nickc@redhat.com>
1612 * ld.texinfo (Source Code Reference): New node describing how to
1613 access linker script defined variables from source code.
1615 2005-02-01 Alan Modra <amodra@bigpond.net.au>
1617 * ld.texinfo: Clarify --as-needed operation.
1619 2005-01-31 Andrew Cagney <cagney@gnu.org>
1621 * configure: Regenerate to track ../gettext.m4.
1623 2005-01-31 Nick Clifton <nickc@redhat.com>
1625 * ldver.c (ldversion): Bump reported copyright date to 2005.
1627 2005-01-31 Nick Clifton <nickc@redhat.com>
1629 * configure.tgt: Remove obsolete targets m68k-lynxos and
1632 2005-01-28 Julian Brown <julian@codesourcery.com>
1634 * emultempl/armelf.em (fix_v4bx): New variable.
1635 (arm_elf_create_output_section_statements): Communicate fix_v4bx flag
1637 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_FIX_V4BX.
1638 (PARSE_AND_LIST_LONGOPTS): Add option --fix-v4bx.
1639 (PARSE_AND_LIST_OPTIONS): Add option --fix-v4bx.
1640 (PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX.
1641 * NEWS: Mention --fix-v4bx.
1642 * ld.texinfo: Document --fix-v4bx.
1644 2005-01-25 Mark Mitchell <mark@codesourcery.com>
1646 * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Define, so
1647 as to include .ARM.exidx$${Base,Limit}.
1648 * ld/scripttempl/armbpabi.sc: Move .plt to end of text segment.
1649 Define IMAGE$$ER_RO$${Base,Limit} and SHT$$INIT_ARRAY$${Base,Limit}.
1650 Put .init_array, .fini_array, etc. into the read-only data
1653 2005-01-25 Alan Modra <amodra@bigpond.net.au>
1655 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Formatting.
1656 (gld${EMULATION_NAME}_after_open): Ignore needed libs if they were
1657 only needed by an as-needed lib that didn't get linked.
1659 2005-01-23 Alan Modra <amodra@bigpond.net.au>
1661 * ld.texinfo (Output Section Keywords <CONSTRUCTORS>): Correct
1662 __DTOR_LIST__ description.
1664 2005-01-23 Alan Modra <amodra@bigpond.net.au>
1666 * ld.texinfo (Location Counter <dot outside sections>): Document
1667 effects of orphan section placement, and ". = ." workaround.
1668 * Makefile.in: Regenerate.
1670 2005-01-22 Richard Sandiford <rsandifo@redhat.com>
1672 * emulparams/elf32bmip.sh (OTHER_GOT_SECTIONS): Add ". = .;".
1673 * emulparams/elf32bmipn32-defs.sh (OTHER_GOT_SECTIONS): Likewise.
1675 2005-01-21 Jakub Jelinek <jakub@redhat.com>
1677 * ldgram.y (AS_NEEDED): New token.
1678 (input_list): Handle AS_NEEDED ( input_list ).
1679 * ldlex.l (AS_NEEDED): Add.
1680 * ld.texinfo: Document AS_NEEDED ().
1681 * NEWS: Mention AS_NEEDED ().
1683 2005-01-21 Ben Elliston <bje@au.ibm.com>
1685 * ldlang.c (lang_reasonable_defaults): Remove.
1686 (lang_process): Don't call lang_reasonable_defaults.
1688 * ldexp.c (exp_assop): Remove #if 0'd code.
1689 (exp_print_tree): Likewise.
1690 * ldlang.c (lang_memory_region_lookup): Likewise.
1691 (open_output): Likewise.
1692 (lang_do_assignments_1): Likewise.
1693 (lang_place_orphans): Likewise.
1694 (lang_enter_output_section_statement): Likewise.
1695 (lang_reasonable_defaults): Likewise.
1696 * ldlang.h (struct lang_input_statement_struct): Likewise.
1697 * mri.c (mri_draw_tree): Likewise.
1698 (mri_load): Likewise.
1699 * pe-dll.c (generate_reloc): Likewise.
1700 (make_import_fixup_entry): Likewise.
1701 (pe_as16): Likewise.
1702 * emultempl/beos.em (set_pe_subsystem): Likewise.
1703 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
1704 * emultempl/pe.em: Likewise.
1705 * emultempl/xtensaelf.em (xtensa_colocate_literals): Likewise.
1707 2005-01-20 Daniel Jacobowitz <dan@codesourcery.com>
1709 * Makefile.am (ALL_EMULATIONS): Add earmelfb_linux_eabi.o.
1710 (earmelfb_linux_eabi.c): New target.
1711 * Makefile.in: Regenerated.
1712 * configure.tgt (arm*b-*-linux-gnueabi): New target.
1713 * emulparams/armelfb_linux_eabi.sh: New file.
1715 2005-01-20 Nick Hudson <skrll@netbsd.org>
1718 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
1719 Handle bfd_elf32_hppa_nbsd_vec.
1721 2005-01-19 Richard Sandiford <rsandifo@redhat.com>
1723 * ldmain.h (ld_sysroot): Change type to a constant string.
1724 * ldmain.c (ld_sysroot): Likewise.
1725 (get_relative_sysroot, get_sysroot): New functions, adding command-line
1726 support for changing the sysroot.
1727 (main): Call the new functions.
1728 * lexsup.c (OPTION_SYSROOT): New.
1729 (ld_options): Add --sysroot.
1730 (parse_args): Add a dummy handler for it.
1731 * ld.texinfo (--sysroot): Document.
1732 * NEWS: Mention the new --sysroot option.
1734 2005-01-18 Alan Modra <amodra@bigpond.net.au>
1736 * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
1737 (lang_place_orphans): Don't abort on just_syms_flag, instead call
1740 2005-01-16 Danny Smith <dannysmith@users.sourceforge.net>
1742 * defilep.y (def_name, def_library): Combine into...
1743 (def_image_name): New function. Strip name to basename,
1746 2005-01-12 Mark Kettenis <kettenis@gnu.org>
1748 * configure.in: Be sure to invoke config.sub using the shell.
1749 * configure: Regenerate.
1751 2005-01-11 Alan Modra <amodra@bigpond.net.au>
1753 * configure.host: Correct sed patterns for last change.
1755 2005-01-10 Nick Clifton <nickc@redhat.com>
1758 * ldmisc.c (vfinfo): Add an extra argument: is_warning. Use this
1759 to determine whether config.make_executable should be set to FALSE in
1760 conjunction with config.fatal_warnings.
1761 (info_msg, minfo, lfinof): Pass FALSE as the extra argument.
1762 (einfo): Pass TRUE as the extra argument.
1764 2005-01-10 Greg Schaffer <gschafer@zip.com.au>
1766 * configure.host (linux targets): Use "${CC} -dumpspecs" instead
1767 of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0.
1768 (ia64-*-aix): Delete - this target is obsolete, and would be
1769 broken by this patch.
1771 2005-01-06 Eric Botcazou <ebotcazou@libertysurf.fr>
1773 * configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*.
1774 (sparc64-sun-solaris2*): New host.
1776 2005-01-06 Paul Brook <paul@codesourcery.com>
1778 * Makefie.am: Add earmelf_vxworks.
1779 * Makefile.in: Regenerate.
1780 * configure.tgt: Make arm-*-vxworks a separate case.
1781 * emulparams/armelf_vxworks.sh: New function.
1783 2005-01-06 Alan Modra <amodra@bigpond.net.au>
1785 * emultempl/ppc64elf.em (no_multi_toc): New var.
1786 (gld${EMULATION_NAME}_finish): Pass to ppc64_elf_setup_section_lists.
1787 (OPTION_NO_MULTI_TOC): Define.
1788 (PARSE_AND_LIST_LONGOPTS): Add --no-multi-toc support.
1789 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
1791 2005-01-05 Nick Clifton <nickc@redhat.com>
1794 * ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
1795 Standard's specification for parsable error messages.
1797 2005-01-04 Paul Brook <paul@codesourcery.com>
1799 * Makefile.am: Correct dependency for earmsymbian.c.
1800 * Makefile.in: Regenerate.
1802 2004-12-28 Danny Smith <dannysmith@users.sourceforge.net>
1804 * emultempl/pe.em (set_pe_subsystem): Change second arg to
1805 lang_add_entry to FALSE.
1807 2004-12-23 Nick Clifton <nickc@redhat.com>
1810 * emulparams/shelf.sh (.stack): Increase stack start address to
1813 2004-12-20 Nick Clifton <nickc@redhat.com>
1815 * ldmain.c (main): Issue an error message if -static and -shared
1818 2004-12-17 Jakub Jelinek <jakub@redhat.com>
1820 * ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
1821 * ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
1822 * ldlang.c (lang_size_sections): Use them to avoid wasting virtual
1823 address space at DATA_SEGMENT_ALIGN. Fix computation of expected
1824 PT_GNU_RELRO segment end.
1826 2004-12-14 P.J. Darcy <darcypj@us.ibm.com>
1828 * configure.tgt: Add s390x-ibm-tpf support.
1830 2004-12-16 Martin Kögler <mkoegler@auto.tuwien.ac.at>
1832 * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
1835 2004-12-07 Ben Elliston <bje@gnu.org>
1837 * ldemul.h: Forward declare struct option.
1839 2004-12-01 Danny Smith <dannysmith@users.sourceforge.net>
1841 * scripttempl/pe.sc (.data): Add .jcr subsection.
1843 2004-11-30 Paul Brook <paul@codesourcery.com>
1845 * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
1847 2004-11-30 Tero Niemela <tero_niemela@yahoo.com>
1849 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
1850 * Makefile.in: Regenerate.
1852 2004-11-26 Melissa Mears <asterisk@graces.dricas.com>
1854 * emultempl/pe.em: Add --subsystem:xbox as well as
1856 * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
1857 and numeric subsystems.
1859 2004-11-24 Alan Modra <amodra@bigpond.net.au>
1861 * ldexp.c (fold_name): Correct PR 338 fix.
1863 2004-11-19 Mark Mitchell <mark@codesourcery.com>
1865 * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
1866 (earmelf_linux_eabi.c): New target.
1867 * configure.tgt (arm*-*-linux-gnueabi): Handle it.
1868 * emulparams/armelf_linux_eabi.sh: New file.
1869 * Makefile.in: Regenerated.
1871 2004-11-19 Nick Clifton <nickc@redhat.com>
1874 * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
1875 LENGTH fields in the MEMORY command, to explicitly state that
1876 symbols cannot be used in their expressions.
1878 2004-11-19 Jon Beniston <jon@beniston.com>
1880 * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
1881 * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
1882 * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
1883 which return the length and origin of a memory.
1884 * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
1885 * NEWS: Mention support for ORIGIN and LENGTH operators.
1887 2004-11-17 Daniel Jacobowitz <dan@codesourcery.com>
1889 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
1890 a dynamic object for stubs.
1892 2004-11-04 Paul Brook <paul@codesourcery.com>
1894 * ld.texinfo: Document --default-imported-symver.
1895 * ldmain.c (main): Set link_info.default_imported_symver.
1896 * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
1897 (ld_options): Add --default-imported-symver.
1898 (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
1900 2004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
1901 Vineet Sharma <vineets@noida.hcltech.com>
1903 * Makefile.am: Add entries for new maxq-coff target.
1904 * Makefile.in: Regenerate.
1905 * configure.tgt: Add support for maxq.
1906 * emulparams/maxqcoff.sh: New File.
1907 * scripttempl/maxqcoff.sc: New linker script for target maxq.
1908 * NEWS: Mention the new target.
1910 2004-11-04 Daniel Jacobowitz <dan@debian.org>
1912 * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
1913 (earmelf_oabi.c): Remove rule.
1914 * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
1915 * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
1916 * Makefile.in: Regenerated.
1918 2004-11-04 Hans-Peter Nilsson <hp@axis.com>
1920 * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
1921 * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
1922 (FINI_START): Ditto.
1923 (INIT_END): Remove emitted "jump [sp+]".
1926 2004-11-04 Alan Modra <amodra@bigpond.net.au>
1928 * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
1929 (no_opd_opt, no_toc_opt): New static vars.
1930 (ppc_before_allocation): Don't edit opt if no_opd_opt. Call
1932 (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
1933 (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
1934 (PARSE_AND_LIST_OPTIONS): Describe new options.
1935 (PARSE_AND_LIST_ARGS_CASES): Handle them.
1937 2004-10-27 Nick Clifton <nickc@redhat.com>
1939 * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
1940 parameter to invocation of lang_section_start.
1941 * emultempl/aix.em (_handle_option): Likewise.
1943 * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
1944 eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
1945 * Makefile.in: Regenerate.
1947 2004-10-26 Mark Mitchell <mark@codesourcery.com>
1949 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
1950 __exidx_{start,end} when not relocating.
1952 2004-10-25 Mark Mitchell <mark@codesourcery.com>
1954 * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
1955 * ldexp.h (segment_type): New type.
1956 (segments): New variable.
1957 * ldexp.c (segments): New variable.
1958 (exp_print_token): Handle SEGMENT_START.
1959 (fold_binary): Likewise.
1960 * ldgram.y (SEGMENT_START): Declare it as a token.
1961 (exp): Handle SEGMENT_START.
1962 * ldlang.h (lang_address_statement_type): Add segment field.
1963 (lang_section_start): Change prototype.
1964 * ldlang.c (map_input_to_output_sections): Do not process section
1965 assignments if a corresponding SEGMENT_START has already been
1967 (lang_section_start): Add segment parameter.
1968 * ldlex.l (SEGMENT_START): Add it.
1969 * lexsup.c (seg_segment_start): New function.
1970 (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
1971 * ld.texinfo (SEGMENT_START): Document it.
1972 * emulparams/armsymbian.sh (EMBEDDED): Set it.
1973 * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
1974 base addresses. Do not map relocations.
1975 * NEWS: Mention SEGMENT_START.
1977 2004-10-26 Paul Brook <paul@codesourcery.com>
1979 * ld.texinfo: Document --default-symver.
1980 * ldmain.c (main): Set link_info.create_default_symver.
1981 * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
1982 (ld_options): Add default-symver.
1983 (parse_args): Handle OPTION_DEFAULT_SYMVER.
1985 2004-10-24 Danny Smith <dannysmith@users.sourceforge.net>
1987 * pe-dll.c (process_def_file): Don't export all symbols by default if
1988 building a position-independent executable.
1990 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
1993 * ldmain.c (reloc_overflow): Accept a pointer to struct
1994 bfd_link_hash_entry. Report symbol location for relocation
1997 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
1999 * genscripts.sh (libpath.exp): Really generate for first
2002 2004-10-19 Danny Smith <dannysmith@users.sourceforge.net>
2004 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
2005 comparison and replacement of filenames.
2007 2004-10-19 H.J. Lu <hongjiu.lu@intel.com>
2010 * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
2011 option on linker script as the one for linker script.
2013 2004-10-16 Daniel Jacobowitz <dan@debian.org>
2015 * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
2016 (check_excluded_libs): New.
2017 (load_symbols): Call check_excluded_libs.
2018 * ldlang.h (add_excluded_libs): New prototype.
2019 * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
2020 (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
2021 (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
2022 * ld.texinfo (Command Line Variables): Document --exclude-libs.
2023 (Options Specific to i386 PE Targets): Remove --exclude-libs.
2025 2004-10-15 Alan Modra <amodra@bigpond.net.au>
2027 * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
2028 failing link script assert.
2030 * ldctor.c (ldctor_add_set_entry): Fix comment typo.
2032 2004-10-14 H.J. Lu <hongjiu.lu@intel.com>
2035 * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
2036 (SMALL_DATA_DTOR): Set.
2037 * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
2038 (SMALL_DATA_DTOR): Unset.
2039 * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
2040 after .data. If SMALL_DATA_DTOR is set, move .dtors after
2043 2004-10-14 Alan Modra <amodra@bigpond.net.au>
2046 * ldlang.h (lang_output_section_statement_type): Make "next" a
2047 struct lang_output_section_statement_struct *.
2048 (struct orphan_save): Move from elf32.em. Add "name" and "flags".
2049 (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
2050 * ldlang.c (lang_output_section_find_1): Adjust for changed
2051 output_section_statement "next".
2052 (strip_excluded_output_sections): Likewise.
2053 (lang_record_phdrs): Likewise.
2054 (lang_output_section_find_by_flags): New function.
2055 (output_prev_sec_find): Move from pe.em. Adjust iterator.
2056 (lang_insert_orphan): New function. Tail end of elf32.em's
2057 place_orphan merged with that from pe.em. Allow bfd_section to
2058 be placed first. New heuristic for placing new output section
2059 statement in existing script, and accompanying split of __start
2060 symbol alignment into a separate assignment to dot.
2061 (lang_add_section): Consistently use output->bfd_section rather than
2062 an alias, section->output_section.
2063 (map_input_to_output_sections): Rename overly long arg. Move
2064 initialization of data_statement output section to here..
2065 (lang_check_section_addresses): ..from here.
2066 (print_assignment): Correct printing of etree_assert.
2067 (print_all_symbols): Don't bomb if userdata is NULL.
2068 (IGNORE_SECTION): Rearrange.
2069 * emultempl/elf32.em (output_rel_find): Adjust interator.
2070 (output_prev_sec_find): Delete.
2071 (struct orphan_save): Delete.
2072 (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
2073 flags without creating a duplicate output section statement.
2074 Revise code holding history of various orphan section placements.
2075 Allow orphan sections to place before script specified output
2076 sections. Call lang_output_section_find_by_flags when placement
2077 by name fails. Use lang_insert_orphan.
2078 * emultempl/mmo.em (output_prev_sec_find): Delete.
2079 (struct orphan_save): Delete.
2080 (mmo_place_orphan): Revise code holding history of orphan placement.
2081 Allow orphans to place before existing output sections. Use
2083 * emultempl/pe.em (output_prev_sec_find): Delete.
2084 (struct orphan_save): Delete.
2085 (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
2088 2004-10-13 Mark Mitchell <mark@codesourcery.com>
2090 * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
2093 2004-10-13 Alan Modra <amodra@bigpond.net.au>
2096 * ldcref.c (check_section_sym_xref): Delete.
2097 (check_local_sym_xref): New function.
2098 (check_nocrossrefs): Adjust call.
2099 * emultempl/pe.em (struct orphan_save): Add os_tail.
2100 (place_orphan): Backport assorted fixes from elf32.em.
2102 2004-10-12 Bob Wilson <bob.wilson@acm.org>
2104 * emultempl/xtensaelf.em: Use ISO C90 formatting.
2106 2004-10-11 Jakub Jelinek <jakub@redhat.com>
2108 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
2109 getline for portability.
2111 * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
2112 (gld${EMULATION_NAME}_parse_ld_so_conf,
2113 gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
2114 (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
2116 2004-10-11 Alan Modra <amodra@bigpond.net.au>
2119 * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
2120 rejected when linking statically.
2122 2004-10-08 Daniel Jacobowitz <dan@debian.org>
2124 * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
2126 2004-10-07 Bob Wilson <bob.wilson@acm.org>
2128 * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
2129 assembler-generated longcall sequences. Describe new --size-opt
2131 * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
2132 * emultempl/xtensaelf.em (remove_section,
2133 replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
2134 elf_xtensa_after_open): New.
2135 (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
2136 OPTION_NO_LITERAL_MOVEMENT): Define.
2137 (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
2138 (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
2139 (PARSE_AND_LIST_OPTIONS): Add --size-opt.
2140 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
2141 OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
2142 (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
2143 * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
2144 * Makefile.am (eelf32xtensa.c): Update dependencies.
2145 * Makefile.in: Regenerate.
2147 2004-10-07 Jeff Baker <jbaker@qnx.com>
2149 * lexsup.c: Handle --warn-shared-textrel option.
2150 (ld_options): Restore alpha sorting of options.
2151 * ldmain.c (main): Initialise warn_shared_info field to FALSE.
2152 * ld.texinfo: Add documentation for --warn-shared-textrel.
2153 * NEWS: Added mention of --warn-shared-textrel option.
2155 2004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
2157 * emultempl/crxelf.em (disable_relaxation): Add.
2158 (crxelf_before_allocation): Enable --relax option by default.
2159 (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
2160 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
2161 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
2163 2004-10-04 H.J. Lu <hongjiu.lu@intel.com>
2165 * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
2166 --sort-section name|alignment.
2168 * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
2169 --sort-section name|alignment.
2171 * ld.h (sort_type): New enum.
2172 (wildcard_spec): Change the type of `sorted' to sort_type.
2174 * ldgram.y (SORT): Removed.
2175 (SORT_BY_NAME): Added.
2176 (SORT_BY_ALIGNMENT): Added.
2177 (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
2179 (input_section_spec_no_keep): Updated `sorted'.
2180 (statement): Replace SORT with SORT_BY_NAME.
2182 * ldlang.c (compare_section): New function to compare 2
2183 sections with different sorting schemes.
2184 (wild_sort): Updated. Use compare_section.
2185 (update_wild_statements): New function.
2186 (lang_process): Call update_wild_statements before
2187 map_input_to_output_sections.
2189 * ldlex.l (SORT_BY_NAME): New.
2190 (SORT_BY_ALIGNMENT): New.
2191 (SORT): Return SORT_BY_NAME.
2193 * ldmain.c (sort_section): New. Defined.
2194 (main): Initialize it to none.
2196 * lexsup.c (option_values): Add OPTION_SORT_SECTION.
2197 (ld_options): Add an entry for OPTION_SORT_SECTION.
2198 (parse_args): Handle OPTION_SORT_SECTION.
2200 * mri.c (mri_draw_tree): Updated `sorted'.
2202 2004-10-04 Jakub Jelinek <jakub@redhat.com>
2204 * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
2205 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
2207 (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
2208 and . as second argument.
2209 (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
2210 * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
2211 (fold_binary): Add it here. Insert padding to make relro_end
2212 COMMONPAGESIZE bytes aligned. For DATA_SEGMENT_ALIGN in
2213 exp_dataseg_relro_adjust phase just use previously computed
2215 * ldlang.c (lang_size_sections): Set exp_data_seg.base for
2216 relro_adjust here. Call lang_size_sections_1 once more if there
2217 was too big padding at DATA_SEGMENT_RELRO_END.
2218 * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
2220 2004-10-01 Paul Brook <paul@codesourcery.com>
2222 * emulparams/armelf.sh: Add unwinding table sections.
2224 2004-09-30 Filip Navara <navaraf@reactos.com>
2226 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
2227 correct base address for position independant executables.
2228 * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
2229 executables as DLLs.
2231 2004-09-30 Paul Brook <paul@codesourcery.com>
2233 * ld.texinfo: Document --target2=abs.
2234 * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
2236 2004-09-29 Nick Clifton <nickc@redhat.com>
2238 * scripttempl/xstormy16.sc: Only perform the assignments to the
2239 ROM region when not performing a relocatable link. The ROM region
2240 does not start at address 0, but the sections will.
2241 * Makefile.am: Fix linker script dependency for the generation of
2243 * Makefile.in: Regenerate.
2245 2004-09-18 Filip Navara <navaraf@reactos.com>
2247 * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
2248 emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
2249 emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
2251 * scripttempl/pe.sc: Make the virtual address and file offset synced if
2252 the alignment is lower than the target page size.
2254 2004-09-27 Filip Navara <navaraf@reactos.com>
2256 * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
2257 def_file_parse to handle pe_def_file if NULL and prevent crash with
2260 2004-09-27 Alan Modra <amodra@bigpond.net.au>
2262 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
2263 --emit-stub-syms automatically when --emit-relocs.
2265 2004-09-24 Paul Brook <paul@codeosurcery.com>
2267 * scripttempl/elf.sc: Keep .preinit_array, .init_array and
2268 .fini_array sections.
2270 2004-09-19 Andreas Schwab <schwab@suse.de>
2272 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
2273 base so that relro end is suitably aligned.
2275 2004-09-17 Paul Brook <paul@codesourcery.com>
2277 * ld.texinfo: Rename arm-specific section. Document --target*
2278 * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
2279 * emulparams/armelf_linux.sh: Ditto.
2280 * emulparams/armelf_nbsd.sh: Ditto.
2281 * emultempl/armelf.em: Set default for TARGET2_TYPE.
2282 (target2_type): New variable.
2283 (arm_elf_before_allocation): Don't pass target1_type.
2284 (arm_elf_create_output_section_statements): New function.
2285 (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
2286 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
2287 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
2288 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
2289 * emultempl/armelf_oabi.em (_before_allocation): Remove extra
2290 argument to bfd_elf32_arm_process_before_allocation.
2292 2004-09-17 Alan Modra <amodra@bigpond.net.au>
2294 * ldexp.c (fold_name): Update u.undef.next refs.
2295 * emultempl/pe.em: Likewise.
2296 * emultempl/sunos.em: Likewise.
2298 2004-09-17 Alan Modra <amodra@bigpond.net.au>
2300 * Makefile.am: Run "make dep-am".
2301 * Makefile.in: Regenerate.
2302 * config.in: Regenerate.
2303 * configure: Regenerate.
2304 * aclocal.m4: Regenerate.
2305 * po/ld.pot: Regenerate.
2307 2004-09-16 Tomer Levi <Tomer.Levi@nsc.com>
2309 * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
2313 2004-09-16 Alan Modra <amodra@bigpond.net.au>
2315 * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
2316 to bfd_elf32_arm_process_before_allocation call.
2318 2004-09-13 Paul Brook <paul@codesourcery.com>
2320 * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
2321 * emultempl/armelf.em: Use TARGET1_IS_REL. Add --target1-{rel,abs}.
2323 2004-09-07 H.J. Lu <hongjiu.lu@intel.com>
2325 * configure: Regenerated with autconfig 2.13.
2327 2004-09-07 Andreas Schwab <schwab@suse.de>
2329 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
2330 alignment before adjusting DATA_SEGMENT_RELRO_END.
2332 2004-09-06 Mark Mitchell <mark@codesourcery.com>
2334 * emulparams/armsymbian.sh: Use armbpabi script.
2335 * scripttempl/armbpabi.sc: New script.
2337 2004-09-02 Mark Mitchell <mark@codesourcery.com>
2339 * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
2340 (earmsymbian.c): New target.
2341 * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
2342 * Makefile.in: Regenerated.
2343 * aclocal.m4: Likewise.
2344 * configure: Likewise.
2345 * emulparams/armsymbian.sh: New file.
2347 2004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
2349 * scripttempl/elf32crx.sc: Edit file with comments.
2350 (.init): Add new section.
2352 (.ctor): Control the linkage order.
2355 2004-08-27 Nick Clifton <nickc@redhat.com>
2357 * emultempl/pe.em (after_open): Do not assume that either bfd is
2360 2004-08-26 Alan Modra <amodra@bigpond.net.au>
2362 * ldlang.c (lang_init): Don't compare with TRUE.
2364 2004-08-25 Dmitry Diky <diwil@spec.ru>
2366 * emulparams/msp430all.sh: Fix RAM sizes for all targets.
2367 * scripttempl/elf32msp430.sc: Add .profiler section definition.
2369 2004-08-24 H.J. Lu <hongjiu.lu@intel.com>
2371 * ldlang.c (wildcardp): Defined as a macro with strpbrk.
2373 2004-08-19 Mark Mitchell <mark@codesourcery.com>
2375 * configure.tgt (arm*-*-symbianelf*): New target.
2376 (arm*-*-eabi*): Likewise.
2378 2004-08-19 Jakub Jelinek <jakub@redhat.com>
2380 * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
2381 (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
2382 (OPTION_NON_OVERLAPPING_OPD): Define.
2383 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
2384 --non-overlapping-opd option.
2386 2004-08-18 Alan Modra <amodra@bigpond.net.au>
2389 * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
2390 was already on the undefs list.
2392 2004-08-17 Alan Modra <amodra@bigpond.net.au>
2394 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
2395 prefix the symbol field too.
2397 2004-08-13 Alan Modra <amodra@bigpond.net.au>
2399 * ldmain.c (link_callbacks): Remove "error_handler".
2400 * ldmisc.c: Include elf-bfd.h.
2401 (vfinfo): Sort comment. Handle %A. Use %A instead of
2402 bfd_get_section_indent.
2403 (error_handler): Delete.
2404 * ldmisc.h (error_handler): Delete declaration.
2406 2004-08-10 Alan Modra <amodra@bigpond.net.au>
2408 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
2409 ppc64_elf_restore_symbols.
2411 2004-08-09 Alan Modra <amodra@bigpond.net.au>
2413 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
2414 .toc is too large on relocatable linking.
2416 2004-08-09 Alan Modra <amodra@bigpond.net.au>
2418 * emultempl/ppc64elf.em (ppc_after_open): Delete.
2419 (LDEMUL_AFTER_OPEN): Don't define.
2421 2004-08-02 Stephane Carrez <stcarrez@nerim.fr>
2423 * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
2425 2004-08-01 Stephane Carrez <stcarrez@nerim.fr>
2427 * scripttempl/elfm68hc12.sc: Align text, rodata and data section
2430 2004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
2432 * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
2434 2004-07-26 Dmitry Diky <diwil@spec.ru>
2436 * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
2437 msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
2439 * configure.tgt: Likewise.
2440 * emulparams/msp430all.sh: Likewise.
2441 * Makefile.in: Regenerate.
2443 2004-07-23 Nick Clifton <nickc@redhat.com>
2445 * emultempl/elf32.em (_place_orphan): Use an already existing
2446 section name if that section does not have any flags set.
2448 2004-07-21 H.J. Lu <hongjiu.lu@intel.com>
2450 * ldlang.c (already_linked_hash_entry): Removed.
2451 (already_linked): Likewise.
2452 (already_linked_table): Likewise.
2453 (section_already_linked): Call bfd_section_already_linked.
2454 (lang_process): Replace already_linked_table_init with
2455 bfd_section_already_linked_table_init and check return. Replace
2456 already_linked_table_free with bfd_section_already_linked_table_free.
2458 2004-07-21 Nick Clifton <nickc@redhat.com>
2460 * ldlang.c (init_os): Make sure that the newly allocated userdata
2461 structure is zeroed out.
2463 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
2465 * NEWS: Mention the new --add-needed/--no-add-needed and
2466 --as-needed/--no-as-needed options.
2468 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
2470 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
2471 check the add_needed field.
2472 (dt_needed): New struct.
2473 (gld${EMULATION_NAME}_try_needed): Change the first argument
2474 to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
2475 bit in the file where the DT_NEEDED entry comes from.
2476 (gld${EMULATION_NAME}_search_needed): Change the second
2477 argument to a pointer to struct dt_needed.
2478 (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
2479 (gld${EMULATION_NAME}_after_open): Likewise.
2481 * ld.texinfo: Add --add-needed document.
2482 * ldlang.c (new_afile): Set p->add_needed.
2483 * ldlang.h (lang_input_statement_type): Add add_needed field.
2484 * ldmain.h (add_needed): Declare.
2485 * ldmain.c (add_needed): New global var.
2486 * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
2487 OPTION_NO_ADD_NEEDED.
2488 (ld_options): Likewise.
2489 (parse_args): Handle them.
2491 2004-07-13 Christof Petig <christof@petig-baender.de>
2493 * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
2494 for endian-ness of extracted addend.
2496 2004-07-13 Danny Smith <dannysmith@usesr.sourceforge.net>
2498 * pe-dll.c (auto_export): Filter on just the import prefix,
2499 "_imp_", not "_imp__".
2501 2004-07-09 Nick Clifton <nickc@redhat.com>
2503 * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
2505 2004-07-06 Tomer Levi <Tomer.Levi@nsc.com>
2507 * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
2508 (eelf32crx.c): New target.
2509 * Makefile.in: Regenerate.
2510 * configure.tgt: Handle crx-*-elf*.
2511 * emulparams/elf32crx.sh: New file.
2512 * emultempl/crxelf.em: New file.
2513 * scripttempl/elf32crx.sc: New file.
2514 * NEWS: Mention new target.
2516 2004-07-06 Nick Clifton <nickc@redhat.com>
2518 * Makefile.am: Add eshlsymbian.c.
2519 * Makefile.in: Regenerate.
2520 * configure.tgt: Add sh*-symbian-elf target.
2521 * emulparams/shlsymbian.sh: New file. Configure the
2522 sh-symbian-elf linker scripts.
2523 * scripttemp/elf32sh-symbian.sc: New file. Linker script
2524 template for the sh-symbian-elf target.
2526 2004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2528 * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
2529 * emulparams/hppalinux.sh: Likewise.
2530 * scripttempl/elf.sc: Place .plt just before .got when .plt is in
2531 data segment and PLT_BEFORE_GOT is defined.
2533 2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
2535 * ld.texinfo (WIN32): Document PE weak symbols.
2537 2004-07-02 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2539 * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
2541 2004-07-01 H.J. Lu <hongjiu.lu@intel.com>
2543 * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
2546 2004-06-29 Alan Modra <amodra@bigpond.net.au>
2548 * ldlang.c (lang_reset_memory_regions): Save last relax pass section
2551 2004-06-24 Alan Modra <amodra@bigpond.net.au>
2553 * ldlang.c (print_output_section_statement): Don't print size before
2555 (IGNORE_SECTION): Remove bfd arg. Update all callers.
2557 * ldexp.c (fold_name): .. See below.
2558 * ldlang.c (section_already_linked, print_output_section_statement,
2559 print_input_section, insert_pad, size_input_section,
2560 lang_check_section_addresses, lang_size_sections_1,
2561 lang_size_sections, lang_do_assignments_1, lang_set_startof,
2562 lang_one_common, lang_reset_memory_regions, lang_process,
2563 lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
2564 * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
2565 * pe-dll.c (process_def_file, generate_reloc): ..
2566 * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
2567 gld${EMULATION_NAME}_before_allocation): ..
2568 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
2569 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
2570 sh64_elf_${EMULATION_NAME}_after_allocation): ..
2571 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
2572 * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
2573 ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
2574 "size" instead of "_raw_size" and "_cooked_size". Expand
2575 bfd_section_size macro invocations.
2577 2004-06-22 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
2579 * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
2580 ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
2581 ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
2583 (.tls): Define ___tls_start__ and ___tls_end__.
2585 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
2587 * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
2589 2004-06-18 Adam Nemet <anemet@lnxw.com>
2591 * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
2592 * configure: Regenerate.
2594 2004-06-15 Jakub Jelinek <jakub@redhat.com>
2596 * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
2597 .gcc_except_table output sections lost accidentally with
2600 2004-06-15 Alan Modra <amodra@bigpond.net.au>
2602 * ldwrite.c (build_link_order): Use bfd_get_section_size
2603 instead of bfd_get_section_size_before_reloc or _raw_size.
2604 * pe-dll.c (process_def_file): Likewise.
2606 2004-06-14 Alan Modra <amodra@bigpond.net.au>
2608 From Richard Wirth <r.wirth@wirthware.de>
2609 * ldlang.c (lang_finish): Don't free lang_definedness_table.
2611 2004-05-29 Alan Modra <amodra@bigpond.net.au>
2613 * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
2614 (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
2616 2004-05-28 Alan Modra <amodra@bigpond.net.au>
2618 * ldlang.c: Formatting. Wrap long lines, expand bfd_get_section_flags
2620 * lexsup.c: Formatting. Wrap long lines.
2621 * ldwrite.c: Update copyright date.
2623 * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
2624 (output_section_callback): Nor SEC_KEEP here.
2625 (gc_section_callback): Twiddle SEC_EXCLUDE here.
2626 (lang_gc_wild): Delete. Fold into..
2627 (lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage
2629 (lang_process): Always call lang_gc_sections.
2630 (lang_place_orphans): Handle SEC_EXCLUDE sections.
2631 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
2634 2004-05-26 H.J. Lu <hongjiu.lu@intel.com>
2636 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
2637 SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
2638 * ldlang.c (lang_add_section): Likewise.
2640 2004-05-26 Alan Modra <amodra@bigpond.net.au>
2642 * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
2643 sections when doing a final link. Clear SEC_EXCLUDE when doing
2644 a relocable link, except for SEC_DEBUGGING sections.
2645 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
2646 same condition here to drop SEC_EXCLUDE orphan sections.
2648 2004-05-25 Alan Modra <amodra@bigpond.net.au>
2650 * ldlang.c (lang_process): Call bfd_merge_sections later, and
2651 only when not a relocatable link.
2652 (print_input_section): Handle SEC_EXCLUDE sections.
2653 (size_input_section): Don't update dot on SEC_EXCLUDE sections.
2654 (lang_do_assignments_1): Likewise.
2655 * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
2656 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
2657 * emultempl/hppaelf.em (build_section_lists): Likewise.
2658 * emultempl/ppc64elf.em (build_toc_list): Likewise.
2659 (build_section_lists): Likewise.
2661 2004-05-23 Andreas Schwab <schwab@suse.de>
2663 * ld.texinfo (Options): Fix typo in last change.
2665 2004-05-21 Andy Chittenden <achittenden@bluearc.com>
2667 * ld.h (ld_config_type): Add new field: hash_table_size.
2668 * ldmain.c: Initialise the new field to zero. If it is non-zero
2669 after parsing the linker's command line call
2670 bfd_hash_set_default_size.
2671 * lexsup.c (option_values): Add OPTION_HASH_SIZE.
2672 (ld_options): Add hash-size.
2673 (parse_args): Parse --hash-size option. Allow
2674 --reduce-memory-overheads to set the default hash table size as
2676 * ld.texinfo: Document the new switch. Also mention that
2677 --reduce-memory-overheads can affect the hash table size.
2678 * NEWS: Mention the new feature.
2680 2004-05-19 J"orn Rennecke <joern.rennecke@superh.com>
2682 * NEWS: Mention new linker map file generation and the
2683 --reduce-memory-overheads option.
2684 * ld.texinfo: Document --reduce-memory-overheads option.
2685 * ld.h (map_symbol_def): New struct.
2686 (struct user_section_struct, section_userdata_type): Rename to:
2687 (struct lean_user_section_struct, lean_section_userdata_type).
2688 (struct fat_user_section_struct, fat_section_userdata_type): New.
2689 (SECTION_USERDATA_SIZE): Define.
2690 (args_type): New member reduce_memory_overheads.
2691 * ldlang.c (map_obstack): New static variable.
2692 (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
2693 (lang_map): Unless command_line.reduce_memory_overheads is set,
2694 initialize lists of defined symbols for each section.
2695 (print_input_section): Unless command_line.reduce_memory_overheads
2696 is set, use print_all_symbols.
2697 (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
2698 * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
2699 * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
2700 (ld_options): Add entry for --reduce-memory-overheads.
2701 (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
2703 2004-05-19 Jakub Jelinek <jakub@redhat.com>
2705 * ldgram.y (sect_constraint): New.
2706 (ONLY_IF_RO, ONLY_IF_RW): New tokens.
2707 (section): Add sect_constraint. Pass additional argument
2708 to lang_enter_output_section_statement.
2709 * mri.c (mri_draw_tree): Pass additional argument to
2710 lang_enter_output_section_statement.
2711 * emultempl/pe.em (place_orphan): Likewise.
2712 (output_prev_sec_find): Disregard output section statements with
2714 * emultempl/mmo.em (output_prev_sec_find): Likewise.
2715 (mmo_place_orphan): Pass additional argument to
2716 lang_enter_output_section_statement.
2717 * emultempl/elf32.em (output_prev_sec_find): Disregard output section
2718 statements with constraint == -1.
2719 (place_orphan): Pass additional argument to
2720 lang_enter_output_section_statement.
2721 * ldlang.c (lang_enter_overlay_section): Likewise.
2722 (lang_output_section_find_1): New.
2723 (lang_output_section_find): Use it.
2724 (lang_output_section_statement_lookup_1): New.
2725 (lang_output_section_statement_lookup): Use it.
2726 (check_section_callback, check_input_sections): New.
2727 (map_input_to_output_sections): Check if all input sections
2728 are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
2729 (strip_excluded_output_sections): Disregard output section statements
2730 with constraint == -1.
2731 (lang_record_phdrs): Likewise.
2732 (lang_enter_output_section_statement): Add constraint argument.
2733 Use lang_output_section_statement_lookup_1.
2734 * ldlang.h (lang_output_section_statement_type): Add constraint
2735 and all_input_readonly fields.
2736 (lang_enter_output_section_statement): Adjust prototype.
2737 * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
2738 * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
2739 segment if all input sections are readonly.
2741 2004-05-19 Adam Nemet <anemet@lnxw.com>
2743 * scripttempl/i386lynx.sc: Remove file.
2745 2004-05-17 Bob Wilson <bob.wilson@acm.org>
2747 * ld.texinfo (Output Section Address): Correct subsection name.
2749 2004-05-17 Adam Nemet <anemet@lnxw.com>
2751 * configure.tgt (powerpc-*-lynxos* case): New case.
2752 * configure.host (i[3-7]86-*-lynxos* case): Remove case.
2753 * emulparams/ppclynx.sh: New file.
2754 * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
2755 * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
2756 (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
2757 (eppclynx.c): New rule.
2758 * Makefile.in: Regenerate.
2760 2004-05-13 Joel Sherrill <joel@oarcorp.com>
2762 * configure.tgt (or32-*-rtems*): Switch to elf and
2763 support versioned targets.
2765 2004-05-13 Nick Clifton <nickc@redhat.com>
2767 * po/fr.po: Updated French translation.
2769 2004-05-11 Jakub Jelinek <jakub@redhat.com>
2771 * genscripts.sh: Generate -z combreloc -z now -z relro scripts
2772 for binaries, -shared and -pie.
2773 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
2774 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
2775 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
2776 (OTHER_RELRO_SECTIONS): ... this.
2777 * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
2778 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
2779 -z relro and -z norelro.
2780 (gld${EMULATION_NAME}_list_options): Add it to usage.
2781 (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
2782 -z relro scripts when appropriate.
2783 * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
2784 Create separate .got.plt section if SEPARATE_GOTPLT.
2785 Move sections which are only written during relocation handling
2786 to the beginning of RW segment. If NO_SMALL_DATA, move .got
2787 before .data. Add DATA_SEGMENT_RELRO_END directive.
2788 Include OTHER_RELRO_SECTIONS.
2789 * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
2790 * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
2791 (fold_unary): Likewise.
2792 (fold_binary): Handle -z relro.
2793 * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
2794 exp_dataseg_relro_adjust phases. Add relro_end field.
2795 * ldmain.c (main): Initialize link_info.relro to FALSE.
2796 * ldlang.c (lang_size_sections): Handle -z relro.
2798 2004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
2800 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
2802 2004-05-07 J"orn Rennecke <joern.rennecke@superh.com>
2804 * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
2805 before printing it with %W.
2807 2004-05-07 Brian Ford <ford@vss.fsi.com>
2808 DJ Delorie <dj@redhat.com>
2810 * emultempl/pe.em (real_flags): New static.
2811 (OPTION_LARGE_ADDRESS_AWARE): New define.
2812 (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
2813 (gld_${EMULATION_NAME}_list_options): Likewise.
2814 (gld${EMULATION_NAME}_handle_option): Likewise.
2815 (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
2816 * ld.texinfo: Document it.
2819 2004-05-07 Brian Ford <ford@vss.fsi.com>
2821 * NEWS: Mention DWARF 2 support for i386pe.
2823 2004-05-05 Alexandre Oliva <aoliva@redhat.com>
2825 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
2828 2004-04-30 Alan Modra <amodra@bigpond.net.au>
2830 * ldlang.c (unique_section_p): Pass section parm, return true on
2832 (output_section_callback): Adjust.
2833 * ldlang.h (unique_section_p): Update prototype.
2834 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
2836 2004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
2838 * ld.texinfo (--gc-sections): Remove restriction for
2841 2004-04-29 Brian Ford <ford@vss.fsi.com>
2843 * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
2844 for DWARF 2/3. Update stab section's syntax.
2846 2004-04-29 Alan Modra <amodra@bigpond.net.au>
2848 * pe-dll.c: Revert changes accidentally committed 2004-03-08.
2849 (fill_edata): Correct pointer arithmetic.
2851 2004-04-21 Chris Demetriou <cgd@broadcom.com>
2853 * ld.texinfo: Remove MIPS --embedded-relocs documentation.
2854 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
2855 * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
2856 (EXTRA_EM_FILE): Use mipsecoff.em
2857 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
2858 (EXTRA_EM_FILE): Use mipsecoff.em
2859 * emultempl/mipsecoff.em: Restructure to be included as an
2860 extra emulation file.
2861 (check_sections, gld${EMULATION_NAME}_after_open)
2862 (gld${EMULATION_NAME}_after_allocation)
2863 (gld${EMULATION_NAME}_get_script)
2864 (ld_${EMULATION_NAME}_emulation): Remove
2865 (gld${EMULATION_NAME}_before_parse): Rename to...
2866 (mipsecoff_before_parse): This.
2867 (LDEMUL_BEFORE_PARSE): Define.
2868 * emultempl/mipself.em: Remove file.
2869 * scripttempl/mips.sc (.rel.sdata): Do not include in output.
2870 (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
2872 * Makefile.am: Remove dependencies on emultempl/mipself.em.
2873 * Makefile.in: Regenerate.
2875 2004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
2877 * ld.texinfo (synthesizing on H8/300): Information about linker
2878 relaxation support for bit manipulation instructions and system
2879 control instructions is added.
2881 2004-04-21 Hans-Peter Nilsson <hp@axis.com>
2883 * NEWS: Mention change in DEFINED semantics.
2885 2004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
2887 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
2888 (.data): Add KEEP for .gnu.linkonce.d.*personality*.
2889 (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
2891 2004-04-21 Ben Elliston <bje@au.ibm.com>
2893 * ld.texinfo (Simple Example): Add missing punctuation.
2895 2004-04-20 Chris Demetriou <cgd@broadcom.com>
2897 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
2899 2004-04-19 Jakub Jelinek <jakub@redhat.com>
2901 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
2904 2004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
2906 * scriptempl/pe.sc: Put numbered .ctors.* after .ctors
2907 with default priority. Likewise for dtors.
2909 2004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2911 * configure.host: Remove mips*-dec-bsd* target.
2912 * configure.tgt: Likewise.
2914 2004-04-08 Richard Sandiford <rsandifo@redhat.com>
2916 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
2917 * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
2918 * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
2919 * emultempl/irix.em: New file.
2920 * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
2922 * Makefile.in: Regenerate.
2924 2004-04-01 Paul Brook <paul@codesourcery.com>
2926 * emultempl/armelf.em (byteswap_code): Add.
2927 (arm_elf_before_allocation): Pass extra parameter.
2928 (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
2929 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
2930 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
2931 * emultempl/armelf_oabi.em: Pass extra parameter.
2932 * ld.texinfo: Document --be8.
2934 2004-03-30 Stan Shebs <shebs@apple.com>
2936 Remove long-obsolete MPW support.
2937 * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
2938 * Makefile.am (mpw): Remove file-presynthesizing actions.
2939 * Makefile.in: Likewise.
2940 * ldfile.c (slash): Remove MPW case.
2941 * ldlex.l [MPW]: Remove unused definition.
2943 2004-03-30 Galit Heller <Galit.Heller@nsc.com>
2945 * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
2946 (eelf32cr16c.c): New target.
2947 * Makefile.in: Regenerate.
2948 * configure.tgt: Handle cr16c-*-elf*.
2949 * emulparams/elf32cr16c.sh: New file.
2950 * scripttempl/elfcr16c.sc: Likewise
2951 * NEWS: Mention support for new target.
2953 2004-03-30 Nick Clifton <nickc@redhat.com>
2955 * po/sv.po: Updated Swedish translation.
2957 2004-03-27 Alan Modra <amodra@bigpond.net.au>
2959 * emultempl/elf32.em: Update new bfd_elf_discard_info name.
2960 * emultempl/hppaelf.em: Likewise.
2961 * emultempl/ppc64elf.em: Likewise.
2962 * emultempl/sh64elf.em: Likewise.
2964 2004-03-25 Alan Modra <amodra@bigpond.net.au>
2966 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
2967 size_dynamic_sections call.
2969 2004-03-23 Alan Modra <amodra@bigpond.net.au>
2972 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
2973 link_info.wrap_char.
2975 2004-03-20 H.J. Lu <hongjiu.lu@intel.com>
2977 * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
2978 or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
2980 2004-03-20 Alexandre Oliva <aoliva@redhat.com>
2982 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
2984 2004-03-19 Alan Modra <amodra@bigpond.net.au>
2986 * config.in: Regenerate.
2987 * po/ld.pot: Regenerate.
2989 2004-03-18 Alan Modra <amodra@bigpond.net.au>
2991 * ld.texinfo: Add --as-needed doco.
2992 * ldmain.c (as_needed): New global var.
2993 * ldmain.h (as_needed): Declare.
2994 * lexsup.c (option_values): Add OPTION_AS_NEEDED and
2995 OPTION_NO_AS_NEEDED.
2996 (ld_options): Likewise.
2997 (parse_args): Handle them.
2998 * ldlang.h (lang_input_statement_type): Add as_needed field.
2999 * ldlang.c (new_afile): Set p->as_needed.
3000 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
3001 (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
3002 (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
3004 * ldlang.c (open_input_bfds): Remove useless cast.
3005 (lang_do_assignments_1): Likewise.
3006 (lang_for_each_input_section): Delete.
3008 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
3010 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
3012 2004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
3014 * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
3015 private when building implib.
3017 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
3019 * ldlang.c (lang_add_section): Don't force SEC_LOAD on
3021 (IGNORE_SECTION): Ignore .tbss sections too.
3022 (lang_size_sections_1): .tbss sections do not advance dot.
3024 2004-03-01 Andreas Schwab <schwab@suse.de>
3026 * ld.texinfo (Options): Fix example for --wrap.
3028 2004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
3030 * pe-dll.c (fill_edata): Check that exported_symbol_sections is
3033 2004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
3035 * ldlang.c (lang_check): Use %P, not %E, in error message.
3037 2004-02-23 Nathan Sidwell <nathan@codesourcery.com>
3039 * ldlang.h (struct lang_output_section_state): Change processed
3041 * ldexp.c (check, invalid): Remove.
3042 (fold_name): Move valid_p assignments. Create undefined symbol
3043 when needed. Directly exampine section's processd flag.
3044 * ldlang.c (lang_output_section_statement_lookup): Adjust
3045 processed field init.
3046 (lang_size_sections_1): Allow LOADADDR when determining section's
3047 VMA. Adjust error message. Fold data statement's expr.
3048 (lang_size_sections): Correctly increment lang_statement_iteration.
3050 2004-02-23 Alan Modra <amodra@bigpond.net.au>
3052 * ldexp.c (fold_tree): Follow indirect symbols.
3054 2004-02-20 Nathan Sidwell <nathan@codesourcery.com>
3056 * ldgram.y (exp): Add two operand ALIGN.
3057 * ldexp.c (fold_binary): Add ALIGN_K case.
3058 * ld.texinfo (ALIGN): Document two operand version.
3060 2004-02-19 Nathan Sidwell <nathan@codesourcery.com>
3062 * ldlang.c (map_input_to_output_sections): Initialize sections
3063 mentioned in a data statement expression.
3064 (lang_do_assignments_1): Add data statement's expression's
3067 2004-02-18 Nathan Sidwell <nathan@codesourcery.com>
3069 * ldgram.y (statement_anywhere): Add assert rule.
3070 * ldlang.c (exp_init_os): Add assert case.
3072 2004-02-14 Andrew Cagney <cagney@redhat.com>
3074 * ldmain.c (remove_output): Call bfd_cache_close.
3076 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
3078 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
3079 .MIPS.content* and .MIPS.events* sections.
3081 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
3083 * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
3084 .note.gnu.arm.ident to after allocated sections. Mark its
3087 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
3089 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
3090 * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
3091 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
3092 * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
3093 * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
3095 2004-02-05 Nick Clifton <nickc@redhat.com>
3097 * emultempl/pe.em (_after_open): Fix typo in previous delta.
3099 2004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
3101 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
3103 2004-01-28 Alan Modra <amodra@bigpond.net.au>
3105 * genscripts.sh: Fix typo.
3107 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
3109 2004-01-24 Jakub Jelinek <jakub@redhat.com>
3111 * emulparams/elf64_ia64.sh: Put .rela.opd into
3112 OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
3114 2004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
3116 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
3117 * ld.texinfo (--omagic): Note that writable text section
3118 does not conform to published PE-COFF specs.
3119 (--enable-auto-import): Likewise.
3121 2004-01-15 Alan Modra <amodra@bigpond.net.au>
3123 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
3125 2004-01-13 Nick Clifton <nickc@redhat.com>
3127 * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
3128 which if true will prevent the LMA region being used as a
3129 replacement for a default VMA region.
3130 (lang_leave_output_section_statement): Pass extra parameter.
3131 (lang_leave_overlay): Likewise.
3132 * ld.texinfo (Output Section LMA): Document that the LMA
3133 region can be set to the VMA region if no VMA has been set.
3134 * ldlang.h (struct lang_output_section_phdr_list): Create a
3135 typedef for this type. Minor formatting fixes.
3137 2004-01-13 Nick Clifton <nickc@redhat.com>
3139 * ldlang.c (lang_size_sections_1): If dot is advanced, then
3140 assume that the section should be allocated.
3142 2004-01-13 Alan Modra <amodra@bigpond.net.au>
3144 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
3145 sections. Do ignore SEC_NEVER_LOAD sections.
3146 (lang_size_sections_1): Remove test made redundant with the above.
3148 2004-01-09 Alan Modra <amodra@bigpond.net.au>
3150 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
3151 program_header_size.
3153 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
3155 2003-11-28 Alexandre Oliva <aoliva@redhat.com>
3156 * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
3157 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
3158 * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
3159 (MAXPAGESIZE): Set to 64Kb.
3160 (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
3161 __ROFIXUP_END__. Don't map .rofixup.got any more.
3162 * emulparams/elf32frv.sh (NOP): Set.
3163 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
3164 * configure.tgt: Add frv-*-*linux*.
3165 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
3166 * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
3167 (eelf32frvfd.c): New.
3168 * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
3169 * emulparams/elf32frv.sh: Reverted previous two patches.
3170 * emulparams/elf32frvfd.sh: New.
3171 * Makefile.in: Rebuilt.
3172 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
3173 * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
3174 .rofixup.got to .rofixup.
3175 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
3176 * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
3177 (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
3179 2004-01-05 Jakub Jelinek <jakub@redhat.com>
3181 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
3182 * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
3184 2004-01-03 Alan Modra <amodra@bigpond.net.au>
3186 * ldexp.c (align_n): Make static.
3187 * ldexp.h (align_n): Delete declaration.
3188 * ldlang.h (lang_enter_output_section_statement): Remove
3190 * ldlang.c (lang_enter_output_section_statement): Likewise.
3191 (TO_ADDR, TO_SIZE): Define.
3192 (opb_shift): New var.
3193 (init_opb): New function.
3194 (print_input_section): Call init_opb and use TO_ADDR.
3195 (print_data_statement, print_reloc_statement): Likewise.
3196 (print_padding_statement): Likewise.
3197 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
3198 (lang_check_section_addresses): Likewise.
3199 (lang_size_sections_1): Likewise.
3200 (lang_do_assignments_1): Likewise.
3201 (lang_set_startof): Likewise.
3202 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
3203 (lang_process): Call init_opb.
3204 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
3205 (lang_enter_overlay_section): Adjust
3206 lang_enter_output_section_statement call.
3207 * ldgram.y: Likewise.
3208 * mri.c (mri_draw_tree): Likewise.
3209 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
3210 * emultempl/mmo.em (mmo_place_orphan): Likewise.
3211 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
3213 * ldfile.c (ldfile_set_output_arch): Add defarch param.
3214 * ldfile.h (ldfile_set_output_arch): Ditto.
3215 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
3216 ldfile_set_output_arch.
3217 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
3218 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
3219 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
3220 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
3221 * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
3222 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
3223 * ldgram.y: Adjust ldfile_set_output_arch call.
3224 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
3225 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
3226 * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
3227 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
3228 * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
3229 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
3230 * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
3232 2004-01-02 Bernardo Innocenti <bernie@develer.com>
3234 * configure.tgt: Add m68k-uClinux target.
3236 For older changes see ChangeLog-0203
3242 version-control: never