1 2005-05-11 Alan Modra <amodra@bigpond.net.au>
3 * ldgram.y: Add SPECIAL token.
4 (sect_constraint): Handle SPECIAL.
5 * ldlang.c (lang_output_section_find_1): Don't match SPECIAL.
6 (map_input_to_output_sections): Likewise.
7 * ldlex.l (SPECIAL): Define.
8 * emulparams/elf32ppc.sh (DATA_GOT, SDATA_GOT, SEPARATE_GOTPLT,
9 GOT, PLT, GOTPLT): Define.
10 * emultempl/ppc32elf.em (old_plt, old_got): New static vars.
11 (ppc_after_open): New function.
12 (PARSE_AND_LIST_PROLOGUE): Define OPTION_OLD_LPT and OPTION_OLD_GOT.
13 (PARSE_AND_LIST_LONGOPTS): Add "bss-plt" and "sdata-got".
14 (PARSE_AND_LIST_OPTIONS): Document them.
15 (PARSE_AND_LIST_ARGS_CASES): Handle them.
16 (LDEMUL_AFTER_OPEN): Define.
17 * scripttempl/elf.sc (PLT): Don't override existing define.
18 (DATA_GOT, SDATA_GOT): Define and use to enable alternate got
19 placement rather than using NO_SMALL_DATA. Emit GOTPLT for RELRO_NOW.
21 2005-05-10 Alan Modra <amodra@bigpond.net.au>
23 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_GOTPLT_END): Delete.
24 (DATA_SEGMENT_RELRO_END): Use SEPARATE_GOTPLT value.
25 (GOTPLT): Remove DATA_SEGMENT_RELRO_GOTPLT_END. Place after
26 DATA_SEGMENT_RELRO_END in script.
28 2005-05-09 H.J. Lu <hongjiu.lu@intel.com>
30 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
31 Don't use a removed section.
33 2005-05-09 H.J. Lu <hongjiu.lu@intel.com>
35 * ldmain.c (reloc_overflow): Use output_bfd if the symbol
36 is defined in the ABS section.
38 2005-05-06 H.J. Lu <hongjiu.lu@intel.com>
40 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
41 Put back !link_info.relocatable.
43 2005-05-06 H.J. Lu <hongjiu.lu@intel.com>
46 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
47 Just check link_info.executable.
49 2005-05-06 Nick Clifton <nickc@redhat.com>
51 * Update the address and phone number of the FSF organization in
52 the GPL notices in the following files:
53 aclocal.m4, deffile.h, deffilep.y, fdl.texi, ld.h, ldcref.c,
54 ldctor.c, ldctor.h, ldemul.c, ldexp.c, ldexp.h, ldfile.c,
55 ldfile.h, 20ldgram.y, ldint.texinfo, ldlang.c, ldlang.h, ldlex.h,
56 ldlex.l, ldmain.c, ldmain.h, ldmisc.c, ldmisc.h, ldver.c, ldver.h,
57 ldwrite.c, ldwrite.h, lexsup.c, mri.c, mri.h, pe-dll.c, pe-dll.h,
58 sysdep.h, emultempl/aix.em, emultempl/alphaelf.em,
59 emultempl/armcoff.em, emultempl/armelf.em, emultempl/beos.em,
60 emultempl/crxelf.em, emultempl/elf32.em, emultempl/generic.em,
61 emultempl/gld960.em, emultempl/gld960c.em, emultempl/hppaelf.em,
62 emultempl/ia64elf.em, emultempl/irix.em, emultempl/linux.em,
63 emultempl/lnk960.em, emultempl/m68hc1xelf.em,
64 emultempl/m68kcoff.em, emultempl/m68kelf.em,
65 emultempl/mipsecoff.em, emultempl/mmix-elfnmmo.em,
66 emultempl/mmixelf.em, emultempl/mmo.em, emultempl/needrelax.em,
67 emultempl/pe.em, emultempl/ppc32elf.em, emultempl/ppc64elf.em,
68 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em,
69 emultempl/vanilla.em, emultempl/xtensaelf.em
71 2005-05-05 H.J. Lu <hongjiu.lu@intel.com>
73 * scripttempl/elf.sc: Document the usage of __bss_start.
75 2005-05-05 Paul Brook <paul@codesourcery.com>
77 * Makefile.am: Add eelf_i386_vxworks.
78 * Makefile.in: Regenerate.
79 * configure.tgt: Make i?86-*-vxworks use targ_emul=elf_i386_vxworks.
80 * emulparams/elf_i386_vxworks.sh: New file.
81 * emulparams/vxworks.sh: New file.
82 * scripttempl/elf.sc: Add DATA_END_SYMBOLS and ETEXT_NAME.
84 2005-05-04 H.J. Lu <hongjiu.lu@intel.com>
86 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
87 Call _bfd_elf_provide_section_bound_symbols.
89 2005-05-04 Alan Modra <amodra@bigpond.net.au>
91 * ldemul.c: Include bfdlink.h.
92 (ldemul_before_allocation): Assume before_allocation is non-zero.
93 (before_allocation_default): Call strip_excluded_output_sections.
94 * ldlang.c (stripped_excluded_sections): New variable.
95 (lang_add_section): Build input section list for each output
96 section, attached via map_head and map_tail pointers.
97 (strip_excluded_output_sections): Make global. Traverse the
98 input section lists to find which output sections can go. Clear
99 link_order pointers and set stripped_excluded_sections.
100 (lang_process): Call strip_excluded_output_sections.
101 * ldlang.h (strip_excluded_output_sections): Declare.
102 * ldwrite.c: Update throuhout for link_order_head -> map_head change.
103 * emultempl/aix.em (before_allocation): Call
104 strip_excluded_output_sections.
105 * emultempl/armcoff.em (before_allocation): Likewise.
106 * emultempl/beos.em (before_allocation): Likewise.
107 * emultempl/linux.em (before_allocation): Likewise.
108 * emultempl/pe.em (before_allocation): Likewise.
109 * emultempl/sunos.em (before_allocation): Likewise.
110 * emultempl/elf32.em (before_allocation): Likewise. Call
111 bfd_elf_size_dynsym_hash_dynstr too.
112 * emultempl/lnk960.em (lnk960_before_allocation): Delete.
113 (ld_lnk960): Use before_allocation_default.
115 2005-05-02 H.J. Lu <hongjiu.lu@intel.com>
117 * emultempl/elf32.em (gld${EMULATION_NAME}_strip_empty_section):
118 Updated for bfd_section_list_remove change.
119 * ldlang.c (lang_insert_orphan): Likewise.
120 (strip_excluded_output_sections): Likewise.
121 (sort_sections_by_lma): New.
122 (lang_check_section_addresses): Sort the sections before
125 2005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
127 * configure.tgt: Add h8300*-*-rtemscoff.
128 Switch h8300*-*-rtems* to elf.
130 2005-04-29 Ben Elliston <bje@au.ibm.com>
132 * ldgram.y (lang_memory_region_type): Make static.
133 (ldgram_want_filename): Likewise.
134 * ldemul.c (ld_emulation): Make static.
135 * ldfile.h (ldfile_find_command_file): Remove extern.
136 * ldfile.c (ldfile_find_command_file): Make static.
137 * ldlang.h (unique_section_list): Remove extern declaration.
138 * ldlang.c (unique_section_list): Make static.
139 * mri.h (symbol_truncate): Remove extern declaration.
140 * mri.c (symbol_truncate): Make static.
141 (order, only_load, address, alias): Likewise.
142 (alignment, subalignment): Likewise.
144 2005-04-27 H.J. Lu <hongjiu.lu@intel.com>
146 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
147 Use the first SEC_ALLOC section which isn't SEC_READONLY or the
148 last SEC_ALLOC section if such a section doesn't exist.
150 2005-04-24 Mark Kettenis <kettenis@gnu.org>
152 * configure.host: Add *-*-openbsd support.
154 2005-04-15 Julian Brown <julian@codesourcery.com>
156 * ld.texinfo: Document --use-blx.
157 * emultempl/armelf.em (use_blx): New variable.
158 (arm_elf_create_output_section_statements): Communicate value of
160 (PARSE_AND_LIST_PROLOGUE): Add OPTION_USE_BLX.
161 (PARSE_AND_LIST_OPTIONS): Add --use-blx option.
162 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_USE_BLX case.
164 2005-04-14 Alan Modra <amodra@bigpond.net.au>
166 * Makefile.am (NO_WERROR): Define. Use instead of -Wno-error.
167 * configure.in: Include ../bfd/warning.m4 contents.
168 * Makefile.in: Regenerate.
169 * configure: Regenerate.
171 2005-04-12 Alan Modra <amodra@bigpond.net.au>
173 * Makefile.am: Run "make dep-am".
174 (ldgram.o, ldlex.o, deffilep.o): Add -Wno-error to command.
175 * Makefile.in: Regenerate.
176 * config.in: Regenerate.
178 2005-04-11 Alan Modra <amodra@bigpond.net.au>
180 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Ignore
181 as_needed libs that were not needed.
182 (gld${EMULATION_NAME}_check_needed): Likewise.
184 2005-04-07 Nick Clifton <nickc@redhat.com>
186 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h so that
187 ldfile.h can use the lang_input_statement type.
189 2005-04-06 Jakub Jelinek <jakub@redhat.com>
191 * ldlang.c: Formatting.
192 (walk_wild_consider_section): Remember return value from wildcardp.
193 (is_simple_wild): Use strcspn instead of 2 strpbrk calls and strlen.
194 (wild_spec_can_overlap): Use strcspn instead of strpbrk and strlen.
196 2005-04-06 Robert O'Callahan <rocallahan@novell.com>
198 * ld.h (lean_section_userdata_type): Remove.
199 (fat_section_userdata_type): Remove file field.
200 (SECTION_USERDATA_SIZE): Remove.
201 * ldlang.c (init_os): Eliminate initialization of unused
202 lean_section_userdata_type.
204 * ldlang.h (callback_t, walk_wild_section_handler_t): New
206 (struct lang_wild_statement_struct): Add walk_wild_section_handler
207 and handler_data fields.
208 * ldlang.c (callback_t): Removed.
209 (walk_wild_consider_section, walk_wild_section_general,
210 section_iterator_callback, find_section, is_simple_wild,
211 match_simple_wild, walk_wild_section_specs1_wild0,
212 walk_wild_section_specs1_wild1, walk_wild_section_specs2_wild1,
213 walk_wild_section_specs3_wild2, walk_wild_section_specs4_wild2,
214 wild_spec_can_overlap, analyze_walk_wild_section_handler): New
216 (lang_add_wild): Call analyze_walk_wild_section_handler.
217 (walk_wild_section): Renamed to walk_wild_section_general and
218 created a wrapper function.
219 (section_iterator_callback_data): New typedef.
221 2005-04-04 Nick Clifton <nickc@redhat.com>
223 * configure.in: Add a check for <unistd.h> providing a prototype
224 for getopt() which is compatible with the one in
225 include/getopt.h. If so then define HAVE_DECL_GETOPT.
226 * configure: Regenerate.
227 * config.in (HAVE_DECL_GETOPT): Add.
228 * ldemul.c: Include config.h
229 * lexsup.c: Likewise.
230 * emultempl/elf32.sc: Likewise.
232 2005-03-29 Alan Modra <amodra@bigpond.net.au>
234 * emultempl/elf32.em (gld${EMULATION_NAME}_layout_sections_again):
235 New function, extracted from static void gld${EMULATION_NAME}_finish.
236 (gld${EMULATION_NAME}_strip_empty_sections): Likewise.
237 (gld${EMULATION_NAME}_provide_init_fini_syms): Likewise.
238 * emultempl/ppc64elf.em: Revert last change.
239 (ppc_layout_sections_again): Use
240 gld${EMULATION_NAME}_layout_sections_again.
241 (ppc_finish): Don't call gld${EMULATION_NAME}_finish. Instead call
242 gld${EMULATION_NAME}_strip_empty_sections and
243 gld${EMULATION_NAME}_provide_init_fini_syms.
244 * emultempl/hppaelf.em: Similarly.
246 2005-03-29 Alan Modra <amodra@bigpond.net.au>
248 * emultempl/ppc64elf.em (need_laying_out): Delete. Remove all refs.
249 (ppc_finish): Don't call bfd_elf_discard_info.
250 * emultempl/hppaelf.em: Similarly.
252 2005-03-24 Nick Clifton <nickc@redhat.com>
254 * po/fr.po: Updated French translation.
256 2005-03-23 Mike Frysinger <vapier@gentoo.org>
257 Nick Clifton <nickc@redhat.com>
259 * configure.host: Accept any C library to accompany a GNU Linux
260 implementation, not just the GNU C library.
261 * configure.tgt: Likewise.
262 * emultempl/elf32.em: Likewise.
264 2005-03-22 H.J. Lu <hongjiu.lu@intel.com>
266 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols): New
267 (gld${EMULATION_NAME}_finish): Call
268 gld${EMULATION_NAME}_provide_bound_symbols to provide
269 __preinit_array_start, __preinit_array_end, __init_array_start,
270 __init_array_end, __fini_array_start and __fini_array_end.
272 * scripttempl/elf.sc: Don't provide __preinit_array_start,
273 __preinit_array_end, __init_array_start, __init_array_end,
274 __fini_array_start nor __fini_array_end.
276 2005-03-23 Alan Modra <amodra@bigpond.net.au>
278 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Set
279 SEC_EXCLUDE on .gnu.warning sections.
281 2005-03-22 Alan Modra <amodra@bigpond.net.au>
283 * scripttempl/elf.sc (SBSS): Don't provide sbss start and end syms.
285 2005-03-21 Alan Modra <amodra@bigpond.net.au>
287 * emultempl/ppc32elf.em (gld${EMULATION_NAME}_after_allocation): New
289 (LDEMUL_AFTER_ALLOCATION): Define.
291 2005-03-21 Alan Modra <amodra@bigpond.net.au>
293 * emultempl/ppc64elf.em (ppc_finish): Rename from
294 gld${EMULATION_NAME}_finish. Call gld${EMULATION_NAME}_finish.
295 (LDEMUL_FINISH): Update.
296 * emultempl/hppaelf.em (hppaelf_finish, LDEMUL_FINISH): Likewise.
297 * emultempl/m68hc1xelf.em (m68hc11elf_finish, LDEMUL_FINISH): Likewise.
299 2005-03-18 Julian Brown <julian@codesourcery.com>
301 * scripttempl/armbpapi.sc (.rel.dyn): Add .rel.init_array,
303 (.rela.dyn): Add .rela.init_array, .rela.fini_array.
304 (SECTIONS): Add .rel.other, .rela.other, .reli.other after PLT relocs.
306 2005-03-18 H.J. Lu <hongjiu.lu@intel.com>
308 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Don't set
309 bfd_section when removing unused empty output sections for
310 non-relocatable link.
312 2005-03-19 Alan Modra <amodra@bigpond.net.au>
314 * ldlang.c (lang_insert_orphan): Use old section_tail rather than
315 traversing the bfd section list to find pointer to new section.
317 2005-03-18 Alan Modra <amodra@bigpond.net.au>
319 * scripttempl/elf.sc: When CREATE_SHLIB, put .sdata2 and .sbss2
320 input sections into .sdata and .sbss output respectively.
322 2005-03-16 David Heine <dlheine@tensilica.com>
323 Bob Wilson <bob.wilson@acm.org>
325 * ldlang.c (IGNORE_SECTION): Remove check for zero size.
326 (lang_check_section_addresses): Ignore zero size sections here.
328 2005-03-16 H.J. Lu <hongjiu.lu@intel.com>
330 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Remove
331 unused empty output sections for non-relocatable link.
333 * ld.h (args_type): Remove gc_sections.
335 * ldlang.c (lang_mark_used_section): New.
336 (lang_gc_sections): Use link_info.gc_sections instead of
337 command_line.gc_sections.
338 * ldmain.c (main): Likewise.
339 * lexsup.c (parse_args): Likewise.
340 * ldlang.c (lang_process): Call lang_mark_used_section.
342 * ldmain.c (main): Initialize link_info.gc_sections to FALSE.
344 2005-03-16 Nick Clifton <nickc@redhat.com>
345 Ben Elliston <bje@au.ibm.com>
347 * configure.in (werror): New switch: Add -Werror to the
348 compiler command line. Enabled by default. Disable via
350 * configure: Regenerate.
352 2005-03-16 Alan Modra <amodra@bigpond.net.au>
354 * emulparams/elf32ppclinux.sh (OTHER_READWRITE_SECTION): Delete.
355 (OTHER_RELRO_SECTIONS): Set this instead.
357 2005-03-15 Nick Clifton <nickc@redhat.com>
359 * NEWS: Add cutoff for changes in 2.16 release.
361 2005-03-15 Mikkel Krautz <krautz@gmail.com>
363 * configure.tgt (x86_64-elf): Add target.
365 2005-03-15 Alan Modra <amodra@bigpond.net.au>
367 * po/es.po: Commit new Spanish translation.
369 2005-03-14 Alan Modra <amodra@bigpond.net.au>
371 * ldexp.c (exp_fold_tree): Ensure return value is initialized.
372 Tidy etree_assert case.
374 2005-03-14 Alan Modra <amodra@bigpond.net.au>
376 * po/tr.po: Commit new Turkish translation.
378 2005-03-11 Daniel Jacobowitz <dan@codesourcery.com>
380 * Makefile.am: Remove references to em68klynx.o and esparclynx.o.
381 * Makefile.in: Regenerated.
382 * emulparams/m68klynx.sh, emulparams/sparclynx.sh: Remove.
384 2005-03-07 Nick Clifton <nickc@redhat.com>
386 * po/fr.po: Updated translation.
388 2005-03-05 Alan Modra <amodra@bigpond.net.au>
390 * po/ld.pot: Regenerate.
392 2005-03-02 Jan Beulich <jbeulich@novell.com>
394 * ldmain.c (remove_output): Use unlink_if_ordinary instead of unlink.
395 * pe-dll.c (pe_dll_generate_implib): Likewise.
397 2005-02-24 Ben Elliston <bje@au.ibm.com>
399 * ldfile.c: Remove GNU960 conditional code.
400 * emultempl/gld960.em: Likewise.
401 * emultempl/gld960c.em: Likewise.
402 * emultempl/lnk960.em: Likewise.
404 2005-02-24 Nick Clifton <nickc@redhat.com>
406 * emultempl/lnk960.em (lnk960_before_parse): Remove redundant
407 empty string from calls to concat.
409 2005-02-23 Nick Clifton <nickc@redhat.com>
411 * emultempl/lnk960.em (lnk960_before_parse): Terminate list of
412 arguments passed to concat() with a NULL.
414 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h because they
415 define types needed by ldfile.h
417 2005-02-23 Alan Modra <amodra@bigpond.net.au>
419 * pe-dll.c: Warning fixes.
420 * emultempl/sunos.em: Likewise.
422 2005-02-22 Daniel Jacobowitz <dan@codesourcery.com>
424 * ldlang.c (section_already_linked): Don't call
425 bfd_section_already_linked for dynamic objects.
427 2005-02-22 Alan Modra <amodra@bigpond.net.au>
429 * ldexp.c: Warning fixes.
430 * ldwrite.c: Likewise.
431 * emultempl/elf32.em: Likewise.
433 2005-02-21 H.J. Lu <hongjiu.lu@intel.com>
435 * ldlang.c (lang_add_section): Check SEC_TIC54X_BLOCK for TI
437 (lang_size_sections_1): Check SEC_COFF_SHARED_LIBRARY for COFF
438 and ECOFF output only.
440 2005-02-21 Alan Modra <amodra@bigpond.net.au>
442 * config.in: Regenerate.
443 * configure: Regenerate.
445 2005-02-17 Zack Weinberg <zack@codesourcery.com>
447 * ldexp.c (assigning_to_dot): New global flag.
448 (fold_name): If assigning_to_dot is true, object immediately to
450 (exp_fold_tree): Set and clear assigning_to_dot around the
451 recursive call to exp_fold_tree to process the right-hand side
452 of an assignment to the location counter.
454 2005-02-17 Paul Brook <paul@codesourcery.com>
456 * scripttempl/armbpabi.sc: Add dummy name to version block.
458 2005-02-17 Alan Modra <amodra@bigpond.net.au>
460 * ldexp.c (new_abs): Init new.str.
462 2005-02-15 Mark Mitchell <mark@codesourcery.com>
464 * configure.in (AC_CHECK_FUNCS): Add glob.
465 * configure: Regenerated.
466 * emultempl/elf32.em (<glob.h>): Do not include if HAVE_GLOB is
468 (gld${EMULATION_NAME}_parse_ld_so_conf_include): Do not use glob
469 if HAVE_GLOB is not defined.
471 2005-02-16 Kaz Kojima <kkojima@rr.iij4u.or.jp>
473 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define
474 lib_path if NATIVE is yes.
476 2005-02-16 Alan Modra <amodra@bigpond.net.au>
478 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Make
479 an error creating fake bfd fatal.
480 (ppc_before_allocation): Continue on after errors.
481 (gld${EMULATION_NAME}_finish): Likewise.
483 2005-02-15 Nick Clifton <nickc@redhat.com>
485 * ldlex.l (YY_NO_UNPUT): Define so that the yy_unput function is
486 not declared. It is not used and its presence causes a compile
489 2005-02-11 Zack Weinberg <zack@codesourcery.com>
491 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed):
492 If st.st_ino is zero, do not treat the library as a duplicate.
494 2005-02-10 Jakub Jelinek <jakub@redhat.com>
496 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
497 Set BFD_LINKER_CREATED on the stubs bfd.
498 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
501 2005-02-08 Mark Mitchell <mark@codesourcery.com>
503 * scripttempl/armbpabi.sc (VERSION): Make special section symbols
505 (Image$$ER_RO$$Base): Define whenever RELOCATING.
506 (Image$$ER_RO$$Limit): Likewise.
507 (SHT$$INIT_ARRAY$$Base): Likewise.
508 (SHT$$INIT_ARRAY$$Limit): Likeise.
510 2005-02-10 Ben Elliston <bje@au.ibm.com>
512 * emultempl/beos.em: Remove #if 0 and #if 1 blocks.
514 2005-02-08 Richard Sandiford <rsandifo@redhat.com>
516 * configure.tgt (mips64*el-*-linux-gnu*): Define targ_extra_libpath
517 to include o32 and n64 emulations.
518 (mips64*-*-linux-gnu*): Likewise.
520 2005-02-08 Hans-Peter Nilsson <hp@axis.com>
522 * ldmain.c (warning_callback, warning_find_reloc): Prepend
523 "warning: " to warning messages.
525 2005-02-04 Alan Modra <amodra@bigpond.net.au>
527 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't
528 look up symbol for etree_provide here.
530 2005-02-02 Daniel Jacobowitz <dan@codesourcery.com>
532 * emulparams/elf32bmip.sh (TEXT_DYNAMIC): Always set.
534 2005-02-01 Edward Welbourne <eddy@opera.com>
535 Nick Clifton <nickc@redhat.com>
537 * ld.texinfo (Source Code Reference): New node describing how to
538 access linker script defined variables from source code.
540 2005-02-01 Alan Modra <amodra@bigpond.net.au>
542 * ld.texinfo: Clarify --as-needed operation.
544 2005-01-31 Andrew Cagney <cagney@gnu.org>
546 * configure: Regenerate to track ../gettext.m4.
548 2005-01-31 Nick Clifton <nickc@redhat.com>
550 * ldver.c (ldversion): Bump reported copyright date to 2005.
552 2005-01-31 Nick Clifton <nickc@redhat.com>
554 * configure.tgt: Remove obsolete targets m68k-lynxos and
557 2005-01-28 Julian Brown <julian@codesourcery.com>
559 * emultempl/armelf.em (fix_v4bx): New variable.
560 (arm_elf_create_output_section_statements): Communicate fix_v4bx flag
562 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_FIX_V4BX.
563 (PARSE_AND_LIST_LONGOPTS): Add option --fix-v4bx.
564 (PARSE_AND_LIST_OPTIONS): Add option --fix-v4bx.
565 (PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX.
566 * NEWS: Mention --fix-v4bx.
567 * ld.texinfo: Document --fix-v4bx.
569 2005-01-25 Mark Mitchell <mark@codesourcery.com>
571 * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Define, so
572 as to include .ARM.exidx$${Base,Limit}.
573 * ld/scripttempl/armbpabi.sc: Move .plt to end of text segment.
574 Define IMAGE$$ER_RO$${Base,Limit} and SHT$$INIT_ARRAY$${Base,Limit}.
575 Put .init_array, .fini_array, etc. into the read-only data
578 2005-01-25 Alan Modra <amodra@bigpond.net.au>
580 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Formatting.
581 (gld${EMULATION_NAME}_after_open): Ignore needed libs if they were
582 only needed by an as-needed lib that didn't get linked.
584 2005-01-23 Alan Modra <amodra@bigpond.net.au>
586 * ld.texinfo (Output Section Keywords <CONSTRUCTORS>): Correct
587 __DTOR_LIST__ description.
589 2005-01-23 Alan Modra <amodra@bigpond.net.au>
591 * ld.texinfo (Location Counter <dot outside sections>): Document
592 effects of orphan section placement, and ". = ." workaround.
593 * Makefile.in: Regenerate.
595 2005-01-22 Richard Sandiford <rsandifo@redhat.com>
597 * emulparams/elf32bmip.sh (OTHER_GOT_SECTIONS): Add ". = .;".
598 * emulparams/elf32bmipn32-defs.sh (OTHER_GOT_SECTIONS): Likewise.
600 2005-01-21 Jakub Jelinek <jakub@redhat.com>
602 * ldgram.y (AS_NEEDED): New token.
603 (input_list): Handle AS_NEEDED ( input_list ).
604 * ldlex.l (AS_NEEDED): Add.
605 * ld.texinfo: Document AS_NEEDED ().
606 * NEWS: Mention AS_NEEDED ().
608 2005-01-21 Ben Elliston <bje@au.ibm.com>
610 * ldlang.c (lang_reasonable_defaults): Remove.
611 (lang_process): Don't call lang_reasonable_defaults.
613 * ldexp.c (exp_assop): Remove #if 0'd code.
614 (exp_print_tree): Likewise.
615 * ldlang.c (lang_memory_region_lookup): Likewise.
616 (open_output): Likewise.
617 (lang_do_assignments_1): Likewise.
618 (lang_place_orphans): Likewise.
619 (lang_enter_output_section_statement): Likewise.
620 (lang_reasonable_defaults): Likewise.
621 * ldlang.h (struct lang_input_statement_struct): Likewise.
622 * mri.c (mri_draw_tree): Likewise.
623 (mri_load): Likewise.
624 * pe-dll.c (generate_reloc): Likewise.
625 (make_import_fixup_entry): Likewise.
627 * emultempl/beos.em (set_pe_subsystem): Likewise.
628 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
629 * emultempl/pe.em: Likewise.
630 * emultempl/xtensaelf.em (xtensa_colocate_literals): Likewise.
632 2005-01-20 Daniel Jacobowitz <dan@codesourcery.com>
634 * Makefile.am (ALL_EMULATIONS): Add earmelfb_linux_eabi.o.
635 (earmelfb_linux_eabi.c): New target.
636 * Makefile.in: Regenerated.
637 * configure.tgt (arm*b-*-linux-gnueabi): New target.
638 * emulparams/armelfb_linux_eabi.sh: New file.
640 2005-01-20 Nick Hudson <skrll@netbsd.org>
643 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
644 Handle bfd_elf32_hppa_nbsd_vec.
646 2005-01-19 Richard Sandiford <rsandifo@redhat.com>
648 * ldmain.h (ld_sysroot): Change type to a constant string.
649 * ldmain.c (ld_sysroot): Likewise.
650 (get_relative_sysroot, get_sysroot): New functions, adding command-line
651 support for changing the sysroot.
652 (main): Call the new functions.
653 * lexsup.c (OPTION_SYSROOT): New.
654 (ld_options): Add --sysroot.
655 (parse_args): Add a dummy handler for it.
656 * ld.texinfo (--sysroot): Document.
657 * NEWS: Mention the new --sysroot option.
659 2005-01-18 Alan Modra <amodra@bigpond.net.au>
661 * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
662 (lang_place_orphans): Don't abort on just_syms_flag, instead call
665 2005-01-16 Danny Smith <dannysmith@users.sourceforge.net>
667 * defilep.y (def_name, def_library): Combine into...
668 (def_image_name): New function. Strip name to basename,
671 2005-01-12 Mark Kettenis <kettenis@gnu.org>
673 * configure.in: Be sure to invoke config.sub using the shell.
674 * configure: Regenerate.
676 2005-01-11 Alan Modra <amodra@bigpond.net.au>
678 * configure.host: Correct sed patterns for last change.
680 2005-01-10 Nick Clifton <nickc@redhat.com>
683 * ldmisc.c (vfinfo): Add an extra argument: is_warning. Use this
684 to determine whether config.make_executable should be set to FALSE in
685 conjunction with config.fatal_warnings.
686 (info_msg, minfo, lfinof): Pass FALSE as the extra argument.
687 (einfo): Pass TRUE as the extra argument.
689 2005-01-10 Greg Schaffer <gschafer@zip.com.au>
691 * configure.host (linux targets): Use "${CC} -dumpspecs" instead
692 of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0.
693 (ia64-*-aix): Delete - this target is obsolete, and would be
694 broken by this patch.
696 2005-01-06 Eric Botcazou <ebotcazou@libertysurf.fr>
698 * configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*.
699 (sparc64-sun-solaris2*): New host.
701 2005-01-06 Paul Brook <paul@codesourcery.com>
703 * Makefie.am: Add earmelf_vxworks.
704 * Makefile.in: Regenerate.
705 * configure.tgt: Make arm-*-vxworks a separate case.
706 * emulparams/armelf_vxworks.sh: New function.
708 2005-01-06 Alan Modra <amodra@bigpond.net.au>
710 * emultempl/ppc64elf.em (no_multi_toc): New var.
711 (gld${EMULATION_NAME}_finish): Pass to ppc64_elf_setup_section_lists.
712 (OPTION_NO_MULTI_TOC): Define.
713 (PARSE_AND_LIST_LONGOPTS): Add --no-multi-toc support.
714 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
716 2005-01-05 Nick Clifton <nickc@redhat.com>
719 * ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
720 Standard's specification for parsable error messages.
722 2005-01-04 Paul Brook <paul@codesourcery.com>
724 * Makefile.am: Correct dependency for earmsymbian.c.
725 * Makefile.in: Regenerate.
727 2004-12-28 Danny Smith <dannysmith@users.sourceforge.net>
729 * emultempl/pe.em (set_pe_subsystem): Change second arg to
730 lang_add_entry to FALSE.
732 2004-12-23 Nick Clifton <nickc@redhat.com>
735 * emulparams/shelf.sh (.stack): Increase stack start address to
738 2004-12-20 Nick Clifton <nickc@redhat.com>
740 * ldmain.c (main): Issue an error message if -static and -shared
743 2004-12-17 Jakub Jelinek <jakub@redhat.com>
745 * ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
746 * ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
747 * ldlang.c (lang_size_sections): Use them to avoid wasting virtual
748 address space at DATA_SEGMENT_ALIGN. Fix computation of expected
749 PT_GNU_RELRO segment end.
751 2004-12-14 P.J. Darcy <darcypj@us.ibm.com>
753 * configure.tgt: Add s390x-ibm-tpf support.
755 2004-12-16 Martin Kögler <mkoegler@auto.tuwien.ac.at>
757 * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
760 2004-12-07 Ben Elliston <bje@gnu.org>
762 * ldemul.h: Forward declare struct option.
764 2004-12-01 Danny Smith <dannysmith@users.sourceforge.net>
766 * scripttempl/pe.sc (.data): Add .jcr subsection.
768 2004-11-30 Paul Brook <paul@codesourcery.com>
770 * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
772 2004-11-30 Tero Niemela <tero_niemela@yahoo.com>
774 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
775 * Makefile.in: Regenerate.
777 2004-11-26 Melissa Mears <asterisk@graces.dricas.com>
779 * emultempl/pe.em: Add --subsystem:xbox as well as
781 * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
782 and numeric subsystems.
784 2004-11-24 Alan Modra <amodra@bigpond.net.au>
786 * ldexp.c (fold_name): Correct PR 338 fix.
788 2004-11-19 Mark Mitchell <mark@codesourcery.com>
790 * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
791 (earmelf_linux_eabi.c): New target.
792 * configure.tgt (arm*-*-linux-gnueabi): Handle it.
793 * emulparams/armelf_linux_eabi.sh: New file.
794 * Makefile.in: Regenerated.
796 2004-11-19 Nick Clifton <nickc@redhat.com>
799 * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
800 LENGTH fields in the MEMORY command, to explicitly state that
801 symbols cannot be used in their expressions.
803 2004-11-19 Jon Beniston <jon@beniston.com>
805 * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
806 * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
807 * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
808 which return the length and origin of a memory.
809 * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
810 * NEWS: Mention support for ORIGIN and LENGTH operators.
812 2004-11-17 Daniel Jacobowitz <dan@codesourcery.com>
814 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
815 a dynamic object for stubs.
817 2004-11-04 Paul Brook <paul@codesourcery.com>
819 * ld.texinfo: Document --default-imported-symver.
820 * ldmain.c (main): Set link_info.default_imported_symver.
821 * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
822 (ld_options): Add --default-imported-symver.
823 (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
825 2004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
826 Vineet Sharma <vineets@noida.hcltech.com>
828 * Makefile.am: Add entries for new maxq-coff target.
829 * Makefile.in: Regenerate.
830 * configure.tgt: Add support for maxq.
831 * emulparams/maxqcoff.sh: New File.
832 * scripttempl/maxqcoff.sc: New linker script for target maxq.
833 * NEWS: Mention the new target.
835 2004-11-04 Daniel Jacobowitz <dan@debian.org>
837 * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
838 (earmelf_oabi.c): Remove rule.
839 * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
840 * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
841 * Makefile.in: Regenerated.
843 2004-11-04 Hans-Peter Nilsson <hp@axis.com>
845 * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
846 * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
848 (INIT_END): Remove emitted "jump [sp+]".
851 2004-11-04 Alan Modra <amodra@bigpond.net.au>
853 * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
854 (no_opd_opt, no_toc_opt): New static vars.
855 (ppc_before_allocation): Don't edit opt if no_opd_opt. Call
857 (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
858 (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
859 (PARSE_AND_LIST_OPTIONS): Describe new options.
860 (PARSE_AND_LIST_ARGS_CASES): Handle them.
862 2004-10-27 Nick Clifton <nickc@redhat.com>
864 * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
865 parameter to invocation of lang_section_start.
866 * emultempl/aix.em (_handle_option): Likewise.
868 * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
869 eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
870 * Makefile.in: Regenerate.
872 2004-10-26 Mark Mitchell <mark@codesourcery.com>
874 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
875 __exidx_{start,end} when not relocating.
877 2004-10-25 Mark Mitchell <mark@codesourcery.com>
879 * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
880 * ldexp.h (segment_type): New type.
881 (segments): New variable.
882 * ldexp.c (segments): New variable.
883 (exp_print_token): Handle SEGMENT_START.
884 (fold_binary): Likewise.
885 * ldgram.y (SEGMENT_START): Declare it as a token.
886 (exp): Handle SEGMENT_START.
887 * ldlang.h (lang_address_statement_type): Add segment field.
888 (lang_section_start): Change prototype.
889 * ldlang.c (map_input_to_output_sections): Do not process section
890 assignments if a corresponding SEGMENT_START has already been
892 (lang_section_start): Add segment parameter.
893 * ldlex.l (SEGMENT_START): Add it.
894 * lexsup.c (seg_segment_start): New function.
895 (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
896 * ld.texinfo (SEGMENT_START): Document it.
897 * emulparams/armsymbian.sh (EMBEDDED): Set it.
898 * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
899 base addresses. Do not map relocations.
900 * NEWS: Mention SEGMENT_START.
902 2004-10-26 Paul Brook <paul@codesourcery.com>
904 * ld.texinfo: Document --default-symver.
905 * ldmain.c (main): Set link_info.create_default_symver.
906 * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
907 (ld_options): Add default-symver.
908 (parse_args): Handle OPTION_DEFAULT_SYMVER.
910 2004-10-24 Danny Smith <dannysmith@users.sourceforge.net>
912 * pe-dll.c (process_def_file): Don't export all symbols by default if
913 building a position-independent executable.
915 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
918 * ldmain.c (reloc_overflow): Accept a pointer to struct
919 bfd_link_hash_entry. Report symbol location for relocation
922 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
924 * genscripts.sh (libpath.exp): Really generate for first
927 2004-10-19 Danny Smith <dannysmith@users.sourceforge.net>
929 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
930 comparison and replacement of filenames.
932 2004-10-19 H.J. Lu <hongjiu.lu@intel.com>
935 * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
936 option on linker script as the one for linker script.
938 2004-10-16 Daniel Jacobowitz <dan@debian.org>
940 * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
941 (check_excluded_libs): New.
942 (load_symbols): Call check_excluded_libs.
943 * ldlang.h (add_excluded_libs): New prototype.
944 * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
945 (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
946 (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
947 * ld.texinfo (Command Line Variables): Document --exclude-libs.
948 (Options Specific to i386 PE Targets): Remove --exclude-libs.
950 2004-10-15 Alan Modra <amodra@bigpond.net.au>
952 * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
953 failing link script assert.
955 * ldctor.c (ldctor_add_set_entry): Fix comment typo.
957 2004-10-14 H.J. Lu <hongjiu.lu@intel.com>
960 * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
961 (SMALL_DATA_DTOR): Set.
962 * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
963 (SMALL_DATA_DTOR): Unset.
964 * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
965 after .data. If SMALL_DATA_DTOR is set, move .dtors after
968 2004-10-14 Alan Modra <amodra@bigpond.net.au>
971 * ldlang.h (lang_output_section_statement_type): Make "next" a
972 struct lang_output_section_statement_struct *.
973 (struct orphan_save): Move from elf32.em. Add "name" and "flags".
974 (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
975 * ldlang.c (lang_output_section_find_1): Adjust for changed
976 output_section_statement "next".
977 (strip_excluded_output_sections): Likewise.
978 (lang_record_phdrs): Likewise.
979 (lang_output_section_find_by_flags): New function.
980 (output_prev_sec_find): Move from pe.em. Adjust iterator.
981 (lang_insert_orphan): New function. Tail end of elf32.em's
982 place_orphan merged with that from pe.em. Allow bfd_section to
983 be placed first. New heuristic for placing new output section
984 statement in existing script, and accompanying split of __start
985 symbol alignment into a separate assignment to dot.
986 (lang_add_section): Consistently use output->bfd_section rather than
987 an alias, section->output_section.
988 (map_input_to_output_sections): Rename overly long arg. Move
989 initialization of data_statement output section to here..
990 (lang_check_section_addresses): ..from here.
991 (print_assignment): Correct printing of etree_assert.
992 (print_all_symbols): Don't bomb if userdata is NULL.
993 (IGNORE_SECTION): Rearrange.
994 * emultempl/elf32.em (output_rel_find): Adjust interator.
995 (output_prev_sec_find): Delete.
996 (struct orphan_save): Delete.
997 (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
998 flags without creating a duplicate output section statement.
999 Revise code holding history of various orphan section placements.
1000 Allow orphan sections to place before script specified output
1001 sections. Call lang_output_section_find_by_flags when placement
1002 by name fails. Use lang_insert_orphan.
1003 * emultempl/mmo.em (output_prev_sec_find): Delete.
1004 (struct orphan_save): Delete.
1005 (mmo_place_orphan): Revise code holding history of orphan placement.
1006 Allow orphans to place before existing output sections. Use
1008 * emultempl/pe.em (output_prev_sec_find): Delete.
1009 (struct orphan_save): Delete.
1010 (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
1013 2004-10-13 Mark Mitchell <mark@codesourcery.com>
1015 * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
1018 2004-10-13 Alan Modra <amodra@bigpond.net.au>
1021 * ldcref.c (check_section_sym_xref): Delete.
1022 (check_local_sym_xref): New function.
1023 (check_nocrossrefs): Adjust call.
1024 * emultempl/pe.em (struct orphan_save): Add os_tail.
1025 (place_orphan): Backport assorted fixes from elf32.em.
1027 2004-10-12 Bob Wilson <bob.wilson@acm.org>
1029 * emultempl/xtensaelf.em: Use ISO C90 formatting.
1031 2004-10-11 Jakub Jelinek <jakub@redhat.com>
1033 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
1034 getline for portability.
1036 * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
1037 (gld${EMULATION_NAME}_parse_ld_so_conf,
1038 gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
1039 (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
1041 2004-10-11 Alan Modra <amodra@bigpond.net.au>
1044 * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
1045 rejected when linking statically.
1047 2004-10-08 Daniel Jacobowitz <dan@debian.org>
1049 * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
1051 2004-10-07 Bob Wilson <bob.wilson@acm.org>
1053 * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
1054 assembler-generated longcall sequences. Describe new --size-opt
1056 * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
1057 * emultempl/xtensaelf.em (remove_section,
1058 replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
1059 elf_xtensa_after_open): New.
1060 (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
1061 OPTION_NO_LITERAL_MOVEMENT): Define.
1062 (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
1063 (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
1064 (PARSE_AND_LIST_OPTIONS): Add --size-opt.
1065 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
1066 OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
1067 (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
1068 * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
1069 * Makefile.am (eelf32xtensa.c): Update dependencies.
1070 * Makefile.in: Regenerate.
1072 2004-10-07 Jeff Baker <jbaker@qnx.com>
1074 * lexsup.c: Handle --warn-shared-textrel option.
1075 (ld_options): Restore alpha sorting of options.
1076 * ldmain.c (main): Initialise warn_shared_info field to FALSE.
1077 * ld.texinfo: Add documentation for --warn-shared-textrel.
1078 * NEWS: Added mention of --warn-shared-textrel option.
1080 2004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
1082 * emultempl/crxelf.em (disable_relaxation): Add.
1083 (crxelf_before_allocation): Enable --relax option by default.
1084 (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
1085 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
1086 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
1088 2004-10-04 H.J. Lu <hongjiu.lu@intel.com>
1090 * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
1091 --sort-section name|alignment.
1093 * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
1094 --sort-section name|alignment.
1096 * ld.h (sort_type): New enum.
1097 (wildcard_spec): Change the type of `sorted' to sort_type.
1099 * ldgram.y (SORT): Removed.
1100 (SORT_BY_NAME): Added.
1101 (SORT_BY_ALIGNMENT): Added.
1102 (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
1104 (input_section_spec_no_keep): Updated `sorted'.
1105 (statement): Replace SORT with SORT_BY_NAME.
1107 * ldlang.c (compare_section): New function to compare 2
1108 sections with different sorting schemes.
1109 (wild_sort): Updated. Use compare_section.
1110 (update_wild_statements): New function.
1111 (lang_process): Call update_wild_statements before
1112 map_input_to_output_sections.
1114 * ldlex.l (SORT_BY_NAME): New.
1115 (SORT_BY_ALIGNMENT): New.
1116 (SORT): Return SORT_BY_NAME.
1118 * ldmain.c (sort_section): New. Defined.
1119 (main): Initialize it to none.
1121 * lexsup.c (option_values): Add OPTION_SORT_SECTION.
1122 (ld_options): Add an entry for OPTION_SORT_SECTION.
1123 (parse_args): Handle OPTION_SORT_SECTION.
1125 * mri.c (mri_draw_tree): Updated `sorted'.
1127 2004-10-04 Jakub Jelinek <jakub@redhat.com>
1129 * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
1130 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
1132 (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
1133 and . as second argument.
1134 (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
1135 * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
1136 (fold_binary): Add it here. Insert padding to make relro_end
1137 COMMONPAGESIZE bytes aligned. For DATA_SEGMENT_ALIGN in
1138 exp_dataseg_relro_adjust phase just use previously computed
1140 * ldlang.c (lang_size_sections): Set exp_data_seg.base for
1141 relro_adjust here. Call lang_size_sections_1 once more if there
1142 was too big padding at DATA_SEGMENT_RELRO_END.
1143 * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
1145 2004-10-01 Paul Brook <paul@codesourcery.com>
1147 * emulparams/armelf.sh: Add unwinding table sections.
1149 2004-09-30 Filip Navara <navaraf@reactos.com>
1151 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
1152 correct base address for position independant executables.
1153 * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
1154 executables as DLLs.
1156 2004-09-30 Paul Brook <paul@codesourcery.com>
1158 * ld.texinfo: Document --target2=abs.
1159 * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
1161 2004-09-29 Nick Clifton <nickc@redhat.com>
1163 * scripttempl/xstormy16.sc: Only perform the assignments to the
1164 ROM region when not performing a relocatable link. The ROM region
1165 does not start at address 0, but the sections will.
1166 * Makefile.am: Fix linker script dependency for the generation of
1168 * Makefile.in: Regenerate.
1170 2004-09-18 Filip Navara <navaraf@reactos.com>
1172 * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
1173 emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
1174 emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
1176 * scripttempl/pe.sc: Make the virtual address and file offset synced if
1177 the alignment is lower than the target page size.
1179 2004-09-27 Filip Navara <navaraf@reactos.com>
1181 * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
1182 def_file_parse to handle pe_def_file if NULL and prevent crash with
1185 2004-09-27 Alan Modra <amodra@bigpond.net.au>
1187 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
1188 --emit-stub-syms automatically when --emit-relocs.
1190 2004-09-24 Paul Brook <paul@codeosurcery.com>
1192 * scripttempl/elf.sc: Keep .preinit_array, .init_array and
1193 .fini_array sections.
1195 2004-09-19 Andreas Schwab <schwab@suse.de>
1197 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
1198 base so that relro end is suitably aligned.
1200 2004-09-17 Paul Brook <paul@codesourcery.com>
1202 * ld.texinfo: Rename arm-specific section. Document --target*
1203 * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
1204 * emulparams/armelf_linux.sh: Ditto.
1205 * emulparams/armelf_nbsd.sh: Ditto.
1206 * emultempl/armelf.em: Set default for TARGET2_TYPE.
1207 (target2_type): New variable.
1208 (arm_elf_before_allocation): Don't pass target1_type.
1209 (arm_elf_create_output_section_statements): New function.
1210 (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
1211 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
1212 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
1213 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
1214 * emultempl/armelf_oabi.em (_before_allocation): Remove extra
1215 argument to bfd_elf32_arm_process_before_allocation.
1217 2004-09-17 Alan Modra <amodra@bigpond.net.au>
1219 * ldexp.c (fold_name): Update u.undef.next refs.
1220 * emultempl/pe.em: Likewise.
1221 * emultempl/sunos.em: Likewise.
1223 2004-09-17 Alan Modra <amodra@bigpond.net.au>
1225 * Makefile.am: Run "make dep-am".
1226 * Makefile.in: Regenerate.
1227 * config.in: Regenerate.
1228 * configure: Regenerate.
1229 * aclocal.m4: Regenerate.
1230 * po/ld.pot: Regenerate.
1232 2004-09-16 Tomer Levi <Tomer.Levi@nsc.com>
1234 * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
1238 2004-09-16 Alan Modra <amodra@bigpond.net.au>
1240 * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
1241 to bfd_elf32_arm_process_before_allocation call.
1243 2004-09-13 Paul Brook <paul@codesourcery.com>
1245 * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
1246 * emultempl/armelf.em: Use TARGET1_IS_REL. Add --target1-{rel,abs}.
1248 2004-09-07 H.J. Lu <hongjiu.lu@intel.com>
1250 * configure: Regenerated with autconfig 2.13.
1252 2004-09-07 Andreas Schwab <schwab@suse.de>
1254 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
1255 alignment before adjusting DATA_SEGMENT_RELRO_END.
1257 2004-09-06 Mark Mitchell <mark@codesourcery.com>
1259 * emulparams/armsymbian.sh: Use armbpabi script.
1260 * scripttempl/armbpabi.sc: New script.
1262 2004-09-02 Mark Mitchell <mark@codesourcery.com>
1264 * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
1265 (earmsymbian.c): New target.
1266 * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
1267 * Makefile.in: Regenerated.
1268 * aclocal.m4: Likewise.
1269 * configure: Likewise.
1270 * emulparams/armsymbian.sh: New file.
1272 2004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
1274 * scripttempl/elf32crx.sc: Edit file with comments.
1275 (.init): Add new section.
1277 (.ctor): Control the linkage order.
1280 2004-08-27 Nick Clifton <nickc@redhat.com>
1282 * emultempl/pe.em (after_open): Do not assume that either bfd is
1285 2004-08-26 Alan Modra <amodra@bigpond.net.au>
1287 * ldlang.c (lang_init): Don't compare with TRUE.
1289 2004-08-25 Dmitry Diky <diwil@spec.ru>
1291 * emulparams/msp430all.sh: Fix RAM sizes for all targets.
1292 * scripttempl/elf32msp430.sc: Add .profiler section definition.
1294 2004-08-24 H.J. Lu <hongjiu.lu@intel.com>
1296 * ldlang.c (wildcardp): Defined as a macro with strpbrk.
1298 2004-08-19 Mark Mitchell <mark@codesourcery.com>
1300 * configure.tgt (arm*-*-symbianelf*): New target.
1301 (arm*-*-eabi*): Likewise.
1303 2004-08-19 Jakub Jelinek <jakub@redhat.com>
1305 * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
1306 (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
1307 (OPTION_NON_OVERLAPPING_OPD): Define.
1308 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
1309 --non-overlapping-opd option.
1311 2004-08-18 Alan Modra <amodra@bigpond.net.au>
1314 * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
1315 was already on the undefs list.
1317 2004-08-17 Alan Modra <amodra@bigpond.net.au>
1319 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
1320 prefix the symbol field too.
1322 2004-08-13 Alan Modra <amodra@bigpond.net.au>
1324 * ldmain.c (link_callbacks): Remove "error_handler".
1325 * ldmisc.c: Include elf-bfd.h.
1326 (vfinfo): Sort comment. Handle %A. Use %A instead of
1327 bfd_get_section_indent.
1328 (error_handler): Delete.
1329 * ldmisc.h (error_handler): Delete declaration.
1331 2004-08-10 Alan Modra <amodra@bigpond.net.au>
1333 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
1334 ppc64_elf_restore_symbols.
1336 2004-08-09 Alan Modra <amodra@bigpond.net.au>
1338 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
1339 .toc is too large on relocatable linking.
1341 2004-08-09 Alan Modra <amodra@bigpond.net.au>
1343 * emultempl/ppc64elf.em (ppc_after_open): Delete.
1344 (LDEMUL_AFTER_OPEN): Don't define.
1346 2004-08-02 Stephane Carrez <stcarrez@nerim.fr>
1348 * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
1350 2004-08-01 Stephane Carrez <stcarrez@nerim.fr>
1352 * scripttempl/elfm68hc12.sc: Align text, rodata and data section
1355 2004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
1357 * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
1359 2004-07-26 Dmitry Diky <diwil@spec.ru>
1361 * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
1362 msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
1364 * configure.tgt: Likewise.
1365 * emulparams/msp430all.sh: Likewise.
1366 * Makefile.in: Regenerate.
1368 2004-07-23 Nick Clifton <nickc@redhat.com>
1370 * emultempl/elf32.em (_place_orphan): Use an already existing
1371 section name if that section does not have any flags set.
1373 2004-07-21 H.J. Lu <hongjiu.lu@intel.com>
1375 * ldlang.c (already_linked_hash_entry): Removed.
1376 (already_linked): Likewise.
1377 (already_linked_table): Likewise.
1378 (section_already_linked): Call bfd_section_already_linked.
1379 (lang_process): Replace already_linked_table_init with
1380 bfd_section_already_linked_table_init and check return. Replace
1381 already_linked_table_free with bfd_section_already_linked_table_free.
1383 2004-07-21 Nick Clifton <nickc@redhat.com>
1385 * ldlang.c (init_os): Make sure that the newly allocated userdata
1386 structure is zeroed out.
1388 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
1390 * NEWS: Mention the new --add-needed/--no-add-needed and
1391 --as-needed/--no-as-needed options.
1393 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
1395 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
1396 check the add_needed field.
1397 (dt_needed): New struct.
1398 (gld${EMULATION_NAME}_try_needed): Change the first argument
1399 to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
1400 bit in the file where the DT_NEEDED entry comes from.
1401 (gld${EMULATION_NAME}_search_needed): Change the second
1402 argument to a pointer to struct dt_needed.
1403 (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
1404 (gld${EMULATION_NAME}_after_open): Likewise.
1406 * ld.texinfo: Add --add-needed document.
1407 * ldlang.c (new_afile): Set p->add_needed.
1408 * ldlang.h (lang_input_statement_type): Add add_needed field.
1409 * ldmain.h (add_needed): Declare.
1410 * ldmain.c (add_needed): New global var.
1411 * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
1412 OPTION_NO_ADD_NEEDED.
1413 (ld_options): Likewise.
1414 (parse_args): Handle them.
1416 2004-07-13 Christof Petig <christof@petig-baender.de>
1418 * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
1419 for endian-ness of extracted addend.
1421 2004-07-13 Danny Smith <dannysmith@usesr.sourceforge.net>
1423 * pe-dll.c (auto_export): Filter on just the import prefix,
1424 "_imp_", not "_imp__".
1426 2004-07-09 Nick Clifton <nickc@redhat.com>
1428 * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
1430 2004-07-06 Tomer Levi <Tomer.Levi@nsc.com>
1432 * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
1433 (eelf32crx.c): New target.
1434 * Makefile.in: Regenerate.
1435 * configure.tgt: Handle crx-*-elf*.
1436 * emulparams/elf32crx.sh: New file.
1437 * emultempl/crxelf.em: New file.
1438 * scripttempl/elf32crx.sc: New file.
1439 * NEWS: Mention new target.
1441 2004-07-06 Nick Clifton <nickc@redhat.com>
1443 * Makefile.am: Add eshlsymbian.c.
1444 * Makefile.in: Regenerate.
1445 * configure.tgt: Add sh*-symbian-elf target.
1446 * emulparams/shlsymbian.sh: New file. Configure the
1447 sh-symbian-elf linker scripts.
1448 * scripttemp/elf32sh-symbian.sc: New file. Linker script
1449 template for the sh-symbian-elf target.
1451 2004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1453 * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
1454 * emulparams/hppalinux.sh: Likewise.
1455 * scripttempl/elf.sc: Place .plt just before .got when .plt is in
1456 data segment and PLT_BEFORE_GOT is defined.
1458 2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1460 * ld.texinfo (WIN32): Document PE weak symbols.
1462 2004-07-02 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1464 * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
1466 2004-07-01 H.J. Lu <hongjiu.lu@intel.com>
1468 * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
1471 2004-06-29 Alan Modra <amodra@bigpond.net.au>
1473 * ldlang.c (lang_reset_memory_regions): Save last relax pass section
1476 2004-06-24 Alan Modra <amodra@bigpond.net.au>
1478 * ldlang.c (print_output_section_statement): Don't print size before
1480 (IGNORE_SECTION): Remove bfd arg. Update all callers.
1482 * ldexp.c (fold_name): .. See below.
1483 * ldlang.c (section_already_linked, print_output_section_statement,
1484 print_input_section, insert_pad, size_input_section,
1485 lang_check_section_addresses, lang_size_sections_1,
1486 lang_size_sections, lang_do_assignments_1, lang_set_startof,
1487 lang_one_common, lang_reset_memory_regions, lang_process,
1488 lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
1489 * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
1490 * pe-dll.c (process_def_file, generate_reloc): ..
1491 * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
1492 gld${EMULATION_NAME}_before_allocation): ..
1493 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
1494 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
1495 sh64_elf_${EMULATION_NAME}_after_allocation): ..
1496 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
1497 * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
1498 ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
1499 "size" instead of "_raw_size" and "_cooked_size". Expand
1500 bfd_section_size macro invocations.
1502 2004-06-22 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1504 * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
1505 ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
1506 ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
1508 (.tls): Define ___tls_start__ and ___tls_end__.
1510 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
1512 * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
1514 2004-06-18 Adam Nemet <anemet@lnxw.com>
1516 * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
1517 * configure: Regenerate.
1519 2004-06-15 Jakub Jelinek <jakub@redhat.com>
1521 * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
1522 .gcc_except_table output sections lost accidentally with
1525 2004-06-15 Alan Modra <amodra@bigpond.net.au>
1527 * ldwrite.c (build_link_order): Use bfd_get_section_size
1528 instead of bfd_get_section_size_before_reloc or _raw_size.
1529 * pe-dll.c (process_def_file): Likewise.
1531 2004-06-14 Alan Modra <amodra@bigpond.net.au>
1533 From Richard Wirth <r.wirth@wirthware.de>
1534 * ldlang.c (lang_finish): Don't free lang_definedness_table.
1536 2004-05-29 Alan Modra <amodra@bigpond.net.au>
1538 * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
1539 (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
1541 2004-05-28 Alan Modra <amodra@bigpond.net.au>
1543 * ldlang.c: Formatting. Wrap long lines, expand bfd_get_section_flags
1545 * lexsup.c: Formatting. Wrap long lines.
1546 * ldwrite.c: Update copyright date.
1548 * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
1549 (output_section_callback): Nor SEC_KEEP here.
1550 (gc_section_callback): Twiddle SEC_EXCLUDE here.
1551 (lang_gc_wild): Delete. Fold into..
1552 (lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage
1554 (lang_process): Always call lang_gc_sections.
1555 (lang_place_orphans): Handle SEC_EXCLUDE sections.
1556 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
1559 2004-05-26 H.J. Lu <hongjiu.lu@intel.com>
1561 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
1562 SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
1563 * ldlang.c (lang_add_section): Likewise.
1565 2004-05-26 Alan Modra <amodra@bigpond.net.au>
1567 * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
1568 sections when doing a final link. Clear SEC_EXCLUDE when doing
1569 a relocable link, except for SEC_DEBUGGING sections.
1570 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
1571 same condition here to drop SEC_EXCLUDE orphan sections.
1573 2004-05-25 Alan Modra <amodra@bigpond.net.au>
1575 * ldlang.c (lang_process): Call bfd_merge_sections later, and
1576 only when not a relocatable link.
1577 (print_input_section): Handle SEC_EXCLUDE sections.
1578 (size_input_section): Don't update dot on SEC_EXCLUDE sections.
1579 (lang_do_assignments_1): Likewise.
1580 * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
1581 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
1582 * emultempl/hppaelf.em (build_section_lists): Likewise.
1583 * emultempl/ppc64elf.em (build_toc_list): Likewise.
1584 (build_section_lists): Likewise.
1586 2004-05-23 Andreas Schwab <schwab@suse.de>
1588 * ld.texinfo (Options): Fix typo in last change.
1590 2004-05-21 Andy Chittenden <achittenden@bluearc.com>
1592 * ld.h (ld_config_type): Add new field: hash_table_size.
1593 * ldmain.c: Initialise the new field to zero. If it is non-zero
1594 after parsing the linker's command line call
1595 bfd_hash_set_default_size.
1596 * lexsup.c (option_values): Add OPTION_HASH_SIZE.
1597 (ld_options): Add hash-size.
1598 (parse_args): Parse --hash-size option. Allow
1599 --reduce-memory-overheads to set the default hash table size as
1601 * ld.texinfo: Document the new switch. Also mention that
1602 --reduce-memory-overheads can affect the hash table size.
1603 * NEWS: Mention the new feature.
1605 2004-05-19 J"orn Rennecke <joern.rennecke@superh.com>
1607 * NEWS: Mention new linker map file generation and the
1608 --reduce-memory-overheads option.
1609 * ld.texinfo: Document --reduce-memory-overheads option.
1610 * ld.h (map_symbol_def): New struct.
1611 (struct user_section_struct, section_userdata_type): Rename to:
1612 (struct lean_user_section_struct, lean_section_userdata_type).
1613 (struct fat_user_section_struct, fat_section_userdata_type): New.
1614 (SECTION_USERDATA_SIZE): Define.
1615 (args_type): New member reduce_memory_overheads.
1616 * ldlang.c (map_obstack): New static variable.
1617 (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
1618 (lang_map): Unless command_line.reduce_memory_overheads is set,
1619 initialize lists of defined symbols for each section.
1620 (print_input_section): Unless command_line.reduce_memory_overheads
1621 is set, use print_all_symbols.
1622 (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
1623 * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
1624 * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
1625 (ld_options): Add entry for --reduce-memory-overheads.
1626 (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
1628 2004-05-19 Jakub Jelinek <jakub@redhat.com>
1630 * ldgram.y (sect_constraint): New.
1631 (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1632 (section): Add sect_constraint. Pass additional argument
1633 to lang_enter_output_section_statement.
1634 * mri.c (mri_draw_tree): Pass additional argument to
1635 lang_enter_output_section_statement.
1636 * emultempl/pe.em (place_orphan): Likewise.
1637 (output_prev_sec_find): Disregard output section statements with
1639 * emultempl/mmo.em (output_prev_sec_find): Likewise.
1640 (mmo_place_orphan): Pass additional argument to
1641 lang_enter_output_section_statement.
1642 * emultempl/elf32.em (output_prev_sec_find): Disregard output section
1643 statements with constraint == -1.
1644 (place_orphan): Pass additional argument to
1645 lang_enter_output_section_statement.
1646 * ldlang.c (lang_enter_overlay_section): Likewise.
1647 (lang_output_section_find_1): New.
1648 (lang_output_section_find): Use it.
1649 (lang_output_section_statement_lookup_1): New.
1650 (lang_output_section_statement_lookup): Use it.
1651 (check_section_callback, check_input_sections): New.
1652 (map_input_to_output_sections): Check if all input sections
1653 are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
1654 (strip_excluded_output_sections): Disregard output section statements
1655 with constraint == -1.
1656 (lang_record_phdrs): Likewise.
1657 (lang_enter_output_section_statement): Add constraint argument.
1658 Use lang_output_section_statement_lookup_1.
1659 * ldlang.h (lang_output_section_statement_type): Add constraint
1660 and all_input_readonly fields.
1661 (lang_enter_output_section_statement): Adjust prototype.
1662 * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1663 * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
1664 segment if all input sections are readonly.
1666 2004-05-19 Adam Nemet <anemet@lnxw.com>
1668 * scripttempl/i386lynx.sc: Remove file.
1670 2004-05-17 Bob Wilson <bob.wilson@acm.org>
1672 * ld.texinfo (Output Section Address): Correct subsection name.
1674 2004-05-17 Adam Nemet <anemet@lnxw.com>
1676 * configure.tgt (powerpc-*-lynxos* case): New case.
1677 * configure.host (i[3-7]86-*-lynxos* case): Remove case.
1678 * emulparams/ppclynx.sh: New file.
1679 * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
1680 * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
1681 (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
1682 (eppclynx.c): New rule.
1683 * Makefile.in: Regenerate.
1685 2004-05-13 Joel Sherrill <joel@oarcorp.com>
1687 * configure.tgt (or32-*-rtems*): Switch to elf and
1688 support versioned targets.
1690 2004-05-13 Nick Clifton <nickc@redhat.com>
1692 * po/fr.po: Updated French translation.
1694 2004-05-11 Jakub Jelinek <jakub@redhat.com>
1696 * genscripts.sh: Generate -z combreloc -z now -z relro scripts
1697 for binaries, -shared and -pie.
1698 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
1699 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
1700 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
1701 (OTHER_RELRO_SECTIONS): ... this.
1702 * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
1703 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
1704 -z relro and -z norelro.
1705 (gld${EMULATION_NAME}_list_options): Add it to usage.
1706 (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
1707 -z relro scripts when appropriate.
1708 * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
1709 Create separate .got.plt section if SEPARATE_GOTPLT.
1710 Move sections which are only written during relocation handling
1711 to the beginning of RW segment. If NO_SMALL_DATA, move .got
1712 before .data. Add DATA_SEGMENT_RELRO_END directive.
1713 Include OTHER_RELRO_SECTIONS.
1714 * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
1715 * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
1716 (fold_unary): Likewise.
1717 (fold_binary): Handle -z relro.
1718 * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
1719 exp_dataseg_relro_adjust phases. Add relro_end field.
1720 * ldmain.c (main): Initialize link_info.relro to FALSE.
1721 * ldlang.c (lang_size_sections): Handle -z relro.
1723 2004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
1725 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
1727 2004-05-07 J"orn Rennecke <joern.rennecke@superh.com>
1729 * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
1730 before printing it with %W.
1732 2004-05-07 Brian Ford <ford@vss.fsi.com>
1733 DJ Delorie <dj@redhat.com>
1735 * emultempl/pe.em (real_flags): New static.
1736 (OPTION_LARGE_ADDRESS_AWARE): New define.
1737 (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
1738 (gld_${EMULATION_NAME}_list_options): Likewise.
1739 (gld${EMULATION_NAME}_handle_option): Likewise.
1740 (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
1741 * ld.texinfo: Document it.
1744 2004-05-07 Brian Ford <ford@vss.fsi.com>
1746 * NEWS: Mention DWARF 2 support for i386pe.
1748 2004-05-05 Alexandre Oliva <aoliva@redhat.com>
1750 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
1753 2004-04-30 Alan Modra <amodra@bigpond.net.au>
1755 * ldlang.c (unique_section_p): Pass section parm, return true on
1757 (output_section_callback): Adjust.
1758 * ldlang.h (unique_section_p): Update prototype.
1759 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
1761 2004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
1763 * ld.texinfo (--gc-sections): Remove restriction for
1766 2004-04-29 Brian Ford <ford@vss.fsi.com>
1768 * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
1769 for DWARF 2/3. Update stab section's syntax.
1771 2004-04-29 Alan Modra <amodra@bigpond.net.au>
1773 * pe-dll.c: Revert changes accidentally committed 2004-03-08.
1774 (fill_edata): Correct pointer arithmetic.
1776 2004-04-21 Chris Demetriou <cgd@broadcom.com>
1778 * ld.texinfo: Remove MIPS --embedded-relocs documentation.
1779 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
1780 * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
1781 (EXTRA_EM_FILE): Use mipsecoff.em
1782 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
1783 (EXTRA_EM_FILE): Use mipsecoff.em
1784 * emultempl/mipsecoff.em: Restructure to be included as an
1785 extra emulation file.
1786 (check_sections, gld${EMULATION_NAME}_after_open)
1787 (gld${EMULATION_NAME}_after_allocation)
1788 (gld${EMULATION_NAME}_get_script)
1789 (ld_${EMULATION_NAME}_emulation): Remove
1790 (gld${EMULATION_NAME}_before_parse): Rename to...
1791 (mipsecoff_before_parse): This.
1792 (LDEMUL_BEFORE_PARSE): Define.
1793 * emultempl/mipself.em: Remove file.
1794 * scripttempl/mips.sc (.rel.sdata): Do not include in output.
1795 (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
1797 * Makefile.am: Remove dependencies on emultempl/mipself.em.
1798 * Makefile.in: Regenerate.
1800 2004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
1802 * ld.texinfo (synthesizing on H8/300): Information about linker
1803 relaxation support for bit manipulation instructions and system
1804 control instructions is added.
1806 2004-04-21 Hans-Peter Nilsson <hp@axis.com>
1808 * NEWS: Mention change in DEFINED semantics.
1810 2004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
1812 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
1813 (.data): Add KEEP for .gnu.linkonce.d.*personality*.
1814 (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
1816 2004-04-21 Ben Elliston <bje@au.ibm.com>
1818 * ld.texinfo (Simple Example): Add missing punctuation.
1820 2004-04-20 Chris Demetriou <cgd@broadcom.com>
1822 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
1824 2004-04-19 Jakub Jelinek <jakub@redhat.com>
1826 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
1829 2004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
1831 * scriptempl/pe.sc: Put numbered .ctors.* after .ctors
1832 with default priority. Likewise for dtors.
1834 2004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1836 * configure.host: Remove mips*-dec-bsd* target.
1837 * configure.tgt: Likewise.
1839 2004-04-08 Richard Sandiford <rsandifo@redhat.com>
1841 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
1842 * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
1843 * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
1844 * emultempl/irix.em: New file.
1845 * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
1847 * Makefile.in: Regenerate.
1849 2004-04-01 Paul Brook <paul@codesourcery.com>
1851 * emultempl/armelf.em (byteswap_code): Add.
1852 (arm_elf_before_allocation): Pass extra parameter.
1853 (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
1854 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
1855 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
1856 * emultempl/armelf_oabi.em: Pass extra parameter.
1857 * ld.texinfo: Document --be8.
1859 2004-03-30 Stan Shebs <shebs@apple.com>
1861 Remove long-obsolete MPW support.
1862 * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
1863 * Makefile.am (mpw): Remove file-presynthesizing actions.
1864 * Makefile.in: Likewise.
1865 * ldfile.c (slash): Remove MPW case.
1866 * ldlex.l [MPW]: Remove unused definition.
1868 2004-03-30 Galit Heller <Galit.Heller@nsc.com>
1870 * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
1871 (eelf32cr16c.c): New target.
1872 * Makefile.in: Regenerate.
1873 * configure.tgt: Handle cr16c-*-elf*.
1874 * emulparams/elf32cr16c.sh: New file.
1875 * scripttempl/elfcr16c.sc: Likewise
1876 * NEWS: Mention support for new target.
1878 2004-03-30 Nick Clifton <nickc@redhat.com>
1880 * po/sv.po: Updated Swedish translation.
1882 2004-03-27 Alan Modra <amodra@bigpond.net.au>
1884 * emultempl/elf32.em: Update new bfd_elf_discard_info name.
1885 * emultempl/hppaelf.em: Likewise.
1886 * emultempl/ppc64elf.em: Likewise.
1887 * emultempl/sh64elf.em: Likewise.
1889 2004-03-25 Alan Modra <amodra@bigpond.net.au>
1891 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
1892 size_dynamic_sections call.
1894 2004-03-23 Alan Modra <amodra@bigpond.net.au>
1897 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
1898 link_info.wrap_char.
1900 2004-03-20 H.J. Lu <hongjiu.lu@intel.com>
1902 * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
1903 or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
1905 2004-03-20 Alexandre Oliva <aoliva@redhat.com>
1907 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
1909 2004-03-19 Alan Modra <amodra@bigpond.net.au>
1911 * config.in: Regenerate.
1912 * po/ld.pot: Regenerate.
1914 2004-03-18 Alan Modra <amodra@bigpond.net.au>
1916 * ld.texinfo: Add --as-needed doco.
1917 * ldmain.c (as_needed): New global var.
1918 * ldmain.h (as_needed): Declare.
1919 * lexsup.c (option_values): Add OPTION_AS_NEEDED and
1920 OPTION_NO_AS_NEEDED.
1921 (ld_options): Likewise.
1922 (parse_args): Handle them.
1923 * ldlang.h (lang_input_statement_type): Add as_needed field.
1924 * ldlang.c (new_afile): Set p->as_needed.
1925 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
1926 (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
1927 (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
1929 * ldlang.c (open_input_bfds): Remove useless cast.
1930 (lang_do_assignments_1): Likewise.
1931 (lang_for_each_input_section): Delete.
1933 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1935 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
1937 2004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
1939 * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
1940 private when building implib.
1942 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
1944 * ldlang.c (lang_add_section): Don't force SEC_LOAD on
1946 (IGNORE_SECTION): Ignore .tbss sections too.
1947 (lang_size_sections_1): .tbss sections do not advance dot.
1949 2004-03-01 Andreas Schwab <schwab@suse.de>
1951 * ld.texinfo (Options): Fix example for --wrap.
1953 2004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
1955 * pe-dll.c (fill_edata): Check that exported_symbol_sections is
1958 2004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
1960 * ldlang.c (lang_check): Use %P, not %E, in error message.
1962 2004-02-23 Nathan Sidwell <nathan@codesourcery.com>
1964 * ldlang.h (struct lang_output_section_state): Change processed
1966 * ldexp.c (check, invalid): Remove.
1967 (fold_name): Move valid_p assignments. Create undefined symbol
1968 when needed. Directly exampine section's processd flag.
1969 * ldlang.c (lang_output_section_statement_lookup): Adjust
1970 processed field init.
1971 (lang_size_sections_1): Allow LOADADDR when determining section's
1972 VMA. Adjust error message. Fold data statement's expr.
1973 (lang_size_sections): Correctly increment lang_statement_iteration.
1975 2004-02-23 Alan Modra <amodra@bigpond.net.au>
1977 * ldexp.c (fold_tree): Follow indirect symbols.
1979 2004-02-20 Nathan Sidwell <nathan@codesourcery.com>
1981 * ldgram.y (exp): Add two operand ALIGN.
1982 * ldexp.c (fold_binary): Add ALIGN_K case.
1983 * ld.texinfo (ALIGN): Document two operand version.
1985 2004-02-19 Nathan Sidwell <nathan@codesourcery.com>
1987 * ldlang.c (map_input_to_output_sections): Initialize sections
1988 mentioned in a data statement expression.
1989 (lang_do_assignments_1): Add data statement's expression's
1992 2004-02-18 Nathan Sidwell <nathan@codesourcery.com>
1994 * ldgram.y (statement_anywhere): Add assert rule.
1995 * ldlang.c (exp_init_os): Add assert case.
1997 2004-02-14 Andrew Cagney <cagney@redhat.com>
1999 * ldmain.c (remove_output): Call bfd_cache_close.
2001 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
2003 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
2004 .MIPS.content* and .MIPS.events* sections.
2006 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
2008 * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
2009 .note.gnu.arm.ident to after allocated sections. Mark its
2012 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
2014 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
2015 * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
2016 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
2017 * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
2018 * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
2020 2004-02-05 Nick Clifton <nickc@redhat.com>
2022 * emultempl/pe.em (_after_open): Fix typo in previous delta.
2024 2004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
2026 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
2028 2004-01-28 Alan Modra <amodra@bigpond.net.au>
2030 * genscripts.sh: Fix typo.
2032 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
2034 2004-01-24 Jakub Jelinek <jakub@redhat.com>
2036 * emulparams/elf64_ia64.sh: Put .rela.opd into
2037 OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
2039 2004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
2041 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
2042 * ld.texinfo (--omagic): Note that writable text section
2043 does not conform to published PE-COFF specs.
2044 (--enable-auto-import): Likewise.
2046 2004-01-15 Alan Modra <amodra@bigpond.net.au>
2048 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
2050 2004-01-13 Nick Clifton <nickc@redhat.com>
2052 * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
2053 which if true will prevent the LMA region being used as a
2054 replacement for a default VMA region.
2055 (lang_leave_output_section_statement): Pass extra parameter.
2056 (lang_leave_overlay): Likewise.
2057 * ld.texinfo (Output Section LMA): Document that the LMA
2058 region can be set to the VMA region if no VMA has been set.
2059 * ldlang.h (struct lang_output_section_phdr_list): Create a
2060 typedef for this type. Minor formatting fixes.
2062 2004-01-13 Nick Clifton <nickc@redhat.com>
2064 * ldlang.c (lang_size_sections_1): If dot is advanced, then
2065 assume that the section should be allocated.
2067 2004-01-13 Alan Modra <amodra@bigpond.net.au>
2069 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
2070 sections. Do ignore SEC_NEVER_LOAD sections.
2071 (lang_size_sections_1): Remove test made redundant with the above.
2073 2004-01-09 Alan Modra <amodra@bigpond.net.au>
2075 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
2076 program_header_size.
2078 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
2080 2003-11-28 Alexandre Oliva <aoliva@redhat.com>
2081 * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
2082 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
2083 * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
2084 (MAXPAGESIZE): Set to 64Kb.
2085 (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
2086 __ROFIXUP_END__. Don't map .rofixup.got any more.
2087 * emulparams/elf32frv.sh (NOP): Set.
2088 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
2089 * configure.tgt: Add frv-*-*linux*.
2090 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
2091 * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
2092 (eelf32frvfd.c): New.
2093 * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
2094 * emulparams/elf32frv.sh: Reverted previous two patches.
2095 * emulparams/elf32frvfd.sh: New.
2096 * Makefile.in: Rebuilt.
2097 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
2098 * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
2099 .rofixup.got to .rofixup.
2100 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
2101 * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
2102 (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
2104 2004-01-05 Jakub Jelinek <jakub@redhat.com>
2106 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
2107 * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
2109 2004-01-03 Alan Modra <amodra@bigpond.net.au>
2111 * ldexp.c (align_n): Make static.
2112 * ldexp.h (align_n): Delete declaration.
2113 * ldlang.h (lang_enter_output_section_statement): Remove
2115 * ldlang.c (lang_enter_output_section_statement): Likewise.
2116 (TO_ADDR, TO_SIZE): Define.
2117 (opb_shift): New var.
2118 (init_opb): New function.
2119 (print_input_section): Call init_opb and use TO_ADDR.
2120 (print_data_statement, print_reloc_statement): Likewise.
2121 (print_padding_statement): Likewise.
2122 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
2123 (lang_check_section_addresses): Likewise.
2124 (lang_size_sections_1): Likewise.
2125 (lang_do_assignments_1): Likewise.
2126 (lang_set_startof): Likewise.
2127 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
2128 (lang_process): Call init_opb.
2129 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
2130 (lang_enter_overlay_section): Adjust
2131 lang_enter_output_section_statement call.
2132 * ldgram.y: Likewise.
2133 * mri.c (mri_draw_tree): Likewise.
2134 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
2135 * emultempl/mmo.em (mmo_place_orphan): Likewise.
2136 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
2138 * ldfile.c (ldfile_set_output_arch): Add defarch param.
2139 * ldfile.h (ldfile_set_output_arch): Ditto.
2140 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
2141 ldfile_set_output_arch.
2142 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
2143 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
2144 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
2145 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2146 * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
2147 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
2148 * ldgram.y: Adjust ldfile_set_output_arch call.
2149 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2150 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
2151 * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
2152 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
2153 * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
2154 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2155 * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2157 2004-01-02 Bernardo Innocenti <bernie@develer.com>
2159 * configure.tgt: Add m68k-uClinux target.
2161 For older changes see ChangeLog-0203
2167 version-control: never