1 2005-12-27 Alan Modra <amodra@bigpond.net.au>
3 * Makefile.am: Run "make dep-am".
4 * Makefile.in: Regenerate.
6 2005-12-24 Alan Modra <amodra@bigpond.net.au>
8 * ldlang.h (lang_output_section_statement_type): Add prev.
9 * ldlang.c (output_statement_newfunc): Set os.prev.
10 (lang_insert_orphan): Likewise.
11 (output_prev_sec_find): Use os.prev.
13 2005-12-22 Santosh Raktawan <santoshr2@kpitcummins.com>
15 * ld/emulparms/h8300helf.sh (TINY_READONLY_SECTION,
16 TINY_DATA_SECTION, TINY_BSS_SECTION): Define.
17 * ld/emulparms/h8300self.sh: Likewise.
18 * ld/emulparms/h8300sxelf.sh: Likewise.
19 * ld/scripttempl/elf.sc: Add TINY_READONLY_SECTION,
20 TINY_DATA_SECTION, TINY_BSS_SECTION.
22 2005-12-19 H.J. Lu <hongjiu.lu@intel.com>
25 * ldlang.c (output_statement_newfunc): Revert the change made on
27 (output_prev_sec_find): Likewise.
28 * ldlang.h (lang_statement_list_type): Likewise.
30 2005-12-16 Nathan Sidwell <nathan@codesourcery.com>
32 Second part of ms1 to mt renaming.
33 * emulparams/elf32mt.sh (ARCH, OUTPUT_FORMAT): Adjust.
35 2005-12-14 Jakub Jelinek <jakub@redhat.com>
37 * scripttempl/elf.sc: Put .gnu.linkonce.d.rel.ro.* sections into
38 .data.rel.ro output section. Fix a pasto for -z nocombreloc
39 .rela.data.rel.ro section content.
41 2005-12-12 Nathan Sidwell <nathan@codesourcery.com>
43 * Makefile.am (ALL_EMULATIONS): Replace ms1 files with mt files.
44 (eelf32mt.c): Update target name and dependencies.
45 * Makefile.in: Rebuilt.
46 * configure.tgt: Replace ms1 arch with mt arch.
47 * emulparams/elf32mt.sh: Renamed from elf32ms1.sh. Update
50 2005-12-11 Bernhard Fischer <aldot@gcc.gnu.org>
52 * scripttempl/armbpabi.sc: Fix typo in comment for .ctors.
53 * scripttempl/elf.sc: Ditto.
54 * scripttempl/elf32sh-symbian.sc: Ditto.
55 * scripttempl/elf_chaos.sc: Ditto.
56 * scripttempl/elfd10v.sc: Ditto.
57 * scripttempl/elfd30v.sc: Ditto.
58 * scripttempl/elfxtensa.sc: Ditto.
59 * scripttempl/iq2000.sc: Ditto.
60 * scripttempl/xstormy16.sc: Ditto.
62 2005-12-08 Alan Modra <amodra@bigpond.net.au>
64 * emultempl/ppc32elf.em (emit_stub_syms): New var.
65 (ppc_after_open): Pass it to ppc_elf_select_plt_layout.
66 (PARSE_AND_LIST_PROLOGUE <OPTION_STUBSYMS>): Define.
67 (PARSE_AND_LIST_LONGOPTS): Add emit-stub-syms.
68 (PARSE_AND_LIST_OPTIONS): Describe emit-stub-syms.
69 (PARSE_AND_LIST_OPTIONS): Handle it.
71 2005-12-08 Alan Modra <amodra@bigpond.net.au>
73 * pe-dll.c (build_filler_bfd): Conform error message to standard.
74 (pe_dll_generate_implib): Use %E in error message.
75 (add_bfd_to_link): Likewise.
76 (pe_implied_import_dll): Likewise.
78 2005-12-07 Thiemo Seufer <ths@networkno.de>
79 H.J. Lu <hongjiu.lu@intel.com>
82 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment):
83 Adjust bfd_elf_record_link_assignment call.
85 * ldexp.c (exp_fold_tree_1): Remove call to bfd_hide_symbol.
87 2005-11-25 Jan Beulich <jbeulich@novell.com>
89 * Makefile.am: Make configdoc.texi writeable before trying
91 * Makefile.in: Refresh.
93 2005-11-24 Alan Modra <amodra@bigpond.net.au>
95 * ldlang.c (lang_output_section_find_by_flags): Add match_type param.
96 Run two passes, first using match_type, second without.
97 * ldlang.h (lang_match_sec_type_func): New typedef.
98 (lang_output_section_find_by_flags): Update prototype.
99 bfd_match_sections_by_type and lang_output_section_find_by_flags.
100 * emultempl/pe.em (place_orphan): Likewise.
102 2005-11-24 Alan Modra <amodra@bigpond.net.au>
104 * ldlang.c (lang_insert_orphan): Skip first assignment to dot
105 in script when looking for place to insert orphan statements.
107 2005-11-18 Alan Modra <amodra@bigpond.net.au>
109 * emulparams/elf64ppc.sh (.tocbss): Use new section alignment scheme.
110 (.got, .toc1, .opd): Likewise.
112 2005-11-18 Alan Modra <amodra@bigpond.net.au>
114 * ldlang.c (lang_size_sections_1): Revert 2005-11-16 functional
115 changes to section alignment.
116 * ldmisc.c (vfinfo): Handle %ld and %lu.
118 2005-11-16 Mark Mitchell <mark@codesourcery.com>
120 * Makefile.am (configdoc.texi): Set top_srcdir in configdoc.texi..
121 * Makefile.in: Regenerated.
122 * ld.texinfo: Include configdoc.texi and ldver.texi in man pages.
123 Add @file documentation.
125 2005-11-17 Alan Modra <amodra@bigpond.net.au>
127 * ldlang.h (lang_input_section_type): Remove "ifile" field.
128 (lang_insert_orphan, lang_add_section): Update prototypes.
129 * ldlang.c (lang_insert_orphan): Remove "file" param.
130 (lang_add_section): Likewise. Update all callers.
131 (wild_sort): Get an input section's bfd via "section->owner".
132 (size_input_section): Access just_syms_flag via bfd usrdata.
133 (lang_place_orphans): Update ldemul_place_orphan call.
134 * ldemul.h (ldemul_place_orphan): Remove input_statement param.
135 (struct ld_emulation_xfer_struct <place_orphan>): Likewise.
136 * ldemul.c (ldemul_place_orphan): Likewise.
137 * ldwrite.c (build_link_order): Access just_syms_flag via bfd usrdata.
138 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
139 * emultempl/beos.em (sort_by_file_name): Access bfd by section->owner.
140 (sort_sections): Likewise.
141 (place_orphan): Remove "file" param. Adjust lang_add_section call.
142 * emultempl/elf32.em (place_orphan): Remove "file" param. Adjust
143 lang_add_section and lang_insert_orphan calls.
144 * emultempl/hppaelf.em (hppaelf_add_stub_section): Adjust
145 lang_add_section call.
146 (build_section_lists): Access just_syms_flag via bfd usrdata.
147 * emultempl/m68hc1xelf.em (m68hc11elf_add_stub_section): Adjust
148 lang_add_section call.
149 * emultempl/mmo.em (mmo_place_orphan): Remove "file" param. Adjust
150 lang_add_section and lang_insert_orphan calls.
151 * emultempl/pe.em (place_orphan): Likewise. Access bfd via section
153 * emultempl/ppc64elf.em (ppc_add_stub_section): Adjust
154 lang_add_section call.
155 (build_toc_list): Access just_syms_flag via bfd usrdata.
156 (build_section_lists): Likewise.
157 * emultempl/xtensaelf.em (elf_xtensa_place_orphan): Remove "file"
158 param. Adjust place_orphan call.
159 (ld_build_required_section_dependence): Access bfd via section owner.
161 2005-11-16 Alan Modra <amodra@bigpond.net.au>
163 * ldlang.h (lang_output_section_statement_type): Add prev.
164 * ldlang.c (new_afile): Always init header.type.
165 (output_statement_newfunc): Set os.prev.
166 (output_prev_sec_find): Use os.prev.
167 (lang_enter_output_section_statement): Formatting.
168 (lang_final, lang_add_target, lang_add_fill): Likewise.
169 (lang_add_data, lang_add_reloc): Likewise.
170 (lang_add_attribute): Only alloc the header.
172 2005-11-16 Alan Modra <amodra@bigpond.net.au>
174 * ld.texinfo (Forced Output Alignment): Specify that this is an
175 alignment increase, not an override.
176 * ldlang.c (init_os): Set output section alignment here..
177 (lang_add_section): ..rather than here.
178 (lang_size_sections_1): Consolidate alignment code. Warn if section
179 alignment affects start address when explicit address given.
181 2005-11-07 Steve Ellcey <sje@cup.hp.com>
183 * configure: Regenerate after modifying bfd/warning.m4.
185 2005-11-07 Olaf Hering <olh@suse.de>
187 * ldmain.c (main): Add \n to error message.
189 2005-11-04 Alan Modra <amodra@bigpond.net.au>
191 * ldlang.c (struct output_statement_hash_entry): Don't indirect to os.
192 (output_statement_newfunc): Rewrite.
193 (lang_output_section_find_1): Merge into..
194 (lang_output_section_find): ..here.
195 (lang_output_section_statement_lookup_1): Rewrite to handle
196 multiple sections with the same name.
197 (output_statement_table_init): Commonise error message.
198 (lang_init, open_output): Likewise.
200 2005-11-03 Paul Brook <paul@codesourcery.com>
202 * scripttempl/elf.sc: Add .init_array.* and .fini_array.*.
203 * scripttempl/armbpabi.sc: Make init/fini array consistent with
205 * scripttempl/elf32sh-symbian.sc: Ditto.
206 * scripttempl/elfxtensa.sc: Ditto.
208 2005-11-03 Alan Modra <amodra@bigpond.net.au>
210 * ldlang.h (lang_output_section_statement_type): Rearrange. Remove
211 memspec. Make "processed" a bitfield.
212 (lang_data_statement_type, lang_reloc_statement_type): Rename
213 output_vma to output_offset.
214 * ldlang.c (lang_output_section_statement_lookup_1): Init
215 all_input_readonly. Don't init memspec.
216 (init_os): Remove incorrect comment.
217 (print_data_statement, print_reloc_statement): Adjust for
218 lang_data_statement_type and lang_reloc_statement_type change.
219 (lang_size_sections_1, lang_add_reloc): Likewise.
220 * ldwrite.c (build_link_order): Likewise.
222 2005-10-30 Mark Mitchell <mark@codesourcery.com>
224 * lexsup.c (help): Document "@FILE".
226 2005-10-30 H.J. Lu <hongjiu.lu@intel.com>
228 * Makefile.am: Run "make dep-am".
229 * Makefile.in: Regenerated.
231 * dep-in.sed: Replace " ./" with " ".
233 2005-10-25 Arnold Metselaar <arnold.metselaar@planet.nl>
235 * Makefile.am: Add support for Z80
236 * Makefile.in: Regenerated
237 * configure.tgt: Add z80-*-coff
238 * emulparams/z80.sh: New file.
239 * emultempl/z80.em: New file.
240 * scripttempl/z80.sc New file.
241 * NEWS: Mention this new support.
243 2005-10-25 Alan Modra <amodra@bigpond.net.au>
245 * po/ld.pot: Regenerate.
247 2005-10-25 Chris Metcalf <cdmetcalf@comcast.net>
249 * ld.texinfo (--reduce-memory-overheads): Fix typo.
251 2005-10-23 H.J. Lu <hongjiu.lu@intel.com>
254 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
255 bfd_match_sections_by_type to match section types.
257 * ldlang.c (init_os): Take the input section. Call
258 bfd_init_private_section_data if the input section isn't NULL.
259 (exp_init_os): Pass NULL to init_os.
260 (map_input_to_output_sections): Likewise.
261 (lang_add_section): Pass the input section to init_os.
263 2005-10-19 Paul Brook <paul@codesourcery.com>
265 * emulparams/armelf.sh: Add .ARM.attributes to OTHER_SECTIONS.
267 2005-10-15 H.J. Lu <hongjiu.lu@intel.com>
270 * emultempl/elf32.em: Include "elf-bfd.h".
271 (gld${EMULATION_NAME}_place_orphan): Check section type and
272 don't use section name for ELF input sections.
274 * ld.texinfo: Document orphan section processing.
276 * ldlang.c (lang_output_section_find_by_flags): Match section
277 types by calling bfd_match_sections_by_type.
279 2005-10-13 Mark Mitchell <mark@codesourcery.com>
281 * ld.texino: Describe double-quoted string syntax for version
283 * ldlang.h (lang_new_vers_pattern): Add literal_p parameter.
284 * ldgram.y (vers_defns): Allow NAME as well as VERS_IDENTIFIER.
285 Adjust calls to lang_new_vers_pattern to pass literal_p argument.
286 * ldlang.c (lang_vers_match): Fix indentation. Do not glob-match
287 version nodes without a pattern.
288 (lang_new_vers_pattern): Add literal_p parameter.
289 (lang_do_version_exports_section): Pass it.
291 2005-10-12 Mark Mitchell <mark@codesourcery.com>
293 * NEWS: Mention @file.
295 2005-10-05 H.J. Lu <hongjiu.lu@intel.com>
298 * ldcref.c (check_refs): Accept bfd_boolean.
299 (check_local_sym_xref): Pass FALSE to check_refs.
300 (check_nocrossref): Pass TRUE to check_refs.
301 (check_refs_info): Add bfd_boolean.
302 (check_refs): Add bfd_boolean to check_refs_info.
303 (check_reloc_refs): Match relocations with proper symbols.
305 * ldmisc.c (vfinfo): Don't add extra ":\n".
307 2005-10-05 Danny Smith <dannysmith@users.sourceforge.net>
309 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Set
310 default entry symbol to ENTRY here.
311 * scripttempl/pe.sc: Not here.
313 2005-09-30 James E Wilson <wilson@specifix.com>
315 * ldlang.c (lang_startup): Add missing ": " to einfo call.
317 2005-09-30 H.J. Lu <hongjiu.lu@intel.com>
319 * Makefile.am: Run "make dep-am".
320 * Makefile.in: Regenerated.
321 * aclocal.m4: Likewise.
323 2005-09-30 H.J. Lu <hongjiu.lu@intel.com>
325 * ldlang.c (output_statement_hash_entry): New type.
326 (output_statement_table): New variable for hash table.
327 (output_statement_newfunc): New function.
328 (output_statement_table_init): Likewise.
329 (output_statement_table_free): Likewise.
330 (lang_init): Call output_statement_table_init.
331 (lang_finish): Renamed to ...
333 (lang_process): Updated.
334 (lang_finish): New function.
335 (lang_output_section_find_1): Use hash table.
336 (lang_output_section_statement_lookup_1): Likewise.
338 * ldlang.h (lang_finish): New.
340 * ldmain.c (main): Call lang_finish.
342 2005-09-30 Mark Mitchell <mark@codesourcery.com>
344 * ldmain.c (main): Use expandargv.
346 2005-09-30 Catherine Moore <clm@cm00re.com>
348 * Makefile.am: Bfin support.
349 * Makefile.in: Regenerated.
350 * aclocal.m4: Regenerated.
351 * configure.tgt: Bfin support.
352 * emulparams/bfin.sh: New file.
353 * emultempl/bfin.em: New file.
355 2005-09-30 Matthias Kurz <mk@baerlap.north.de>
357 * ld.h: Prevent the inclusion of <libintl.h> from the Solaris
358 version of <locale.h> when ENABLE_NLS is not defined.
360 2005-09-27 H.J. Lu <hongjiu.lu@intel.com>
362 * ld.texinfo (ALIGN): Document it as forcing output section
365 * ldgram.y (ALIGN): Support it for forcing output section
368 2005-09-20 Alan Modra <amodra@bigpond.net.au>
370 * ldlang.h (lang_output_section_statement_struct): Change type of
371 "processed" to bfd_boolean.
372 * ldexp.c (fold_name): Update references to os->processed.
373 * ldlang.c (lang_output_section_statement_lookup_1): Likewise.
374 (lang_size_sections_1): Likewise.
375 (lang_reset_memory_regions): Likewise.
378 * ldlang.c (lang_size_sections_1): Process addr_tree earlier,
379 so that unused output section statements affect dot.
381 2005-09-08 Jakub Jelinek <jakub@redhat.com>
383 * ld.texinfo: Document -z {no,}execstack, -z {no,}relro
384 and --eh-frame-hdr options.
386 2005-09-07 Alan Modra <amodra@bigpond.net.au>
388 * ldexp.c (fold_name <SIZEOF>): Return 0 for non-existent section.
389 (exp_fold_tree_1): Print assert message only in final stage of
390 linking. Trigger assertion failure if expression cannot be
393 2005-09-06 H.J. Lu <hongjiu.lu@intel.com>
396 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Check
397 --just-symbols on DSO.
399 2005-08-18 Alan Modra <amodra@bigpond.net.au>
401 * scripttempl/elf.sc: Remove commented out defines.
403 2005-08-18 Alan Modra <amodra@bigpond.net.au>
405 * emulparams/a29k.sh: Delete.
406 * emulparams/ebmon29k.sh: Delete.
407 * emulparams/sa29200.sh: Delete.
408 * Makefile.am: Remove a29k support.
409 * configure.tgt: Likewise.
410 * ld.texinfo: Likewise.
411 * Makefile.in: Regenerate.
413 2005-08-17 Jakub Jelinek <jakub@redhat.com>
415 * ldgram.y (vers_defns): Don't lose pattern list before
416 extern NAME {}. Handle global, local and extern symbol names.
418 2005-08-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
420 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
421 Don't increment rel_count of .cranges here. Set rawsize of .cranges.
423 2005-08-10 Nick Clifton <nickc@redhat.com>
425 * pe-dll.c (pe_exe_fill_sections): Call lang_reset_memory_regions
426 before lang_size_sections.
428 2005-08-09 Alan Modra <amodra@bigpond.net.au>
430 * emulparams/hppa64linux.sh (LARGE_SECTIONS): Remove .tbss.
432 2005-08-08 Eric Doenges <Eric.Doenges@betty-tv.com>
434 * Makefile.am (ALL_EMULATIONS): Add msp430x21xx variants.
435 Add rules to build these emulations.
436 * Makefile.in: Regenerate.
437 * configure.tgt (msp430): Add the new variants to the
438 targ_extra_emuls list.
439 * emulparams/msp430all.sh: Add entries for the msp430x21xx
442 2005-08-05 H.J. Lu <hongjiu.lu@intel.com>
444 * ld.texinfo: Document PROVIDE_HIDDEN.
446 * ldexp.c (exp_fold_tree_1): Hide a provided symbol if asked.
447 (exp_provide): Add and set hidden.
449 * ldexp.h (etree_type): Add hidden to assign.
451 * ldgram.y (PROVIDE_HIDDEN): New.
452 * ldlex.l (PROVIDE_HIDDEN): Likewise.
454 * scripttempl/elf.sc: Use PROVIDE_HIDDEN on array bound
457 2005-08-05 Alan Modra <amodra@bigpond.net.au>
459 * emulparams/elf_x86_64.sh: Revert last change.
460 * scripttempl/elf.sc (REL_LARGE, LARGE_SECTIONS): Define here.
462 2005-08-05 Alan Modra <amodra@bigpond.net.au>
464 * emulparams/armelf.sh (OTHER_BSS_END_SYMBOLS): Split out from
466 * emulparams/armelf_linux.sh: Likewise.
467 * emulparams/armnto.sh: Likewise.
468 * emulparams/criself.sh: Likewise.
469 * emulparams/elf32mcore.sh: Likewise.
470 * emulparams/criself.sh (OTHER_SYMBOLS): Define.
471 * emulparams/crislinux.sh (OTHER_SYMBOLS): Define.
472 (OTHER_END_SYMBOLS): Don't define.
473 * emulparams/elf32fr30.sh: Likewise.
474 * emulparams/elf64mmix.sh: Likewise.
475 * emulparams/hppa64linux.sh: Likewise.
476 * emulparams/m32relf.sh: Likewise.
477 * emulparams/vxworks.sh: Likewise.
478 * scripttempl/armbpabi.sc (OTHER_BSS_SECTIONS): Delete.
479 (OTHER_BSS_END_SYMBOLS): Add.
480 (OTHER_END_SYMBOLS): Move before current end sym definitions.
481 (OTHER_SYMBOLS): Replace OTHER_END_SYMBOLS near end of script.
482 * scripttempl/elf.sc: Likewise.
483 * scripttempl/elf32sh-symbian.sc: Likewise.
484 * scripttempl/elf_chaos.sc: Likewise.
485 * scripttempl/elfxtensa.sc: Likewise.
486 * scripttempl/iq2000.sc: Likewise.
487 * scripttempl/xstormy16.sc: Likewise.
489 * scripttempl/elf.sc (LBSS, LARGE_SECTIONS): Delete.
490 (REL_LDATA, REL_LBSS, REL_LRODATA): Delete.
491 (REL_LARGE, LARGE_SECTIONS): Add.
492 * emulparams/elf_x86_64.sh (LARGE_SECTIONS): Define as script text.
494 * emulparams/hppa64linux.sh (OTHER_BSS_SECTIONS): Don't define.
495 (LARGE_SECTIONS): Define.
496 * emulparams/hppa64linux.sh (OTHER_BSS_SECTIONS): Don't define.
497 (LARGE_SECTIONS): Define.
499 2005-08-04 Alan Modra <amodra@bigpond.net.au>
501 * ldemul.c (ldemul_do_assignments, do_assignments_default): Delete.
502 * ldemul.h (ldemul_do_assignments, do_assignments_default): Delete.
503 (struct ld_emulation_xfer_struct): Remove do_assignments field.
504 * ldlang.c (lang_do_assignments): Don't call ldemul_do_assignments.
505 * emulparams/elf32ppc.sh (SDATA_START_SYMBOLS): New.
506 (SDATA2_START_SYMBOLS, SBSS_START_SYMBOLS, SBSS_END_SYMBOLS): New.
507 * emultempl/aix.em (ld_*_emulation): Delete do_assignments init.
508 * emultempl/armcoff.em: Likewise.
509 * emultempl/beos.em: Likewise.
510 * emultempl/generic.em: Likewise.
511 * emultempl/gld960.em: Likewise.
512 * emultempl/gld960c.em: Likewise.
513 * emultempl/linux.em: Likewise.
514 * emultempl/lnk960.em: Likewise.
515 * emultempl/m68kcoff.em: Likewise.
516 * emultempl/pe.em: Likewise.
517 * emultempl/sunos.em: Likewise.
518 * emultempl/ticoff.em: Likewise.
519 * emultempl/vanilla.em: Likewise.
520 * emultempl/elf32.em: Likewise.
521 (gld*_provide_bound_symbols): Delete.
522 (gld*_provide_init_fini_syms): Delete.
523 (gld*_before_allocation): Don't call ldemul_do_assignments.
524 * emultempl/ppc32elf.em (ppc_do_assignments): Delete.
525 (LDEMUL_DO_ASSIGNMENTS): Delete.
526 * scripttempl/elf.sc: Provide init/fini syms. Add SBSS_START_SYMBOLS,
527 SBSS_END_SYMBOLS, SDATA2_START_SYMBOLS.
529 2005-08-04 Alan Modra <amodra@bigpond.net.au>
531 * Makefile.am (eelf32m32c.c): Fix dependencies.
532 * Makefile.in: Regenerate.
534 2005-08-04 Alan Modra <amodra@bigpond.net.au>
536 * ldemul.c (ldemul_finish): Call ld_emulation->finish unconditionally.
537 (finish_default): New function.
538 * ldemul.h (finish_default): Declare.
539 * emultempl/aix.em (gld*_before_allocation): Call
540 before_allocation_default rather than strip_excluded_output_sections.
541 (ld_*_emulation): Init finish field to finish_default.
542 * emultempl/armcoff.em: Likewise.
543 * emultempl/beos.em: Likewise.
544 * emultempl/elf32.em: Likewise.
545 * emultempl/generic.em: Likewise.
546 * emultempl/gld960.em: Likewise.
547 * emultempl/gld960c.em: Likewise.
548 * emultempl/hppaelf.em: Likewise.
549 * emultempl/linux.em: Likewise.
550 * emultempl/lnk960.em: Likewise.
551 * emultempl/m68kcoff.em: Likewise.
552 * emultempl/mmo.em: Likewise.
553 * emultempl/pe.em: Likewise.
554 * emultempl/ppc64elf.em: Likewise.
555 * emultempl/sunos.em: Likewise.
556 * emultempl/ticoff.em: Likewise.
557 * emultempl/vanilla.em: Likewise.
559 2005-08-03 Alan Modra <amodra@bigpond.net.au>
561 * ldlang.c (exp_init_os): Handle etree_provide.
562 * emulparams/armelf.sh (OTHER_END_SYMBOLS): Rename from..
563 (OTHER_BSS_END_SYMBOLS): ..this.
564 * emulparams/armelf_linux.sh: Likewise.
565 * emulparams/armnto.sh: Likewise.
566 * emulparams/criself.sh: Likewise.
567 * emulparams/crislinux.sh: Likewise.
568 * emulparams/elf32frv.sh: Likewise.
569 * emulparams/elf32mcore.sh: Likewise.
570 * emulparams/elf32ppc.sh: Likewise.
571 * emulparams/elf32ppclinux.sh: Likewise.
572 * emulparams/hppa64linux.sh: Likewise.
573 * scripttempl/armbpabi.sc: Substitute $OTHER_END_SYMBOLS, not
574 $OTHER_BSS_END_SYMBOLS.
575 * scripttempl/elf32sh-symbian.sc: Likewise.
576 * scripttempl/elf_chaos.sc: Likewise.
577 * scripttempl/iq2000.sc: Likewise.
578 * scripttempl/xstormy16.sc: Likewise.
579 * scripttempl/elf.sc: Likewise. Delete __bss_start comment.
580 * scripttempl/elfxtensa.sc: Likewise.
582 2005-07-29 Nick Clifton <nickc@redhat.com>
584 * ldmain.c (main): Allow -shared and -static to be used together.
585 * ld.texinfo (-static): Mention that it is allowed with -shared.
587 2005-07-28 DJ Delorie <dj@redhat.com>
589 * ldlang.c (lang_output_section_statement_lookup_1): Don't cast a
590 unary & address operator, as that breaks GCC's strict aliasing
593 2005-07-25 Jan Hubicka <jh@suse.cz>
594 H.J. Lu <hongjiu.lu@intel.com>
596 * emulparams/elf_x86_64.sh (LARGE_SECTIONS): New.
598 * scripttempl/elf.sc: Updated for large section support.
600 2005-07-21 Ralf Corsepius <ralf.corsepius@rtems.org>
602 * configure.tgt: Remove i[3-7]86-*-rtemself*.
603 Remove sparc-*-rtemself*.
605 2005-07-21 Ben Elliston <bje@gnu.org>
607 * ldgram.y (ldgram_want_filename): Remove unused static.
609 2005-07-20 DJ Delorie <dj@redhat.com>
611 * emulparams/elf32m32c.sh (TEMPLATE_NAME): New.
612 (EXTRA_EM_FILE): New.
614 2005-07-19 H.J. Lu <hongjiu.lu@intel.com>
616 * ldmain.c (main): Reindent.
618 2005-07-19 Paul Brook <paul@codesourcery.com>
620 * configure.host (HOSTING_CRT0): Parse output of gcc --help --verbose
621 to determine dynamic linker name.
623 2005-07-18 Nick Clifton <nickc@redhat.com>
625 * configure.tgt: Restore alpha ordering to list of arches.
627 2005-07-16 Alan Modra <amodra@bigpond.net.au>
629 * emultempl/elf32.em (gld*_provide_init_fini_syms): Prototype.
630 (gld*_before_allocation): Call ldemul_do_assignments rather than
631 gld*_provide_init_fini_syms directly.
632 * emultempl/ppc32elf.em (gld*_after_allocation): Delete.
633 (ppc_do_assignments): New function.
634 (LDEMUL_AFTER_ALLOCATION): Don't define.
635 (LDEMUL_DO_ASSIGNMENTS): Define.
637 2005-07-16 Alan Modra <amodra@bigpond.net.au>
639 * Makefile.am: Run "make dep-am".
640 (emipsidt.c, emipsidtl.c): Depend on generic.em.
641 * Makefile.in: Regenerate.
643 2005-07-15 Alan Modra <amodra@bigpond.net.au>
645 * ldemul.c (ldemul_do_assignments): New function.
646 (do_assignments_default): New function.
647 * ldemul.h (ldemul_do_assignments): Declare.
648 (do_assignments_default): Declare.
649 (struct ld_emulation_xfer_struct): Add do_assignments.
650 * ldlang.c (lang_do_assignments) Call ldemul_do_assignments.
651 * emultempl/aix.em (ld_*_emulation): Init do_assignments field.
652 * emultempl/armcoff.em: Likewise.
653 * emultempl/beos.em: Likewise.
654 * emultempl/generic.em: Likewise.
655 * emultempl/gld960.em: Likewise.
656 * emultempl/gld960c.em: Likewise.
657 * emultempl/linux.em: Likewise.
658 * emultempl/lnk960.em: Likewise.
659 * emultempl/m68kcoff.em: Likewise.
660 * emultempl/pe.em: Likewise.
661 * emultempl/sunos.em: Likewise.
662 * emultempl/ticoff.em: Likewise.
663 * emultempl/vanilla.em: Likewise.
664 * emultempl/elf32.em: Likewise, to call gld*_provide_init_fini_syms.
665 (gld*_find_exp_assignment): Adjust bfd_elf_record_link_assignment call.
667 2005-07-14 Jim Blandy <jimb@redhat.com>
669 Add support for the Renesas M32C and M16C.
670 * Makefile.am (ALL_EMULATIONS): Add eelf32m32c.o.
671 (eelf32m32c.c): New target.
672 * Makefile.in: Regenerated.
673 * configure.tgt: Add case for m32c-*-elf.
674 * emulparams/elf32m32c.sh: New file.
676 2005-07-14 Alan Modra <amodra@bigpond.net.au>
678 * ldlang.c (strip_excluded_output_sections): Don't call
680 * emultempl/elf32.em (gld*_provide_bound_symbols): Move.
681 (gld*_provide_init_fini_syms): Move.
682 (gld*_before_allocation): Call the above from here..
683 (gld*_finish): ..not here. Call _bfd_elf_fix_excluded_sec_syms.
684 * emultempl/hppaelf.em (hppaelf_finish): Likewise.
685 * emultempl/ppc64elf.em (ppc_finish): Likewise.
687 2005-07-10 Ralf Corsepius <ralf.corsepius@rtems.org>
689 * configure.tgt: Remove sparc*-*-rtemsaout*, i[3-7]86-go32-rtems*,
690 i[3-7]86-*-rtemscoff*, hppa*-*-rtems*, mips*el-*-rtems*,
693 2005-07-09 Christopher Faylor <cgf@timesys.com>
695 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Enable runtime
696 relocation by default.
697 (compute_dll_image_base): Avoid linking into cygwin dll address space.
699 2005-07-08 Alan Modra <amodra@bigpond.net.au>
701 * ldlang.c (wild_sort): Formatting.
702 (strip_excluded_output_sections): Strip zero size sections here.
703 * emultempl/elf32.em (gld*_strip_empty_sections): Delete.
704 (gld*_finish): Don't call the above.
705 * emultempl/hppaelf.em (hppaelf_finish): Likewise.
706 * emultempl/ppc64elf.em (ppc_finish): Likewise.
708 2005-07-05 Paul Brook <paul@codesourcery.com>
710 * Makefile.am (ALL_EMULATIONS): Add eelf32ppcvxworks.o.
711 (eelf32ppcvxworks.o): Add dependencies.
712 * Makefile.in: Regenerate.
713 * configure.tgt: Add entry for powerpc-vxworks.
714 * emulparams/elf32-ppc.c: Mention elf32ppcvxworks.sh in comment.
715 * emulparams/elf32ppcvxworks.sh: New file.
716 * emultempl/ppc32elf.em (bfd_elf32_powerpc_vxworks_vec): Declare.
717 (is_ppc_elf32_vec): New function.
718 (ppc_after_open, ppc_before_allocation,
719 gld${EMULATION_NAME}_after_allocation): Use it.
721 2005-07-05 Peter S. Mazinger" <ps.m@gmx.net>
723 * emulparams/elf32bmip.sh (GENERATE_PIE_SCRIPT): Define as "yes".
724 * emulparams/elf32bmipn32-defs.sh (GENERATE_PIE_SCRIPT): Define as "yes".
726 2005-07-04 Mike Frysinger <vapier@gentoo.org>
728 * emulparams/hppalinux.sh (GENERATE_PIE_SCRIPT): Fix typo in
731 2005-07-04 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
733 * emulparams/m32relf_linux.sh (GENERATE_PIE_SCRIPT): Set to yes.
735 2005-07-04 Aurelien Jarno <aurel32@debian.org>
737 * emultempl/elf32.em: Enable use of ld.so.conf for *-*-k*bsd-*.
739 2005-07-01 Alan Modra <amodra@bigpond.net.au>
741 * scripttempl/elf.sc (.gcc_except_table): Don't KEEP.
743 2005-06-30 Ben Elliston <bje@gnu.org>
745 * Makefile.am (check-DEJAGNU): Don't search for expect.
746 * Makefile.in: Regenerate.
748 2005-06-30 Ben Elliston <bje@gnu.org>
750 * Makefile.am (EXPECT): Set to expect.
751 (RUNTEST): Likewise, set to runtest.
752 * Makefile.in: Regenerate.
754 2005-06-16 Alexander Klimov <alserkli@inbox.ru>
756 * emultempl/armelf.em: Add quotes to avoid a null test
759 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
761 * ld.texinfo (Command Line Options): Add @item for --hash-size.
763 2005-06-10 Alan Modra <amodra@bigpond.net.au>
765 * scripttempt/elf.sc (.bss): Align tail in a way that allows
766 empty section pruning.
768 2005-06-09 Steve Ellcey <sje@cup.hp.com>
770 * configure.in (AM_BINUTILS_WARNINGS): Add.
771 (BFD_NEED_DECLARATION) Replace with AC_CHECK_DECLS.
772 * config.in: Regenerate.
773 * configure: Regenerate.
774 * sysdep.h (NEED_DECLARATION_*): Replace with HAVE_DECL_*
777 2005-06-09 Alan Modra <amodra@bigpond.net.au>
779 * ldexp.c (fold_unary <ALIGN_K>): Revert last change.
781 2005-06-09 Alan Modra <amodra@bigpond.net.au>
783 * ld.h (lang_phase_type): Move to..
784 * ldexp.h: ..here. Add lang_mark_phase_enum.
785 (node_type): Remove etree_undef and etree_unspec.
786 (exp_data_seg): Delete.
787 (struct ldexp_control, expld): New.
788 (invalid, exp_mark_used_section): Delete.
789 (exp_fold_tree, exp_get_vma, exp_get_value_int, exp_get_fill,
790 exp_get_abs_int): Update prototypes.
791 * ldexp.c (assigning_to_dot): Delete.
793 (make_abs): Operate directly on expld.result. Update all callers.
794 (new_abs): Likewise. Return void.
795 (new_rel_from_abs): Rename from new_rel_from_section.
796 (new_rel, new_rel_from_abs): Operate on expld.result and return void.
798 (fold_unary): Operate on expld.result and return void. Remove
799 "current_section", "allocation_done", "dot", "dotp" and "mark_used"
800 params. Update all callers.
801 (fold_binary, fold_trinary, fold_name, exp_fold_tree_1): Likewise.
802 (fold_unary <ALIGN_K>): Ensure alignment is absolute.
803 (fold_unary <ABSOLUTE>): Use make_abs.
804 (fold_unary <DATA_SEGMENT_END>): Evaluate mark_phase as for
806 (fold_binary <DATA_SEGMENT_ALIGN, DATA_SEGMENT_RELRO_END, >): Ditto.
807 (fold_binary <'%','/'>): Don't error if marking.
808 (fold_name <SIZEOF_HEADERS>): Don't call bfd_sizeof_headers when
810 (fold_name <NAME>): Remove FIXME; -R is handled correctly. Don't
812 (fold_name <ADDR, LOADADDR, SIZEOF>): Don't set SEC_KEEP.
813 (exp_fold_tree_1): Don't error when marking.
814 (exp_fold_tree_1 <etree_rel>): Evaluate in all phases except first.
815 (exp_fold_tree_1 <etree_assign to dot>): Don't check for NULL
816 current section, instead check for NULL dotp.
817 (exp_fold_tree_1 <etree_provide>): Don't evaluate the assignment
818 source unless the symbol is referenced and undefined.
819 (exp_fold_tree): Remove "allocation_done" and "dot" params. Save
821 (exp_fold_tree_no_dot): Remove "current_section", "allocation_done
822 and "mark_used" params. Save params to expld. Update all callers.
823 (exp_assop): Do without temp var.
824 (exp_print_tree <etree_undef>): Delete code.
825 (exp_get_vma): Remove "allocation_done" param. Correct error return.
826 (exp_get_fill, exp_get_abs_int): Likewise.
827 (exp_get_value_int): Remove "allocation_done" param.
828 (exp_mark_used_section): Delete.
829 * ldgram.y (fill_exp): Update exp_get_fill call.
830 (origin_spec, length_spec): Update exp_get_vma call.
831 * ldlang.c (lang_init): Don't bother clearing lang_statement_iteration.
832 (lang_mark_used_section_1, lang_mark_used_section): Delete.
833 (strip_excluded_output_sections): Call one_lang_size_sections_pass in
834 marking mode. Merge old lang_mark_used_section code. Correct handling
835 of output sections with excluded input sections and data statements.
836 Don't drop non-zero sized sections. Don't zap os->bfd_section.
837 Do set SEC_EXCLUDE when appropriate.
838 (print_output_section_statement): Update for changed ldexp.c
840 (print_assignment, lang_size_sections_1): Likewise.
841 (lang_do_assignments_1, lang_enter_output_section_statement): Likewise.
842 (lang_new_phdr, lang_record_phdrs): Likewise.
843 (lang_size_sections): Likewise.
844 (insert_pad): Use following statement if it is a pad, rather than
846 (lang_size_sections_1 <lang_output_section_statement_enum>): Do
847 process ignored output section to set vma and lma, but don't
848 update dot for these sections. Don't error if marking.
849 (lang_size_sections_1 <lang_assignment_statement_enum>): Don't
850 update dot for ignored sections.
851 (lang_size_sections_1 <lang_data_statement_enum>): Don't mark absolute
852 section with SEC_ALLOC.
853 (one_lang_size_sections_pass): New function.
854 (lang_size_sections): Remove first five params. Set expld.phase on
855 entry and exit. Use one_lang_size_sections_pass.
856 (lang_do_assignments): Remove all params. Update all callers.
857 (lang_reset_memory_regions): Clear os->processed for all output
859 * ldlang.h (lang_do_assignments): Update prototype.
860 (lang_size_sections): Likewise.
861 (one_lang_size_sections_pass): Declare.
862 * pe-dll.c (pe_dll_fill_sections, pe_exe_fill_sections): Update
863 lang_size_sections and lang_do_assignments calls.
864 * emultempl/elf32.em (layout_sections_again): Likewise.
865 * emultempl/ppc64elf.em (ppc_before_allocation): Use
866 one_lang_size_sections_pass.
868 2005-06-08 Aldy Hernandez <aldyh@redhat.com>
870 * emulparams/elf32ms1.sh: New.
872 2005-06-07 Eric Christopher <echristo@redhat.com>
874 * Makefile.am (eelf32ms1.c): Use tab.
875 * Makefile.in: Regenerate.
877 2005-06-07 Aldy Hernandez <aldyh@redhat.com>
878 Michael Snyder <msnyder@redhat.com>
879 Stan Cox <scox@redhat.com>
881 * configure.tgt: Same.
883 * Makefile.am (ALL_EMULATIONS): Depend on eelf32ms1.o.
884 (eelf32ms1.c): Add eelf32ms1.c rule.
886 * Makefile.in: Regenerate.
888 2005-06-06 Alan Modra <amodra@bigpond.net.au>
890 * emultempl/ppc64elf.em (ppc_before_allocation): Always run
893 2005-06-05 H.J. Lu <hongjiu.lu@intel.com>
895 * ldexp.c (exp_mark_used_section): Set SEC_KEEP on current
896 section only if the symbol will be defined.
898 2005-06-04 H.J. Lu <hongjiu.lu@intel.com>
901 * ldexp.c (exp_mark_used_section): Set SEC_KEEP on current
902 section for etree_assign, etree_provide and etree_provided.
903 Call fold_binary on etree_binary.
905 * ldlang.c (lang_mark_used_section_1): Handle load base.
907 2005-06-03 Alan Modra <amodra@bigpond.net.au>
909 * ldmain.c (link_callbacks): Add einfo.
910 (add_archive_element): Use passed info, not link_info.
911 (constructor_callback): Likewise.
912 (reloc_overflow): Don't handle null bfd specially.
913 (reloc_dangerous, unattached_reloc): Likewise.
914 * ldmisc.c (vfinfo <B>): Print "ld generated" for null bfd.
915 (vfinfo <C, D, G>): Handle null bfd. Wrap comments.
917 2005-06-02 Alan Modra <amodra@bigpond.net.au>
919 * ldexp.h (etree_value_type): Use "asection *" in place of
920 "struct lang_output_section_statement_struct *" for "section".
921 (exp_fold_tree): Likewise.
922 (exp_mark_used_section): Likewise.
923 * ldexp.c (new_rel, new_rel_from_section, fold_unary, fold_binary,
924 fold_trinary, fold_name, exp_fold_tree_1, exp_fold_tree,
925 exp_mark_used_section): Likewise for "current_section" param.
926 (make_abs, new_abs, exp_binop, exp_unop, exp_get_vma, exp_get_fill,
927 exp_get_abs_int): Adjust for above changes.
928 * ldlang.c (lang_mark_used_section_1, print_assignment,
929 lang_size_sections_1, lang_do_assignments_1): Likewise.
930 * ldexp.c (fold_name): Init entire result struct.
932 2005-06-01 Maciej W. Rozycki <macro@linux-mips.org>
934 * emulparams/elf32btsmip.sh: Unset DATA_ADDR.
936 2005-05-31 Zack Weinberg <zack@codesourcery.com>
938 * ldlang.c (entry_symbol_default): New file-scope global.
939 (lang_finish): Use it, not a hardwired "start".
940 (lang_default_entry): Set it.
941 * ldlang.h: Declare lang_default_entry.
942 * emultempl/beos.em, emultempl/pe.em: Use lang_default_entry,
943 not lang_add_entry, to override default entry point symbol.
945 2005-05-29 Richard Henderson <rth@redhat.com>
947 * emulparams/elf64alpha.sh (PLT): New.
949 * emultempl/alphaelf.em (disable_relaxation): New.
950 (limit_32bit): Rename from elf64alpha_32bit; update all users.
951 (elf64_alpha_use_secureplt): Declare.
952 (bfd_elf64_alpha_vec, bfd_elf64_alpha_freebsd_vec): Declare.
953 (alpha_after_open): New.
954 (alpha_before_allocation): New.
955 (OPTION_NO_RELAX, OPTION_SECUREPLT, OPTION_NO_SECUREPLT): New.
956 (PARSE_AND_LIST_LONGOPTS): Include them.
957 (PARSE_AND_LIST_OPTIONS): Likewise.
958 (PARSE_AND_LIST_ARGS_CASES): Likewise.
959 (LDEMUL_AFTER_OPEN, LDEMUL_BEFORE_ALLOCATION): New.
960 * scripttempl/elf.sc (TEXT_PLT): New.
963 2005-05-27 Andreas Schwab <schwab@suse.de>
965 * configure.host (HOSTING_LIBS): Add libunwind.a if it exists.
967 2005-05-24 Alan Modra <amodra@bigpond.net.au>
969 * emultempl/ppc32elf.em (after_allocation): Don't call
970 ppc_elf_set_sdata_syms when relocatable.
972 2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
974 * Makefile.am (ld.1): Revert the last 2 changes.
975 (info-recursive): Depend on ld.1.
976 * Makefile.in: Regenerated.
978 2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
980 * Makefile.am (ld.1): Depend on "info" instead of
981 "configdoc.texi ldver.texi".
982 * Makefile.in: Regenerated.
984 2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
986 * Makefile.am (ld.1): Depend on "info".
987 * Makefile.in: Regenerated.
989 2005-05-19 Zack Weinberg <zack@codesourcery.com>
991 * Makefile.am: Have 'all' depend on 'info' and 'ld.1'.
992 * Makefile.in: Regenerate.
994 2005-05-17 Zack Weinberg <zack@codesourcery.com>
996 * ld-arm/mixed-app.d: Adjust expected disassembly a little.
998 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
1000 * Makefile.am (ldver.texi): Don't use $<.
1001 * Makefile.in: Regenerated.
1003 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
1005 * Makefile.am (AM_MAKEINFOFLAGS, TEXI2DVI): Explicitly include
1006 $(srcdir) before $(BFDDIR)/doc.
1007 * Makefile.in: Regenerated.
1009 2005-05-17 H.J. Lu <hongjiu.lu@intel.com>
1012 * ldexp.c (exp_fold_tree_1): Renamed from exp_fold_tree and
1013 take take a bfd_boolean, mark_used. Ignore assert failure if
1015 (exp_fold_tree) Call exp_fold_tree_1 with mark_used == FALSE.
1016 (exp_fold_tree_no_dot): Updated to take a bfd_boolean,
1017 mark_used and pass down.
1018 (fold_unary): Likewise.
1019 (fold_binary): Likewise.
1020 (fold_trinary): Likewise.
1021 (exp_binop): Add FALSE to call to exp_fold_tree_no_dot.
1022 (exp_trinop): Likewise.
1023 (exp_unop): Likewise.
1024 (exp_nameop): Likewise.
1025 (exp_get_vma): Likewise.
1026 (exp_get_fill): Likewise.
1027 (exp_get_abs_int): Likewise.
1028 (fold_name): Likewise. Set SEC_KEEP in output section flags.
1029 (exp_mark_used_section): New.
1031 * ldexp.h (exp_mark_used_section): New.
1033 * ldlang.c (lang_output_section_statement_lookup_1): Set the
1034 ignored field to FALSE.
1035 (lang_mark_used_section_1): New.
1036 (lang_mark_used_section): Call lang_mark_used_section_1.
1037 (strip_excluded_output_sections): Call lang_mark_used_section
1038 and check for unused sections.
1039 (lang_size_sections_1): Skip an output section if it should
1041 (lang_do_assignments_1): Likewise.
1042 (lang_process): Don't call lang_mark_used_section here.
1044 * ldlang.h (lang_output_section_statement_type): Change
1045 all_input_readonly to bitfield. Add ignored.
1047 2005-05-17 Lennert Buytenhek <buytenh@wantstofly.org>
1048 Peter S. Mazinger" <ps.m@gmx.net>
1050 * emulparams/armelf_linux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
1051 * emulparams/hppalinux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
1053 2005-05-17 Julian Brown <julian@codesourcery.com>
1055 * ldlang.c (print_assignment): Do not rely upon a valid result
1056 having a section associated with it.
1058 2005-05-17 Nick Clifton <nickc@redhat.com>
1060 * ldlang.c (Scan_for_self_assignment): Check an assignment tree to
1061 see if the same value is being used on the rhs as on the lhs.
1062 (print_assignment): Call scan_for_self_assignment and if it
1063 returns true, do no display the result of the computation but
1064 instead just the final value of the symbol on the lhs.
1065 * ld.texinfo: Document this behaviour and provide an example of
1066 when it will happen.
1068 2005-05-15 Daniel Jacobowitz <dan@codesourcery.com>
1070 * Makefile.am (AM_MAKEINFOFLAGS): Define.
1072 (ldver.texi): Depend on distributed files instead of built files.
1073 (ld.info): Include $(srcdir) in the rule target. Remove actions.
1074 (ld.dvi): Remove actions.
1075 (MAINTAINERCLEANFILES): Add configdoc.texi.
1076 (CONFIG_STATUS_DEPENDENCIES): Add bfd/configure.in.
1077 (install-data-local): Renamed from install.
1078 (Makefile): Remove explicit dependency.
1079 * acinclude.m4: Remove obsolete code.
1080 * configure.in: Update AC_PREREQ. Remove extra $CONFIG_SHELL.
1081 * Makefile.in, aclocal.m4, config.in, configure: Regenerated.
1083 2005-05-11 Bob Wilson <bob.wilson@acm.org>
1085 * scripttempl/elfxtensa.sc: Sync up with elf.sc.
1086 * emulparams/elf32xtensa.sh (PLT, GOT): Define.
1088 2005-05-11 Alan Modra <amodra@bigpond.net.au>
1090 * ldgram.y: Add SPECIAL token.
1091 (sect_constraint): Handle SPECIAL.
1092 * ldlang.c (lang_output_section_find_1): Don't match SPECIAL.
1093 (map_input_to_output_sections): Likewise.
1094 * ldlex.l (SPECIAL): Define.
1095 * emulparams/elf32ppc.sh (DATA_GOT, SDATA_GOT, SEPARATE_GOTPLT,
1096 GOT, PLT, GOTPLT): Define.
1097 * emultempl/ppc32elf.em (old_plt, old_got): New static vars.
1098 (ppc_after_open): New function.
1099 (PARSE_AND_LIST_PROLOGUE): Define OPTION_OLD_LPT and OPTION_OLD_GOT.
1100 (PARSE_AND_LIST_LONGOPTS): Add "bss-plt" and "sdata-got".
1101 (PARSE_AND_LIST_OPTIONS): Document them.
1102 (PARSE_AND_LIST_ARGS_CASES): Handle them.
1103 (LDEMUL_AFTER_OPEN): Define.
1104 * scripttempl/elf.sc (PLT): Don't override existing define.
1105 (DATA_GOT, SDATA_GOT): Define and use to enable alternate got
1106 placement rather than using NO_SMALL_DATA. Emit GOTPLT for RELRO_NOW.
1108 2005-05-10 Alan Modra <amodra@bigpond.net.au>
1110 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_GOTPLT_END): Delete.
1111 (DATA_SEGMENT_RELRO_END): Use SEPARATE_GOTPLT value.
1112 (GOTPLT): Remove DATA_SEGMENT_RELRO_GOTPLT_END. Place after
1113 DATA_SEGMENT_RELRO_END in script.
1115 2005-05-09 H.J. Lu <hongjiu.lu@intel.com>
1117 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
1118 Don't use a removed section.
1120 2005-05-09 H.J. Lu <hongjiu.lu@intel.com>
1122 * ldmain.c (reloc_overflow): Use output_bfd if the symbol
1123 is defined in the ABS section.
1125 2005-05-06 H.J. Lu <hongjiu.lu@intel.com>
1127 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
1128 Put back !link_info.relocatable.
1130 2005-05-06 H.J. Lu <hongjiu.lu@intel.com>
1133 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
1134 Just check link_info.executable.
1136 2005-05-06 Nick Clifton <nickc@redhat.com>
1138 * Update the address and phone number of the FSF organization in
1139 the GPL notices in the following files:
1140 aclocal.m4, deffile.h, deffilep.y, fdl.texi, ld.h, ldcref.c,
1141 ldctor.c, ldctor.h, ldemul.c, ldexp.c, ldexp.h, ldfile.c,
1142 ldfile.h, 20ldgram.y, ldint.texinfo, ldlang.c, ldlang.h, ldlex.h,
1143 ldlex.l, ldmain.c, ldmain.h, ldmisc.c, ldmisc.h, ldver.c, ldver.h,
1144 ldwrite.c, ldwrite.h, lexsup.c, mri.c, mri.h, pe-dll.c, pe-dll.h,
1145 sysdep.h, emultempl/aix.em, emultempl/alphaelf.em,
1146 emultempl/armcoff.em, emultempl/armelf.em, emultempl/beos.em,
1147 emultempl/crxelf.em, emultempl/elf32.em, emultempl/generic.em,
1148 emultempl/gld960.em, emultempl/gld960c.em, emultempl/hppaelf.em,
1149 emultempl/ia64elf.em, emultempl/irix.em, emultempl/linux.em,
1150 emultempl/lnk960.em, emultempl/m68hc1xelf.em,
1151 emultempl/m68kcoff.em, emultempl/m68kelf.em,
1152 emultempl/mipsecoff.em, emultempl/mmix-elfnmmo.em,
1153 emultempl/mmixelf.em, emultempl/mmo.em, emultempl/needrelax.em,
1154 emultempl/pe.em, emultempl/ppc32elf.em, emultempl/ppc64elf.em,
1155 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em,
1156 emultempl/vanilla.em, emultempl/xtensaelf.em
1158 2005-05-05 H.J. Lu <hongjiu.lu@intel.com>
1160 * scripttempl/elf.sc: Document the usage of __bss_start.
1162 2005-05-05 Paul Brook <paul@codesourcery.com>
1164 * Makefile.am: Add eelf_i386_vxworks.
1165 * Makefile.in: Regenerate.
1166 * configure.tgt: Make i?86-*-vxworks use targ_emul=elf_i386_vxworks.
1167 * emulparams/elf_i386_vxworks.sh: New file.
1168 * emulparams/vxworks.sh: New file.
1169 * scripttempl/elf.sc: Add DATA_END_SYMBOLS and ETEXT_NAME.
1171 2005-05-04 H.J. Lu <hongjiu.lu@intel.com>
1173 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
1174 Call _bfd_elf_provide_section_bound_symbols.
1176 2005-05-04 Alan Modra <amodra@bigpond.net.au>
1178 * ldemul.c: Include bfdlink.h.
1179 (ldemul_before_allocation): Assume before_allocation is non-zero.
1180 (before_allocation_default): Call strip_excluded_output_sections.
1181 * ldlang.c (stripped_excluded_sections): New variable.
1182 (lang_add_section): Build input section list for each output
1183 section, attached via map_head and map_tail pointers.
1184 (strip_excluded_output_sections): Make global. Traverse the
1185 input section lists to find which output sections can go. Clear
1186 link_order pointers and set stripped_excluded_sections.
1187 (lang_process): Call strip_excluded_output_sections.
1188 * ldlang.h (strip_excluded_output_sections): Declare.
1189 * ldwrite.c: Update throuhout for link_order_head -> map_head change.
1190 * emultempl/aix.em (before_allocation): Call
1191 strip_excluded_output_sections.
1192 * emultempl/armcoff.em (before_allocation): Likewise.
1193 * emultempl/beos.em (before_allocation): Likewise.
1194 * emultempl/linux.em (before_allocation): Likewise.
1195 * emultempl/pe.em (before_allocation): Likewise.
1196 * emultempl/sunos.em (before_allocation): Likewise.
1197 * emultempl/elf32.em (before_allocation): Likewise. Call
1198 bfd_elf_size_dynsym_hash_dynstr too.
1199 * emultempl/lnk960.em (lnk960_before_allocation): Delete.
1200 (ld_lnk960): Use before_allocation_default.
1202 2005-05-02 H.J. Lu <hongjiu.lu@intel.com>
1204 * emultempl/elf32.em (gld${EMULATION_NAME}_strip_empty_section):
1205 Updated for bfd_section_list_remove change.
1206 * ldlang.c (lang_insert_orphan): Likewise.
1207 (strip_excluded_output_sections): Likewise.
1208 (sort_sections_by_lma): New.
1209 (lang_check_section_addresses): Sort the sections before
1212 2005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
1214 * configure.tgt: Add h8300*-*-rtemscoff.
1215 Switch h8300*-*-rtems* to elf.
1217 2005-04-29 Ben Elliston <bje@au.ibm.com>
1219 * ldgram.y (lang_memory_region_type): Make static.
1220 (ldgram_want_filename): Likewise.
1221 * ldemul.c (ld_emulation): Make static.
1222 * ldfile.h (ldfile_find_command_file): Remove extern.
1223 * ldfile.c (ldfile_find_command_file): Make static.
1224 * ldlang.h (unique_section_list): Remove extern declaration.
1225 * ldlang.c (unique_section_list): Make static.
1226 * mri.h (symbol_truncate): Remove extern declaration.
1227 * mri.c (symbol_truncate): Make static.
1228 (order, only_load, address, alias): Likewise.
1229 (alignment, subalignment): Likewise.
1231 2005-04-27 H.J. Lu <hongjiu.lu@intel.com>
1233 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
1234 Use the first SEC_ALLOC section which isn't SEC_READONLY or the
1235 last SEC_ALLOC section if such a section doesn't exist.
1237 2005-04-24 Mark Kettenis <kettenis@gnu.org>
1239 * configure.host: Add *-*-openbsd support.
1241 2005-04-15 Julian Brown <julian@codesourcery.com>
1243 * ld.texinfo: Document --use-blx.
1244 * emultempl/armelf.em (use_blx): New variable.
1245 (arm_elf_create_output_section_statements): Communicate value of
1247 (PARSE_AND_LIST_PROLOGUE): Add OPTION_USE_BLX.
1248 (PARSE_AND_LIST_OPTIONS): Add --use-blx option.
1249 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_USE_BLX case.
1251 2005-04-14 Alan Modra <amodra@bigpond.net.au>
1253 * Makefile.am (NO_WERROR): Define. Use instead of -Wno-error.
1254 * configure.in: Include ../bfd/warning.m4 contents.
1255 * Makefile.in: Regenerate.
1256 * configure: Regenerate.
1258 2005-04-12 Alan Modra <amodra@bigpond.net.au>
1260 * Makefile.am: Run "make dep-am".
1261 (ldgram.o, ldlex.o, deffilep.o): Add -Wno-error to command.
1262 * Makefile.in: Regenerate.
1263 * config.in: Regenerate.
1265 2005-04-11 Alan Modra <amodra@bigpond.net.au>
1267 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Ignore
1268 as_needed libs that were not needed.
1269 (gld${EMULATION_NAME}_check_needed): Likewise.
1271 2005-04-07 Nick Clifton <nickc@redhat.com>
1273 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h so that
1274 ldfile.h can use the lang_input_statement type.
1276 2005-04-06 Jakub Jelinek <jakub@redhat.com>
1278 * ldlang.c: Formatting.
1279 (walk_wild_consider_section): Remember return value from wildcardp.
1280 (is_simple_wild): Use strcspn instead of 2 strpbrk calls and strlen.
1281 (wild_spec_can_overlap): Use strcspn instead of strpbrk and strlen.
1283 2005-04-06 Robert O'Callahan <rocallahan@novell.com>
1285 * ld.h (lean_section_userdata_type): Remove.
1286 (fat_section_userdata_type): Remove file field.
1287 (SECTION_USERDATA_SIZE): Remove.
1288 * ldlang.c (init_os): Eliminate initialization of unused
1289 lean_section_userdata_type.
1291 * ldlang.h (callback_t, walk_wild_section_handler_t): New
1293 (struct lang_wild_statement_struct): Add walk_wild_section_handler
1294 and handler_data fields.
1295 * ldlang.c (callback_t): Removed.
1296 (walk_wild_consider_section, walk_wild_section_general,
1297 section_iterator_callback, find_section, is_simple_wild,
1298 match_simple_wild, walk_wild_section_specs1_wild0,
1299 walk_wild_section_specs1_wild1, walk_wild_section_specs2_wild1,
1300 walk_wild_section_specs3_wild2, walk_wild_section_specs4_wild2,
1301 wild_spec_can_overlap, analyze_walk_wild_section_handler): New
1303 (lang_add_wild): Call analyze_walk_wild_section_handler.
1304 (walk_wild_section): Renamed to walk_wild_section_general and
1305 created a wrapper function.
1306 (section_iterator_callback_data): New typedef.
1308 2005-04-04 Nick Clifton <nickc@redhat.com>
1310 * configure.in: Add a check for <unistd.h> providing a prototype
1311 for getopt() which is compatible with the one in
1312 include/getopt.h. If so then define HAVE_DECL_GETOPT.
1313 * configure: Regenerate.
1314 * config.in (HAVE_DECL_GETOPT): Add.
1315 * ldemul.c: Include config.h
1316 * lexsup.c: Likewise.
1317 * emultempl/elf32.sc: Likewise.
1319 2005-03-29 Alan Modra <amodra@bigpond.net.au>
1321 * emultempl/elf32.em (gld${EMULATION_NAME}_layout_sections_again):
1322 New function, extracted from static void gld${EMULATION_NAME}_finish.
1323 (gld${EMULATION_NAME}_strip_empty_sections): Likewise.
1324 (gld${EMULATION_NAME}_provide_init_fini_syms): Likewise.
1325 * emultempl/ppc64elf.em: Revert last change.
1326 (ppc_layout_sections_again): Use
1327 gld${EMULATION_NAME}_layout_sections_again.
1328 (ppc_finish): Don't call gld${EMULATION_NAME}_finish. Instead call
1329 gld${EMULATION_NAME}_strip_empty_sections and
1330 gld${EMULATION_NAME}_provide_init_fini_syms.
1331 * emultempl/hppaelf.em: Similarly.
1333 2005-03-29 Alan Modra <amodra@bigpond.net.au>
1335 * emultempl/ppc64elf.em (need_laying_out): Delete. Remove all refs.
1336 (ppc_finish): Don't call bfd_elf_discard_info.
1337 * emultempl/hppaelf.em: Similarly.
1339 2005-03-24 Nick Clifton <nickc@redhat.com>
1341 * po/fr.po: Updated French translation.
1343 2005-03-23 Mike Frysinger <vapier@gentoo.org>
1344 Nick Clifton <nickc@redhat.com>
1346 * configure.host: Accept any C library to accompany a GNU Linux
1347 implementation, not just the GNU C library.
1348 * configure.tgt: Likewise.
1349 * emultempl/elf32.em: Likewise.
1351 2005-03-22 H.J. Lu <hongjiu.lu@intel.com>
1353 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols): New
1354 (gld${EMULATION_NAME}_finish): Call
1355 gld${EMULATION_NAME}_provide_bound_symbols to provide
1356 __preinit_array_start, __preinit_array_end, __init_array_start,
1357 __init_array_end, __fini_array_start and __fini_array_end.
1359 * scripttempl/elf.sc: Don't provide __preinit_array_start,
1360 __preinit_array_end, __init_array_start, __init_array_end,
1361 __fini_array_start nor __fini_array_end.
1363 2005-03-23 Alan Modra <amodra@bigpond.net.au>
1365 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Set
1366 SEC_EXCLUDE on .gnu.warning sections.
1368 2005-03-22 Alan Modra <amodra@bigpond.net.au>
1370 * scripttempl/elf.sc (SBSS): Don't provide sbss start and end syms.
1372 2005-03-21 Alan Modra <amodra@bigpond.net.au>
1374 * emultempl/ppc32elf.em (gld${EMULATION_NAME}_after_allocation): New
1376 (LDEMUL_AFTER_ALLOCATION): Define.
1378 2005-03-21 Alan Modra <amodra@bigpond.net.au>
1380 * emultempl/ppc64elf.em (ppc_finish): Rename from
1381 gld${EMULATION_NAME}_finish. Call gld${EMULATION_NAME}_finish.
1382 (LDEMUL_FINISH): Update.
1383 * emultempl/hppaelf.em (hppaelf_finish, LDEMUL_FINISH): Likewise.
1384 * emultempl/m68hc1xelf.em (m68hc11elf_finish, LDEMUL_FINISH): Likewise.
1386 2005-03-18 Julian Brown <julian@codesourcery.com>
1388 * scripttempl/armbpapi.sc (.rel.dyn): Add .rel.init_array,
1390 (.rela.dyn): Add .rela.init_array, .rela.fini_array.
1391 (SECTIONS): Add .rel.other, .rela.other, .reli.other after PLT relocs.
1393 2005-03-18 H.J. Lu <hongjiu.lu@intel.com>
1395 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Don't set
1396 bfd_section when removing unused empty output sections for
1397 non-relocatable link.
1399 2005-03-19 Alan Modra <amodra@bigpond.net.au>
1401 * ldlang.c (lang_insert_orphan): Use old section_tail rather than
1402 traversing the bfd section list to find pointer to new section.
1404 2005-03-18 Alan Modra <amodra@bigpond.net.au>
1406 * scripttempl/elf.sc: When CREATE_SHLIB, put .sdata2 and .sbss2
1407 input sections into .sdata and .sbss output respectively.
1409 2005-03-16 David Heine <dlheine@tensilica.com>
1410 Bob Wilson <bob.wilson@acm.org>
1412 * ldlang.c (IGNORE_SECTION): Remove check for zero size.
1413 (lang_check_section_addresses): Ignore zero size sections here.
1415 2005-03-16 H.J. Lu <hongjiu.lu@intel.com>
1417 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Remove
1418 unused empty output sections for non-relocatable link.
1420 * ld.h (args_type): Remove gc_sections.
1422 * ldlang.c (lang_mark_used_section): New.
1423 (lang_gc_sections): Use link_info.gc_sections instead of
1424 command_line.gc_sections.
1425 * ldmain.c (main): Likewise.
1426 * lexsup.c (parse_args): Likewise.
1427 * ldlang.c (lang_process): Call lang_mark_used_section.
1429 * ldmain.c (main): Initialize link_info.gc_sections to FALSE.
1431 2005-03-16 Nick Clifton <nickc@redhat.com>
1432 Ben Elliston <bje@au.ibm.com>
1434 * configure.in (werror): New switch: Add -Werror to the
1435 compiler command line. Enabled by default. Disable via
1437 * configure: Regenerate.
1439 2005-03-16 Alan Modra <amodra@bigpond.net.au>
1441 * emulparams/elf32ppclinux.sh (OTHER_READWRITE_SECTION): Delete.
1442 (OTHER_RELRO_SECTIONS): Set this instead.
1444 2005-03-15 Nick Clifton <nickc@redhat.com>
1446 * NEWS: Add cutoff for changes in 2.16 release.
1448 2005-03-15 Mikkel Krautz <krautz@gmail.com>
1450 * configure.tgt (x86_64-elf): Add target.
1452 2005-03-15 Alan Modra <amodra@bigpond.net.au>
1454 * po/es.po: Commit new Spanish translation.
1456 2005-03-14 Alan Modra <amodra@bigpond.net.au>
1458 * ldexp.c (exp_fold_tree): Ensure return value is initialized.
1459 Tidy etree_assert case.
1461 2005-03-14 Alan Modra <amodra@bigpond.net.au>
1463 * po/tr.po: Commit new Turkish translation.
1465 2005-03-11 Daniel Jacobowitz <dan@codesourcery.com>
1467 * Makefile.am: Remove references to em68klynx.o and esparclynx.o.
1468 * Makefile.in: Regenerated.
1469 * emulparams/m68klynx.sh, emulparams/sparclynx.sh: Remove.
1471 2005-03-07 Nick Clifton <nickc@redhat.com>
1473 * po/fr.po: Updated translation.
1475 2005-03-05 Alan Modra <amodra@bigpond.net.au>
1477 * po/ld.pot: Regenerate.
1479 2005-03-02 Jan Beulich <jbeulich@novell.com>
1481 * ldmain.c (remove_output): Use unlink_if_ordinary instead of unlink.
1482 * pe-dll.c (pe_dll_generate_implib): Likewise.
1484 2005-02-24 Ben Elliston <bje@au.ibm.com>
1486 * ldfile.c: Remove GNU960 conditional code.
1487 * emultempl/gld960.em: Likewise.
1488 * emultempl/gld960c.em: Likewise.
1489 * emultempl/lnk960.em: Likewise.
1491 2005-02-24 Nick Clifton <nickc@redhat.com>
1493 * emultempl/lnk960.em (lnk960_before_parse): Remove redundant
1494 empty string from calls to concat.
1496 2005-02-23 Nick Clifton <nickc@redhat.com>
1498 * emultempl/lnk960.em (lnk960_before_parse): Terminate list of
1499 arguments passed to concat() with a NULL.
1501 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h because they
1502 define types needed by ldfile.h
1504 2005-02-23 Alan Modra <amodra@bigpond.net.au>
1506 * pe-dll.c: Warning fixes.
1507 * emultempl/sunos.em: Likewise.
1509 2005-02-22 Daniel Jacobowitz <dan@codesourcery.com>
1511 * ldlang.c (section_already_linked): Don't call
1512 bfd_section_already_linked for dynamic objects.
1514 2005-02-22 Alan Modra <amodra@bigpond.net.au>
1516 * ldexp.c: Warning fixes.
1517 * ldwrite.c: Likewise.
1518 * emultempl/elf32.em: Likewise.
1520 2005-02-21 H.J. Lu <hongjiu.lu@intel.com>
1522 * ldlang.c (lang_add_section): Check SEC_TIC54X_BLOCK for TI
1524 (lang_size_sections_1): Check SEC_COFF_SHARED_LIBRARY for COFF
1525 and ECOFF output only.
1527 2005-02-21 Alan Modra <amodra@bigpond.net.au>
1529 * config.in: Regenerate.
1530 * configure: Regenerate.
1532 2005-02-17 Zack Weinberg <zack@codesourcery.com>
1534 * ldexp.c (assigning_to_dot): New global flag.
1535 (fold_name): If assigning_to_dot is true, object immediately to
1536 an undefined symbol.
1537 (exp_fold_tree): Set and clear assigning_to_dot around the
1538 recursive call to exp_fold_tree to process the right-hand side
1539 of an assignment to the location counter.
1541 2005-02-17 Paul Brook <paul@codesourcery.com>
1543 * scripttempl/armbpabi.sc: Add dummy name to version block.
1545 2005-02-17 Alan Modra <amodra@bigpond.net.au>
1547 * ldexp.c (new_abs): Init new.str.
1549 2005-02-15 Mark Mitchell <mark@codesourcery.com>
1551 * configure.in (AC_CHECK_FUNCS): Add glob.
1552 * configure: Regenerated.
1553 * emultempl/elf32.em (<glob.h>): Do not include if HAVE_GLOB is
1555 (gld${EMULATION_NAME}_parse_ld_so_conf_include): Do not use glob
1556 if HAVE_GLOB is not defined.
1558 2005-02-16 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1560 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define
1561 lib_path if NATIVE is yes.
1563 2005-02-16 Alan Modra <amodra@bigpond.net.au>
1565 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Make
1566 an error creating fake bfd fatal.
1567 (ppc_before_allocation): Continue on after errors.
1568 (gld${EMULATION_NAME}_finish): Likewise.
1570 2005-02-15 Nick Clifton <nickc@redhat.com>
1572 * ldlex.l (YY_NO_UNPUT): Define so that the yy_unput function is
1573 not declared. It is not used and its presence causes a compile
1576 2005-02-11 Zack Weinberg <zack@codesourcery.com>
1578 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed):
1579 If st.st_ino is zero, do not treat the library as a duplicate.
1581 2005-02-10 Jakub Jelinek <jakub@redhat.com>
1583 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
1584 Set BFD_LINKER_CREATED on the stubs bfd.
1585 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
1588 2005-02-08 Mark Mitchell <mark@codesourcery.com>
1590 * scripttempl/armbpabi.sc (VERSION): Make special section symbols
1592 (Image$$ER_RO$$Base): Define whenever RELOCATING.
1593 (Image$$ER_RO$$Limit): Likewise.
1594 (SHT$$INIT_ARRAY$$Base): Likewise.
1595 (SHT$$INIT_ARRAY$$Limit): Likeise.
1597 2005-02-10 Ben Elliston <bje@au.ibm.com>
1599 * emultempl/beos.em: Remove #if 0 and #if 1 blocks.
1601 2005-02-08 Richard Sandiford <rsandifo@redhat.com>
1603 * configure.tgt (mips64*el-*-linux-gnu*): Define targ_extra_libpath
1604 to include o32 and n64 emulations.
1605 (mips64*-*-linux-gnu*): Likewise.
1607 2005-02-08 Hans-Peter Nilsson <hp@axis.com>
1609 * ldmain.c (warning_callback, warning_find_reloc): Prepend
1610 "warning: " to warning messages.
1612 2005-02-04 Alan Modra <amodra@bigpond.net.au>
1614 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't
1615 look up symbol for etree_provide here.
1617 2005-02-02 Daniel Jacobowitz <dan@codesourcery.com>
1619 * emulparams/elf32bmip.sh (TEXT_DYNAMIC): Always set.
1621 2005-02-01 Edward Welbourne <eddy@opera.com>
1622 Nick Clifton <nickc@redhat.com>
1624 * ld.texinfo (Source Code Reference): New node describing how to
1625 access linker script defined variables from source code.
1627 2005-02-01 Alan Modra <amodra@bigpond.net.au>
1629 * ld.texinfo: Clarify --as-needed operation.
1631 2005-01-31 Andrew Cagney <cagney@gnu.org>
1633 * configure: Regenerate to track ../gettext.m4.
1635 2005-01-31 Nick Clifton <nickc@redhat.com>
1637 * ldver.c (ldversion): Bump reported copyright date to 2005.
1639 2005-01-31 Nick Clifton <nickc@redhat.com>
1641 * configure.tgt: Remove obsolete targets m68k-lynxos and
1644 2005-01-28 Julian Brown <julian@codesourcery.com>
1646 * emultempl/armelf.em (fix_v4bx): New variable.
1647 (arm_elf_create_output_section_statements): Communicate fix_v4bx flag
1649 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_FIX_V4BX.
1650 (PARSE_AND_LIST_LONGOPTS): Add option --fix-v4bx.
1651 (PARSE_AND_LIST_OPTIONS): Add option --fix-v4bx.
1652 (PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX.
1653 * NEWS: Mention --fix-v4bx.
1654 * ld.texinfo: Document --fix-v4bx.
1656 2005-01-25 Mark Mitchell <mark@codesourcery.com>
1658 * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Define, so
1659 as to include .ARM.exidx$${Base,Limit}.
1660 * ld/scripttempl/armbpabi.sc: Move .plt to end of text segment.
1661 Define IMAGE$$ER_RO$${Base,Limit} and SHT$$INIT_ARRAY$${Base,Limit}.
1662 Put .init_array, .fini_array, etc. into the read-only data
1665 2005-01-25 Alan Modra <amodra@bigpond.net.au>
1667 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Formatting.
1668 (gld${EMULATION_NAME}_after_open): Ignore needed libs if they were
1669 only needed by an as-needed lib that didn't get linked.
1671 2005-01-23 Alan Modra <amodra@bigpond.net.au>
1673 * ld.texinfo (Output Section Keywords <CONSTRUCTORS>): Correct
1674 __DTOR_LIST__ description.
1676 2005-01-23 Alan Modra <amodra@bigpond.net.au>
1678 * ld.texinfo (Location Counter <dot outside sections>): Document
1679 effects of orphan section placement, and ". = ." workaround.
1680 * Makefile.in: Regenerate.
1682 2005-01-22 Richard Sandiford <rsandifo@redhat.com>
1684 * emulparams/elf32bmip.sh (OTHER_GOT_SECTIONS): Add ". = .;".
1685 * emulparams/elf32bmipn32-defs.sh (OTHER_GOT_SECTIONS): Likewise.
1687 2005-01-21 Jakub Jelinek <jakub@redhat.com>
1689 * ldgram.y (AS_NEEDED): New token.
1690 (input_list): Handle AS_NEEDED ( input_list ).
1691 * ldlex.l (AS_NEEDED): Add.
1692 * ld.texinfo: Document AS_NEEDED ().
1693 * NEWS: Mention AS_NEEDED ().
1695 2005-01-21 Ben Elliston <bje@au.ibm.com>
1697 * ldlang.c (lang_reasonable_defaults): Remove.
1698 (lang_process): Don't call lang_reasonable_defaults.
1700 * ldexp.c (exp_assop): Remove #if 0'd code.
1701 (exp_print_tree): Likewise.
1702 * ldlang.c (lang_memory_region_lookup): Likewise.
1703 (open_output): Likewise.
1704 (lang_do_assignments_1): Likewise.
1705 (lang_place_orphans): Likewise.
1706 (lang_enter_output_section_statement): Likewise.
1707 (lang_reasonable_defaults): Likewise.
1708 * ldlang.h (struct lang_input_statement_struct): Likewise.
1709 * mri.c (mri_draw_tree): Likewise.
1710 (mri_load): Likewise.
1711 * pe-dll.c (generate_reloc): Likewise.
1712 (make_import_fixup_entry): Likewise.
1713 (pe_as16): Likewise.
1714 * emultempl/beos.em (set_pe_subsystem): Likewise.
1715 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
1716 * emultempl/pe.em: Likewise.
1717 * emultempl/xtensaelf.em (xtensa_colocate_literals): Likewise.
1719 2005-01-20 Daniel Jacobowitz <dan@codesourcery.com>
1721 * Makefile.am (ALL_EMULATIONS): Add earmelfb_linux_eabi.o.
1722 (earmelfb_linux_eabi.c): New target.
1723 * Makefile.in: Regenerated.
1724 * configure.tgt (arm*b-*-linux-gnueabi): New target.
1725 * emulparams/armelfb_linux_eabi.sh: New file.
1727 2005-01-20 Nick Hudson <skrll@netbsd.org>
1730 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
1731 Handle bfd_elf32_hppa_nbsd_vec.
1733 2005-01-19 Richard Sandiford <rsandifo@redhat.com>
1735 * ldmain.h (ld_sysroot): Change type to a constant string.
1736 * ldmain.c (ld_sysroot): Likewise.
1737 (get_relative_sysroot, get_sysroot): New functions, adding command-line
1738 support for changing the sysroot.
1739 (main): Call the new functions.
1740 * lexsup.c (OPTION_SYSROOT): New.
1741 (ld_options): Add --sysroot.
1742 (parse_args): Add a dummy handler for it.
1743 * ld.texinfo (--sysroot): Document.
1744 * NEWS: Mention the new --sysroot option.
1746 2005-01-18 Alan Modra <amodra@bigpond.net.au>
1748 * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
1749 (lang_place_orphans): Don't abort on just_syms_flag, instead call
1752 2005-01-16 Danny Smith <dannysmith@users.sourceforge.net>
1754 * defilep.y (def_name, def_library): Combine into...
1755 (def_image_name): New function. Strip name to basename,
1758 2005-01-12 Mark Kettenis <kettenis@gnu.org>
1760 * configure.in: Be sure to invoke config.sub using the shell.
1761 * configure: Regenerate.
1763 2005-01-11 Alan Modra <amodra@bigpond.net.au>
1765 * configure.host: Correct sed patterns for last change.
1767 2005-01-10 Nick Clifton <nickc@redhat.com>
1770 * ldmisc.c (vfinfo): Add an extra argument: is_warning. Use this
1771 to determine whether config.make_executable should be set to FALSE in
1772 conjunction with config.fatal_warnings.
1773 (info_msg, minfo, lfinof): Pass FALSE as the extra argument.
1774 (einfo): Pass TRUE as the extra argument.
1776 2005-01-10 Greg Schaffer <gschafer@zip.com.au>
1778 * configure.host (linux targets): Use "${CC} -dumpspecs" instead
1779 of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0.
1780 (ia64-*-aix): Delete - this target is obsolete, and would be
1781 broken by this patch.
1783 2005-01-06 Eric Botcazou <ebotcazou@libertysurf.fr>
1785 * configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*.
1786 (sparc64-sun-solaris2*): New host.
1788 2005-01-06 Paul Brook <paul@codesourcery.com>
1790 * Makefie.am: Add earmelf_vxworks.
1791 * Makefile.in: Regenerate.
1792 * configure.tgt: Make arm-*-vxworks a separate case.
1793 * emulparams/armelf_vxworks.sh: New function.
1795 2005-01-06 Alan Modra <amodra@bigpond.net.au>
1797 * emultempl/ppc64elf.em (no_multi_toc): New var.
1798 (gld${EMULATION_NAME}_finish): Pass to ppc64_elf_setup_section_lists.
1799 (OPTION_NO_MULTI_TOC): Define.
1800 (PARSE_AND_LIST_LONGOPTS): Add --no-multi-toc support.
1801 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
1803 2005-01-05 Nick Clifton <nickc@redhat.com>
1806 * ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
1807 Standard's specification for parsable error messages.
1809 2005-01-04 Paul Brook <paul@codesourcery.com>
1811 * Makefile.am: Correct dependency for earmsymbian.c.
1812 * Makefile.in: Regenerate.
1814 2004-12-28 Danny Smith <dannysmith@users.sourceforge.net>
1816 * emultempl/pe.em (set_pe_subsystem): Change second arg to
1817 lang_add_entry to FALSE.
1819 2004-12-23 Nick Clifton <nickc@redhat.com>
1822 * emulparams/shelf.sh (.stack): Increase stack start address to
1825 2004-12-20 Nick Clifton <nickc@redhat.com>
1827 * ldmain.c (main): Issue an error message if -static and -shared
1830 2004-12-17 Jakub Jelinek <jakub@redhat.com>
1832 * ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
1833 * ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
1834 * ldlang.c (lang_size_sections): Use them to avoid wasting virtual
1835 address space at DATA_SEGMENT_ALIGN. Fix computation of expected
1836 PT_GNU_RELRO segment end.
1838 2004-12-14 P.J. Darcy <darcypj@us.ibm.com>
1840 * configure.tgt: Add s390x-ibm-tpf support.
1842 2004-12-16 Martin Kögler <mkoegler@auto.tuwien.ac.at>
1844 * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
1847 2004-12-07 Ben Elliston <bje@gnu.org>
1849 * ldemul.h: Forward declare struct option.
1851 2004-12-01 Danny Smith <dannysmith@users.sourceforge.net>
1853 * scripttempl/pe.sc (.data): Add .jcr subsection.
1855 2004-11-30 Paul Brook <paul@codesourcery.com>
1857 * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
1859 2004-11-30 Tero Niemela <tero_niemela@yahoo.com>
1861 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
1862 * Makefile.in: Regenerate.
1864 2004-11-26 Melissa Mears <asterisk@graces.dricas.com>
1866 * emultempl/pe.em: Add --subsystem:xbox as well as
1868 * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
1869 and numeric subsystems.
1871 2004-11-24 Alan Modra <amodra@bigpond.net.au>
1873 * ldexp.c (fold_name): Correct PR 338 fix.
1875 2004-11-19 Mark Mitchell <mark@codesourcery.com>
1877 * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
1878 (earmelf_linux_eabi.c): New target.
1879 * configure.tgt (arm*-*-linux-gnueabi): Handle it.
1880 * emulparams/armelf_linux_eabi.sh: New file.
1881 * Makefile.in: Regenerated.
1883 2004-11-19 Nick Clifton <nickc@redhat.com>
1886 * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
1887 LENGTH fields in the MEMORY command, to explicitly state that
1888 symbols cannot be used in their expressions.
1890 2004-11-19 Jon Beniston <jon@beniston.com>
1892 * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
1893 * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
1894 * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
1895 which return the length and origin of a memory.
1896 * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
1897 * NEWS: Mention support for ORIGIN and LENGTH operators.
1899 2004-11-17 Daniel Jacobowitz <dan@codesourcery.com>
1901 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
1902 a dynamic object for stubs.
1904 2004-11-04 Paul Brook <paul@codesourcery.com>
1906 * ld.texinfo: Document --default-imported-symver.
1907 * ldmain.c (main): Set link_info.default_imported_symver.
1908 * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
1909 (ld_options): Add --default-imported-symver.
1910 (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
1912 2004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
1913 Vineet Sharma <vineets@noida.hcltech.com>
1915 * Makefile.am: Add entries for new maxq-coff target.
1916 * Makefile.in: Regenerate.
1917 * configure.tgt: Add support for maxq.
1918 * emulparams/maxqcoff.sh: New File.
1919 * scripttempl/maxqcoff.sc: New linker script for target maxq.
1920 * NEWS: Mention the new target.
1922 2004-11-04 Daniel Jacobowitz <dan@debian.org>
1924 * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
1925 (earmelf_oabi.c): Remove rule.
1926 * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
1927 * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
1928 * Makefile.in: Regenerated.
1930 2004-11-04 Hans-Peter Nilsson <hp@axis.com>
1932 * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
1933 * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
1934 (FINI_START): Ditto.
1935 (INIT_END): Remove emitted "jump [sp+]".
1938 2004-11-04 Alan Modra <amodra@bigpond.net.au>
1940 * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
1941 (no_opd_opt, no_toc_opt): New static vars.
1942 (ppc_before_allocation): Don't edit opt if no_opd_opt. Call
1944 (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
1945 (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
1946 (PARSE_AND_LIST_OPTIONS): Describe new options.
1947 (PARSE_AND_LIST_ARGS_CASES): Handle them.
1949 2004-10-27 Nick Clifton <nickc@redhat.com>
1951 * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
1952 parameter to invocation of lang_section_start.
1953 * emultempl/aix.em (_handle_option): Likewise.
1955 * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
1956 eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
1957 * Makefile.in: Regenerate.
1959 2004-10-26 Mark Mitchell <mark@codesourcery.com>
1961 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
1962 __exidx_{start,end} when not relocating.
1964 2004-10-25 Mark Mitchell <mark@codesourcery.com>
1966 * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
1967 * ldexp.h (segment_type): New type.
1968 (segments): New variable.
1969 * ldexp.c (segments): New variable.
1970 (exp_print_token): Handle SEGMENT_START.
1971 (fold_binary): Likewise.
1972 * ldgram.y (SEGMENT_START): Declare it as a token.
1973 (exp): Handle SEGMENT_START.
1974 * ldlang.h (lang_address_statement_type): Add segment field.
1975 (lang_section_start): Change prototype.
1976 * ldlang.c (map_input_to_output_sections): Do not process section
1977 assignments if a corresponding SEGMENT_START has already been
1979 (lang_section_start): Add segment parameter.
1980 * ldlex.l (SEGMENT_START): Add it.
1981 * lexsup.c (seg_segment_start): New function.
1982 (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
1983 * ld.texinfo (SEGMENT_START): Document it.
1984 * emulparams/armsymbian.sh (EMBEDDED): Set it.
1985 * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
1986 base addresses. Do not map relocations.
1987 * NEWS: Mention SEGMENT_START.
1989 2004-10-26 Paul Brook <paul@codesourcery.com>
1991 * ld.texinfo: Document --default-symver.
1992 * ldmain.c (main): Set link_info.create_default_symver.
1993 * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
1994 (ld_options): Add default-symver.
1995 (parse_args): Handle OPTION_DEFAULT_SYMVER.
1997 2004-10-24 Danny Smith <dannysmith@users.sourceforge.net>
1999 * pe-dll.c (process_def_file): Don't export all symbols by default if
2000 building a position-independent executable.
2002 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
2005 * ldmain.c (reloc_overflow): Accept a pointer to struct
2006 bfd_link_hash_entry. Report symbol location for relocation
2009 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
2011 * genscripts.sh (libpath.exp): Really generate for first
2014 2004-10-19 Danny Smith <dannysmith@users.sourceforge.net>
2016 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
2017 comparison and replacement of filenames.
2019 2004-10-19 H.J. Lu <hongjiu.lu@intel.com>
2022 * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
2023 option on linker script as the one for linker script.
2025 2004-10-16 Daniel Jacobowitz <dan@debian.org>
2027 * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
2028 (check_excluded_libs): New.
2029 (load_symbols): Call check_excluded_libs.
2030 * ldlang.h (add_excluded_libs): New prototype.
2031 * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
2032 (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
2033 (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
2034 * ld.texinfo (Command Line Variables): Document --exclude-libs.
2035 (Options Specific to i386 PE Targets): Remove --exclude-libs.
2037 2004-10-15 Alan Modra <amodra@bigpond.net.au>
2039 * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
2040 failing link script assert.
2042 * ldctor.c (ldctor_add_set_entry): Fix comment typo.
2044 2004-10-14 H.J. Lu <hongjiu.lu@intel.com>
2047 * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
2048 (SMALL_DATA_DTOR): Set.
2049 * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
2050 (SMALL_DATA_DTOR): Unset.
2051 * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
2052 after .data. If SMALL_DATA_DTOR is set, move .dtors after
2055 2004-10-14 Alan Modra <amodra@bigpond.net.au>
2058 * ldlang.h (lang_output_section_statement_type): Make "next" a
2059 struct lang_output_section_statement_struct *.
2060 (struct orphan_save): Move from elf32.em. Add "name" and "flags".
2061 (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
2062 * ldlang.c (lang_output_section_find_1): Adjust for changed
2063 output_section_statement "next".
2064 (strip_excluded_output_sections): Likewise.
2065 (lang_record_phdrs): Likewise.
2066 (lang_output_section_find_by_flags): New function.
2067 (output_prev_sec_find): Move from pe.em. Adjust iterator.
2068 (lang_insert_orphan): New function. Tail end of elf32.em's
2069 place_orphan merged with that from pe.em. Allow bfd_section to
2070 be placed first. New heuristic for placing new output section
2071 statement in existing script, and accompanying split of __start
2072 symbol alignment into a separate assignment to dot.
2073 (lang_add_section): Consistently use output->bfd_section rather than
2074 an alias, section->output_section.
2075 (map_input_to_output_sections): Rename overly long arg. Move
2076 initialization of data_statement output section to here..
2077 (lang_check_section_addresses): ..from here.
2078 (print_assignment): Correct printing of etree_assert.
2079 (print_all_symbols): Don't bomb if userdata is NULL.
2080 (IGNORE_SECTION): Rearrange.
2081 * emultempl/elf32.em (output_rel_find): Adjust interator.
2082 (output_prev_sec_find): Delete.
2083 (struct orphan_save): Delete.
2084 (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
2085 flags without creating a duplicate output section statement.
2086 Revise code holding history of various orphan section placements.
2087 Allow orphan sections to place before script specified output
2088 sections. Call lang_output_section_find_by_flags when placement
2089 by name fails. Use lang_insert_orphan.
2090 * emultempl/mmo.em (output_prev_sec_find): Delete.
2091 (struct orphan_save): Delete.
2092 (mmo_place_orphan): Revise code holding history of orphan placement.
2093 Allow orphans to place before existing output sections. Use
2095 * emultempl/pe.em (output_prev_sec_find): Delete.
2096 (struct orphan_save): Delete.
2097 (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
2100 2004-10-13 Mark Mitchell <mark@codesourcery.com>
2102 * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
2105 2004-10-13 Alan Modra <amodra@bigpond.net.au>
2108 * ldcref.c (check_section_sym_xref): Delete.
2109 (check_local_sym_xref): New function.
2110 (check_nocrossrefs): Adjust call.
2111 * emultempl/pe.em (struct orphan_save): Add os_tail.
2112 (place_orphan): Backport assorted fixes from elf32.em.
2114 2004-10-12 Bob Wilson <bob.wilson@acm.org>
2116 * emultempl/xtensaelf.em: Use ISO C90 formatting.
2118 2004-10-11 Jakub Jelinek <jakub@redhat.com>
2120 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
2121 getline for portability.
2123 * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
2124 (gld${EMULATION_NAME}_parse_ld_so_conf,
2125 gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
2126 (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
2128 2004-10-11 Alan Modra <amodra@bigpond.net.au>
2131 * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
2132 rejected when linking statically.
2134 2004-10-08 Daniel Jacobowitz <dan@debian.org>
2136 * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
2138 2004-10-07 Bob Wilson <bob.wilson@acm.org>
2140 * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
2141 assembler-generated longcall sequences. Describe new --size-opt
2143 * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
2144 * emultempl/xtensaelf.em (remove_section,
2145 replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
2146 elf_xtensa_after_open): New.
2147 (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
2148 OPTION_NO_LITERAL_MOVEMENT): Define.
2149 (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
2150 (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
2151 (PARSE_AND_LIST_OPTIONS): Add --size-opt.
2152 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
2153 OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
2154 (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
2155 * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
2156 * Makefile.am (eelf32xtensa.c): Update dependencies.
2157 * Makefile.in: Regenerate.
2159 2004-10-07 Jeff Baker <jbaker@qnx.com>
2161 * lexsup.c: Handle --warn-shared-textrel option.
2162 (ld_options): Restore alpha sorting of options.
2163 * ldmain.c (main): Initialise warn_shared_info field to FALSE.
2164 * ld.texinfo: Add documentation for --warn-shared-textrel.
2165 * NEWS: Added mention of --warn-shared-textrel option.
2167 2004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
2169 * emultempl/crxelf.em (disable_relaxation): Add.
2170 (crxelf_before_allocation): Enable --relax option by default.
2171 (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
2172 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
2173 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
2175 2004-10-04 H.J. Lu <hongjiu.lu@intel.com>
2177 * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
2178 --sort-section name|alignment.
2180 * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
2181 --sort-section name|alignment.
2183 * ld.h (sort_type): New enum.
2184 (wildcard_spec): Change the type of `sorted' to sort_type.
2186 * ldgram.y (SORT): Removed.
2187 (SORT_BY_NAME): Added.
2188 (SORT_BY_ALIGNMENT): Added.
2189 (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
2191 (input_section_spec_no_keep): Updated `sorted'.
2192 (statement): Replace SORT with SORT_BY_NAME.
2194 * ldlang.c (compare_section): New function to compare 2
2195 sections with different sorting schemes.
2196 (wild_sort): Updated. Use compare_section.
2197 (update_wild_statements): New function.
2198 (lang_process): Call update_wild_statements before
2199 map_input_to_output_sections.
2201 * ldlex.l (SORT_BY_NAME): New.
2202 (SORT_BY_ALIGNMENT): New.
2203 (SORT): Return SORT_BY_NAME.
2205 * ldmain.c (sort_section): New. Defined.
2206 (main): Initialize it to none.
2208 * lexsup.c (option_values): Add OPTION_SORT_SECTION.
2209 (ld_options): Add an entry for OPTION_SORT_SECTION.
2210 (parse_args): Handle OPTION_SORT_SECTION.
2212 * mri.c (mri_draw_tree): Updated `sorted'.
2214 2004-10-04 Jakub Jelinek <jakub@redhat.com>
2216 * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
2217 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
2219 (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
2220 and . as second argument.
2221 (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
2222 * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
2223 (fold_binary): Add it here. Insert padding to make relro_end
2224 COMMONPAGESIZE bytes aligned. For DATA_SEGMENT_ALIGN in
2225 exp_dataseg_relro_adjust phase just use previously computed
2227 * ldlang.c (lang_size_sections): Set exp_data_seg.base for
2228 relro_adjust here. Call lang_size_sections_1 once more if there
2229 was too big padding at DATA_SEGMENT_RELRO_END.
2230 * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
2232 2004-10-01 Paul Brook <paul@codesourcery.com>
2234 * emulparams/armelf.sh: Add unwinding table sections.
2236 2004-09-30 Filip Navara <navaraf@reactos.com>
2238 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
2239 correct base address for position independant executables.
2240 * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
2241 executables as DLLs.
2243 2004-09-30 Paul Brook <paul@codesourcery.com>
2245 * ld.texinfo: Document --target2=abs.
2246 * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
2248 2004-09-29 Nick Clifton <nickc@redhat.com>
2250 * scripttempl/xstormy16.sc: Only perform the assignments to the
2251 ROM region when not performing a relocatable link. The ROM region
2252 does not start at address 0, but the sections will.
2253 * Makefile.am: Fix linker script dependency for the generation of
2255 * Makefile.in: Regenerate.
2257 2004-09-18 Filip Navara <navaraf@reactos.com>
2259 * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
2260 emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
2261 emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
2263 * scripttempl/pe.sc: Make the virtual address and file offset synced if
2264 the alignment is lower than the target page size.
2266 2004-09-27 Filip Navara <navaraf@reactos.com>
2268 * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
2269 def_file_parse to handle pe_def_file if NULL and prevent crash with
2272 2004-09-27 Alan Modra <amodra@bigpond.net.au>
2274 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
2275 --emit-stub-syms automatically when --emit-relocs.
2277 2004-09-24 Paul Brook <paul@codeosurcery.com>
2279 * scripttempl/elf.sc: Keep .preinit_array, .init_array and
2280 .fini_array sections.
2282 2004-09-19 Andreas Schwab <schwab@suse.de>
2284 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
2285 base so that relro end is suitably aligned.
2287 2004-09-17 Paul Brook <paul@codesourcery.com>
2289 * ld.texinfo: Rename arm-specific section. Document --target*
2290 * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
2291 * emulparams/armelf_linux.sh: Ditto.
2292 * emulparams/armelf_nbsd.sh: Ditto.
2293 * emultempl/armelf.em: Set default for TARGET2_TYPE.
2294 (target2_type): New variable.
2295 (arm_elf_before_allocation): Don't pass target1_type.
2296 (arm_elf_create_output_section_statements): New function.
2297 (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
2298 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
2299 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
2300 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
2301 * emultempl/armelf_oabi.em (_before_allocation): Remove extra
2302 argument to bfd_elf32_arm_process_before_allocation.
2304 2004-09-17 Alan Modra <amodra@bigpond.net.au>
2306 * ldexp.c (fold_name): Update u.undef.next refs.
2307 * emultempl/pe.em: Likewise.
2308 * emultempl/sunos.em: Likewise.
2310 2004-09-17 Alan Modra <amodra@bigpond.net.au>
2312 * Makefile.am: Run "make dep-am".
2313 * Makefile.in: Regenerate.
2314 * config.in: Regenerate.
2315 * configure: Regenerate.
2316 * aclocal.m4: Regenerate.
2317 * po/ld.pot: Regenerate.
2319 2004-09-16 Tomer Levi <Tomer.Levi@nsc.com>
2321 * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
2325 2004-09-16 Alan Modra <amodra@bigpond.net.au>
2327 * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
2328 to bfd_elf32_arm_process_before_allocation call.
2330 2004-09-13 Paul Brook <paul@codesourcery.com>
2332 * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
2333 * emultempl/armelf.em: Use TARGET1_IS_REL. Add --target1-{rel,abs}.
2335 2004-09-07 H.J. Lu <hongjiu.lu@intel.com>
2337 * configure: Regenerated with autconfig 2.13.
2339 2004-09-07 Andreas Schwab <schwab@suse.de>
2341 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
2342 alignment before adjusting DATA_SEGMENT_RELRO_END.
2344 2004-09-06 Mark Mitchell <mark@codesourcery.com>
2346 * emulparams/armsymbian.sh: Use armbpabi script.
2347 * scripttempl/armbpabi.sc: New script.
2349 2004-09-02 Mark Mitchell <mark@codesourcery.com>
2351 * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
2352 (earmsymbian.c): New target.
2353 * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
2354 * Makefile.in: Regenerated.
2355 * aclocal.m4: Likewise.
2356 * configure: Likewise.
2357 * emulparams/armsymbian.sh: New file.
2359 2004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
2361 * scripttempl/elf32crx.sc: Edit file with comments.
2362 (.init): Add new section.
2364 (.ctor): Control the linkage order.
2367 2004-08-27 Nick Clifton <nickc@redhat.com>
2369 * emultempl/pe.em (after_open): Do not assume that either bfd is
2372 2004-08-26 Alan Modra <amodra@bigpond.net.au>
2374 * ldlang.c (lang_init): Don't compare with TRUE.
2376 2004-08-25 Dmitry Diky <diwil@spec.ru>
2378 * emulparams/msp430all.sh: Fix RAM sizes for all targets.
2379 * scripttempl/elf32msp430.sc: Add .profiler section definition.
2381 2004-08-24 H.J. Lu <hongjiu.lu@intel.com>
2383 * ldlang.c (wildcardp): Defined as a macro with strpbrk.
2385 2004-08-19 Mark Mitchell <mark@codesourcery.com>
2387 * configure.tgt (arm*-*-symbianelf*): New target.
2388 (arm*-*-eabi*): Likewise.
2390 2004-08-19 Jakub Jelinek <jakub@redhat.com>
2392 * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
2393 (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
2394 (OPTION_NON_OVERLAPPING_OPD): Define.
2395 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
2396 --non-overlapping-opd option.
2398 2004-08-18 Alan Modra <amodra@bigpond.net.au>
2401 * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
2402 was already on the undefs list.
2404 2004-08-17 Alan Modra <amodra@bigpond.net.au>
2406 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
2407 prefix the symbol field too.
2409 2004-08-13 Alan Modra <amodra@bigpond.net.au>
2411 * ldmain.c (link_callbacks): Remove "error_handler".
2412 * ldmisc.c: Include elf-bfd.h.
2413 (vfinfo): Sort comment. Handle %A. Use %A instead of
2414 bfd_get_section_indent.
2415 (error_handler): Delete.
2416 * ldmisc.h (error_handler): Delete declaration.
2418 2004-08-10 Alan Modra <amodra@bigpond.net.au>
2420 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
2421 ppc64_elf_restore_symbols.
2423 2004-08-09 Alan Modra <amodra@bigpond.net.au>
2425 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
2426 .toc is too large on relocatable linking.
2428 2004-08-09 Alan Modra <amodra@bigpond.net.au>
2430 * emultempl/ppc64elf.em (ppc_after_open): Delete.
2431 (LDEMUL_AFTER_OPEN): Don't define.
2433 2004-08-02 Stephane Carrez <stcarrez@nerim.fr>
2435 * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
2437 2004-08-01 Stephane Carrez <stcarrez@nerim.fr>
2439 * scripttempl/elfm68hc12.sc: Align text, rodata and data section
2442 2004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
2444 * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
2446 2004-07-26 Dmitry Diky <diwil@spec.ru>
2448 * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
2449 msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
2451 * configure.tgt: Likewise.
2452 * emulparams/msp430all.sh: Likewise.
2453 * Makefile.in: Regenerate.
2455 2004-07-23 Nick Clifton <nickc@redhat.com>
2457 * emultempl/elf32.em (_place_orphan): Use an already existing
2458 section name if that section does not have any flags set.
2460 2004-07-21 H.J. Lu <hongjiu.lu@intel.com>
2462 * ldlang.c (already_linked_hash_entry): Removed.
2463 (already_linked): Likewise.
2464 (already_linked_table): Likewise.
2465 (section_already_linked): Call bfd_section_already_linked.
2466 (lang_process): Replace already_linked_table_init with
2467 bfd_section_already_linked_table_init and check return. Replace
2468 already_linked_table_free with bfd_section_already_linked_table_free.
2470 2004-07-21 Nick Clifton <nickc@redhat.com>
2472 * ldlang.c (init_os): Make sure that the newly allocated userdata
2473 structure is zeroed out.
2475 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
2477 * NEWS: Mention the new --add-needed/--no-add-needed and
2478 --as-needed/--no-as-needed options.
2480 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
2482 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
2483 check the add_needed field.
2484 (dt_needed): New struct.
2485 (gld${EMULATION_NAME}_try_needed): Change the first argument
2486 to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
2487 bit in the file where the DT_NEEDED entry comes from.
2488 (gld${EMULATION_NAME}_search_needed): Change the second
2489 argument to a pointer to struct dt_needed.
2490 (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
2491 (gld${EMULATION_NAME}_after_open): Likewise.
2493 * ld.texinfo: Add --add-needed document.
2494 * ldlang.c (new_afile): Set p->add_needed.
2495 * ldlang.h (lang_input_statement_type): Add add_needed field.
2496 * ldmain.h (add_needed): Declare.
2497 * ldmain.c (add_needed): New global var.
2498 * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
2499 OPTION_NO_ADD_NEEDED.
2500 (ld_options): Likewise.
2501 (parse_args): Handle them.
2503 2004-07-13 Christof Petig <christof@petig-baender.de>
2505 * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
2506 for endian-ness of extracted addend.
2508 2004-07-13 Danny Smith <dannysmith@usesr.sourceforge.net>
2510 * pe-dll.c (auto_export): Filter on just the import prefix,
2511 "_imp_", not "_imp__".
2513 2004-07-09 Nick Clifton <nickc@redhat.com>
2515 * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
2517 2004-07-06 Tomer Levi <Tomer.Levi@nsc.com>
2519 * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
2520 (eelf32crx.c): New target.
2521 * Makefile.in: Regenerate.
2522 * configure.tgt: Handle crx-*-elf*.
2523 * emulparams/elf32crx.sh: New file.
2524 * emultempl/crxelf.em: New file.
2525 * scripttempl/elf32crx.sc: New file.
2526 * NEWS: Mention new target.
2528 2004-07-06 Nick Clifton <nickc@redhat.com>
2530 * Makefile.am: Add eshlsymbian.c.
2531 * Makefile.in: Regenerate.
2532 * configure.tgt: Add sh*-symbian-elf target.
2533 * emulparams/shlsymbian.sh: New file. Configure the
2534 sh-symbian-elf linker scripts.
2535 * scripttemp/elf32sh-symbian.sc: New file. Linker script
2536 template for the sh-symbian-elf target.
2538 2004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2540 * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
2541 * emulparams/hppalinux.sh: Likewise.
2542 * scripttempl/elf.sc: Place .plt just before .got when .plt is in
2543 data segment and PLT_BEFORE_GOT is defined.
2545 2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
2547 * ld.texinfo (WIN32): Document PE weak symbols.
2549 2004-07-02 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2551 * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
2553 2004-07-01 H.J. Lu <hongjiu.lu@intel.com>
2555 * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
2558 2004-06-29 Alan Modra <amodra@bigpond.net.au>
2560 * ldlang.c (lang_reset_memory_regions): Save last relax pass section
2563 2004-06-24 Alan Modra <amodra@bigpond.net.au>
2565 * ldlang.c (print_output_section_statement): Don't print size before
2567 (IGNORE_SECTION): Remove bfd arg. Update all callers.
2569 * ldexp.c (fold_name): .. See below.
2570 * ldlang.c (section_already_linked, print_output_section_statement,
2571 print_input_section, insert_pad, size_input_section,
2572 lang_check_section_addresses, lang_size_sections_1,
2573 lang_size_sections, lang_do_assignments_1, lang_set_startof,
2574 lang_one_common, lang_reset_memory_regions, lang_process,
2575 lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
2576 * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
2577 * pe-dll.c (process_def_file, generate_reloc): ..
2578 * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
2579 gld${EMULATION_NAME}_before_allocation): ..
2580 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
2581 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
2582 sh64_elf_${EMULATION_NAME}_after_allocation): ..
2583 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
2584 * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
2585 ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
2586 "size" instead of "_raw_size" and "_cooked_size". Expand
2587 bfd_section_size macro invocations.
2589 2004-06-22 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
2591 * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
2592 ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
2593 ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
2595 (.tls): Define ___tls_start__ and ___tls_end__.
2597 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
2599 * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
2601 2004-06-18 Adam Nemet <anemet@lnxw.com>
2603 * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
2604 * configure: Regenerate.
2606 2004-06-15 Jakub Jelinek <jakub@redhat.com>
2608 * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
2609 .gcc_except_table output sections lost accidentally with
2612 2004-06-15 Alan Modra <amodra@bigpond.net.au>
2614 * ldwrite.c (build_link_order): Use bfd_get_section_size
2615 instead of bfd_get_section_size_before_reloc or _raw_size.
2616 * pe-dll.c (process_def_file): Likewise.
2618 2004-06-14 Alan Modra <amodra@bigpond.net.au>
2620 From Richard Wirth <r.wirth@wirthware.de>
2621 * ldlang.c (lang_finish): Don't free lang_definedness_table.
2623 2004-05-29 Alan Modra <amodra@bigpond.net.au>
2625 * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
2626 (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
2628 2004-05-28 Alan Modra <amodra@bigpond.net.au>
2630 * ldlang.c: Formatting. Wrap long lines, expand bfd_get_section_flags
2632 * lexsup.c: Formatting. Wrap long lines.
2633 * ldwrite.c: Update copyright date.
2635 * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
2636 (output_section_callback): Nor SEC_KEEP here.
2637 (gc_section_callback): Twiddle SEC_EXCLUDE here.
2638 (lang_gc_wild): Delete. Fold into..
2639 (lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage
2641 (lang_process): Always call lang_gc_sections.
2642 (lang_place_orphans): Handle SEC_EXCLUDE sections.
2643 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
2646 2004-05-26 H.J. Lu <hongjiu.lu@intel.com>
2648 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
2649 SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
2650 * ldlang.c (lang_add_section): Likewise.
2652 2004-05-26 Alan Modra <amodra@bigpond.net.au>
2654 * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
2655 sections when doing a final link. Clear SEC_EXCLUDE when doing
2656 a relocable link, except for SEC_DEBUGGING sections.
2657 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
2658 same condition here to drop SEC_EXCLUDE orphan sections.
2660 2004-05-25 Alan Modra <amodra@bigpond.net.au>
2662 * ldlang.c (lang_process): Call bfd_merge_sections later, and
2663 only when not a relocatable link.
2664 (print_input_section): Handle SEC_EXCLUDE sections.
2665 (size_input_section): Don't update dot on SEC_EXCLUDE sections.
2666 (lang_do_assignments_1): Likewise.
2667 * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
2668 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
2669 * emultempl/hppaelf.em (build_section_lists): Likewise.
2670 * emultempl/ppc64elf.em (build_toc_list): Likewise.
2671 (build_section_lists): Likewise.
2673 2004-05-23 Andreas Schwab <schwab@suse.de>
2675 * ld.texinfo (Options): Fix typo in last change.
2677 2004-05-21 Andy Chittenden <achittenden@bluearc.com>
2679 * ld.h (ld_config_type): Add new field: hash_table_size.
2680 * ldmain.c: Initialise the new field to zero. If it is non-zero
2681 after parsing the linker's command line call
2682 bfd_hash_set_default_size.
2683 * lexsup.c (option_values): Add OPTION_HASH_SIZE.
2684 (ld_options): Add hash-size.
2685 (parse_args): Parse --hash-size option. Allow
2686 --reduce-memory-overheads to set the default hash table size as
2688 * ld.texinfo: Document the new switch. Also mention that
2689 --reduce-memory-overheads can affect the hash table size.
2690 * NEWS: Mention the new feature.
2692 2004-05-19 J"orn Rennecke <joern.rennecke@superh.com>
2694 * NEWS: Mention new linker map file generation and the
2695 --reduce-memory-overheads option.
2696 * ld.texinfo: Document --reduce-memory-overheads option.
2697 * ld.h (map_symbol_def): New struct.
2698 (struct user_section_struct, section_userdata_type): Rename to:
2699 (struct lean_user_section_struct, lean_section_userdata_type).
2700 (struct fat_user_section_struct, fat_section_userdata_type): New.
2701 (SECTION_USERDATA_SIZE): Define.
2702 (args_type): New member reduce_memory_overheads.
2703 * ldlang.c (map_obstack): New static variable.
2704 (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
2705 (lang_map): Unless command_line.reduce_memory_overheads is set,
2706 initialize lists of defined symbols for each section.
2707 (print_input_section): Unless command_line.reduce_memory_overheads
2708 is set, use print_all_symbols.
2709 (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
2710 * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
2711 * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
2712 (ld_options): Add entry for --reduce-memory-overheads.
2713 (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
2715 2004-05-19 Jakub Jelinek <jakub@redhat.com>
2717 * ldgram.y (sect_constraint): New.
2718 (ONLY_IF_RO, ONLY_IF_RW): New tokens.
2719 (section): Add sect_constraint. Pass additional argument
2720 to lang_enter_output_section_statement.
2721 * mri.c (mri_draw_tree): Pass additional argument to
2722 lang_enter_output_section_statement.
2723 * emultempl/pe.em (place_orphan): Likewise.
2724 (output_prev_sec_find): Disregard output section statements with
2726 * emultempl/mmo.em (output_prev_sec_find): Likewise.
2727 (mmo_place_orphan): Pass additional argument to
2728 lang_enter_output_section_statement.
2729 * emultempl/elf32.em (output_prev_sec_find): Disregard output section
2730 statements with constraint == -1.
2731 (place_orphan): Pass additional argument to
2732 lang_enter_output_section_statement.
2733 * ldlang.c (lang_enter_overlay_section): Likewise.
2734 (lang_output_section_find_1): New.
2735 (lang_output_section_find): Use it.
2736 (lang_output_section_statement_lookup_1): New.
2737 (lang_output_section_statement_lookup): Use it.
2738 (check_section_callback, check_input_sections): New.
2739 (map_input_to_output_sections): Check if all input sections
2740 are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
2741 (strip_excluded_output_sections): Disregard output section statements
2742 with constraint == -1.
2743 (lang_record_phdrs): Likewise.
2744 (lang_enter_output_section_statement): Add constraint argument.
2745 Use lang_output_section_statement_lookup_1.
2746 * ldlang.h (lang_output_section_statement_type): Add constraint
2747 and all_input_readonly fields.
2748 (lang_enter_output_section_statement): Adjust prototype.
2749 * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
2750 * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
2751 segment if all input sections are readonly.
2753 2004-05-19 Adam Nemet <anemet@lnxw.com>
2755 * scripttempl/i386lynx.sc: Remove file.
2757 2004-05-17 Bob Wilson <bob.wilson@acm.org>
2759 * ld.texinfo (Output Section Address): Correct subsection name.
2761 2004-05-17 Adam Nemet <anemet@lnxw.com>
2763 * configure.tgt (powerpc-*-lynxos* case): New case.
2764 * configure.host (i[3-7]86-*-lynxos* case): Remove case.
2765 * emulparams/ppclynx.sh: New file.
2766 * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
2767 * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
2768 (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
2769 (eppclynx.c): New rule.
2770 * Makefile.in: Regenerate.
2772 2004-05-13 Joel Sherrill <joel@oarcorp.com>
2774 * configure.tgt (or32-*-rtems*): Switch to elf and
2775 support versioned targets.
2777 2004-05-13 Nick Clifton <nickc@redhat.com>
2779 * po/fr.po: Updated French translation.
2781 2004-05-11 Jakub Jelinek <jakub@redhat.com>
2783 * genscripts.sh: Generate -z combreloc -z now -z relro scripts
2784 for binaries, -shared and -pie.
2785 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
2786 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
2787 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
2788 (OTHER_RELRO_SECTIONS): ... this.
2789 * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
2790 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
2791 -z relro and -z norelro.
2792 (gld${EMULATION_NAME}_list_options): Add it to usage.
2793 (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
2794 -z relro scripts when appropriate.
2795 * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
2796 Create separate .got.plt section if SEPARATE_GOTPLT.
2797 Move sections which are only written during relocation handling
2798 to the beginning of RW segment. If NO_SMALL_DATA, move .got
2799 before .data. Add DATA_SEGMENT_RELRO_END directive.
2800 Include OTHER_RELRO_SECTIONS.
2801 * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
2802 * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
2803 (fold_unary): Likewise.
2804 (fold_binary): Handle -z relro.
2805 * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
2806 exp_dataseg_relro_adjust phases. Add relro_end field.
2807 * ldmain.c (main): Initialize link_info.relro to FALSE.
2808 * ldlang.c (lang_size_sections): Handle -z relro.
2810 2004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
2812 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
2814 2004-05-07 J"orn Rennecke <joern.rennecke@superh.com>
2816 * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
2817 before printing it with %W.
2819 2004-05-07 Brian Ford <ford@vss.fsi.com>
2820 DJ Delorie <dj@redhat.com>
2822 * emultempl/pe.em (real_flags): New static.
2823 (OPTION_LARGE_ADDRESS_AWARE): New define.
2824 (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
2825 (gld_${EMULATION_NAME}_list_options): Likewise.
2826 (gld${EMULATION_NAME}_handle_option): Likewise.
2827 (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
2828 * ld.texinfo: Document it.
2831 2004-05-07 Brian Ford <ford@vss.fsi.com>
2833 * NEWS: Mention DWARF 2 support for i386pe.
2835 2004-05-05 Alexandre Oliva <aoliva@redhat.com>
2837 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
2840 2004-04-30 Alan Modra <amodra@bigpond.net.au>
2842 * ldlang.c (unique_section_p): Pass section parm, return true on
2844 (output_section_callback): Adjust.
2845 * ldlang.h (unique_section_p): Update prototype.
2846 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
2848 2004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
2850 * ld.texinfo (--gc-sections): Remove restriction for
2853 2004-04-29 Brian Ford <ford@vss.fsi.com>
2855 * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
2856 for DWARF 2/3. Update stab section's syntax.
2858 2004-04-29 Alan Modra <amodra@bigpond.net.au>
2860 * pe-dll.c: Revert changes accidentally committed 2004-03-08.
2861 (fill_edata): Correct pointer arithmetic.
2863 2004-04-21 Chris Demetriou <cgd@broadcom.com>
2865 * ld.texinfo: Remove MIPS --embedded-relocs documentation.
2866 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
2867 * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
2868 (EXTRA_EM_FILE): Use mipsecoff.em
2869 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
2870 (EXTRA_EM_FILE): Use mipsecoff.em
2871 * emultempl/mipsecoff.em: Restructure to be included as an
2872 extra emulation file.
2873 (check_sections, gld${EMULATION_NAME}_after_open)
2874 (gld${EMULATION_NAME}_after_allocation)
2875 (gld${EMULATION_NAME}_get_script)
2876 (ld_${EMULATION_NAME}_emulation): Remove
2877 (gld${EMULATION_NAME}_before_parse): Rename to...
2878 (mipsecoff_before_parse): This.
2879 (LDEMUL_BEFORE_PARSE): Define.
2880 * emultempl/mipself.em: Remove file.
2881 * scripttempl/mips.sc (.rel.sdata): Do not include in output.
2882 (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
2884 * Makefile.am: Remove dependencies on emultempl/mipself.em.
2885 * Makefile.in: Regenerate.
2887 2004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
2889 * ld.texinfo (synthesizing on H8/300): Information about linker
2890 relaxation support for bit manipulation instructions and system
2891 control instructions is added.
2893 2004-04-21 Hans-Peter Nilsson <hp@axis.com>
2895 * NEWS: Mention change in DEFINED semantics.
2897 2004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
2899 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
2900 (.data): Add KEEP for .gnu.linkonce.d.*personality*.
2901 (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
2903 2004-04-21 Ben Elliston <bje@au.ibm.com>
2905 * ld.texinfo (Simple Example): Add missing punctuation.
2907 2004-04-20 Chris Demetriou <cgd@broadcom.com>
2909 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
2911 2004-04-19 Jakub Jelinek <jakub@redhat.com>
2913 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
2916 2004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
2918 * scriptempl/pe.sc: Put numbered .ctors.* after .ctors
2919 with default priority. Likewise for dtors.
2921 2004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2923 * configure.host: Remove mips*-dec-bsd* target.
2924 * configure.tgt: Likewise.
2926 2004-04-08 Richard Sandiford <rsandifo@redhat.com>
2928 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
2929 * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
2930 * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
2931 * emultempl/irix.em: New file.
2932 * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
2934 * Makefile.in: Regenerate.
2936 2004-04-01 Paul Brook <paul@codesourcery.com>
2938 * emultempl/armelf.em (byteswap_code): Add.
2939 (arm_elf_before_allocation): Pass extra parameter.
2940 (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
2941 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
2942 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
2943 * emultempl/armelf_oabi.em: Pass extra parameter.
2944 * ld.texinfo: Document --be8.
2946 2004-03-30 Stan Shebs <shebs@apple.com>
2948 Remove long-obsolete MPW support.
2949 * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
2950 * Makefile.am (mpw): Remove file-presynthesizing actions.
2951 * Makefile.in: Likewise.
2952 * ldfile.c (slash): Remove MPW case.
2953 * ldlex.l [MPW]: Remove unused definition.
2955 2004-03-30 Galit Heller <Galit.Heller@nsc.com>
2957 * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
2958 (eelf32cr16c.c): New target.
2959 * Makefile.in: Regenerate.
2960 * configure.tgt: Handle cr16c-*-elf*.
2961 * emulparams/elf32cr16c.sh: New file.
2962 * scripttempl/elfcr16c.sc: Likewise
2963 * NEWS: Mention support for new target.
2965 2004-03-30 Nick Clifton <nickc@redhat.com>
2967 * po/sv.po: Updated Swedish translation.
2969 2004-03-27 Alan Modra <amodra@bigpond.net.au>
2971 * emultempl/elf32.em: Update new bfd_elf_discard_info name.
2972 * emultempl/hppaelf.em: Likewise.
2973 * emultempl/ppc64elf.em: Likewise.
2974 * emultempl/sh64elf.em: Likewise.
2976 2004-03-25 Alan Modra <amodra@bigpond.net.au>
2978 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
2979 size_dynamic_sections call.
2981 2004-03-23 Alan Modra <amodra@bigpond.net.au>
2984 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
2985 link_info.wrap_char.
2987 2004-03-20 H.J. Lu <hongjiu.lu@intel.com>
2989 * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
2990 or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
2992 2004-03-20 Alexandre Oliva <aoliva@redhat.com>
2994 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
2996 2004-03-19 Alan Modra <amodra@bigpond.net.au>
2998 * config.in: Regenerate.
2999 * po/ld.pot: Regenerate.
3001 2004-03-18 Alan Modra <amodra@bigpond.net.au>
3003 * ld.texinfo: Add --as-needed doco.
3004 * ldmain.c (as_needed): New global var.
3005 * ldmain.h (as_needed): Declare.
3006 * lexsup.c (option_values): Add OPTION_AS_NEEDED and
3007 OPTION_NO_AS_NEEDED.
3008 (ld_options): Likewise.
3009 (parse_args): Handle them.
3010 * ldlang.h (lang_input_statement_type): Add as_needed field.
3011 * ldlang.c (new_afile): Set p->as_needed.
3012 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
3013 (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
3014 (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
3016 * ldlang.c (open_input_bfds): Remove useless cast.
3017 (lang_do_assignments_1): Likewise.
3018 (lang_for_each_input_section): Delete.
3020 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
3022 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
3024 2004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
3026 * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
3027 private when building implib.
3029 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
3031 * ldlang.c (lang_add_section): Don't force SEC_LOAD on
3033 (IGNORE_SECTION): Ignore .tbss sections too.
3034 (lang_size_sections_1): .tbss sections do not advance dot.
3036 2004-03-01 Andreas Schwab <schwab@suse.de>
3038 * ld.texinfo (Options): Fix example for --wrap.
3040 2004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
3042 * pe-dll.c (fill_edata): Check that exported_symbol_sections is
3045 2004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
3047 * ldlang.c (lang_check): Use %P, not %E, in error message.
3049 2004-02-23 Nathan Sidwell <nathan@codesourcery.com>
3051 * ldlang.h (struct lang_output_section_state): Change processed
3053 * ldexp.c (check, invalid): Remove.
3054 (fold_name): Move valid_p assignments. Create undefined symbol
3055 when needed. Directly exampine section's processd flag.
3056 * ldlang.c (lang_output_section_statement_lookup): Adjust
3057 processed field init.
3058 (lang_size_sections_1): Allow LOADADDR when determining section's
3059 VMA. Adjust error message. Fold data statement's expr.
3060 (lang_size_sections): Correctly increment lang_statement_iteration.
3062 2004-02-23 Alan Modra <amodra@bigpond.net.au>
3064 * ldexp.c (fold_tree): Follow indirect symbols.
3066 2004-02-20 Nathan Sidwell <nathan@codesourcery.com>
3068 * ldgram.y (exp): Add two operand ALIGN.
3069 * ldexp.c (fold_binary): Add ALIGN_K case.
3070 * ld.texinfo (ALIGN): Document two operand version.
3072 2004-02-19 Nathan Sidwell <nathan@codesourcery.com>
3074 * ldlang.c (map_input_to_output_sections): Initialize sections
3075 mentioned in a data statement expression.
3076 (lang_do_assignments_1): Add data statement's expression's
3079 2004-02-18 Nathan Sidwell <nathan@codesourcery.com>
3081 * ldgram.y (statement_anywhere): Add assert rule.
3082 * ldlang.c (exp_init_os): Add assert case.
3084 2004-02-14 Andrew Cagney <cagney@redhat.com>
3086 * ldmain.c (remove_output): Call bfd_cache_close.
3088 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
3090 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
3091 .MIPS.content* and .MIPS.events* sections.
3093 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
3095 * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
3096 .note.gnu.arm.ident to after allocated sections. Mark its
3099 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
3101 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
3102 * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
3103 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
3104 * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
3105 * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
3107 2004-02-05 Nick Clifton <nickc@redhat.com>
3109 * emultempl/pe.em (_after_open): Fix typo in previous delta.
3111 2004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
3113 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
3115 2004-01-28 Alan Modra <amodra@bigpond.net.au>
3117 * genscripts.sh: Fix typo.
3119 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
3121 2004-01-24 Jakub Jelinek <jakub@redhat.com>
3123 * emulparams/elf64_ia64.sh: Put .rela.opd into
3124 OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
3126 2004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
3128 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
3129 * ld.texinfo (--omagic): Note that writable text section
3130 does not conform to published PE-COFF specs.
3131 (--enable-auto-import): Likewise.
3133 2004-01-15 Alan Modra <amodra@bigpond.net.au>
3135 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
3137 2004-01-13 Nick Clifton <nickc@redhat.com>
3139 * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
3140 which if true will prevent the LMA region being used as a
3141 replacement for a default VMA region.
3142 (lang_leave_output_section_statement): Pass extra parameter.
3143 (lang_leave_overlay): Likewise.
3144 * ld.texinfo (Output Section LMA): Document that the LMA
3145 region can be set to the VMA region if no VMA has been set.
3146 * ldlang.h (struct lang_output_section_phdr_list): Create a
3147 typedef for this type. Minor formatting fixes.
3149 2004-01-13 Nick Clifton <nickc@redhat.com>
3151 * ldlang.c (lang_size_sections_1): If dot is advanced, then
3152 assume that the section should be allocated.
3154 2004-01-13 Alan Modra <amodra@bigpond.net.au>
3156 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
3157 sections. Do ignore SEC_NEVER_LOAD sections.
3158 (lang_size_sections_1): Remove test made redundant with the above.
3160 2004-01-09 Alan Modra <amodra@bigpond.net.au>
3162 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
3163 program_header_size.
3165 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
3167 2003-11-28 Alexandre Oliva <aoliva@redhat.com>
3168 * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
3169 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
3170 * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
3171 (MAXPAGESIZE): Set to 64Kb.
3172 (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
3173 __ROFIXUP_END__. Don't map .rofixup.got any more.
3174 * emulparams/elf32frv.sh (NOP): Set.
3175 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
3176 * configure.tgt: Add frv-*-*linux*.
3177 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
3178 * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
3179 (eelf32frvfd.c): New.
3180 * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
3181 * emulparams/elf32frv.sh: Reverted previous two patches.
3182 * emulparams/elf32frvfd.sh: New.
3183 * Makefile.in: Rebuilt.
3184 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
3185 * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
3186 .rofixup.got to .rofixup.
3187 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
3188 * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
3189 (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
3191 2004-01-05 Jakub Jelinek <jakub@redhat.com>
3193 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
3194 * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
3196 2004-01-03 Alan Modra <amodra@bigpond.net.au>
3198 * ldexp.c (align_n): Make static.
3199 * ldexp.h (align_n): Delete declaration.
3200 * ldlang.h (lang_enter_output_section_statement): Remove
3202 * ldlang.c (lang_enter_output_section_statement): Likewise.
3203 (TO_ADDR, TO_SIZE): Define.
3204 (opb_shift): New var.
3205 (init_opb): New function.
3206 (print_input_section): Call init_opb and use TO_ADDR.
3207 (print_data_statement, print_reloc_statement): Likewise.
3208 (print_padding_statement): Likewise.
3209 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
3210 (lang_check_section_addresses): Likewise.
3211 (lang_size_sections_1): Likewise.
3212 (lang_do_assignments_1): Likewise.
3213 (lang_set_startof): Likewise.
3214 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
3215 (lang_process): Call init_opb.
3216 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
3217 (lang_enter_overlay_section): Adjust
3218 lang_enter_output_section_statement call.
3219 * ldgram.y: Likewise.
3220 * mri.c (mri_draw_tree): Likewise.
3221 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
3222 * emultempl/mmo.em (mmo_place_orphan): Likewise.
3223 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
3225 * ldfile.c (ldfile_set_output_arch): Add defarch param.
3226 * ldfile.h (ldfile_set_output_arch): Ditto.
3227 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
3228 ldfile_set_output_arch.
3229 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
3230 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
3231 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
3232 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
3233 * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
3234 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
3235 * ldgram.y: Adjust ldfile_set_output_arch call.
3236 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
3237 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
3238 * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
3239 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
3240 * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
3241 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
3242 * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
3244 2004-01-02 Bernardo Innocenti <bernie@develer.com>
3246 * configure.tgt: Add m68k-uClinux target.
3248 For older changes see ChangeLog-0203
3254 version-control: never