1 2005-12-27 H.J. Lu <hongjiu.lu@intel.com>
3 * emultempl/xtensaelf.em (elf_xtensa_place_orphan): Delete.
4 (LDEMUL_PLACE_ORPHAN): Delete.
6 2005-12-27 Leif Ekblad <leif@rdos.net>
8 * configure.tgt: Add support for RDOS targets.
10 2005-12-27 Nick Clifton <nickc@redhat.com>
12 * po/vi.po: New Vietnamese translation.
13 * configure.in (ALL_LINGUAS): Add vi.
14 * configure: Regenerate.
16 2005-12-27 Alan Modra <amodra@bigpond.net.au>
18 * Makefile.am: Run "make dep-am".
19 * Makefile.in: Regenerate.
21 2005-12-24 Alan Modra <amodra@bigpond.net.au>
23 * ldlang.h (lang_output_section_statement_type): Add prev.
24 * ldlang.c (output_statement_newfunc): Set os.prev.
25 (lang_insert_orphan): Likewise.
26 (output_prev_sec_find): Use os.prev.
28 2005-12-22 Santosh Raktawan <santoshr2@kpitcummins.com>
30 * ld/emulparms/h8300helf.sh (TINY_READONLY_SECTION,
31 TINY_DATA_SECTION, TINY_BSS_SECTION): Define.
32 * ld/emulparms/h8300self.sh: Likewise.
33 * ld/emulparms/h8300sxelf.sh: Likewise.
34 * ld/scripttempl/elf.sc: Add TINY_READONLY_SECTION,
35 TINY_DATA_SECTION, TINY_BSS_SECTION.
37 2005-12-19 H.J. Lu <hongjiu.lu@intel.com>
40 * ldlang.c (output_statement_newfunc): Revert the change made on
42 (output_prev_sec_find): Likewise.
43 * ldlang.h (lang_statement_list_type): Likewise.
45 2005-12-16 Nathan Sidwell <nathan@codesourcery.com>
47 Second part of ms1 to mt renaming.
48 * emulparams/elf32mt.sh (ARCH, OUTPUT_FORMAT): Adjust.
50 2005-12-14 Jakub Jelinek <jakub@redhat.com>
52 * scripttempl/elf.sc: Put .gnu.linkonce.d.rel.ro.* sections into
53 .data.rel.ro output section. Fix a pasto for -z nocombreloc
54 .rela.data.rel.ro section content.
56 2005-12-12 Nathan Sidwell <nathan@codesourcery.com>
58 * Makefile.am (ALL_EMULATIONS): Replace ms1 files with mt files.
59 (eelf32mt.c): Update target name and dependencies.
60 * Makefile.in: Rebuilt.
61 * configure.tgt: Replace ms1 arch with mt arch.
62 * emulparams/elf32mt.sh: Renamed from elf32ms1.sh. Update
65 2005-12-11 Bernhard Fischer <aldot@gcc.gnu.org>
67 * scripttempl/armbpabi.sc: Fix typo in comment for .ctors.
68 * scripttempl/elf.sc: Ditto.
69 * scripttempl/elf32sh-symbian.sc: Ditto.
70 * scripttempl/elf_chaos.sc: Ditto.
71 * scripttempl/elfd10v.sc: Ditto.
72 * scripttempl/elfd30v.sc: Ditto.
73 * scripttempl/elfxtensa.sc: Ditto.
74 * scripttempl/iq2000.sc: Ditto.
75 * scripttempl/xstormy16.sc: Ditto.
77 2005-12-08 Alan Modra <amodra@bigpond.net.au>
79 * emultempl/ppc32elf.em (emit_stub_syms): New var.
80 (ppc_after_open): Pass it to ppc_elf_select_plt_layout.
81 (PARSE_AND_LIST_PROLOGUE <OPTION_STUBSYMS>): Define.
82 (PARSE_AND_LIST_LONGOPTS): Add emit-stub-syms.
83 (PARSE_AND_LIST_OPTIONS): Describe emit-stub-syms.
84 (PARSE_AND_LIST_OPTIONS): Handle it.
86 2005-12-08 Alan Modra <amodra@bigpond.net.au>
88 * pe-dll.c (build_filler_bfd): Conform error message to standard.
89 (pe_dll_generate_implib): Use %E in error message.
90 (add_bfd_to_link): Likewise.
91 (pe_implied_import_dll): Likewise.
93 2005-12-07 Thiemo Seufer <ths@networkno.de>
94 H.J. Lu <hongjiu.lu@intel.com>
97 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment):
98 Adjust bfd_elf_record_link_assignment call.
100 * ldexp.c (exp_fold_tree_1): Remove call to bfd_hide_symbol.
102 2005-11-25 Jan Beulich <jbeulich@novell.com>
104 * Makefile.am: Make configdoc.texi writeable before trying
106 * Makefile.in: Refresh.
108 2005-11-24 Alan Modra <amodra@bigpond.net.au>
110 * ldlang.c (lang_output_section_find_by_flags): Add match_type param.
111 Run two passes, first using match_type, second without.
112 * ldlang.h (lang_match_sec_type_func): New typedef.
113 (lang_output_section_find_by_flags): Update prototype.
114 bfd_match_sections_by_type and lang_output_section_find_by_flags.
115 * emultempl/pe.em (place_orphan): Likewise.
117 2005-11-24 Alan Modra <amodra@bigpond.net.au>
119 * ldlang.c (lang_insert_orphan): Skip first assignment to dot
120 in script when looking for place to insert orphan statements.
122 2005-11-18 Alan Modra <amodra@bigpond.net.au>
124 * emulparams/elf64ppc.sh (.tocbss): Use new section alignment scheme.
125 (.got, .toc1, .opd): Likewise.
127 2005-11-18 Alan Modra <amodra@bigpond.net.au>
129 * ldlang.c (lang_size_sections_1): Revert 2005-11-16 functional
130 changes to section alignment.
131 * ldmisc.c (vfinfo): Handle %ld and %lu.
133 2005-11-16 Mark Mitchell <mark@codesourcery.com>
135 * Makefile.am (configdoc.texi): Set top_srcdir in configdoc.texi..
136 * Makefile.in: Regenerated.
137 * ld.texinfo: Include configdoc.texi and ldver.texi in man pages.
138 Add @file documentation.
140 2005-11-17 Alan Modra <amodra@bigpond.net.au>
142 * ldlang.h (lang_input_section_type): Remove "ifile" field.
143 (lang_insert_orphan, lang_add_section): Update prototypes.
144 * ldlang.c (lang_insert_orphan): Remove "file" param.
145 (lang_add_section): Likewise. Update all callers.
146 (wild_sort): Get an input section's bfd via "section->owner".
147 (size_input_section): Access just_syms_flag via bfd usrdata.
148 (lang_place_orphans): Update ldemul_place_orphan call.
149 * ldemul.h (ldemul_place_orphan): Remove input_statement param.
150 (struct ld_emulation_xfer_struct <place_orphan>): Likewise.
151 * ldemul.c (ldemul_place_orphan): Likewise.
152 * ldwrite.c (build_link_order): Access just_syms_flag via bfd usrdata.
153 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
154 * emultempl/beos.em (sort_by_file_name): Access bfd by section->owner.
155 (sort_sections): Likewise.
156 (place_orphan): Remove "file" param. Adjust lang_add_section call.
157 * emultempl/elf32.em (place_orphan): Remove "file" param. Adjust
158 lang_add_section and lang_insert_orphan calls.
159 * emultempl/hppaelf.em (hppaelf_add_stub_section): Adjust
160 lang_add_section call.
161 (build_section_lists): Access just_syms_flag via bfd usrdata.
162 * emultempl/m68hc1xelf.em (m68hc11elf_add_stub_section): Adjust
163 lang_add_section call.
164 * emultempl/mmo.em (mmo_place_orphan): Remove "file" param. Adjust
165 lang_add_section and lang_insert_orphan calls.
166 * emultempl/pe.em (place_orphan): Likewise. Access bfd via section
168 * emultempl/ppc64elf.em (ppc_add_stub_section): Adjust
169 lang_add_section call.
170 (build_toc_list): Access just_syms_flag via bfd usrdata.
171 (build_section_lists): Likewise.
172 * emultempl/xtensaelf.em (elf_xtensa_place_orphan): Remove "file"
173 param. Adjust place_orphan call.
174 (ld_build_required_section_dependence): Access bfd via section owner.
176 2005-11-16 Alan Modra <amodra@bigpond.net.au>
178 * ldlang.h (lang_output_section_statement_type): Add prev.
179 * ldlang.c (new_afile): Always init header.type.
180 (output_statement_newfunc): Set os.prev.
181 (output_prev_sec_find): Use os.prev.
182 (lang_enter_output_section_statement): Formatting.
183 (lang_final, lang_add_target, lang_add_fill): Likewise.
184 (lang_add_data, lang_add_reloc): Likewise.
185 (lang_add_attribute): Only alloc the header.
187 2005-11-16 Alan Modra <amodra@bigpond.net.au>
189 * ld.texinfo (Forced Output Alignment): Specify that this is an
190 alignment increase, not an override.
191 * ldlang.c (init_os): Set output section alignment here..
192 (lang_add_section): ..rather than here.
193 (lang_size_sections_1): Consolidate alignment code. Warn if section
194 alignment affects start address when explicit address given.
196 2005-11-07 Steve Ellcey <sje@cup.hp.com>
198 * configure: Regenerate after modifying bfd/warning.m4.
200 2005-11-07 Olaf Hering <olh@suse.de>
202 * ldmain.c (main): Add \n to error message.
204 2005-11-04 Alan Modra <amodra@bigpond.net.au>
206 * ldlang.c (struct output_statement_hash_entry): Don't indirect to os.
207 (output_statement_newfunc): Rewrite.
208 (lang_output_section_find_1): Merge into..
209 (lang_output_section_find): ..here.
210 (lang_output_section_statement_lookup_1): Rewrite to handle
211 multiple sections with the same name.
212 (output_statement_table_init): Commonise error message.
213 (lang_init, open_output): Likewise.
215 2005-11-03 Paul Brook <paul@codesourcery.com>
217 * scripttempl/elf.sc: Add .init_array.* and .fini_array.*.
218 * scripttempl/armbpabi.sc: Make init/fini array consistent with
220 * scripttempl/elf32sh-symbian.sc: Ditto.
221 * scripttempl/elfxtensa.sc: Ditto.
223 2005-11-03 Alan Modra <amodra@bigpond.net.au>
225 * ldlang.h (lang_output_section_statement_type): Rearrange. Remove
226 memspec. Make "processed" a bitfield.
227 (lang_data_statement_type, lang_reloc_statement_type): Rename
228 output_vma to output_offset.
229 * ldlang.c (lang_output_section_statement_lookup_1): Init
230 all_input_readonly. Don't init memspec.
231 (init_os): Remove incorrect comment.
232 (print_data_statement, print_reloc_statement): Adjust for
233 lang_data_statement_type and lang_reloc_statement_type change.
234 (lang_size_sections_1, lang_add_reloc): Likewise.
235 * ldwrite.c (build_link_order): Likewise.
237 2005-10-30 Mark Mitchell <mark@codesourcery.com>
239 * lexsup.c (help): Document "@FILE".
241 2005-10-30 H.J. Lu <hongjiu.lu@intel.com>
243 * Makefile.am: Run "make dep-am".
244 * Makefile.in: Regenerated.
246 * dep-in.sed: Replace " ./" with " ".
248 2005-10-25 Arnold Metselaar <arnold.metselaar@planet.nl>
250 * Makefile.am: Add support for Z80
251 * Makefile.in: Regenerated
252 * configure.tgt: Add z80-*-coff
253 * emulparams/z80.sh: New file.
254 * emultempl/z80.em: New file.
255 * scripttempl/z80.sc New file.
256 * NEWS: Mention this new support.
258 2005-10-25 Alan Modra <amodra@bigpond.net.au>
260 * po/ld.pot: Regenerate.
262 2005-10-25 Chris Metcalf <cdmetcalf@comcast.net>
264 * ld.texinfo (--reduce-memory-overheads): Fix typo.
266 2005-10-23 H.J. Lu <hongjiu.lu@intel.com>
269 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
270 bfd_match_sections_by_type to match section types.
272 * ldlang.c (init_os): Take the input section. Call
273 bfd_init_private_section_data if the input section isn't NULL.
274 (exp_init_os): Pass NULL to init_os.
275 (map_input_to_output_sections): Likewise.
276 (lang_add_section): Pass the input section to init_os.
278 2005-10-19 Paul Brook <paul@codesourcery.com>
280 * emulparams/armelf.sh: Add .ARM.attributes to OTHER_SECTIONS.
282 2005-10-15 H.J. Lu <hongjiu.lu@intel.com>
285 * emultempl/elf32.em: Include "elf-bfd.h".
286 (gld${EMULATION_NAME}_place_orphan): Check section type and
287 don't use section name for ELF input sections.
289 * ld.texinfo: Document orphan section processing.
291 * ldlang.c (lang_output_section_find_by_flags): Match section
292 types by calling bfd_match_sections_by_type.
294 2005-10-13 Mark Mitchell <mark@codesourcery.com>
296 * ld.texino: Describe double-quoted string syntax for version
298 * ldlang.h (lang_new_vers_pattern): Add literal_p parameter.
299 * ldgram.y (vers_defns): Allow NAME as well as VERS_IDENTIFIER.
300 Adjust calls to lang_new_vers_pattern to pass literal_p argument.
301 * ldlang.c (lang_vers_match): Fix indentation. Do not glob-match
302 version nodes without a pattern.
303 (lang_new_vers_pattern): Add literal_p parameter.
304 (lang_do_version_exports_section): Pass it.
306 2005-10-12 Mark Mitchell <mark@codesourcery.com>
308 * NEWS: Mention @file.
310 2005-10-05 H.J. Lu <hongjiu.lu@intel.com>
313 * ldcref.c (check_refs): Accept bfd_boolean.
314 (check_local_sym_xref): Pass FALSE to check_refs.
315 (check_nocrossref): Pass TRUE to check_refs.
316 (check_refs_info): Add bfd_boolean.
317 (check_refs): Add bfd_boolean to check_refs_info.
318 (check_reloc_refs): Match relocations with proper symbols.
320 * ldmisc.c (vfinfo): Don't add extra ":\n".
322 2005-10-05 Danny Smith <dannysmith@users.sourceforge.net>
324 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Set
325 default entry symbol to ENTRY here.
326 * scripttempl/pe.sc: Not here.
328 2005-09-30 James E Wilson <wilson@specifix.com>
330 * ldlang.c (lang_startup): Add missing ": " to einfo call.
332 2005-09-30 H.J. Lu <hongjiu.lu@intel.com>
334 * Makefile.am: Run "make dep-am".
335 * Makefile.in: Regenerated.
336 * aclocal.m4: Likewise.
338 2005-09-30 H.J. Lu <hongjiu.lu@intel.com>
340 * ldlang.c (output_statement_hash_entry): New type.
341 (output_statement_table): New variable for hash table.
342 (output_statement_newfunc): New function.
343 (output_statement_table_init): Likewise.
344 (output_statement_table_free): Likewise.
345 (lang_init): Call output_statement_table_init.
346 (lang_finish): Renamed to ...
348 (lang_process): Updated.
349 (lang_finish): New function.
350 (lang_output_section_find_1): Use hash table.
351 (lang_output_section_statement_lookup_1): Likewise.
353 * ldlang.h (lang_finish): New.
355 * ldmain.c (main): Call lang_finish.
357 2005-09-30 Mark Mitchell <mark@codesourcery.com>
359 * ldmain.c (main): Use expandargv.
361 2005-09-30 Catherine Moore <clm@cm00re.com>
363 * Makefile.am: Bfin support.
364 * Makefile.in: Regenerated.
365 * aclocal.m4: Regenerated.
366 * configure.tgt: Bfin support.
367 * emulparams/bfin.sh: New file.
368 * emultempl/bfin.em: New file.
370 2005-09-30 Matthias Kurz <mk@baerlap.north.de>
372 * ld.h: Prevent the inclusion of <libintl.h> from the Solaris
373 version of <locale.h> when ENABLE_NLS is not defined.
375 2005-09-27 H.J. Lu <hongjiu.lu@intel.com>
377 * ld.texinfo (ALIGN): Document it as forcing output section
380 * ldgram.y (ALIGN): Support it for forcing output section
383 2005-09-20 Alan Modra <amodra@bigpond.net.au>
385 * ldlang.h (lang_output_section_statement_struct): Change type of
386 "processed" to bfd_boolean.
387 * ldexp.c (fold_name): Update references to os->processed.
388 * ldlang.c (lang_output_section_statement_lookup_1): Likewise.
389 (lang_size_sections_1): Likewise.
390 (lang_reset_memory_regions): Likewise.
393 * ldlang.c (lang_size_sections_1): Process addr_tree earlier,
394 so that unused output section statements affect dot.
396 2005-09-08 Jakub Jelinek <jakub@redhat.com>
398 * ld.texinfo: Document -z {no,}execstack, -z {no,}relro
399 and --eh-frame-hdr options.
401 2005-09-07 Alan Modra <amodra@bigpond.net.au>
403 * ldexp.c (fold_name <SIZEOF>): Return 0 for non-existent section.
404 (exp_fold_tree_1): Print assert message only in final stage of
405 linking. Trigger assertion failure if expression cannot be
408 2005-09-06 H.J. Lu <hongjiu.lu@intel.com>
411 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Check
412 --just-symbols on DSO.
414 2005-08-18 Alan Modra <amodra@bigpond.net.au>
416 * scripttempl/elf.sc: Remove commented out defines.
418 2005-08-18 Alan Modra <amodra@bigpond.net.au>
420 * emulparams/a29k.sh: Delete.
421 * emulparams/ebmon29k.sh: Delete.
422 * emulparams/sa29200.sh: Delete.
423 * Makefile.am: Remove a29k support.
424 * configure.tgt: Likewise.
425 * ld.texinfo: Likewise.
426 * Makefile.in: Regenerate.
428 2005-08-17 Jakub Jelinek <jakub@redhat.com>
430 * ldgram.y (vers_defns): Don't lose pattern list before
431 extern NAME {}. Handle global, local and extern symbol names.
433 2005-08-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
435 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
436 Don't increment rel_count of .cranges here. Set rawsize of .cranges.
438 2005-08-10 Nick Clifton <nickc@redhat.com>
440 * pe-dll.c (pe_exe_fill_sections): Call lang_reset_memory_regions
441 before lang_size_sections.
443 2005-08-09 Alan Modra <amodra@bigpond.net.au>
445 * emulparams/hppa64linux.sh (LARGE_SECTIONS): Remove .tbss.
447 2005-08-08 Eric Doenges <Eric.Doenges@betty-tv.com>
449 * Makefile.am (ALL_EMULATIONS): Add msp430x21xx variants.
450 Add rules to build these emulations.
451 * Makefile.in: Regenerate.
452 * configure.tgt (msp430): Add the new variants to the
453 targ_extra_emuls list.
454 * emulparams/msp430all.sh: Add entries for the msp430x21xx
457 2005-08-05 H.J. Lu <hongjiu.lu@intel.com>
459 * ld.texinfo: Document PROVIDE_HIDDEN.
461 * ldexp.c (exp_fold_tree_1): Hide a provided symbol if asked.
462 (exp_provide): Add and set hidden.
464 * ldexp.h (etree_type): Add hidden to assign.
466 * ldgram.y (PROVIDE_HIDDEN): New.
467 * ldlex.l (PROVIDE_HIDDEN): Likewise.
469 * scripttempl/elf.sc: Use PROVIDE_HIDDEN on array bound
472 2005-08-05 Alan Modra <amodra@bigpond.net.au>
474 * emulparams/elf_x86_64.sh: Revert last change.
475 * scripttempl/elf.sc (REL_LARGE, LARGE_SECTIONS): Define here.
477 2005-08-05 Alan Modra <amodra@bigpond.net.au>
479 * emulparams/armelf.sh (OTHER_BSS_END_SYMBOLS): Split out from
481 * emulparams/armelf_linux.sh: Likewise.
482 * emulparams/armnto.sh: Likewise.
483 * emulparams/criself.sh: Likewise.
484 * emulparams/elf32mcore.sh: Likewise.
485 * emulparams/criself.sh (OTHER_SYMBOLS): Define.
486 * emulparams/crislinux.sh (OTHER_SYMBOLS): Define.
487 (OTHER_END_SYMBOLS): Don't define.
488 * emulparams/elf32fr30.sh: Likewise.
489 * emulparams/elf64mmix.sh: Likewise.
490 * emulparams/hppa64linux.sh: Likewise.
491 * emulparams/m32relf.sh: Likewise.
492 * emulparams/vxworks.sh: Likewise.
493 * scripttempl/armbpabi.sc (OTHER_BSS_SECTIONS): Delete.
494 (OTHER_BSS_END_SYMBOLS): Add.
495 (OTHER_END_SYMBOLS): Move before current end sym definitions.
496 (OTHER_SYMBOLS): Replace OTHER_END_SYMBOLS near end of script.
497 * scripttempl/elf.sc: Likewise.
498 * scripttempl/elf32sh-symbian.sc: Likewise.
499 * scripttempl/elf_chaos.sc: Likewise.
500 * scripttempl/elfxtensa.sc: Likewise.
501 * scripttempl/iq2000.sc: Likewise.
502 * scripttempl/xstormy16.sc: Likewise.
504 * scripttempl/elf.sc (LBSS, LARGE_SECTIONS): Delete.
505 (REL_LDATA, REL_LBSS, REL_LRODATA): Delete.
506 (REL_LARGE, LARGE_SECTIONS): Add.
507 * emulparams/elf_x86_64.sh (LARGE_SECTIONS): Define as script text.
509 * emulparams/hppa64linux.sh (OTHER_BSS_SECTIONS): Don't define.
510 (LARGE_SECTIONS): Define.
511 * emulparams/hppa64linux.sh (OTHER_BSS_SECTIONS): Don't define.
512 (LARGE_SECTIONS): Define.
514 2005-08-04 Alan Modra <amodra@bigpond.net.au>
516 * ldemul.c (ldemul_do_assignments, do_assignments_default): Delete.
517 * ldemul.h (ldemul_do_assignments, do_assignments_default): Delete.
518 (struct ld_emulation_xfer_struct): Remove do_assignments field.
519 * ldlang.c (lang_do_assignments): Don't call ldemul_do_assignments.
520 * emulparams/elf32ppc.sh (SDATA_START_SYMBOLS): New.
521 (SDATA2_START_SYMBOLS, SBSS_START_SYMBOLS, SBSS_END_SYMBOLS): New.
522 * emultempl/aix.em (ld_*_emulation): Delete do_assignments init.
523 * emultempl/armcoff.em: Likewise.
524 * emultempl/beos.em: Likewise.
525 * emultempl/generic.em: Likewise.
526 * emultempl/gld960.em: Likewise.
527 * emultempl/gld960c.em: Likewise.
528 * emultempl/linux.em: Likewise.
529 * emultempl/lnk960.em: Likewise.
530 * emultempl/m68kcoff.em: Likewise.
531 * emultempl/pe.em: Likewise.
532 * emultempl/sunos.em: Likewise.
533 * emultempl/ticoff.em: Likewise.
534 * emultempl/vanilla.em: Likewise.
535 * emultempl/elf32.em: Likewise.
536 (gld*_provide_bound_symbols): Delete.
537 (gld*_provide_init_fini_syms): Delete.
538 (gld*_before_allocation): Don't call ldemul_do_assignments.
539 * emultempl/ppc32elf.em (ppc_do_assignments): Delete.
540 (LDEMUL_DO_ASSIGNMENTS): Delete.
541 * scripttempl/elf.sc: Provide init/fini syms. Add SBSS_START_SYMBOLS,
542 SBSS_END_SYMBOLS, SDATA2_START_SYMBOLS.
544 2005-08-04 Alan Modra <amodra@bigpond.net.au>
546 * Makefile.am (eelf32m32c.c): Fix dependencies.
547 * Makefile.in: Regenerate.
549 2005-08-04 Alan Modra <amodra@bigpond.net.au>
551 * ldemul.c (ldemul_finish): Call ld_emulation->finish unconditionally.
552 (finish_default): New function.
553 * ldemul.h (finish_default): Declare.
554 * emultempl/aix.em (gld*_before_allocation): Call
555 before_allocation_default rather than strip_excluded_output_sections.
556 (ld_*_emulation): Init finish field to finish_default.
557 * emultempl/armcoff.em: Likewise.
558 * emultempl/beos.em: Likewise.
559 * emultempl/elf32.em: Likewise.
560 * emultempl/generic.em: Likewise.
561 * emultempl/gld960.em: Likewise.
562 * emultempl/gld960c.em: Likewise.
563 * emultempl/hppaelf.em: Likewise.
564 * emultempl/linux.em: Likewise.
565 * emultempl/lnk960.em: Likewise.
566 * emultempl/m68kcoff.em: Likewise.
567 * emultempl/mmo.em: Likewise.
568 * emultempl/pe.em: Likewise.
569 * emultempl/ppc64elf.em: Likewise.
570 * emultempl/sunos.em: Likewise.
571 * emultempl/ticoff.em: Likewise.
572 * emultempl/vanilla.em: Likewise.
574 2005-08-03 Alan Modra <amodra@bigpond.net.au>
576 * ldlang.c (exp_init_os): Handle etree_provide.
577 * emulparams/armelf.sh (OTHER_END_SYMBOLS): Rename from..
578 (OTHER_BSS_END_SYMBOLS): ..this.
579 * emulparams/armelf_linux.sh: Likewise.
580 * emulparams/armnto.sh: Likewise.
581 * emulparams/criself.sh: Likewise.
582 * emulparams/crislinux.sh: Likewise.
583 * emulparams/elf32frv.sh: Likewise.
584 * emulparams/elf32mcore.sh: Likewise.
585 * emulparams/elf32ppc.sh: Likewise.
586 * emulparams/elf32ppclinux.sh: Likewise.
587 * emulparams/hppa64linux.sh: Likewise.
588 * scripttempl/armbpabi.sc: Substitute $OTHER_END_SYMBOLS, not
589 $OTHER_BSS_END_SYMBOLS.
590 * scripttempl/elf32sh-symbian.sc: Likewise.
591 * scripttempl/elf_chaos.sc: Likewise.
592 * scripttempl/iq2000.sc: Likewise.
593 * scripttempl/xstormy16.sc: Likewise.
594 * scripttempl/elf.sc: Likewise. Delete __bss_start comment.
595 * scripttempl/elfxtensa.sc: Likewise.
597 2005-07-29 Nick Clifton <nickc@redhat.com>
599 * ldmain.c (main): Allow -shared and -static to be used together.
600 * ld.texinfo (-static): Mention that it is allowed with -shared.
602 2005-07-28 DJ Delorie <dj@redhat.com>
604 * ldlang.c (lang_output_section_statement_lookup_1): Don't cast a
605 unary & address operator, as that breaks GCC's strict aliasing
608 2005-07-25 Jan Hubicka <jh@suse.cz>
609 H.J. Lu <hongjiu.lu@intel.com>
611 * emulparams/elf_x86_64.sh (LARGE_SECTIONS): New.
613 * scripttempl/elf.sc: Updated for large section support.
615 2005-07-21 Ralf Corsepius <ralf.corsepius@rtems.org>
617 * configure.tgt: Remove i[3-7]86-*-rtemself*.
618 Remove sparc-*-rtemself*.
620 2005-07-21 Ben Elliston <bje@gnu.org>
622 * ldgram.y (ldgram_want_filename): Remove unused static.
624 2005-07-20 DJ Delorie <dj@redhat.com>
626 * emulparams/elf32m32c.sh (TEMPLATE_NAME): New.
627 (EXTRA_EM_FILE): New.
629 2005-07-19 H.J. Lu <hongjiu.lu@intel.com>
631 * ldmain.c (main): Reindent.
633 2005-07-19 Paul Brook <paul@codesourcery.com>
635 * configure.host (HOSTING_CRT0): Parse output of gcc --help --verbose
636 to determine dynamic linker name.
638 2005-07-18 Nick Clifton <nickc@redhat.com>
640 * configure.tgt: Restore alpha ordering to list of arches.
642 2005-07-16 Alan Modra <amodra@bigpond.net.au>
644 * emultempl/elf32.em (gld*_provide_init_fini_syms): Prototype.
645 (gld*_before_allocation): Call ldemul_do_assignments rather than
646 gld*_provide_init_fini_syms directly.
647 * emultempl/ppc32elf.em (gld*_after_allocation): Delete.
648 (ppc_do_assignments): New function.
649 (LDEMUL_AFTER_ALLOCATION): Don't define.
650 (LDEMUL_DO_ASSIGNMENTS): Define.
652 2005-07-16 Alan Modra <amodra@bigpond.net.au>
654 * Makefile.am: Run "make dep-am".
655 (emipsidt.c, emipsidtl.c): Depend on generic.em.
656 * Makefile.in: Regenerate.
658 2005-07-15 Alan Modra <amodra@bigpond.net.au>
660 * ldemul.c (ldemul_do_assignments): New function.
661 (do_assignments_default): New function.
662 * ldemul.h (ldemul_do_assignments): Declare.
663 (do_assignments_default): Declare.
664 (struct ld_emulation_xfer_struct): Add do_assignments.
665 * ldlang.c (lang_do_assignments) Call ldemul_do_assignments.
666 * emultempl/aix.em (ld_*_emulation): Init do_assignments field.
667 * emultempl/armcoff.em: Likewise.
668 * emultempl/beos.em: Likewise.
669 * emultempl/generic.em: Likewise.
670 * emultempl/gld960.em: Likewise.
671 * emultempl/gld960c.em: Likewise.
672 * emultempl/linux.em: Likewise.
673 * emultempl/lnk960.em: Likewise.
674 * emultempl/m68kcoff.em: Likewise.
675 * emultempl/pe.em: Likewise.
676 * emultempl/sunos.em: Likewise.
677 * emultempl/ticoff.em: Likewise.
678 * emultempl/vanilla.em: Likewise.
679 * emultempl/elf32.em: Likewise, to call gld*_provide_init_fini_syms.
680 (gld*_find_exp_assignment): Adjust bfd_elf_record_link_assignment call.
682 2005-07-14 Jim Blandy <jimb@redhat.com>
684 Add support for the Renesas M32C and M16C.
685 * Makefile.am (ALL_EMULATIONS): Add eelf32m32c.o.
686 (eelf32m32c.c): New target.
687 * Makefile.in: Regenerated.
688 * configure.tgt: Add case for m32c-*-elf.
689 * emulparams/elf32m32c.sh: New file.
691 2005-07-14 Alan Modra <amodra@bigpond.net.au>
693 * ldlang.c (strip_excluded_output_sections): Don't call
695 * emultempl/elf32.em (gld*_provide_bound_symbols): Move.
696 (gld*_provide_init_fini_syms): Move.
697 (gld*_before_allocation): Call the above from here..
698 (gld*_finish): ..not here. Call _bfd_elf_fix_excluded_sec_syms.
699 * emultempl/hppaelf.em (hppaelf_finish): Likewise.
700 * emultempl/ppc64elf.em (ppc_finish): Likewise.
702 2005-07-10 Ralf Corsepius <ralf.corsepius@rtems.org>
704 * configure.tgt: Remove sparc*-*-rtemsaout*, i[3-7]86-go32-rtems*,
705 i[3-7]86-*-rtemscoff*, hppa*-*-rtems*, mips*el-*-rtems*,
708 2005-07-09 Christopher Faylor <cgf@timesys.com>
710 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Enable runtime
711 relocation by default.
712 (compute_dll_image_base): Avoid linking into cygwin dll address space.
714 2005-07-08 Alan Modra <amodra@bigpond.net.au>
716 * ldlang.c (wild_sort): Formatting.
717 (strip_excluded_output_sections): Strip zero size sections here.
718 * emultempl/elf32.em (gld*_strip_empty_sections): Delete.
719 (gld*_finish): Don't call the above.
720 * emultempl/hppaelf.em (hppaelf_finish): Likewise.
721 * emultempl/ppc64elf.em (ppc_finish): Likewise.
723 2005-07-05 Paul Brook <paul@codesourcery.com>
725 * Makefile.am (ALL_EMULATIONS): Add eelf32ppcvxworks.o.
726 (eelf32ppcvxworks.o): Add dependencies.
727 * Makefile.in: Regenerate.
728 * configure.tgt: Add entry for powerpc-vxworks.
729 * emulparams/elf32-ppc.c: Mention elf32ppcvxworks.sh in comment.
730 * emulparams/elf32ppcvxworks.sh: New file.
731 * emultempl/ppc32elf.em (bfd_elf32_powerpc_vxworks_vec): Declare.
732 (is_ppc_elf32_vec): New function.
733 (ppc_after_open, ppc_before_allocation,
734 gld${EMULATION_NAME}_after_allocation): Use it.
736 2005-07-05 Peter S. Mazinger" <ps.m@gmx.net>
738 * emulparams/elf32bmip.sh (GENERATE_PIE_SCRIPT): Define as "yes".
739 * emulparams/elf32bmipn32-defs.sh (GENERATE_PIE_SCRIPT): Define as "yes".
741 2005-07-04 Mike Frysinger <vapier@gentoo.org>
743 * emulparams/hppalinux.sh (GENERATE_PIE_SCRIPT): Fix typo in
746 2005-07-04 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
748 * emulparams/m32relf_linux.sh (GENERATE_PIE_SCRIPT): Set to yes.
750 2005-07-04 Aurelien Jarno <aurel32@debian.org>
752 * emultempl/elf32.em: Enable use of ld.so.conf for *-*-k*bsd-*.
754 2005-07-01 Alan Modra <amodra@bigpond.net.au>
756 * scripttempl/elf.sc (.gcc_except_table): Don't KEEP.
758 2005-06-30 Ben Elliston <bje@gnu.org>
760 * Makefile.am (check-DEJAGNU): Don't search for expect.
761 * Makefile.in: Regenerate.
763 2005-06-30 Ben Elliston <bje@gnu.org>
765 * Makefile.am (EXPECT): Set to expect.
766 (RUNTEST): Likewise, set to runtest.
767 * Makefile.in: Regenerate.
769 2005-06-16 Alexander Klimov <alserkli@inbox.ru>
771 * emultempl/armelf.em: Add quotes to avoid a null test
774 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
776 * ld.texinfo (Command Line Options): Add @item for --hash-size.
778 2005-06-10 Alan Modra <amodra@bigpond.net.au>
780 * scripttempt/elf.sc (.bss): Align tail in a way that allows
781 empty section pruning.
783 2005-06-09 Steve Ellcey <sje@cup.hp.com>
785 * configure.in (AM_BINUTILS_WARNINGS): Add.
786 (BFD_NEED_DECLARATION) Replace with AC_CHECK_DECLS.
787 * config.in: Regenerate.
788 * configure: Regenerate.
789 * sysdep.h (NEED_DECLARATION_*): Replace with HAVE_DECL_*
792 2005-06-09 Alan Modra <amodra@bigpond.net.au>
794 * ldexp.c (fold_unary <ALIGN_K>): Revert last change.
796 2005-06-09 Alan Modra <amodra@bigpond.net.au>
798 * ld.h (lang_phase_type): Move to..
799 * ldexp.h: ..here. Add lang_mark_phase_enum.
800 (node_type): Remove etree_undef and etree_unspec.
801 (exp_data_seg): Delete.
802 (struct ldexp_control, expld): New.
803 (invalid, exp_mark_used_section): Delete.
804 (exp_fold_tree, exp_get_vma, exp_get_value_int, exp_get_fill,
805 exp_get_abs_int): Update prototypes.
806 * ldexp.c (assigning_to_dot): Delete.
808 (make_abs): Operate directly on expld.result. Update all callers.
809 (new_abs): Likewise. Return void.
810 (new_rel_from_abs): Rename from new_rel_from_section.
811 (new_rel, new_rel_from_abs): Operate on expld.result and return void.
813 (fold_unary): Operate on expld.result and return void. Remove
814 "current_section", "allocation_done", "dot", "dotp" and "mark_used"
815 params. Update all callers.
816 (fold_binary, fold_trinary, fold_name, exp_fold_tree_1): Likewise.
817 (fold_unary <ALIGN_K>): Ensure alignment is absolute.
818 (fold_unary <ABSOLUTE>): Use make_abs.
819 (fold_unary <DATA_SEGMENT_END>): Evaluate mark_phase as for
821 (fold_binary <DATA_SEGMENT_ALIGN, DATA_SEGMENT_RELRO_END, >): Ditto.
822 (fold_binary <'%','/'>): Don't error if marking.
823 (fold_name <SIZEOF_HEADERS>): Don't call bfd_sizeof_headers when
825 (fold_name <NAME>): Remove FIXME; -R is handled correctly. Don't
827 (fold_name <ADDR, LOADADDR, SIZEOF>): Don't set SEC_KEEP.
828 (exp_fold_tree_1): Don't error when marking.
829 (exp_fold_tree_1 <etree_rel>): Evaluate in all phases except first.
830 (exp_fold_tree_1 <etree_assign to dot>): Don't check for NULL
831 current section, instead check for NULL dotp.
832 (exp_fold_tree_1 <etree_provide>): Don't evaluate the assignment
833 source unless the symbol is referenced and undefined.
834 (exp_fold_tree): Remove "allocation_done" and "dot" params. Save
836 (exp_fold_tree_no_dot): Remove "current_section", "allocation_done
837 and "mark_used" params. Save params to expld. Update all callers.
838 (exp_assop): Do without temp var.
839 (exp_print_tree <etree_undef>): Delete code.
840 (exp_get_vma): Remove "allocation_done" param. Correct error return.
841 (exp_get_fill, exp_get_abs_int): Likewise.
842 (exp_get_value_int): Remove "allocation_done" param.
843 (exp_mark_used_section): Delete.
844 * ldgram.y (fill_exp): Update exp_get_fill call.
845 (origin_spec, length_spec): Update exp_get_vma call.
846 * ldlang.c (lang_init): Don't bother clearing lang_statement_iteration.
847 (lang_mark_used_section_1, lang_mark_used_section): Delete.
848 (strip_excluded_output_sections): Call one_lang_size_sections_pass in
849 marking mode. Merge old lang_mark_used_section code. Correct handling
850 of output sections with excluded input sections and data statements.
851 Don't drop non-zero sized sections. Don't zap os->bfd_section.
852 Do set SEC_EXCLUDE when appropriate.
853 (print_output_section_statement): Update for changed ldexp.c
855 (print_assignment, lang_size_sections_1): Likewise.
856 (lang_do_assignments_1, lang_enter_output_section_statement): Likewise.
857 (lang_new_phdr, lang_record_phdrs): Likewise.
858 (lang_size_sections): Likewise.
859 (insert_pad): Use following statement if it is a pad, rather than
861 (lang_size_sections_1 <lang_output_section_statement_enum>): Do
862 process ignored output section to set vma and lma, but don't
863 update dot for these sections. Don't error if marking.
864 (lang_size_sections_1 <lang_assignment_statement_enum>): Don't
865 update dot for ignored sections.
866 (lang_size_sections_1 <lang_data_statement_enum>): Don't mark absolute
867 section with SEC_ALLOC.
868 (one_lang_size_sections_pass): New function.
869 (lang_size_sections): Remove first five params. Set expld.phase on
870 entry and exit. Use one_lang_size_sections_pass.
871 (lang_do_assignments): Remove all params. Update all callers.
872 (lang_reset_memory_regions): Clear os->processed for all output
874 * ldlang.h (lang_do_assignments): Update prototype.
875 (lang_size_sections): Likewise.
876 (one_lang_size_sections_pass): Declare.
877 * pe-dll.c (pe_dll_fill_sections, pe_exe_fill_sections): Update
878 lang_size_sections and lang_do_assignments calls.
879 * emultempl/elf32.em (layout_sections_again): Likewise.
880 * emultempl/ppc64elf.em (ppc_before_allocation): Use
881 one_lang_size_sections_pass.
883 2005-06-08 Aldy Hernandez <aldyh@redhat.com>
885 * emulparams/elf32ms1.sh: New.
887 2005-06-07 Eric Christopher <echristo@redhat.com>
889 * Makefile.am (eelf32ms1.c): Use tab.
890 * Makefile.in: Regenerate.
892 2005-06-07 Aldy Hernandez <aldyh@redhat.com>
893 Michael Snyder <msnyder@redhat.com>
894 Stan Cox <scox@redhat.com>
896 * configure.tgt: Same.
898 * Makefile.am (ALL_EMULATIONS): Depend on eelf32ms1.o.
899 (eelf32ms1.c): Add eelf32ms1.c rule.
901 * Makefile.in: Regenerate.
903 2005-06-06 Alan Modra <amodra@bigpond.net.au>
905 * emultempl/ppc64elf.em (ppc_before_allocation): Always run
908 2005-06-05 H.J. Lu <hongjiu.lu@intel.com>
910 * ldexp.c (exp_mark_used_section): Set SEC_KEEP on current
911 section only if the symbol will be defined.
913 2005-06-04 H.J. Lu <hongjiu.lu@intel.com>
916 * ldexp.c (exp_mark_used_section): Set SEC_KEEP on current
917 section for etree_assign, etree_provide and etree_provided.
918 Call fold_binary on etree_binary.
920 * ldlang.c (lang_mark_used_section_1): Handle load base.
922 2005-06-03 Alan Modra <amodra@bigpond.net.au>
924 * ldmain.c (link_callbacks): Add einfo.
925 (add_archive_element): Use passed info, not link_info.
926 (constructor_callback): Likewise.
927 (reloc_overflow): Don't handle null bfd specially.
928 (reloc_dangerous, unattached_reloc): Likewise.
929 * ldmisc.c (vfinfo <B>): Print "ld generated" for null bfd.
930 (vfinfo <C, D, G>): Handle null bfd. Wrap comments.
932 2005-06-02 Alan Modra <amodra@bigpond.net.au>
934 * ldexp.h (etree_value_type): Use "asection *" in place of
935 "struct lang_output_section_statement_struct *" for "section".
936 (exp_fold_tree): Likewise.
937 (exp_mark_used_section): Likewise.
938 * ldexp.c (new_rel, new_rel_from_section, fold_unary, fold_binary,
939 fold_trinary, fold_name, exp_fold_tree_1, exp_fold_tree,
940 exp_mark_used_section): Likewise for "current_section" param.
941 (make_abs, new_abs, exp_binop, exp_unop, exp_get_vma, exp_get_fill,
942 exp_get_abs_int): Adjust for above changes.
943 * ldlang.c (lang_mark_used_section_1, print_assignment,
944 lang_size_sections_1, lang_do_assignments_1): Likewise.
945 * ldexp.c (fold_name): Init entire result struct.
947 2005-06-01 Maciej W. Rozycki <macro@linux-mips.org>
949 * emulparams/elf32btsmip.sh: Unset DATA_ADDR.
951 2005-05-31 Zack Weinberg <zack@codesourcery.com>
953 * ldlang.c (entry_symbol_default): New file-scope global.
954 (lang_finish): Use it, not a hardwired "start".
955 (lang_default_entry): Set it.
956 * ldlang.h: Declare lang_default_entry.
957 * emultempl/beos.em, emultempl/pe.em: Use lang_default_entry,
958 not lang_add_entry, to override default entry point symbol.
960 2005-05-29 Richard Henderson <rth@redhat.com>
962 * emulparams/elf64alpha.sh (PLT): New.
964 * emultempl/alphaelf.em (disable_relaxation): New.
965 (limit_32bit): Rename from elf64alpha_32bit; update all users.
966 (elf64_alpha_use_secureplt): Declare.
967 (bfd_elf64_alpha_vec, bfd_elf64_alpha_freebsd_vec): Declare.
968 (alpha_after_open): New.
969 (alpha_before_allocation): New.
970 (OPTION_NO_RELAX, OPTION_SECUREPLT, OPTION_NO_SECUREPLT): New.
971 (PARSE_AND_LIST_LONGOPTS): Include them.
972 (PARSE_AND_LIST_OPTIONS): Likewise.
973 (PARSE_AND_LIST_ARGS_CASES): Likewise.
974 (LDEMUL_AFTER_OPEN, LDEMUL_BEFORE_ALLOCATION): New.
975 * scripttempl/elf.sc (TEXT_PLT): New.
978 2005-05-27 Andreas Schwab <schwab@suse.de>
980 * configure.host (HOSTING_LIBS): Add libunwind.a if it exists.
982 2005-05-24 Alan Modra <amodra@bigpond.net.au>
984 * emultempl/ppc32elf.em (after_allocation): Don't call
985 ppc_elf_set_sdata_syms when relocatable.
987 2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
989 * Makefile.am (ld.1): Revert the last 2 changes.
990 (info-recursive): Depend on ld.1.
991 * Makefile.in: Regenerated.
993 2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
995 * Makefile.am (ld.1): Depend on "info" instead of
996 "configdoc.texi ldver.texi".
997 * Makefile.in: Regenerated.
999 2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
1001 * Makefile.am (ld.1): Depend on "info".
1002 * Makefile.in: Regenerated.
1004 2005-05-19 Zack Weinberg <zack@codesourcery.com>
1006 * Makefile.am: Have 'all' depend on 'info' and 'ld.1'.
1007 * Makefile.in: Regenerate.
1009 2005-05-17 Zack Weinberg <zack@codesourcery.com>
1011 * ld-arm/mixed-app.d: Adjust expected disassembly a little.
1013 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
1015 * Makefile.am (ldver.texi): Don't use $<.
1016 * Makefile.in: Regenerated.
1018 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
1020 * Makefile.am (AM_MAKEINFOFLAGS, TEXI2DVI): Explicitly include
1021 $(srcdir) before $(BFDDIR)/doc.
1022 * Makefile.in: Regenerated.
1024 2005-05-17 H.J. Lu <hongjiu.lu@intel.com>
1027 * ldexp.c (exp_fold_tree_1): Renamed from exp_fold_tree and
1028 take take a bfd_boolean, mark_used. Ignore assert failure if
1030 (exp_fold_tree) Call exp_fold_tree_1 with mark_used == FALSE.
1031 (exp_fold_tree_no_dot): Updated to take a bfd_boolean,
1032 mark_used and pass down.
1033 (fold_unary): Likewise.
1034 (fold_binary): Likewise.
1035 (fold_trinary): Likewise.
1036 (exp_binop): Add FALSE to call to exp_fold_tree_no_dot.
1037 (exp_trinop): Likewise.
1038 (exp_unop): Likewise.
1039 (exp_nameop): Likewise.
1040 (exp_get_vma): Likewise.
1041 (exp_get_fill): Likewise.
1042 (exp_get_abs_int): Likewise.
1043 (fold_name): Likewise. Set SEC_KEEP in output section flags.
1044 (exp_mark_used_section): New.
1046 * ldexp.h (exp_mark_used_section): New.
1048 * ldlang.c (lang_output_section_statement_lookup_1): Set the
1049 ignored field to FALSE.
1050 (lang_mark_used_section_1): New.
1051 (lang_mark_used_section): Call lang_mark_used_section_1.
1052 (strip_excluded_output_sections): Call lang_mark_used_section
1053 and check for unused sections.
1054 (lang_size_sections_1): Skip an output section if it should
1056 (lang_do_assignments_1): Likewise.
1057 (lang_process): Don't call lang_mark_used_section here.
1059 * ldlang.h (lang_output_section_statement_type): Change
1060 all_input_readonly to bitfield. Add ignored.
1062 2005-05-17 Lennert Buytenhek <buytenh@wantstofly.org>
1063 Peter S. Mazinger" <ps.m@gmx.net>
1065 * emulparams/armelf_linux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
1066 * emulparams/hppalinux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
1068 2005-05-17 Julian Brown <julian@codesourcery.com>
1070 * ldlang.c (print_assignment): Do not rely upon a valid result
1071 having a section associated with it.
1073 2005-05-17 Nick Clifton <nickc@redhat.com>
1075 * ldlang.c (Scan_for_self_assignment): Check an assignment tree to
1076 see if the same value is being used on the rhs as on the lhs.
1077 (print_assignment): Call scan_for_self_assignment and if it
1078 returns true, do no display the result of the computation but
1079 instead just the final value of the symbol on the lhs.
1080 * ld.texinfo: Document this behaviour and provide an example of
1081 when it will happen.
1083 2005-05-15 Daniel Jacobowitz <dan@codesourcery.com>
1085 * Makefile.am (AM_MAKEINFOFLAGS): Define.
1087 (ldver.texi): Depend on distributed files instead of built files.
1088 (ld.info): Include $(srcdir) in the rule target. Remove actions.
1089 (ld.dvi): Remove actions.
1090 (MAINTAINERCLEANFILES): Add configdoc.texi.
1091 (CONFIG_STATUS_DEPENDENCIES): Add bfd/configure.in.
1092 (install-data-local): Renamed from install.
1093 (Makefile): Remove explicit dependency.
1094 * acinclude.m4: Remove obsolete code.
1095 * configure.in: Update AC_PREREQ. Remove extra $CONFIG_SHELL.
1096 * Makefile.in, aclocal.m4, config.in, configure: Regenerated.
1098 2005-05-11 Bob Wilson <bob.wilson@acm.org>
1100 * scripttempl/elfxtensa.sc: Sync up with elf.sc.
1101 * emulparams/elf32xtensa.sh (PLT, GOT): Define.
1103 2005-05-11 Alan Modra <amodra@bigpond.net.au>
1105 * ldgram.y: Add SPECIAL token.
1106 (sect_constraint): Handle SPECIAL.
1107 * ldlang.c (lang_output_section_find_1): Don't match SPECIAL.
1108 (map_input_to_output_sections): Likewise.
1109 * ldlex.l (SPECIAL): Define.
1110 * emulparams/elf32ppc.sh (DATA_GOT, SDATA_GOT, SEPARATE_GOTPLT,
1111 GOT, PLT, GOTPLT): Define.
1112 * emultempl/ppc32elf.em (old_plt, old_got): New static vars.
1113 (ppc_after_open): New function.
1114 (PARSE_AND_LIST_PROLOGUE): Define OPTION_OLD_LPT and OPTION_OLD_GOT.
1115 (PARSE_AND_LIST_LONGOPTS): Add "bss-plt" and "sdata-got".
1116 (PARSE_AND_LIST_OPTIONS): Document them.
1117 (PARSE_AND_LIST_ARGS_CASES): Handle them.
1118 (LDEMUL_AFTER_OPEN): Define.
1119 * scripttempl/elf.sc (PLT): Don't override existing define.
1120 (DATA_GOT, SDATA_GOT): Define and use to enable alternate got
1121 placement rather than using NO_SMALL_DATA. Emit GOTPLT for RELRO_NOW.
1123 2005-05-10 Alan Modra <amodra@bigpond.net.au>
1125 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_GOTPLT_END): Delete.
1126 (DATA_SEGMENT_RELRO_END): Use SEPARATE_GOTPLT value.
1127 (GOTPLT): Remove DATA_SEGMENT_RELRO_GOTPLT_END. Place after
1128 DATA_SEGMENT_RELRO_END in script.
1130 2005-05-09 H.J. Lu <hongjiu.lu@intel.com>
1132 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
1133 Don't use a removed section.
1135 2005-05-09 H.J. Lu <hongjiu.lu@intel.com>
1137 * ldmain.c (reloc_overflow): Use output_bfd if the symbol
1138 is defined in the ABS section.
1140 2005-05-06 H.J. Lu <hongjiu.lu@intel.com>
1142 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
1143 Put back !link_info.relocatable.
1145 2005-05-06 H.J. Lu <hongjiu.lu@intel.com>
1148 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
1149 Just check link_info.executable.
1151 2005-05-06 Nick Clifton <nickc@redhat.com>
1153 * Update the address and phone number of the FSF organization in
1154 the GPL notices in the following files:
1155 aclocal.m4, deffile.h, deffilep.y, fdl.texi, ld.h, ldcref.c,
1156 ldctor.c, ldctor.h, ldemul.c, ldexp.c, ldexp.h, ldfile.c,
1157 ldfile.h, 20ldgram.y, ldint.texinfo, ldlang.c, ldlang.h, ldlex.h,
1158 ldlex.l, ldmain.c, ldmain.h, ldmisc.c, ldmisc.h, ldver.c, ldver.h,
1159 ldwrite.c, ldwrite.h, lexsup.c, mri.c, mri.h, pe-dll.c, pe-dll.h,
1160 sysdep.h, emultempl/aix.em, emultempl/alphaelf.em,
1161 emultempl/armcoff.em, emultempl/armelf.em, emultempl/beos.em,
1162 emultempl/crxelf.em, emultempl/elf32.em, emultempl/generic.em,
1163 emultempl/gld960.em, emultempl/gld960c.em, emultempl/hppaelf.em,
1164 emultempl/ia64elf.em, emultempl/irix.em, emultempl/linux.em,
1165 emultempl/lnk960.em, emultempl/m68hc1xelf.em,
1166 emultempl/m68kcoff.em, emultempl/m68kelf.em,
1167 emultempl/mipsecoff.em, emultempl/mmix-elfnmmo.em,
1168 emultempl/mmixelf.em, emultempl/mmo.em, emultempl/needrelax.em,
1169 emultempl/pe.em, emultempl/ppc32elf.em, emultempl/ppc64elf.em,
1170 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em,
1171 emultempl/vanilla.em, emultempl/xtensaelf.em
1173 2005-05-05 H.J. Lu <hongjiu.lu@intel.com>
1175 * scripttempl/elf.sc: Document the usage of __bss_start.
1177 2005-05-05 Paul Brook <paul@codesourcery.com>
1179 * Makefile.am: Add eelf_i386_vxworks.
1180 * Makefile.in: Regenerate.
1181 * configure.tgt: Make i?86-*-vxworks use targ_emul=elf_i386_vxworks.
1182 * emulparams/elf_i386_vxworks.sh: New file.
1183 * emulparams/vxworks.sh: New file.
1184 * scripttempl/elf.sc: Add DATA_END_SYMBOLS and ETEXT_NAME.
1186 2005-05-04 H.J. Lu <hongjiu.lu@intel.com>
1188 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
1189 Call _bfd_elf_provide_section_bound_symbols.
1191 2005-05-04 Alan Modra <amodra@bigpond.net.au>
1193 * ldemul.c: Include bfdlink.h.
1194 (ldemul_before_allocation): Assume before_allocation is non-zero.
1195 (before_allocation_default): Call strip_excluded_output_sections.
1196 * ldlang.c (stripped_excluded_sections): New variable.
1197 (lang_add_section): Build input section list for each output
1198 section, attached via map_head and map_tail pointers.
1199 (strip_excluded_output_sections): Make global. Traverse the
1200 input section lists to find which output sections can go. Clear
1201 link_order pointers and set stripped_excluded_sections.
1202 (lang_process): Call strip_excluded_output_sections.
1203 * ldlang.h (strip_excluded_output_sections): Declare.
1204 * ldwrite.c: Update throuhout for link_order_head -> map_head change.
1205 * emultempl/aix.em (before_allocation): Call
1206 strip_excluded_output_sections.
1207 * emultempl/armcoff.em (before_allocation): Likewise.
1208 * emultempl/beos.em (before_allocation): Likewise.
1209 * emultempl/linux.em (before_allocation): Likewise.
1210 * emultempl/pe.em (before_allocation): Likewise.
1211 * emultempl/sunos.em (before_allocation): Likewise.
1212 * emultempl/elf32.em (before_allocation): Likewise. Call
1213 bfd_elf_size_dynsym_hash_dynstr too.
1214 * emultempl/lnk960.em (lnk960_before_allocation): Delete.
1215 (ld_lnk960): Use before_allocation_default.
1217 2005-05-02 H.J. Lu <hongjiu.lu@intel.com>
1219 * emultempl/elf32.em (gld${EMULATION_NAME}_strip_empty_section):
1220 Updated for bfd_section_list_remove change.
1221 * ldlang.c (lang_insert_orphan): Likewise.
1222 (strip_excluded_output_sections): Likewise.
1223 (sort_sections_by_lma): New.
1224 (lang_check_section_addresses): Sort the sections before
1227 2005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
1229 * configure.tgt: Add h8300*-*-rtemscoff.
1230 Switch h8300*-*-rtems* to elf.
1232 2005-04-29 Ben Elliston <bje@au.ibm.com>
1234 * ldgram.y (lang_memory_region_type): Make static.
1235 (ldgram_want_filename): Likewise.
1236 * ldemul.c (ld_emulation): Make static.
1237 * ldfile.h (ldfile_find_command_file): Remove extern.
1238 * ldfile.c (ldfile_find_command_file): Make static.
1239 * ldlang.h (unique_section_list): Remove extern declaration.
1240 * ldlang.c (unique_section_list): Make static.
1241 * mri.h (symbol_truncate): Remove extern declaration.
1242 * mri.c (symbol_truncate): Make static.
1243 (order, only_load, address, alias): Likewise.
1244 (alignment, subalignment): Likewise.
1246 2005-04-27 H.J. Lu <hongjiu.lu@intel.com>
1248 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
1249 Use the first SEC_ALLOC section which isn't SEC_READONLY or the
1250 last SEC_ALLOC section if such a section doesn't exist.
1252 2005-04-24 Mark Kettenis <kettenis@gnu.org>
1254 * configure.host: Add *-*-openbsd support.
1256 2005-04-15 Julian Brown <julian@codesourcery.com>
1258 * ld.texinfo: Document --use-blx.
1259 * emultempl/armelf.em (use_blx): New variable.
1260 (arm_elf_create_output_section_statements): Communicate value of
1262 (PARSE_AND_LIST_PROLOGUE): Add OPTION_USE_BLX.
1263 (PARSE_AND_LIST_OPTIONS): Add --use-blx option.
1264 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_USE_BLX case.
1266 2005-04-14 Alan Modra <amodra@bigpond.net.au>
1268 * Makefile.am (NO_WERROR): Define. Use instead of -Wno-error.
1269 * configure.in: Include ../bfd/warning.m4 contents.
1270 * Makefile.in: Regenerate.
1271 * configure: Regenerate.
1273 2005-04-12 Alan Modra <amodra@bigpond.net.au>
1275 * Makefile.am: Run "make dep-am".
1276 (ldgram.o, ldlex.o, deffilep.o): Add -Wno-error to command.
1277 * Makefile.in: Regenerate.
1278 * config.in: Regenerate.
1280 2005-04-11 Alan Modra <amodra@bigpond.net.au>
1282 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Ignore
1283 as_needed libs that were not needed.
1284 (gld${EMULATION_NAME}_check_needed): Likewise.
1286 2005-04-07 Nick Clifton <nickc@redhat.com>
1288 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h so that
1289 ldfile.h can use the lang_input_statement type.
1291 2005-04-06 Jakub Jelinek <jakub@redhat.com>
1293 * ldlang.c: Formatting.
1294 (walk_wild_consider_section): Remember return value from wildcardp.
1295 (is_simple_wild): Use strcspn instead of 2 strpbrk calls and strlen.
1296 (wild_spec_can_overlap): Use strcspn instead of strpbrk and strlen.
1298 2005-04-06 Robert O'Callahan <rocallahan@novell.com>
1300 * ld.h (lean_section_userdata_type): Remove.
1301 (fat_section_userdata_type): Remove file field.
1302 (SECTION_USERDATA_SIZE): Remove.
1303 * ldlang.c (init_os): Eliminate initialization of unused
1304 lean_section_userdata_type.
1306 * ldlang.h (callback_t, walk_wild_section_handler_t): New
1308 (struct lang_wild_statement_struct): Add walk_wild_section_handler
1309 and handler_data fields.
1310 * ldlang.c (callback_t): Removed.
1311 (walk_wild_consider_section, walk_wild_section_general,
1312 section_iterator_callback, find_section, is_simple_wild,
1313 match_simple_wild, walk_wild_section_specs1_wild0,
1314 walk_wild_section_specs1_wild1, walk_wild_section_specs2_wild1,
1315 walk_wild_section_specs3_wild2, walk_wild_section_specs4_wild2,
1316 wild_spec_can_overlap, analyze_walk_wild_section_handler): New
1318 (lang_add_wild): Call analyze_walk_wild_section_handler.
1319 (walk_wild_section): Renamed to walk_wild_section_general and
1320 created a wrapper function.
1321 (section_iterator_callback_data): New typedef.
1323 2005-04-04 Nick Clifton <nickc@redhat.com>
1325 * configure.in: Add a check for <unistd.h> providing a prototype
1326 for getopt() which is compatible with the one in
1327 include/getopt.h. If so then define HAVE_DECL_GETOPT.
1328 * configure: Regenerate.
1329 * config.in (HAVE_DECL_GETOPT): Add.
1330 * ldemul.c: Include config.h
1331 * lexsup.c: Likewise.
1332 * emultempl/elf32.sc: Likewise.
1334 2005-03-29 Alan Modra <amodra@bigpond.net.au>
1336 * emultempl/elf32.em (gld${EMULATION_NAME}_layout_sections_again):
1337 New function, extracted from static void gld${EMULATION_NAME}_finish.
1338 (gld${EMULATION_NAME}_strip_empty_sections): Likewise.
1339 (gld${EMULATION_NAME}_provide_init_fini_syms): Likewise.
1340 * emultempl/ppc64elf.em: Revert last change.
1341 (ppc_layout_sections_again): Use
1342 gld${EMULATION_NAME}_layout_sections_again.
1343 (ppc_finish): Don't call gld${EMULATION_NAME}_finish. Instead call
1344 gld${EMULATION_NAME}_strip_empty_sections and
1345 gld${EMULATION_NAME}_provide_init_fini_syms.
1346 * emultempl/hppaelf.em: Similarly.
1348 2005-03-29 Alan Modra <amodra@bigpond.net.au>
1350 * emultempl/ppc64elf.em (need_laying_out): Delete. Remove all refs.
1351 (ppc_finish): Don't call bfd_elf_discard_info.
1352 * emultempl/hppaelf.em: Similarly.
1354 2005-03-24 Nick Clifton <nickc@redhat.com>
1356 * po/fr.po: Updated French translation.
1358 2005-03-23 Mike Frysinger <vapier@gentoo.org>
1359 Nick Clifton <nickc@redhat.com>
1361 * configure.host: Accept any C library to accompany a GNU Linux
1362 implementation, not just the GNU C library.
1363 * configure.tgt: Likewise.
1364 * emultempl/elf32.em: Likewise.
1366 2005-03-22 H.J. Lu <hongjiu.lu@intel.com>
1368 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols): New
1369 (gld${EMULATION_NAME}_finish): Call
1370 gld${EMULATION_NAME}_provide_bound_symbols to provide
1371 __preinit_array_start, __preinit_array_end, __init_array_start,
1372 __init_array_end, __fini_array_start and __fini_array_end.
1374 * scripttempl/elf.sc: Don't provide __preinit_array_start,
1375 __preinit_array_end, __init_array_start, __init_array_end,
1376 __fini_array_start nor __fini_array_end.
1378 2005-03-23 Alan Modra <amodra@bigpond.net.au>
1380 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Set
1381 SEC_EXCLUDE on .gnu.warning sections.
1383 2005-03-22 Alan Modra <amodra@bigpond.net.au>
1385 * scripttempl/elf.sc (SBSS): Don't provide sbss start and end syms.
1387 2005-03-21 Alan Modra <amodra@bigpond.net.au>
1389 * emultempl/ppc32elf.em (gld${EMULATION_NAME}_after_allocation): New
1391 (LDEMUL_AFTER_ALLOCATION): Define.
1393 2005-03-21 Alan Modra <amodra@bigpond.net.au>
1395 * emultempl/ppc64elf.em (ppc_finish): Rename from
1396 gld${EMULATION_NAME}_finish. Call gld${EMULATION_NAME}_finish.
1397 (LDEMUL_FINISH): Update.
1398 * emultempl/hppaelf.em (hppaelf_finish, LDEMUL_FINISH): Likewise.
1399 * emultempl/m68hc1xelf.em (m68hc11elf_finish, LDEMUL_FINISH): Likewise.
1401 2005-03-18 Julian Brown <julian@codesourcery.com>
1403 * scripttempl/armbpapi.sc (.rel.dyn): Add .rel.init_array,
1405 (.rela.dyn): Add .rela.init_array, .rela.fini_array.
1406 (SECTIONS): Add .rel.other, .rela.other, .reli.other after PLT relocs.
1408 2005-03-18 H.J. Lu <hongjiu.lu@intel.com>
1410 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Don't set
1411 bfd_section when removing unused empty output sections for
1412 non-relocatable link.
1414 2005-03-19 Alan Modra <amodra@bigpond.net.au>
1416 * ldlang.c (lang_insert_orphan): Use old section_tail rather than
1417 traversing the bfd section list to find pointer to new section.
1419 2005-03-18 Alan Modra <amodra@bigpond.net.au>
1421 * scripttempl/elf.sc: When CREATE_SHLIB, put .sdata2 and .sbss2
1422 input sections into .sdata and .sbss output respectively.
1424 2005-03-16 David Heine <dlheine@tensilica.com>
1425 Bob Wilson <bob.wilson@acm.org>
1427 * ldlang.c (IGNORE_SECTION): Remove check for zero size.
1428 (lang_check_section_addresses): Ignore zero size sections here.
1430 2005-03-16 H.J. Lu <hongjiu.lu@intel.com>
1432 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Remove
1433 unused empty output sections for non-relocatable link.
1435 * ld.h (args_type): Remove gc_sections.
1437 * ldlang.c (lang_mark_used_section): New.
1438 (lang_gc_sections): Use link_info.gc_sections instead of
1439 command_line.gc_sections.
1440 * ldmain.c (main): Likewise.
1441 * lexsup.c (parse_args): Likewise.
1442 * ldlang.c (lang_process): Call lang_mark_used_section.
1444 * ldmain.c (main): Initialize link_info.gc_sections to FALSE.
1446 2005-03-16 Nick Clifton <nickc@redhat.com>
1447 Ben Elliston <bje@au.ibm.com>
1449 * configure.in (werror): New switch: Add -Werror to the
1450 compiler command line. Enabled by default. Disable via
1452 * configure: Regenerate.
1454 2005-03-16 Alan Modra <amodra@bigpond.net.au>
1456 * emulparams/elf32ppclinux.sh (OTHER_READWRITE_SECTION): Delete.
1457 (OTHER_RELRO_SECTIONS): Set this instead.
1459 2005-03-15 Nick Clifton <nickc@redhat.com>
1461 * NEWS: Add cutoff for changes in 2.16 release.
1463 2005-03-15 Mikkel Krautz <krautz@gmail.com>
1465 * configure.tgt (x86_64-elf): Add target.
1467 2005-03-15 Alan Modra <amodra@bigpond.net.au>
1469 * po/es.po: Commit new Spanish translation.
1471 2005-03-14 Alan Modra <amodra@bigpond.net.au>
1473 * ldexp.c (exp_fold_tree): Ensure return value is initialized.
1474 Tidy etree_assert case.
1476 2005-03-14 Alan Modra <amodra@bigpond.net.au>
1478 * po/tr.po: Commit new Turkish translation.
1480 2005-03-11 Daniel Jacobowitz <dan@codesourcery.com>
1482 * Makefile.am: Remove references to em68klynx.o and esparclynx.o.
1483 * Makefile.in: Regenerated.
1484 * emulparams/m68klynx.sh, emulparams/sparclynx.sh: Remove.
1486 2005-03-07 Nick Clifton <nickc@redhat.com>
1488 * po/fr.po: Updated translation.
1490 2005-03-05 Alan Modra <amodra@bigpond.net.au>
1492 * po/ld.pot: Regenerate.
1494 2005-03-02 Jan Beulich <jbeulich@novell.com>
1496 * ldmain.c (remove_output): Use unlink_if_ordinary instead of unlink.
1497 * pe-dll.c (pe_dll_generate_implib): Likewise.
1499 2005-02-24 Ben Elliston <bje@au.ibm.com>
1501 * ldfile.c: Remove GNU960 conditional code.
1502 * emultempl/gld960.em: Likewise.
1503 * emultempl/gld960c.em: Likewise.
1504 * emultempl/lnk960.em: Likewise.
1506 2005-02-24 Nick Clifton <nickc@redhat.com>
1508 * emultempl/lnk960.em (lnk960_before_parse): Remove redundant
1509 empty string from calls to concat.
1511 2005-02-23 Nick Clifton <nickc@redhat.com>
1513 * emultempl/lnk960.em (lnk960_before_parse): Terminate list of
1514 arguments passed to concat() with a NULL.
1516 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h because they
1517 define types needed by ldfile.h
1519 2005-02-23 Alan Modra <amodra@bigpond.net.au>
1521 * pe-dll.c: Warning fixes.
1522 * emultempl/sunos.em: Likewise.
1524 2005-02-22 Daniel Jacobowitz <dan@codesourcery.com>
1526 * ldlang.c (section_already_linked): Don't call
1527 bfd_section_already_linked for dynamic objects.
1529 2005-02-22 Alan Modra <amodra@bigpond.net.au>
1531 * ldexp.c: Warning fixes.
1532 * ldwrite.c: Likewise.
1533 * emultempl/elf32.em: Likewise.
1535 2005-02-21 H.J. Lu <hongjiu.lu@intel.com>
1537 * ldlang.c (lang_add_section): Check SEC_TIC54X_BLOCK for TI
1539 (lang_size_sections_1): Check SEC_COFF_SHARED_LIBRARY for COFF
1540 and ECOFF output only.
1542 2005-02-21 Alan Modra <amodra@bigpond.net.au>
1544 * config.in: Regenerate.
1545 * configure: Regenerate.
1547 2005-02-17 Zack Weinberg <zack@codesourcery.com>
1549 * ldexp.c (assigning_to_dot): New global flag.
1550 (fold_name): If assigning_to_dot is true, object immediately to
1551 an undefined symbol.
1552 (exp_fold_tree): Set and clear assigning_to_dot around the
1553 recursive call to exp_fold_tree to process the right-hand side
1554 of an assignment to the location counter.
1556 2005-02-17 Paul Brook <paul@codesourcery.com>
1558 * scripttempl/armbpabi.sc: Add dummy name to version block.
1560 2005-02-17 Alan Modra <amodra@bigpond.net.au>
1562 * ldexp.c (new_abs): Init new.str.
1564 2005-02-15 Mark Mitchell <mark@codesourcery.com>
1566 * configure.in (AC_CHECK_FUNCS): Add glob.
1567 * configure: Regenerated.
1568 * emultempl/elf32.em (<glob.h>): Do not include if HAVE_GLOB is
1570 (gld${EMULATION_NAME}_parse_ld_so_conf_include): Do not use glob
1571 if HAVE_GLOB is not defined.
1573 2005-02-16 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1575 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define
1576 lib_path if NATIVE is yes.
1578 2005-02-16 Alan Modra <amodra@bigpond.net.au>
1580 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Make
1581 an error creating fake bfd fatal.
1582 (ppc_before_allocation): Continue on after errors.
1583 (gld${EMULATION_NAME}_finish): Likewise.
1585 2005-02-15 Nick Clifton <nickc@redhat.com>
1587 * ldlex.l (YY_NO_UNPUT): Define so that the yy_unput function is
1588 not declared. It is not used and its presence causes a compile
1591 2005-02-11 Zack Weinberg <zack@codesourcery.com>
1593 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed):
1594 If st.st_ino is zero, do not treat the library as a duplicate.
1596 2005-02-10 Jakub Jelinek <jakub@redhat.com>
1598 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
1599 Set BFD_LINKER_CREATED on the stubs bfd.
1600 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
1603 2005-02-08 Mark Mitchell <mark@codesourcery.com>
1605 * scripttempl/armbpabi.sc (VERSION): Make special section symbols
1607 (Image$$ER_RO$$Base): Define whenever RELOCATING.
1608 (Image$$ER_RO$$Limit): Likewise.
1609 (SHT$$INIT_ARRAY$$Base): Likewise.
1610 (SHT$$INIT_ARRAY$$Limit): Likeise.
1612 2005-02-10 Ben Elliston <bje@au.ibm.com>
1614 * emultempl/beos.em: Remove #if 0 and #if 1 blocks.
1616 2005-02-08 Richard Sandiford <rsandifo@redhat.com>
1618 * configure.tgt (mips64*el-*-linux-gnu*): Define targ_extra_libpath
1619 to include o32 and n64 emulations.
1620 (mips64*-*-linux-gnu*): Likewise.
1622 2005-02-08 Hans-Peter Nilsson <hp@axis.com>
1624 * ldmain.c (warning_callback, warning_find_reloc): Prepend
1625 "warning: " to warning messages.
1627 2005-02-04 Alan Modra <amodra@bigpond.net.au>
1629 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't
1630 look up symbol for etree_provide here.
1632 2005-02-02 Daniel Jacobowitz <dan@codesourcery.com>
1634 * emulparams/elf32bmip.sh (TEXT_DYNAMIC): Always set.
1636 2005-02-01 Edward Welbourne <eddy@opera.com>
1637 Nick Clifton <nickc@redhat.com>
1639 * ld.texinfo (Source Code Reference): New node describing how to
1640 access linker script defined variables from source code.
1642 2005-02-01 Alan Modra <amodra@bigpond.net.au>
1644 * ld.texinfo: Clarify --as-needed operation.
1646 2005-01-31 Andrew Cagney <cagney@gnu.org>
1648 * configure: Regenerate to track ../gettext.m4.
1650 2005-01-31 Nick Clifton <nickc@redhat.com>
1652 * ldver.c (ldversion): Bump reported copyright date to 2005.
1654 2005-01-31 Nick Clifton <nickc@redhat.com>
1656 * configure.tgt: Remove obsolete targets m68k-lynxos and
1659 2005-01-28 Julian Brown <julian@codesourcery.com>
1661 * emultempl/armelf.em (fix_v4bx): New variable.
1662 (arm_elf_create_output_section_statements): Communicate fix_v4bx flag
1664 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_FIX_V4BX.
1665 (PARSE_AND_LIST_LONGOPTS): Add option --fix-v4bx.
1666 (PARSE_AND_LIST_OPTIONS): Add option --fix-v4bx.
1667 (PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX.
1668 * NEWS: Mention --fix-v4bx.
1669 * ld.texinfo: Document --fix-v4bx.
1671 2005-01-25 Mark Mitchell <mark@codesourcery.com>
1673 * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Define, so
1674 as to include .ARM.exidx$${Base,Limit}.
1675 * ld/scripttempl/armbpabi.sc: Move .plt to end of text segment.
1676 Define IMAGE$$ER_RO$${Base,Limit} and SHT$$INIT_ARRAY$${Base,Limit}.
1677 Put .init_array, .fini_array, etc. into the read-only data
1680 2005-01-25 Alan Modra <amodra@bigpond.net.au>
1682 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Formatting.
1683 (gld${EMULATION_NAME}_after_open): Ignore needed libs if they were
1684 only needed by an as-needed lib that didn't get linked.
1686 2005-01-23 Alan Modra <amodra@bigpond.net.au>
1688 * ld.texinfo (Output Section Keywords <CONSTRUCTORS>): Correct
1689 __DTOR_LIST__ description.
1691 2005-01-23 Alan Modra <amodra@bigpond.net.au>
1693 * ld.texinfo (Location Counter <dot outside sections>): Document
1694 effects of orphan section placement, and ". = ." workaround.
1695 * Makefile.in: Regenerate.
1697 2005-01-22 Richard Sandiford <rsandifo@redhat.com>
1699 * emulparams/elf32bmip.sh (OTHER_GOT_SECTIONS): Add ". = .;".
1700 * emulparams/elf32bmipn32-defs.sh (OTHER_GOT_SECTIONS): Likewise.
1702 2005-01-21 Jakub Jelinek <jakub@redhat.com>
1704 * ldgram.y (AS_NEEDED): New token.
1705 (input_list): Handle AS_NEEDED ( input_list ).
1706 * ldlex.l (AS_NEEDED): Add.
1707 * ld.texinfo: Document AS_NEEDED ().
1708 * NEWS: Mention AS_NEEDED ().
1710 2005-01-21 Ben Elliston <bje@au.ibm.com>
1712 * ldlang.c (lang_reasonable_defaults): Remove.
1713 (lang_process): Don't call lang_reasonable_defaults.
1715 * ldexp.c (exp_assop): Remove #if 0'd code.
1716 (exp_print_tree): Likewise.
1717 * ldlang.c (lang_memory_region_lookup): Likewise.
1718 (open_output): Likewise.
1719 (lang_do_assignments_1): Likewise.
1720 (lang_place_orphans): Likewise.
1721 (lang_enter_output_section_statement): Likewise.
1722 (lang_reasonable_defaults): Likewise.
1723 * ldlang.h (struct lang_input_statement_struct): Likewise.
1724 * mri.c (mri_draw_tree): Likewise.
1725 (mri_load): Likewise.
1726 * pe-dll.c (generate_reloc): Likewise.
1727 (make_import_fixup_entry): Likewise.
1728 (pe_as16): Likewise.
1729 * emultempl/beos.em (set_pe_subsystem): Likewise.
1730 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
1731 * emultempl/pe.em: Likewise.
1732 * emultempl/xtensaelf.em (xtensa_colocate_literals): Likewise.
1734 2005-01-20 Daniel Jacobowitz <dan@codesourcery.com>
1736 * Makefile.am (ALL_EMULATIONS): Add earmelfb_linux_eabi.o.
1737 (earmelfb_linux_eabi.c): New target.
1738 * Makefile.in: Regenerated.
1739 * configure.tgt (arm*b-*-linux-gnueabi): New target.
1740 * emulparams/armelfb_linux_eabi.sh: New file.
1742 2005-01-20 Nick Hudson <skrll@netbsd.org>
1745 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
1746 Handle bfd_elf32_hppa_nbsd_vec.
1748 2005-01-19 Richard Sandiford <rsandifo@redhat.com>
1750 * ldmain.h (ld_sysroot): Change type to a constant string.
1751 * ldmain.c (ld_sysroot): Likewise.
1752 (get_relative_sysroot, get_sysroot): New functions, adding command-line
1753 support for changing the sysroot.
1754 (main): Call the new functions.
1755 * lexsup.c (OPTION_SYSROOT): New.
1756 (ld_options): Add --sysroot.
1757 (parse_args): Add a dummy handler for it.
1758 * ld.texinfo (--sysroot): Document.
1759 * NEWS: Mention the new --sysroot option.
1761 2005-01-18 Alan Modra <amodra@bigpond.net.au>
1763 * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
1764 (lang_place_orphans): Don't abort on just_syms_flag, instead call
1767 2005-01-16 Danny Smith <dannysmith@users.sourceforge.net>
1769 * defilep.y (def_name, def_library): Combine into...
1770 (def_image_name): New function. Strip name to basename,
1773 2005-01-12 Mark Kettenis <kettenis@gnu.org>
1775 * configure.in: Be sure to invoke config.sub using the shell.
1776 * configure: Regenerate.
1778 2005-01-11 Alan Modra <amodra@bigpond.net.au>
1780 * configure.host: Correct sed patterns for last change.
1782 2005-01-10 Nick Clifton <nickc@redhat.com>
1785 * ldmisc.c (vfinfo): Add an extra argument: is_warning. Use this
1786 to determine whether config.make_executable should be set to FALSE in
1787 conjunction with config.fatal_warnings.
1788 (info_msg, minfo, lfinof): Pass FALSE as the extra argument.
1789 (einfo): Pass TRUE as the extra argument.
1791 2005-01-10 Greg Schaffer <gschafer@zip.com.au>
1793 * configure.host (linux targets): Use "${CC} -dumpspecs" instead
1794 of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0.
1795 (ia64-*-aix): Delete - this target is obsolete, and would be
1796 broken by this patch.
1798 2005-01-06 Eric Botcazou <ebotcazou@libertysurf.fr>
1800 * configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*.
1801 (sparc64-sun-solaris2*): New host.
1803 2005-01-06 Paul Brook <paul@codesourcery.com>
1805 * Makefie.am: Add earmelf_vxworks.
1806 * Makefile.in: Regenerate.
1807 * configure.tgt: Make arm-*-vxworks a separate case.
1808 * emulparams/armelf_vxworks.sh: New function.
1810 2005-01-06 Alan Modra <amodra@bigpond.net.au>
1812 * emultempl/ppc64elf.em (no_multi_toc): New var.
1813 (gld${EMULATION_NAME}_finish): Pass to ppc64_elf_setup_section_lists.
1814 (OPTION_NO_MULTI_TOC): Define.
1815 (PARSE_AND_LIST_LONGOPTS): Add --no-multi-toc support.
1816 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
1818 2005-01-05 Nick Clifton <nickc@redhat.com>
1821 * ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
1822 Standard's specification for parsable error messages.
1824 2005-01-04 Paul Brook <paul@codesourcery.com>
1826 * Makefile.am: Correct dependency for earmsymbian.c.
1827 * Makefile.in: Regenerate.
1829 2004-12-28 Danny Smith <dannysmith@users.sourceforge.net>
1831 * emultempl/pe.em (set_pe_subsystem): Change second arg to
1832 lang_add_entry to FALSE.
1834 2004-12-23 Nick Clifton <nickc@redhat.com>
1837 * emulparams/shelf.sh (.stack): Increase stack start address to
1840 2004-12-20 Nick Clifton <nickc@redhat.com>
1842 * ldmain.c (main): Issue an error message if -static and -shared
1845 2004-12-17 Jakub Jelinek <jakub@redhat.com>
1847 * ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
1848 * ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
1849 * ldlang.c (lang_size_sections): Use them to avoid wasting virtual
1850 address space at DATA_SEGMENT_ALIGN. Fix computation of expected
1851 PT_GNU_RELRO segment end.
1853 2004-12-14 P.J. Darcy <darcypj@us.ibm.com>
1855 * configure.tgt: Add s390x-ibm-tpf support.
1857 2004-12-16 Martin Kögler <mkoegler@auto.tuwien.ac.at>
1859 * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
1862 2004-12-07 Ben Elliston <bje@gnu.org>
1864 * ldemul.h: Forward declare struct option.
1866 2004-12-01 Danny Smith <dannysmith@users.sourceforge.net>
1868 * scripttempl/pe.sc (.data): Add .jcr subsection.
1870 2004-11-30 Paul Brook <paul@codesourcery.com>
1872 * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
1874 2004-11-30 Tero Niemela <tero_niemela@yahoo.com>
1876 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
1877 * Makefile.in: Regenerate.
1879 2004-11-26 Melissa Mears <asterisk@graces.dricas.com>
1881 * emultempl/pe.em: Add --subsystem:xbox as well as
1883 * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
1884 and numeric subsystems.
1886 2004-11-24 Alan Modra <amodra@bigpond.net.au>
1888 * ldexp.c (fold_name): Correct PR 338 fix.
1890 2004-11-19 Mark Mitchell <mark@codesourcery.com>
1892 * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
1893 (earmelf_linux_eabi.c): New target.
1894 * configure.tgt (arm*-*-linux-gnueabi): Handle it.
1895 * emulparams/armelf_linux_eabi.sh: New file.
1896 * Makefile.in: Regenerated.
1898 2004-11-19 Nick Clifton <nickc@redhat.com>
1901 * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
1902 LENGTH fields in the MEMORY command, to explicitly state that
1903 symbols cannot be used in their expressions.
1905 2004-11-19 Jon Beniston <jon@beniston.com>
1907 * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
1908 * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
1909 * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
1910 which return the length and origin of a memory.
1911 * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
1912 * NEWS: Mention support for ORIGIN and LENGTH operators.
1914 2004-11-17 Daniel Jacobowitz <dan@codesourcery.com>
1916 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
1917 a dynamic object for stubs.
1919 2004-11-04 Paul Brook <paul@codesourcery.com>
1921 * ld.texinfo: Document --default-imported-symver.
1922 * ldmain.c (main): Set link_info.default_imported_symver.
1923 * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
1924 (ld_options): Add --default-imported-symver.
1925 (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
1927 2004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
1928 Vineet Sharma <vineets@noida.hcltech.com>
1930 * Makefile.am: Add entries for new maxq-coff target.
1931 * Makefile.in: Regenerate.
1932 * configure.tgt: Add support for maxq.
1933 * emulparams/maxqcoff.sh: New File.
1934 * scripttempl/maxqcoff.sc: New linker script for target maxq.
1935 * NEWS: Mention the new target.
1937 2004-11-04 Daniel Jacobowitz <dan@debian.org>
1939 * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
1940 (earmelf_oabi.c): Remove rule.
1941 * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
1942 * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
1943 * Makefile.in: Regenerated.
1945 2004-11-04 Hans-Peter Nilsson <hp@axis.com>
1947 * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
1948 * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
1949 (FINI_START): Ditto.
1950 (INIT_END): Remove emitted "jump [sp+]".
1953 2004-11-04 Alan Modra <amodra@bigpond.net.au>
1955 * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
1956 (no_opd_opt, no_toc_opt): New static vars.
1957 (ppc_before_allocation): Don't edit opt if no_opd_opt. Call
1959 (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
1960 (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
1961 (PARSE_AND_LIST_OPTIONS): Describe new options.
1962 (PARSE_AND_LIST_ARGS_CASES): Handle them.
1964 2004-10-27 Nick Clifton <nickc@redhat.com>
1966 * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
1967 parameter to invocation of lang_section_start.
1968 * emultempl/aix.em (_handle_option): Likewise.
1970 * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
1971 eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
1972 * Makefile.in: Regenerate.
1974 2004-10-26 Mark Mitchell <mark@codesourcery.com>
1976 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
1977 __exidx_{start,end} when not relocating.
1979 2004-10-25 Mark Mitchell <mark@codesourcery.com>
1981 * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
1982 * ldexp.h (segment_type): New type.
1983 (segments): New variable.
1984 * ldexp.c (segments): New variable.
1985 (exp_print_token): Handle SEGMENT_START.
1986 (fold_binary): Likewise.
1987 * ldgram.y (SEGMENT_START): Declare it as a token.
1988 (exp): Handle SEGMENT_START.
1989 * ldlang.h (lang_address_statement_type): Add segment field.
1990 (lang_section_start): Change prototype.
1991 * ldlang.c (map_input_to_output_sections): Do not process section
1992 assignments if a corresponding SEGMENT_START has already been
1994 (lang_section_start): Add segment parameter.
1995 * ldlex.l (SEGMENT_START): Add it.
1996 * lexsup.c (seg_segment_start): New function.
1997 (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
1998 * ld.texinfo (SEGMENT_START): Document it.
1999 * emulparams/armsymbian.sh (EMBEDDED): Set it.
2000 * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
2001 base addresses. Do not map relocations.
2002 * NEWS: Mention SEGMENT_START.
2004 2004-10-26 Paul Brook <paul@codesourcery.com>
2006 * ld.texinfo: Document --default-symver.
2007 * ldmain.c (main): Set link_info.create_default_symver.
2008 * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
2009 (ld_options): Add default-symver.
2010 (parse_args): Handle OPTION_DEFAULT_SYMVER.
2012 2004-10-24 Danny Smith <dannysmith@users.sourceforge.net>
2014 * pe-dll.c (process_def_file): Don't export all symbols by default if
2015 building a position-independent executable.
2017 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
2020 * ldmain.c (reloc_overflow): Accept a pointer to struct
2021 bfd_link_hash_entry. Report symbol location for relocation
2024 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
2026 * genscripts.sh (libpath.exp): Really generate for first
2029 2004-10-19 Danny Smith <dannysmith@users.sourceforge.net>
2031 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
2032 comparison and replacement of filenames.
2034 2004-10-19 H.J. Lu <hongjiu.lu@intel.com>
2037 * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
2038 option on linker script as the one for linker script.
2040 2004-10-16 Daniel Jacobowitz <dan@debian.org>
2042 * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
2043 (check_excluded_libs): New.
2044 (load_symbols): Call check_excluded_libs.
2045 * ldlang.h (add_excluded_libs): New prototype.
2046 * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
2047 (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
2048 (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
2049 * ld.texinfo (Command Line Variables): Document --exclude-libs.
2050 (Options Specific to i386 PE Targets): Remove --exclude-libs.
2052 2004-10-15 Alan Modra <amodra@bigpond.net.au>
2054 * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
2055 failing link script assert.
2057 * ldctor.c (ldctor_add_set_entry): Fix comment typo.
2059 2004-10-14 H.J. Lu <hongjiu.lu@intel.com>
2062 * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
2063 (SMALL_DATA_DTOR): Set.
2064 * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
2065 (SMALL_DATA_DTOR): Unset.
2066 * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
2067 after .data. If SMALL_DATA_DTOR is set, move .dtors after
2070 2004-10-14 Alan Modra <amodra@bigpond.net.au>
2073 * ldlang.h (lang_output_section_statement_type): Make "next" a
2074 struct lang_output_section_statement_struct *.
2075 (struct orphan_save): Move from elf32.em. Add "name" and "flags".
2076 (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
2077 * ldlang.c (lang_output_section_find_1): Adjust for changed
2078 output_section_statement "next".
2079 (strip_excluded_output_sections): Likewise.
2080 (lang_record_phdrs): Likewise.
2081 (lang_output_section_find_by_flags): New function.
2082 (output_prev_sec_find): Move from pe.em. Adjust iterator.
2083 (lang_insert_orphan): New function. Tail end of elf32.em's
2084 place_orphan merged with that from pe.em. Allow bfd_section to
2085 be placed first. New heuristic for placing new output section
2086 statement in existing script, and accompanying split of __start
2087 symbol alignment into a separate assignment to dot.
2088 (lang_add_section): Consistently use output->bfd_section rather than
2089 an alias, section->output_section.
2090 (map_input_to_output_sections): Rename overly long arg. Move
2091 initialization of data_statement output section to here..
2092 (lang_check_section_addresses): ..from here.
2093 (print_assignment): Correct printing of etree_assert.
2094 (print_all_symbols): Don't bomb if userdata is NULL.
2095 (IGNORE_SECTION): Rearrange.
2096 * emultempl/elf32.em (output_rel_find): Adjust interator.
2097 (output_prev_sec_find): Delete.
2098 (struct orphan_save): Delete.
2099 (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
2100 flags without creating a duplicate output section statement.
2101 Revise code holding history of various orphan section placements.
2102 Allow orphan sections to place before script specified output
2103 sections. Call lang_output_section_find_by_flags when placement
2104 by name fails. Use lang_insert_orphan.
2105 * emultempl/mmo.em (output_prev_sec_find): Delete.
2106 (struct orphan_save): Delete.
2107 (mmo_place_orphan): Revise code holding history of orphan placement.
2108 Allow orphans to place before existing output sections. Use
2110 * emultempl/pe.em (output_prev_sec_find): Delete.
2111 (struct orphan_save): Delete.
2112 (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
2115 2004-10-13 Mark Mitchell <mark@codesourcery.com>
2117 * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
2120 2004-10-13 Alan Modra <amodra@bigpond.net.au>
2123 * ldcref.c (check_section_sym_xref): Delete.
2124 (check_local_sym_xref): New function.
2125 (check_nocrossrefs): Adjust call.
2126 * emultempl/pe.em (struct orphan_save): Add os_tail.
2127 (place_orphan): Backport assorted fixes from elf32.em.
2129 2004-10-12 Bob Wilson <bob.wilson@acm.org>
2131 * emultempl/xtensaelf.em: Use ISO C90 formatting.
2133 2004-10-11 Jakub Jelinek <jakub@redhat.com>
2135 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
2136 getline for portability.
2138 * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
2139 (gld${EMULATION_NAME}_parse_ld_so_conf,
2140 gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
2141 (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
2143 2004-10-11 Alan Modra <amodra@bigpond.net.au>
2146 * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
2147 rejected when linking statically.
2149 2004-10-08 Daniel Jacobowitz <dan@debian.org>
2151 * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
2153 2004-10-07 Bob Wilson <bob.wilson@acm.org>
2155 * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
2156 assembler-generated longcall sequences. Describe new --size-opt
2158 * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
2159 * emultempl/xtensaelf.em (remove_section,
2160 replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
2161 elf_xtensa_after_open): New.
2162 (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
2163 OPTION_NO_LITERAL_MOVEMENT): Define.
2164 (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
2165 (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
2166 (PARSE_AND_LIST_OPTIONS): Add --size-opt.
2167 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
2168 OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
2169 (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
2170 * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
2171 * Makefile.am (eelf32xtensa.c): Update dependencies.
2172 * Makefile.in: Regenerate.
2174 2004-10-07 Jeff Baker <jbaker@qnx.com>
2176 * lexsup.c: Handle --warn-shared-textrel option.
2177 (ld_options): Restore alpha sorting of options.
2178 * ldmain.c (main): Initialise warn_shared_info field to FALSE.
2179 * ld.texinfo: Add documentation for --warn-shared-textrel.
2180 * NEWS: Added mention of --warn-shared-textrel option.
2182 2004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
2184 * emultempl/crxelf.em (disable_relaxation): Add.
2185 (crxelf_before_allocation): Enable --relax option by default.
2186 (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
2187 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
2188 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
2190 2004-10-04 H.J. Lu <hongjiu.lu@intel.com>
2192 * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
2193 --sort-section name|alignment.
2195 * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
2196 --sort-section name|alignment.
2198 * ld.h (sort_type): New enum.
2199 (wildcard_spec): Change the type of `sorted' to sort_type.
2201 * ldgram.y (SORT): Removed.
2202 (SORT_BY_NAME): Added.
2203 (SORT_BY_ALIGNMENT): Added.
2204 (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
2206 (input_section_spec_no_keep): Updated `sorted'.
2207 (statement): Replace SORT with SORT_BY_NAME.
2209 * ldlang.c (compare_section): New function to compare 2
2210 sections with different sorting schemes.
2211 (wild_sort): Updated. Use compare_section.
2212 (update_wild_statements): New function.
2213 (lang_process): Call update_wild_statements before
2214 map_input_to_output_sections.
2216 * ldlex.l (SORT_BY_NAME): New.
2217 (SORT_BY_ALIGNMENT): New.
2218 (SORT): Return SORT_BY_NAME.
2220 * ldmain.c (sort_section): New. Defined.
2221 (main): Initialize it to none.
2223 * lexsup.c (option_values): Add OPTION_SORT_SECTION.
2224 (ld_options): Add an entry for OPTION_SORT_SECTION.
2225 (parse_args): Handle OPTION_SORT_SECTION.
2227 * mri.c (mri_draw_tree): Updated `sorted'.
2229 2004-10-04 Jakub Jelinek <jakub@redhat.com>
2231 * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
2232 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
2234 (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
2235 and . as second argument.
2236 (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
2237 * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
2238 (fold_binary): Add it here. Insert padding to make relro_end
2239 COMMONPAGESIZE bytes aligned. For DATA_SEGMENT_ALIGN in
2240 exp_dataseg_relro_adjust phase just use previously computed
2242 * ldlang.c (lang_size_sections): Set exp_data_seg.base for
2243 relro_adjust here. Call lang_size_sections_1 once more if there
2244 was too big padding at DATA_SEGMENT_RELRO_END.
2245 * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
2247 2004-10-01 Paul Brook <paul@codesourcery.com>
2249 * emulparams/armelf.sh: Add unwinding table sections.
2251 2004-09-30 Filip Navara <navaraf@reactos.com>
2253 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
2254 correct base address for position independant executables.
2255 * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
2256 executables as DLLs.
2258 2004-09-30 Paul Brook <paul@codesourcery.com>
2260 * ld.texinfo: Document --target2=abs.
2261 * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
2263 2004-09-29 Nick Clifton <nickc@redhat.com>
2265 * scripttempl/xstormy16.sc: Only perform the assignments to the
2266 ROM region when not performing a relocatable link. The ROM region
2267 does not start at address 0, but the sections will.
2268 * Makefile.am: Fix linker script dependency for the generation of
2270 * Makefile.in: Regenerate.
2272 2004-09-18 Filip Navara <navaraf@reactos.com>
2274 * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
2275 emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
2276 emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
2278 * scripttempl/pe.sc: Make the virtual address and file offset synced if
2279 the alignment is lower than the target page size.
2281 2004-09-27 Filip Navara <navaraf@reactos.com>
2283 * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
2284 def_file_parse to handle pe_def_file if NULL and prevent crash with
2287 2004-09-27 Alan Modra <amodra@bigpond.net.au>
2289 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
2290 --emit-stub-syms automatically when --emit-relocs.
2292 2004-09-24 Paul Brook <paul@codeosurcery.com>
2294 * scripttempl/elf.sc: Keep .preinit_array, .init_array and
2295 .fini_array sections.
2297 2004-09-19 Andreas Schwab <schwab@suse.de>
2299 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
2300 base so that relro end is suitably aligned.
2302 2004-09-17 Paul Brook <paul@codesourcery.com>
2304 * ld.texinfo: Rename arm-specific section. Document --target*
2305 * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
2306 * emulparams/armelf_linux.sh: Ditto.
2307 * emulparams/armelf_nbsd.sh: Ditto.
2308 * emultempl/armelf.em: Set default for TARGET2_TYPE.
2309 (target2_type): New variable.
2310 (arm_elf_before_allocation): Don't pass target1_type.
2311 (arm_elf_create_output_section_statements): New function.
2312 (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
2313 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
2314 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
2315 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
2316 * emultempl/armelf_oabi.em (_before_allocation): Remove extra
2317 argument to bfd_elf32_arm_process_before_allocation.
2319 2004-09-17 Alan Modra <amodra@bigpond.net.au>
2321 * ldexp.c (fold_name): Update u.undef.next refs.
2322 * emultempl/pe.em: Likewise.
2323 * emultempl/sunos.em: Likewise.
2325 2004-09-17 Alan Modra <amodra@bigpond.net.au>
2327 * Makefile.am: Run "make dep-am".
2328 * Makefile.in: Regenerate.
2329 * config.in: Regenerate.
2330 * configure: Regenerate.
2331 * aclocal.m4: Regenerate.
2332 * po/ld.pot: Regenerate.
2334 2004-09-16 Tomer Levi <Tomer.Levi@nsc.com>
2336 * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
2340 2004-09-16 Alan Modra <amodra@bigpond.net.au>
2342 * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
2343 to bfd_elf32_arm_process_before_allocation call.
2345 2004-09-13 Paul Brook <paul@codesourcery.com>
2347 * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
2348 * emultempl/armelf.em: Use TARGET1_IS_REL. Add --target1-{rel,abs}.
2350 2004-09-07 H.J. Lu <hongjiu.lu@intel.com>
2352 * configure: Regenerated with autconfig 2.13.
2354 2004-09-07 Andreas Schwab <schwab@suse.de>
2356 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
2357 alignment before adjusting DATA_SEGMENT_RELRO_END.
2359 2004-09-06 Mark Mitchell <mark@codesourcery.com>
2361 * emulparams/armsymbian.sh: Use armbpabi script.
2362 * scripttempl/armbpabi.sc: New script.
2364 2004-09-02 Mark Mitchell <mark@codesourcery.com>
2366 * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
2367 (earmsymbian.c): New target.
2368 * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
2369 * Makefile.in: Regenerated.
2370 * aclocal.m4: Likewise.
2371 * configure: Likewise.
2372 * emulparams/armsymbian.sh: New file.
2374 2004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
2376 * scripttempl/elf32crx.sc: Edit file with comments.
2377 (.init): Add new section.
2379 (.ctor): Control the linkage order.
2382 2004-08-27 Nick Clifton <nickc@redhat.com>
2384 * emultempl/pe.em (after_open): Do not assume that either bfd is
2387 2004-08-26 Alan Modra <amodra@bigpond.net.au>
2389 * ldlang.c (lang_init): Don't compare with TRUE.
2391 2004-08-25 Dmitry Diky <diwil@spec.ru>
2393 * emulparams/msp430all.sh: Fix RAM sizes for all targets.
2394 * scripttempl/elf32msp430.sc: Add .profiler section definition.
2396 2004-08-24 H.J. Lu <hongjiu.lu@intel.com>
2398 * ldlang.c (wildcardp): Defined as a macro with strpbrk.
2400 2004-08-19 Mark Mitchell <mark@codesourcery.com>
2402 * configure.tgt (arm*-*-symbianelf*): New target.
2403 (arm*-*-eabi*): Likewise.
2405 2004-08-19 Jakub Jelinek <jakub@redhat.com>
2407 * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
2408 (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
2409 (OPTION_NON_OVERLAPPING_OPD): Define.
2410 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
2411 --non-overlapping-opd option.
2413 2004-08-18 Alan Modra <amodra@bigpond.net.au>
2416 * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
2417 was already on the undefs list.
2419 2004-08-17 Alan Modra <amodra@bigpond.net.au>
2421 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
2422 prefix the symbol field too.
2424 2004-08-13 Alan Modra <amodra@bigpond.net.au>
2426 * ldmain.c (link_callbacks): Remove "error_handler".
2427 * ldmisc.c: Include elf-bfd.h.
2428 (vfinfo): Sort comment. Handle %A. Use %A instead of
2429 bfd_get_section_indent.
2430 (error_handler): Delete.
2431 * ldmisc.h (error_handler): Delete declaration.
2433 2004-08-10 Alan Modra <amodra@bigpond.net.au>
2435 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
2436 ppc64_elf_restore_symbols.
2438 2004-08-09 Alan Modra <amodra@bigpond.net.au>
2440 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
2441 .toc is too large on relocatable linking.
2443 2004-08-09 Alan Modra <amodra@bigpond.net.au>
2445 * emultempl/ppc64elf.em (ppc_after_open): Delete.
2446 (LDEMUL_AFTER_OPEN): Don't define.
2448 2004-08-02 Stephane Carrez <stcarrez@nerim.fr>
2450 * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
2452 2004-08-01 Stephane Carrez <stcarrez@nerim.fr>
2454 * scripttempl/elfm68hc12.sc: Align text, rodata and data section
2457 2004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
2459 * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
2461 2004-07-26 Dmitry Diky <diwil@spec.ru>
2463 * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
2464 msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
2466 * configure.tgt: Likewise.
2467 * emulparams/msp430all.sh: Likewise.
2468 * Makefile.in: Regenerate.
2470 2004-07-23 Nick Clifton <nickc@redhat.com>
2472 * emultempl/elf32.em (_place_orphan): Use an already existing
2473 section name if that section does not have any flags set.
2475 2004-07-21 H.J. Lu <hongjiu.lu@intel.com>
2477 * ldlang.c (already_linked_hash_entry): Removed.
2478 (already_linked): Likewise.
2479 (already_linked_table): Likewise.
2480 (section_already_linked): Call bfd_section_already_linked.
2481 (lang_process): Replace already_linked_table_init with
2482 bfd_section_already_linked_table_init and check return. Replace
2483 already_linked_table_free with bfd_section_already_linked_table_free.
2485 2004-07-21 Nick Clifton <nickc@redhat.com>
2487 * ldlang.c (init_os): Make sure that the newly allocated userdata
2488 structure is zeroed out.
2490 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
2492 * NEWS: Mention the new --add-needed/--no-add-needed and
2493 --as-needed/--no-as-needed options.
2495 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
2497 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
2498 check the add_needed field.
2499 (dt_needed): New struct.
2500 (gld${EMULATION_NAME}_try_needed): Change the first argument
2501 to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
2502 bit in the file where the DT_NEEDED entry comes from.
2503 (gld${EMULATION_NAME}_search_needed): Change the second
2504 argument to a pointer to struct dt_needed.
2505 (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
2506 (gld${EMULATION_NAME}_after_open): Likewise.
2508 * ld.texinfo: Add --add-needed document.
2509 * ldlang.c (new_afile): Set p->add_needed.
2510 * ldlang.h (lang_input_statement_type): Add add_needed field.
2511 * ldmain.h (add_needed): Declare.
2512 * ldmain.c (add_needed): New global var.
2513 * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
2514 OPTION_NO_ADD_NEEDED.
2515 (ld_options): Likewise.
2516 (parse_args): Handle them.
2518 2004-07-13 Christof Petig <christof@petig-baender.de>
2520 * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
2521 for endian-ness of extracted addend.
2523 2004-07-13 Danny Smith <dannysmith@usesr.sourceforge.net>
2525 * pe-dll.c (auto_export): Filter on just the import prefix,
2526 "_imp_", not "_imp__".
2528 2004-07-09 Nick Clifton <nickc@redhat.com>
2530 * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
2532 2004-07-06 Tomer Levi <Tomer.Levi@nsc.com>
2534 * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
2535 (eelf32crx.c): New target.
2536 * Makefile.in: Regenerate.
2537 * configure.tgt: Handle crx-*-elf*.
2538 * emulparams/elf32crx.sh: New file.
2539 * emultempl/crxelf.em: New file.
2540 * scripttempl/elf32crx.sc: New file.
2541 * NEWS: Mention new target.
2543 2004-07-06 Nick Clifton <nickc@redhat.com>
2545 * Makefile.am: Add eshlsymbian.c.
2546 * Makefile.in: Regenerate.
2547 * configure.tgt: Add sh*-symbian-elf target.
2548 * emulparams/shlsymbian.sh: New file. Configure the
2549 sh-symbian-elf linker scripts.
2550 * scripttemp/elf32sh-symbian.sc: New file. Linker script
2551 template for the sh-symbian-elf target.
2553 2004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2555 * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
2556 * emulparams/hppalinux.sh: Likewise.
2557 * scripttempl/elf.sc: Place .plt just before .got when .plt is in
2558 data segment and PLT_BEFORE_GOT is defined.
2560 2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
2562 * ld.texinfo (WIN32): Document PE weak symbols.
2564 2004-07-02 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2566 * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
2568 2004-07-01 H.J. Lu <hongjiu.lu@intel.com>
2570 * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
2573 2004-06-29 Alan Modra <amodra@bigpond.net.au>
2575 * ldlang.c (lang_reset_memory_regions): Save last relax pass section
2578 2004-06-24 Alan Modra <amodra@bigpond.net.au>
2580 * ldlang.c (print_output_section_statement): Don't print size before
2582 (IGNORE_SECTION): Remove bfd arg. Update all callers.
2584 * ldexp.c (fold_name): .. See below.
2585 * ldlang.c (section_already_linked, print_output_section_statement,
2586 print_input_section, insert_pad, size_input_section,
2587 lang_check_section_addresses, lang_size_sections_1,
2588 lang_size_sections, lang_do_assignments_1, lang_set_startof,
2589 lang_one_common, lang_reset_memory_regions, lang_process,
2590 lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
2591 * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
2592 * pe-dll.c (process_def_file, generate_reloc): ..
2593 * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
2594 gld${EMULATION_NAME}_before_allocation): ..
2595 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
2596 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
2597 sh64_elf_${EMULATION_NAME}_after_allocation): ..
2598 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
2599 * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
2600 ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
2601 "size" instead of "_raw_size" and "_cooked_size". Expand
2602 bfd_section_size macro invocations.
2604 2004-06-22 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
2606 * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
2607 ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
2608 ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
2610 (.tls): Define ___tls_start__ and ___tls_end__.
2612 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
2614 * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
2616 2004-06-18 Adam Nemet <anemet@lnxw.com>
2618 * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
2619 * configure: Regenerate.
2621 2004-06-15 Jakub Jelinek <jakub@redhat.com>
2623 * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
2624 .gcc_except_table output sections lost accidentally with
2627 2004-06-15 Alan Modra <amodra@bigpond.net.au>
2629 * ldwrite.c (build_link_order): Use bfd_get_section_size
2630 instead of bfd_get_section_size_before_reloc or _raw_size.
2631 * pe-dll.c (process_def_file): Likewise.
2633 2004-06-14 Alan Modra <amodra@bigpond.net.au>
2635 From Richard Wirth <r.wirth@wirthware.de>
2636 * ldlang.c (lang_finish): Don't free lang_definedness_table.
2638 2004-05-29 Alan Modra <amodra@bigpond.net.au>
2640 * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
2641 (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
2643 2004-05-28 Alan Modra <amodra@bigpond.net.au>
2645 * ldlang.c: Formatting. Wrap long lines, expand bfd_get_section_flags
2647 * lexsup.c: Formatting. Wrap long lines.
2648 * ldwrite.c: Update copyright date.
2650 * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
2651 (output_section_callback): Nor SEC_KEEP here.
2652 (gc_section_callback): Twiddle SEC_EXCLUDE here.
2653 (lang_gc_wild): Delete. Fold into..
2654 (lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage
2656 (lang_process): Always call lang_gc_sections.
2657 (lang_place_orphans): Handle SEC_EXCLUDE sections.
2658 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
2661 2004-05-26 H.J. Lu <hongjiu.lu@intel.com>
2663 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
2664 SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
2665 * ldlang.c (lang_add_section): Likewise.
2667 2004-05-26 Alan Modra <amodra@bigpond.net.au>
2669 * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
2670 sections when doing a final link. Clear SEC_EXCLUDE when doing
2671 a relocable link, except for SEC_DEBUGGING sections.
2672 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
2673 same condition here to drop SEC_EXCLUDE orphan sections.
2675 2004-05-25 Alan Modra <amodra@bigpond.net.au>
2677 * ldlang.c (lang_process): Call bfd_merge_sections later, and
2678 only when not a relocatable link.
2679 (print_input_section): Handle SEC_EXCLUDE sections.
2680 (size_input_section): Don't update dot on SEC_EXCLUDE sections.
2681 (lang_do_assignments_1): Likewise.
2682 * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
2683 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
2684 * emultempl/hppaelf.em (build_section_lists): Likewise.
2685 * emultempl/ppc64elf.em (build_toc_list): Likewise.
2686 (build_section_lists): Likewise.
2688 2004-05-23 Andreas Schwab <schwab@suse.de>
2690 * ld.texinfo (Options): Fix typo in last change.
2692 2004-05-21 Andy Chittenden <achittenden@bluearc.com>
2694 * ld.h (ld_config_type): Add new field: hash_table_size.
2695 * ldmain.c: Initialise the new field to zero. If it is non-zero
2696 after parsing the linker's command line call
2697 bfd_hash_set_default_size.
2698 * lexsup.c (option_values): Add OPTION_HASH_SIZE.
2699 (ld_options): Add hash-size.
2700 (parse_args): Parse --hash-size option. Allow
2701 --reduce-memory-overheads to set the default hash table size as
2703 * ld.texinfo: Document the new switch. Also mention that
2704 --reduce-memory-overheads can affect the hash table size.
2705 * NEWS: Mention the new feature.
2707 2004-05-19 J"orn Rennecke <joern.rennecke@superh.com>
2709 * NEWS: Mention new linker map file generation and the
2710 --reduce-memory-overheads option.
2711 * ld.texinfo: Document --reduce-memory-overheads option.
2712 * ld.h (map_symbol_def): New struct.
2713 (struct user_section_struct, section_userdata_type): Rename to:
2714 (struct lean_user_section_struct, lean_section_userdata_type).
2715 (struct fat_user_section_struct, fat_section_userdata_type): New.
2716 (SECTION_USERDATA_SIZE): Define.
2717 (args_type): New member reduce_memory_overheads.
2718 * ldlang.c (map_obstack): New static variable.
2719 (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
2720 (lang_map): Unless command_line.reduce_memory_overheads is set,
2721 initialize lists of defined symbols for each section.
2722 (print_input_section): Unless command_line.reduce_memory_overheads
2723 is set, use print_all_symbols.
2724 (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
2725 * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
2726 * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
2727 (ld_options): Add entry for --reduce-memory-overheads.
2728 (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
2730 2004-05-19 Jakub Jelinek <jakub@redhat.com>
2732 * ldgram.y (sect_constraint): New.
2733 (ONLY_IF_RO, ONLY_IF_RW): New tokens.
2734 (section): Add sect_constraint. Pass additional argument
2735 to lang_enter_output_section_statement.
2736 * mri.c (mri_draw_tree): Pass additional argument to
2737 lang_enter_output_section_statement.
2738 * emultempl/pe.em (place_orphan): Likewise.
2739 (output_prev_sec_find): Disregard output section statements with
2741 * emultempl/mmo.em (output_prev_sec_find): Likewise.
2742 (mmo_place_orphan): Pass additional argument to
2743 lang_enter_output_section_statement.
2744 * emultempl/elf32.em (output_prev_sec_find): Disregard output section
2745 statements with constraint == -1.
2746 (place_orphan): Pass additional argument to
2747 lang_enter_output_section_statement.
2748 * ldlang.c (lang_enter_overlay_section): Likewise.
2749 (lang_output_section_find_1): New.
2750 (lang_output_section_find): Use it.
2751 (lang_output_section_statement_lookup_1): New.
2752 (lang_output_section_statement_lookup): Use it.
2753 (check_section_callback, check_input_sections): New.
2754 (map_input_to_output_sections): Check if all input sections
2755 are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
2756 (strip_excluded_output_sections): Disregard output section statements
2757 with constraint == -1.
2758 (lang_record_phdrs): Likewise.
2759 (lang_enter_output_section_statement): Add constraint argument.
2760 Use lang_output_section_statement_lookup_1.
2761 * ldlang.h (lang_output_section_statement_type): Add constraint
2762 and all_input_readonly fields.
2763 (lang_enter_output_section_statement): Adjust prototype.
2764 * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
2765 * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
2766 segment if all input sections are readonly.
2768 2004-05-19 Adam Nemet <anemet@lnxw.com>
2770 * scripttempl/i386lynx.sc: Remove file.
2772 2004-05-17 Bob Wilson <bob.wilson@acm.org>
2774 * ld.texinfo (Output Section Address): Correct subsection name.
2776 2004-05-17 Adam Nemet <anemet@lnxw.com>
2778 * configure.tgt (powerpc-*-lynxos* case): New case.
2779 * configure.host (i[3-7]86-*-lynxos* case): Remove case.
2780 * emulparams/ppclynx.sh: New file.
2781 * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
2782 * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
2783 (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
2784 (eppclynx.c): New rule.
2785 * Makefile.in: Regenerate.
2787 2004-05-13 Joel Sherrill <joel@oarcorp.com>
2789 * configure.tgt (or32-*-rtems*): Switch to elf and
2790 support versioned targets.
2792 2004-05-13 Nick Clifton <nickc@redhat.com>
2794 * po/fr.po: Updated French translation.
2796 2004-05-11 Jakub Jelinek <jakub@redhat.com>
2798 * genscripts.sh: Generate -z combreloc -z now -z relro scripts
2799 for binaries, -shared and -pie.
2800 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
2801 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
2802 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
2803 (OTHER_RELRO_SECTIONS): ... this.
2804 * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
2805 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
2806 -z relro and -z norelro.
2807 (gld${EMULATION_NAME}_list_options): Add it to usage.
2808 (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
2809 -z relro scripts when appropriate.
2810 * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
2811 Create separate .got.plt section if SEPARATE_GOTPLT.
2812 Move sections which are only written during relocation handling
2813 to the beginning of RW segment. If NO_SMALL_DATA, move .got
2814 before .data. Add DATA_SEGMENT_RELRO_END directive.
2815 Include OTHER_RELRO_SECTIONS.
2816 * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
2817 * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
2818 (fold_unary): Likewise.
2819 (fold_binary): Handle -z relro.
2820 * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
2821 exp_dataseg_relro_adjust phases. Add relro_end field.
2822 * ldmain.c (main): Initialize link_info.relro to FALSE.
2823 * ldlang.c (lang_size_sections): Handle -z relro.
2825 2004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
2827 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
2829 2004-05-07 J"orn Rennecke <joern.rennecke@superh.com>
2831 * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
2832 before printing it with %W.
2834 2004-05-07 Brian Ford <ford@vss.fsi.com>
2835 DJ Delorie <dj@redhat.com>
2837 * emultempl/pe.em (real_flags): New static.
2838 (OPTION_LARGE_ADDRESS_AWARE): New define.
2839 (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
2840 (gld_${EMULATION_NAME}_list_options): Likewise.
2841 (gld${EMULATION_NAME}_handle_option): Likewise.
2842 (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
2843 * ld.texinfo: Document it.
2846 2004-05-07 Brian Ford <ford@vss.fsi.com>
2848 * NEWS: Mention DWARF 2 support for i386pe.
2850 2004-05-05 Alexandre Oliva <aoliva@redhat.com>
2852 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
2855 2004-04-30 Alan Modra <amodra@bigpond.net.au>
2857 * ldlang.c (unique_section_p): Pass section parm, return true on
2859 (output_section_callback): Adjust.
2860 * ldlang.h (unique_section_p): Update prototype.
2861 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
2863 2004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
2865 * ld.texinfo (--gc-sections): Remove restriction for
2868 2004-04-29 Brian Ford <ford@vss.fsi.com>
2870 * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
2871 for DWARF 2/3. Update stab section's syntax.
2873 2004-04-29 Alan Modra <amodra@bigpond.net.au>
2875 * pe-dll.c: Revert changes accidentally committed 2004-03-08.
2876 (fill_edata): Correct pointer arithmetic.
2878 2004-04-21 Chris Demetriou <cgd@broadcom.com>
2880 * ld.texinfo: Remove MIPS --embedded-relocs documentation.
2881 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
2882 * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
2883 (EXTRA_EM_FILE): Use mipsecoff.em
2884 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
2885 (EXTRA_EM_FILE): Use mipsecoff.em
2886 * emultempl/mipsecoff.em: Restructure to be included as an
2887 extra emulation file.
2888 (check_sections, gld${EMULATION_NAME}_after_open)
2889 (gld${EMULATION_NAME}_after_allocation)
2890 (gld${EMULATION_NAME}_get_script)
2891 (ld_${EMULATION_NAME}_emulation): Remove
2892 (gld${EMULATION_NAME}_before_parse): Rename to...
2893 (mipsecoff_before_parse): This.
2894 (LDEMUL_BEFORE_PARSE): Define.
2895 * emultempl/mipself.em: Remove file.
2896 * scripttempl/mips.sc (.rel.sdata): Do not include in output.
2897 (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
2899 * Makefile.am: Remove dependencies on emultempl/mipself.em.
2900 * Makefile.in: Regenerate.
2902 2004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
2904 * ld.texinfo (synthesizing on H8/300): Information about linker
2905 relaxation support for bit manipulation instructions and system
2906 control instructions is added.
2908 2004-04-21 Hans-Peter Nilsson <hp@axis.com>
2910 * NEWS: Mention change in DEFINED semantics.
2912 2004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
2914 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
2915 (.data): Add KEEP for .gnu.linkonce.d.*personality*.
2916 (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
2918 2004-04-21 Ben Elliston <bje@au.ibm.com>
2920 * ld.texinfo (Simple Example): Add missing punctuation.
2922 2004-04-20 Chris Demetriou <cgd@broadcom.com>
2924 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
2926 2004-04-19 Jakub Jelinek <jakub@redhat.com>
2928 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
2931 2004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
2933 * scriptempl/pe.sc: Put numbered .ctors.* after .ctors
2934 with default priority. Likewise for dtors.
2936 2004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2938 * configure.host: Remove mips*-dec-bsd* target.
2939 * configure.tgt: Likewise.
2941 2004-04-08 Richard Sandiford <rsandifo@redhat.com>
2943 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
2944 * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
2945 * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
2946 * emultempl/irix.em: New file.
2947 * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
2949 * Makefile.in: Regenerate.
2951 2004-04-01 Paul Brook <paul@codesourcery.com>
2953 * emultempl/armelf.em (byteswap_code): Add.
2954 (arm_elf_before_allocation): Pass extra parameter.
2955 (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
2956 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
2957 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
2958 * emultempl/armelf_oabi.em: Pass extra parameter.
2959 * ld.texinfo: Document --be8.
2961 2004-03-30 Stan Shebs <shebs@apple.com>
2963 Remove long-obsolete MPW support.
2964 * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
2965 * Makefile.am (mpw): Remove file-presynthesizing actions.
2966 * Makefile.in: Likewise.
2967 * ldfile.c (slash): Remove MPW case.
2968 * ldlex.l [MPW]: Remove unused definition.
2970 2004-03-30 Galit Heller <Galit.Heller@nsc.com>
2972 * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
2973 (eelf32cr16c.c): New target.
2974 * Makefile.in: Regenerate.
2975 * configure.tgt: Handle cr16c-*-elf*.
2976 * emulparams/elf32cr16c.sh: New file.
2977 * scripttempl/elfcr16c.sc: Likewise
2978 * NEWS: Mention support for new target.
2980 2004-03-30 Nick Clifton <nickc@redhat.com>
2982 * po/sv.po: Updated Swedish translation.
2984 2004-03-27 Alan Modra <amodra@bigpond.net.au>
2986 * emultempl/elf32.em: Update new bfd_elf_discard_info name.
2987 * emultempl/hppaelf.em: Likewise.
2988 * emultempl/ppc64elf.em: Likewise.
2989 * emultempl/sh64elf.em: Likewise.
2991 2004-03-25 Alan Modra <amodra@bigpond.net.au>
2993 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
2994 size_dynamic_sections call.
2996 2004-03-23 Alan Modra <amodra@bigpond.net.au>
2999 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
3000 link_info.wrap_char.
3002 2004-03-20 H.J. Lu <hongjiu.lu@intel.com>
3004 * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
3005 or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
3007 2004-03-20 Alexandre Oliva <aoliva@redhat.com>
3009 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
3011 2004-03-19 Alan Modra <amodra@bigpond.net.au>
3013 * config.in: Regenerate.
3014 * po/ld.pot: Regenerate.
3016 2004-03-18 Alan Modra <amodra@bigpond.net.au>
3018 * ld.texinfo: Add --as-needed doco.
3019 * ldmain.c (as_needed): New global var.
3020 * ldmain.h (as_needed): Declare.
3021 * lexsup.c (option_values): Add OPTION_AS_NEEDED and
3022 OPTION_NO_AS_NEEDED.
3023 (ld_options): Likewise.
3024 (parse_args): Handle them.
3025 * ldlang.h (lang_input_statement_type): Add as_needed field.
3026 * ldlang.c (new_afile): Set p->as_needed.
3027 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
3028 (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
3029 (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
3031 * ldlang.c (open_input_bfds): Remove useless cast.
3032 (lang_do_assignments_1): Likewise.
3033 (lang_for_each_input_section): Delete.
3035 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
3037 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
3039 2004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
3041 * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
3042 private when building implib.
3044 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
3046 * ldlang.c (lang_add_section): Don't force SEC_LOAD on
3048 (IGNORE_SECTION): Ignore .tbss sections too.
3049 (lang_size_sections_1): .tbss sections do not advance dot.
3051 2004-03-01 Andreas Schwab <schwab@suse.de>
3053 * ld.texinfo (Options): Fix example for --wrap.
3055 2004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
3057 * pe-dll.c (fill_edata): Check that exported_symbol_sections is
3060 2004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
3062 * ldlang.c (lang_check): Use %P, not %E, in error message.
3064 2004-02-23 Nathan Sidwell <nathan@codesourcery.com>
3066 * ldlang.h (struct lang_output_section_state): Change processed
3068 * ldexp.c (check, invalid): Remove.
3069 (fold_name): Move valid_p assignments. Create undefined symbol
3070 when needed. Directly exampine section's processd flag.
3071 * ldlang.c (lang_output_section_statement_lookup): Adjust
3072 processed field init.
3073 (lang_size_sections_1): Allow LOADADDR when determining section's
3074 VMA. Adjust error message. Fold data statement's expr.
3075 (lang_size_sections): Correctly increment lang_statement_iteration.
3077 2004-02-23 Alan Modra <amodra@bigpond.net.au>
3079 * ldexp.c (fold_tree): Follow indirect symbols.
3081 2004-02-20 Nathan Sidwell <nathan@codesourcery.com>
3083 * ldgram.y (exp): Add two operand ALIGN.
3084 * ldexp.c (fold_binary): Add ALIGN_K case.
3085 * ld.texinfo (ALIGN): Document two operand version.
3087 2004-02-19 Nathan Sidwell <nathan@codesourcery.com>
3089 * ldlang.c (map_input_to_output_sections): Initialize sections
3090 mentioned in a data statement expression.
3091 (lang_do_assignments_1): Add data statement's expression's
3094 2004-02-18 Nathan Sidwell <nathan@codesourcery.com>
3096 * ldgram.y (statement_anywhere): Add assert rule.
3097 * ldlang.c (exp_init_os): Add assert case.
3099 2004-02-14 Andrew Cagney <cagney@redhat.com>
3101 * ldmain.c (remove_output): Call bfd_cache_close.
3103 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
3105 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
3106 .MIPS.content* and .MIPS.events* sections.
3108 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
3110 * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
3111 .note.gnu.arm.ident to after allocated sections. Mark its
3114 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
3116 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
3117 * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
3118 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
3119 * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
3120 * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
3122 2004-02-05 Nick Clifton <nickc@redhat.com>
3124 * emultempl/pe.em (_after_open): Fix typo in previous delta.
3126 2004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
3128 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
3130 2004-01-28 Alan Modra <amodra@bigpond.net.au>
3132 * genscripts.sh: Fix typo.
3134 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
3136 2004-01-24 Jakub Jelinek <jakub@redhat.com>
3138 * emulparams/elf64_ia64.sh: Put .rela.opd into
3139 OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
3141 2004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
3143 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
3144 * ld.texinfo (--omagic): Note that writable text section
3145 does not conform to published PE-COFF specs.
3146 (--enable-auto-import): Likewise.
3148 2004-01-15 Alan Modra <amodra@bigpond.net.au>
3150 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
3152 2004-01-13 Nick Clifton <nickc@redhat.com>
3154 * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
3155 which if true will prevent the LMA region being used as a
3156 replacement for a default VMA region.
3157 (lang_leave_output_section_statement): Pass extra parameter.
3158 (lang_leave_overlay): Likewise.
3159 * ld.texinfo (Output Section LMA): Document that the LMA
3160 region can be set to the VMA region if no VMA has been set.
3161 * ldlang.h (struct lang_output_section_phdr_list): Create a
3162 typedef for this type. Minor formatting fixes.
3164 2004-01-13 Nick Clifton <nickc@redhat.com>
3166 * ldlang.c (lang_size_sections_1): If dot is advanced, then
3167 assume that the section should be allocated.
3169 2004-01-13 Alan Modra <amodra@bigpond.net.au>
3171 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
3172 sections. Do ignore SEC_NEVER_LOAD sections.
3173 (lang_size_sections_1): Remove test made redundant with the above.
3175 2004-01-09 Alan Modra <amodra@bigpond.net.au>
3177 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
3178 program_header_size.
3180 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
3182 2003-11-28 Alexandre Oliva <aoliva@redhat.com>
3183 * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
3184 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
3185 * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
3186 (MAXPAGESIZE): Set to 64Kb.
3187 (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
3188 __ROFIXUP_END__. Don't map .rofixup.got any more.
3189 * emulparams/elf32frv.sh (NOP): Set.
3190 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
3191 * configure.tgt: Add frv-*-*linux*.
3192 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
3193 * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
3194 (eelf32frvfd.c): New.
3195 * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
3196 * emulparams/elf32frv.sh: Reverted previous two patches.
3197 * emulparams/elf32frvfd.sh: New.
3198 * Makefile.in: Rebuilt.
3199 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
3200 * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
3201 .rofixup.got to .rofixup.
3202 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
3203 * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
3204 (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
3206 2004-01-05 Jakub Jelinek <jakub@redhat.com>
3208 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
3209 * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
3211 2004-01-03 Alan Modra <amodra@bigpond.net.au>
3213 * ldexp.c (align_n): Make static.
3214 * ldexp.h (align_n): Delete declaration.
3215 * ldlang.h (lang_enter_output_section_statement): Remove
3217 * ldlang.c (lang_enter_output_section_statement): Likewise.
3218 (TO_ADDR, TO_SIZE): Define.
3219 (opb_shift): New var.
3220 (init_opb): New function.
3221 (print_input_section): Call init_opb and use TO_ADDR.
3222 (print_data_statement, print_reloc_statement): Likewise.
3223 (print_padding_statement): Likewise.
3224 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
3225 (lang_check_section_addresses): Likewise.
3226 (lang_size_sections_1): Likewise.
3227 (lang_do_assignments_1): Likewise.
3228 (lang_set_startof): Likewise.
3229 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
3230 (lang_process): Call init_opb.
3231 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
3232 (lang_enter_overlay_section): Adjust
3233 lang_enter_output_section_statement call.
3234 * ldgram.y: Likewise.
3235 * mri.c (mri_draw_tree): Likewise.
3236 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
3237 * emultempl/mmo.em (mmo_place_orphan): Likewise.
3238 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
3240 * ldfile.c (ldfile_set_output_arch): Add defarch param.
3241 * ldfile.h (ldfile_set_output_arch): Ditto.
3242 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
3243 ldfile_set_output_arch.
3244 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
3245 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
3246 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
3247 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
3248 * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
3249 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
3250 * ldgram.y: Adjust ldfile_set_output_arch call.
3251 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
3252 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
3253 * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
3254 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
3255 * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
3256 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
3257 * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
3259 2004-01-02 Bernardo Innocenti <bernie@develer.com>
3261 * configure.tgt: Add m68k-uClinux target.
3263 For older changes see ChangeLog-0203
3269 version-control: never