1 2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
3 * Makefile.am (ld.1): Revert the last 2 changes.
4 (info-recursive): Depend on ld.1.
5 * Makefile.in: Regenerated.
7 2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
9 * Makefile.am (ld.1): Depend on "info" instead of
10 "configdoc.texi ldver.texi".
11 * Makefile.in: Regenerated.
13 2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
15 * Makefile.am (ld.1): Depend on "info".
16 * Makefile.in: Regenerated.
18 2005-05-19 Zack Weinberg <zack@codesourcery.com>
20 * Makefile.am: Have 'all' depend on 'info' and 'ld.1'.
21 * Makefile.in: Regenerate.
23 2005-05-17 Zack Weinberg <zack@codesourcery.com>
25 * ld-arm/mixed-app.d: Adjust expected disassembly a little.
27 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
29 * Makefile.am (ldver.texi): Don't use $<.
30 * Makefile.in: Regenerated.
32 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
34 * Makefile.am (AM_MAKEINFOFLAGS, TEXI2DVI): Explicitly include
35 $(srcdir) before $(BFDDIR)/doc.
36 * Makefile.in: Regenerated.
38 2005-05-17 H.J. Lu <hongjiu.lu@intel.com>
41 * ldexp.c (exp_fold_tree_1): Renamed from exp_fold_tree and
42 take take a bfd_boolean, mark_used. Ignore assert failure if
44 (exp_fold_tree) Call exp_fold_tree_1 with mark_used == FALSE.
45 (exp_fold_tree_no_dot): Updated to take a bfd_boolean,
46 mark_used and pass down.
47 (fold_unary): Likewise.
48 (fold_binary): Likewise.
49 (fold_trinary): Likewise.
50 (exp_binop): Add FALSE to call to exp_fold_tree_no_dot.
51 (exp_trinop): Likewise.
53 (exp_nameop): Likewise.
54 (exp_get_vma): Likewise.
55 (exp_get_fill): Likewise.
56 (exp_get_abs_int): Likewise.
57 (fold_name): Likewise. Set SEC_KEEP in output section flags.
58 (exp_mark_used_section): New.
60 * ldexp.h (exp_mark_used_section): New.
62 * ldlang.c (lang_output_section_statement_lookup_1): Set the
63 ignored field to FALSE.
64 (lang_mark_used_section_1): New.
65 (lang_mark_used_section): Call lang_mark_used_section_1.
66 (strip_excluded_output_sections): Call lang_mark_used_section
67 and check for unused sections.
68 (lang_size_sections_1): Skip an output section if it should
70 (lang_do_assignments_1): Likewise.
71 (lang_process): Don't call lang_mark_used_section here.
73 * ldlang.h (lang_output_section_statement_type): Change
74 all_input_readonly to bitfield. Add ignored.
76 2005-05-17 Lennert Buytenhek <buytenh@wantstofly.org>
77 Peter S. Mazinger" <ps.m@gmx.net>
79 * emulparams/armelf_linux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
80 * emulparams/hppalinux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
82 2005-05-17 Julian Brown <julian@codesourcery.com>
84 * ldlang.c (print_assignment): Do not rely upon a valid result
85 having a section associated with it.
87 2005-05-17 Nick Clifton <nickc@redhat.com>
89 * ldlang.c (Scan_for_self_assignment): Check an assignment tree to
90 see if the same value is being used on the rhs as on the lhs.
91 (print_assignment): Call scan_for_self_assignment and if it
92 returns true, do no display the result of the computation but
93 instead just the final value of the symbol on the lhs.
94 * ld.texinfo: Document this behaviour and provide an example of
97 2005-05-15 Daniel Jacobowitz <dan@codesourcery.com>
99 * Makefile.am (AM_MAKEINFOFLAGS): Define.
101 (ldver.texi): Depend on distributed files instead of built files.
102 (ld.info): Include $(srcdir) in the rule target. Remove actions.
103 (ld.dvi): Remove actions.
104 (MAINTAINERCLEANFILES): Add configdoc.texi.
105 (CONFIG_STATUS_DEPENDENCIES): Add bfd/configure.in.
106 (install-data-local): Renamed from install.
107 (Makefile): Remove explicit dependency.
108 * acinclude.m4: Remove obsolete code.
109 * configure.in: Update AC_PREREQ. Remove extra $CONFIG_SHELL.
110 * Makefile.in, aclocal.m4, config.in, configure: Regenerated.
112 2005-05-11 Bob Wilson <bob.wilson@acm.org>
114 * scripttempl/elfxtensa.sc: Sync up with elf.sc.
115 * emulparams/elf32xtensa.sh (PLT, GOT): Define.
117 2005-05-11 Alan Modra <amodra@bigpond.net.au>
119 * ldgram.y: Add SPECIAL token.
120 (sect_constraint): Handle SPECIAL.
121 * ldlang.c (lang_output_section_find_1): Don't match SPECIAL.
122 (map_input_to_output_sections): Likewise.
123 * ldlex.l (SPECIAL): Define.
124 * emulparams/elf32ppc.sh (DATA_GOT, SDATA_GOT, SEPARATE_GOTPLT,
125 GOT, PLT, GOTPLT): Define.
126 * emultempl/ppc32elf.em (old_plt, old_got): New static vars.
127 (ppc_after_open): New function.
128 (PARSE_AND_LIST_PROLOGUE): Define OPTION_OLD_LPT and OPTION_OLD_GOT.
129 (PARSE_AND_LIST_LONGOPTS): Add "bss-plt" and "sdata-got".
130 (PARSE_AND_LIST_OPTIONS): Document them.
131 (PARSE_AND_LIST_ARGS_CASES): Handle them.
132 (LDEMUL_AFTER_OPEN): Define.
133 * scripttempl/elf.sc (PLT): Don't override existing define.
134 (DATA_GOT, SDATA_GOT): Define and use to enable alternate got
135 placement rather than using NO_SMALL_DATA. Emit GOTPLT for RELRO_NOW.
137 2005-05-10 Alan Modra <amodra@bigpond.net.au>
139 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_GOTPLT_END): Delete.
140 (DATA_SEGMENT_RELRO_END): Use SEPARATE_GOTPLT value.
141 (GOTPLT): Remove DATA_SEGMENT_RELRO_GOTPLT_END. Place after
142 DATA_SEGMENT_RELRO_END in script.
144 2005-05-09 H.J. Lu <hongjiu.lu@intel.com>
146 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
147 Don't use a removed section.
149 2005-05-09 H.J. Lu <hongjiu.lu@intel.com>
151 * ldmain.c (reloc_overflow): Use output_bfd if the symbol
152 is defined in the ABS section.
154 2005-05-06 H.J. Lu <hongjiu.lu@intel.com>
156 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
157 Put back !link_info.relocatable.
159 2005-05-06 H.J. Lu <hongjiu.lu@intel.com>
162 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
163 Just check link_info.executable.
165 2005-05-06 Nick Clifton <nickc@redhat.com>
167 * Update the address and phone number of the FSF organization in
168 the GPL notices in the following files:
169 aclocal.m4, deffile.h, deffilep.y, fdl.texi, ld.h, ldcref.c,
170 ldctor.c, ldctor.h, ldemul.c, ldexp.c, ldexp.h, ldfile.c,
171 ldfile.h, 20ldgram.y, ldint.texinfo, ldlang.c, ldlang.h, ldlex.h,
172 ldlex.l, ldmain.c, ldmain.h, ldmisc.c, ldmisc.h, ldver.c, ldver.h,
173 ldwrite.c, ldwrite.h, lexsup.c, mri.c, mri.h, pe-dll.c, pe-dll.h,
174 sysdep.h, emultempl/aix.em, emultempl/alphaelf.em,
175 emultempl/armcoff.em, emultempl/armelf.em, emultempl/beos.em,
176 emultempl/crxelf.em, emultempl/elf32.em, emultempl/generic.em,
177 emultempl/gld960.em, emultempl/gld960c.em, emultempl/hppaelf.em,
178 emultempl/ia64elf.em, emultempl/irix.em, emultempl/linux.em,
179 emultempl/lnk960.em, emultempl/m68hc1xelf.em,
180 emultempl/m68kcoff.em, emultempl/m68kelf.em,
181 emultempl/mipsecoff.em, emultempl/mmix-elfnmmo.em,
182 emultempl/mmixelf.em, emultempl/mmo.em, emultempl/needrelax.em,
183 emultempl/pe.em, emultempl/ppc32elf.em, emultempl/ppc64elf.em,
184 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em,
185 emultempl/vanilla.em, emultempl/xtensaelf.em
187 2005-05-05 H.J. Lu <hongjiu.lu@intel.com>
189 * scripttempl/elf.sc: Document the usage of __bss_start.
191 2005-05-05 Paul Brook <paul@codesourcery.com>
193 * Makefile.am: Add eelf_i386_vxworks.
194 * Makefile.in: Regenerate.
195 * configure.tgt: Make i?86-*-vxworks use targ_emul=elf_i386_vxworks.
196 * emulparams/elf_i386_vxworks.sh: New file.
197 * emulparams/vxworks.sh: New file.
198 * scripttempl/elf.sc: Add DATA_END_SYMBOLS and ETEXT_NAME.
200 2005-05-04 H.J. Lu <hongjiu.lu@intel.com>
202 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
203 Call _bfd_elf_provide_section_bound_symbols.
205 2005-05-04 Alan Modra <amodra@bigpond.net.au>
207 * ldemul.c: Include bfdlink.h.
208 (ldemul_before_allocation): Assume before_allocation is non-zero.
209 (before_allocation_default): Call strip_excluded_output_sections.
210 * ldlang.c (stripped_excluded_sections): New variable.
211 (lang_add_section): Build input section list for each output
212 section, attached via map_head and map_tail pointers.
213 (strip_excluded_output_sections): Make global. Traverse the
214 input section lists to find which output sections can go. Clear
215 link_order pointers and set stripped_excluded_sections.
216 (lang_process): Call strip_excluded_output_sections.
217 * ldlang.h (strip_excluded_output_sections): Declare.
218 * ldwrite.c: Update throuhout for link_order_head -> map_head change.
219 * emultempl/aix.em (before_allocation): Call
220 strip_excluded_output_sections.
221 * emultempl/armcoff.em (before_allocation): Likewise.
222 * emultempl/beos.em (before_allocation): Likewise.
223 * emultempl/linux.em (before_allocation): Likewise.
224 * emultempl/pe.em (before_allocation): Likewise.
225 * emultempl/sunos.em (before_allocation): Likewise.
226 * emultempl/elf32.em (before_allocation): Likewise. Call
227 bfd_elf_size_dynsym_hash_dynstr too.
228 * emultempl/lnk960.em (lnk960_before_allocation): Delete.
229 (ld_lnk960): Use before_allocation_default.
231 2005-05-02 H.J. Lu <hongjiu.lu@intel.com>
233 * emultempl/elf32.em (gld${EMULATION_NAME}_strip_empty_section):
234 Updated for bfd_section_list_remove change.
235 * ldlang.c (lang_insert_orphan): Likewise.
236 (strip_excluded_output_sections): Likewise.
237 (sort_sections_by_lma): New.
238 (lang_check_section_addresses): Sort the sections before
241 2005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
243 * configure.tgt: Add h8300*-*-rtemscoff.
244 Switch h8300*-*-rtems* to elf.
246 2005-04-29 Ben Elliston <bje@au.ibm.com>
248 * ldgram.y (lang_memory_region_type): Make static.
249 (ldgram_want_filename): Likewise.
250 * ldemul.c (ld_emulation): Make static.
251 * ldfile.h (ldfile_find_command_file): Remove extern.
252 * ldfile.c (ldfile_find_command_file): Make static.
253 * ldlang.h (unique_section_list): Remove extern declaration.
254 * ldlang.c (unique_section_list): Make static.
255 * mri.h (symbol_truncate): Remove extern declaration.
256 * mri.c (symbol_truncate): Make static.
257 (order, only_load, address, alias): Likewise.
258 (alignment, subalignment): Likewise.
260 2005-04-27 H.J. Lu <hongjiu.lu@intel.com>
262 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
263 Use the first SEC_ALLOC section which isn't SEC_READONLY or the
264 last SEC_ALLOC section if such a section doesn't exist.
266 2005-04-24 Mark Kettenis <kettenis@gnu.org>
268 * configure.host: Add *-*-openbsd support.
270 2005-04-15 Julian Brown <julian@codesourcery.com>
272 * ld.texinfo: Document --use-blx.
273 * emultempl/armelf.em (use_blx): New variable.
274 (arm_elf_create_output_section_statements): Communicate value of
276 (PARSE_AND_LIST_PROLOGUE): Add OPTION_USE_BLX.
277 (PARSE_AND_LIST_OPTIONS): Add --use-blx option.
278 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_USE_BLX case.
280 2005-04-14 Alan Modra <amodra@bigpond.net.au>
282 * Makefile.am (NO_WERROR): Define. Use instead of -Wno-error.
283 * configure.in: Include ../bfd/warning.m4 contents.
284 * Makefile.in: Regenerate.
285 * configure: Regenerate.
287 2005-04-12 Alan Modra <amodra@bigpond.net.au>
289 * Makefile.am: Run "make dep-am".
290 (ldgram.o, ldlex.o, deffilep.o): Add -Wno-error to command.
291 * Makefile.in: Regenerate.
292 * config.in: Regenerate.
294 2005-04-11 Alan Modra <amodra@bigpond.net.au>
296 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Ignore
297 as_needed libs that were not needed.
298 (gld${EMULATION_NAME}_check_needed): Likewise.
300 2005-04-07 Nick Clifton <nickc@redhat.com>
302 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h so that
303 ldfile.h can use the lang_input_statement type.
305 2005-04-06 Jakub Jelinek <jakub@redhat.com>
307 * ldlang.c: Formatting.
308 (walk_wild_consider_section): Remember return value from wildcardp.
309 (is_simple_wild): Use strcspn instead of 2 strpbrk calls and strlen.
310 (wild_spec_can_overlap): Use strcspn instead of strpbrk and strlen.
312 2005-04-06 Robert O'Callahan <rocallahan@novell.com>
314 * ld.h (lean_section_userdata_type): Remove.
315 (fat_section_userdata_type): Remove file field.
316 (SECTION_USERDATA_SIZE): Remove.
317 * ldlang.c (init_os): Eliminate initialization of unused
318 lean_section_userdata_type.
320 * ldlang.h (callback_t, walk_wild_section_handler_t): New
322 (struct lang_wild_statement_struct): Add walk_wild_section_handler
323 and handler_data fields.
324 * ldlang.c (callback_t): Removed.
325 (walk_wild_consider_section, walk_wild_section_general,
326 section_iterator_callback, find_section, is_simple_wild,
327 match_simple_wild, walk_wild_section_specs1_wild0,
328 walk_wild_section_specs1_wild1, walk_wild_section_specs2_wild1,
329 walk_wild_section_specs3_wild2, walk_wild_section_specs4_wild2,
330 wild_spec_can_overlap, analyze_walk_wild_section_handler): New
332 (lang_add_wild): Call analyze_walk_wild_section_handler.
333 (walk_wild_section): Renamed to walk_wild_section_general and
334 created a wrapper function.
335 (section_iterator_callback_data): New typedef.
337 2005-04-04 Nick Clifton <nickc@redhat.com>
339 * configure.in: Add a check for <unistd.h> providing a prototype
340 for getopt() which is compatible with the one in
341 include/getopt.h. If so then define HAVE_DECL_GETOPT.
342 * configure: Regenerate.
343 * config.in (HAVE_DECL_GETOPT): Add.
344 * ldemul.c: Include config.h
345 * lexsup.c: Likewise.
346 * emultempl/elf32.sc: Likewise.
348 2005-03-29 Alan Modra <amodra@bigpond.net.au>
350 * emultempl/elf32.em (gld${EMULATION_NAME}_layout_sections_again):
351 New function, extracted from static void gld${EMULATION_NAME}_finish.
352 (gld${EMULATION_NAME}_strip_empty_sections): Likewise.
353 (gld${EMULATION_NAME}_provide_init_fini_syms): Likewise.
354 * emultempl/ppc64elf.em: Revert last change.
355 (ppc_layout_sections_again): Use
356 gld${EMULATION_NAME}_layout_sections_again.
357 (ppc_finish): Don't call gld${EMULATION_NAME}_finish. Instead call
358 gld${EMULATION_NAME}_strip_empty_sections and
359 gld${EMULATION_NAME}_provide_init_fini_syms.
360 * emultempl/hppaelf.em: Similarly.
362 2005-03-29 Alan Modra <amodra@bigpond.net.au>
364 * emultempl/ppc64elf.em (need_laying_out): Delete. Remove all refs.
365 (ppc_finish): Don't call bfd_elf_discard_info.
366 * emultempl/hppaelf.em: Similarly.
368 2005-03-24 Nick Clifton <nickc@redhat.com>
370 * po/fr.po: Updated French translation.
372 2005-03-23 Mike Frysinger <vapier@gentoo.org>
373 Nick Clifton <nickc@redhat.com>
375 * configure.host: Accept any C library to accompany a GNU Linux
376 implementation, not just the GNU C library.
377 * configure.tgt: Likewise.
378 * emultempl/elf32.em: Likewise.
380 2005-03-22 H.J. Lu <hongjiu.lu@intel.com>
382 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols): New
383 (gld${EMULATION_NAME}_finish): Call
384 gld${EMULATION_NAME}_provide_bound_symbols to provide
385 __preinit_array_start, __preinit_array_end, __init_array_start,
386 __init_array_end, __fini_array_start and __fini_array_end.
388 * scripttempl/elf.sc: Don't provide __preinit_array_start,
389 __preinit_array_end, __init_array_start, __init_array_end,
390 __fini_array_start nor __fini_array_end.
392 2005-03-23 Alan Modra <amodra@bigpond.net.au>
394 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Set
395 SEC_EXCLUDE on .gnu.warning sections.
397 2005-03-22 Alan Modra <amodra@bigpond.net.au>
399 * scripttempl/elf.sc (SBSS): Don't provide sbss start and end syms.
401 2005-03-21 Alan Modra <amodra@bigpond.net.au>
403 * emultempl/ppc32elf.em (gld${EMULATION_NAME}_after_allocation): New
405 (LDEMUL_AFTER_ALLOCATION): Define.
407 2005-03-21 Alan Modra <amodra@bigpond.net.au>
409 * emultempl/ppc64elf.em (ppc_finish): Rename from
410 gld${EMULATION_NAME}_finish. Call gld${EMULATION_NAME}_finish.
411 (LDEMUL_FINISH): Update.
412 * emultempl/hppaelf.em (hppaelf_finish, LDEMUL_FINISH): Likewise.
413 * emultempl/m68hc1xelf.em (m68hc11elf_finish, LDEMUL_FINISH): Likewise.
415 2005-03-18 Julian Brown <julian@codesourcery.com>
417 * scripttempl/armbpapi.sc (.rel.dyn): Add .rel.init_array,
419 (.rela.dyn): Add .rela.init_array, .rela.fini_array.
420 (SECTIONS): Add .rel.other, .rela.other, .reli.other after PLT relocs.
422 2005-03-18 H.J. Lu <hongjiu.lu@intel.com>
424 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Don't set
425 bfd_section when removing unused empty output sections for
426 non-relocatable link.
428 2005-03-19 Alan Modra <amodra@bigpond.net.au>
430 * ldlang.c (lang_insert_orphan): Use old section_tail rather than
431 traversing the bfd section list to find pointer to new section.
433 2005-03-18 Alan Modra <amodra@bigpond.net.au>
435 * scripttempl/elf.sc: When CREATE_SHLIB, put .sdata2 and .sbss2
436 input sections into .sdata and .sbss output respectively.
438 2005-03-16 David Heine <dlheine@tensilica.com>
439 Bob Wilson <bob.wilson@acm.org>
441 * ldlang.c (IGNORE_SECTION): Remove check for zero size.
442 (lang_check_section_addresses): Ignore zero size sections here.
444 2005-03-16 H.J. Lu <hongjiu.lu@intel.com>
446 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Remove
447 unused empty output sections for non-relocatable link.
449 * ld.h (args_type): Remove gc_sections.
451 * ldlang.c (lang_mark_used_section): New.
452 (lang_gc_sections): Use link_info.gc_sections instead of
453 command_line.gc_sections.
454 * ldmain.c (main): Likewise.
455 * lexsup.c (parse_args): Likewise.
456 * ldlang.c (lang_process): Call lang_mark_used_section.
458 * ldmain.c (main): Initialize link_info.gc_sections to FALSE.
460 2005-03-16 Nick Clifton <nickc@redhat.com>
461 Ben Elliston <bje@au.ibm.com>
463 * configure.in (werror): New switch: Add -Werror to the
464 compiler command line. Enabled by default. Disable via
466 * configure: Regenerate.
468 2005-03-16 Alan Modra <amodra@bigpond.net.au>
470 * emulparams/elf32ppclinux.sh (OTHER_READWRITE_SECTION): Delete.
471 (OTHER_RELRO_SECTIONS): Set this instead.
473 2005-03-15 Nick Clifton <nickc@redhat.com>
475 * NEWS: Add cutoff for changes in 2.16 release.
477 2005-03-15 Mikkel Krautz <krautz@gmail.com>
479 * configure.tgt (x86_64-elf): Add target.
481 2005-03-15 Alan Modra <amodra@bigpond.net.au>
483 * po/es.po: Commit new Spanish translation.
485 2005-03-14 Alan Modra <amodra@bigpond.net.au>
487 * ldexp.c (exp_fold_tree): Ensure return value is initialized.
488 Tidy etree_assert case.
490 2005-03-14 Alan Modra <amodra@bigpond.net.au>
492 * po/tr.po: Commit new Turkish translation.
494 2005-03-11 Daniel Jacobowitz <dan@codesourcery.com>
496 * Makefile.am: Remove references to em68klynx.o and esparclynx.o.
497 * Makefile.in: Regenerated.
498 * emulparams/m68klynx.sh, emulparams/sparclynx.sh: Remove.
500 2005-03-07 Nick Clifton <nickc@redhat.com>
502 * po/fr.po: Updated translation.
504 2005-03-05 Alan Modra <amodra@bigpond.net.au>
506 * po/ld.pot: Regenerate.
508 2005-03-02 Jan Beulich <jbeulich@novell.com>
510 * ldmain.c (remove_output): Use unlink_if_ordinary instead of unlink.
511 * pe-dll.c (pe_dll_generate_implib): Likewise.
513 2005-02-24 Ben Elliston <bje@au.ibm.com>
515 * ldfile.c: Remove GNU960 conditional code.
516 * emultempl/gld960.em: Likewise.
517 * emultempl/gld960c.em: Likewise.
518 * emultempl/lnk960.em: Likewise.
520 2005-02-24 Nick Clifton <nickc@redhat.com>
522 * emultempl/lnk960.em (lnk960_before_parse): Remove redundant
523 empty string from calls to concat.
525 2005-02-23 Nick Clifton <nickc@redhat.com>
527 * emultempl/lnk960.em (lnk960_before_parse): Terminate list of
528 arguments passed to concat() with a NULL.
530 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h because they
531 define types needed by ldfile.h
533 2005-02-23 Alan Modra <amodra@bigpond.net.au>
535 * pe-dll.c: Warning fixes.
536 * emultempl/sunos.em: Likewise.
538 2005-02-22 Daniel Jacobowitz <dan@codesourcery.com>
540 * ldlang.c (section_already_linked): Don't call
541 bfd_section_already_linked for dynamic objects.
543 2005-02-22 Alan Modra <amodra@bigpond.net.au>
545 * ldexp.c: Warning fixes.
546 * ldwrite.c: Likewise.
547 * emultempl/elf32.em: Likewise.
549 2005-02-21 H.J. Lu <hongjiu.lu@intel.com>
551 * ldlang.c (lang_add_section): Check SEC_TIC54X_BLOCK for TI
553 (lang_size_sections_1): Check SEC_COFF_SHARED_LIBRARY for COFF
554 and ECOFF output only.
556 2005-02-21 Alan Modra <amodra@bigpond.net.au>
558 * config.in: Regenerate.
559 * configure: Regenerate.
561 2005-02-17 Zack Weinberg <zack@codesourcery.com>
563 * ldexp.c (assigning_to_dot): New global flag.
564 (fold_name): If assigning_to_dot is true, object immediately to
566 (exp_fold_tree): Set and clear assigning_to_dot around the
567 recursive call to exp_fold_tree to process the right-hand side
568 of an assignment to the location counter.
570 2005-02-17 Paul Brook <paul@codesourcery.com>
572 * scripttempl/armbpabi.sc: Add dummy name to version block.
574 2005-02-17 Alan Modra <amodra@bigpond.net.au>
576 * ldexp.c (new_abs): Init new.str.
578 2005-02-15 Mark Mitchell <mark@codesourcery.com>
580 * configure.in (AC_CHECK_FUNCS): Add glob.
581 * configure: Regenerated.
582 * emultempl/elf32.em (<glob.h>): Do not include if HAVE_GLOB is
584 (gld${EMULATION_NAME}_parse_ld_so_conf_include): Do not use glob
585 if HAVE_GLOB is not defined.
587 2005-02-16 Kaz Kojima <kkojima@rr.iij4u.or.jp>
589 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define
590 lib_path if NATIVE is yes.
592 2005-02-16 Alan Modra <amodra@bigpond.net.au>
594 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Make
595 an error creating fake bfd fatal.
596 (ppc_before_allocation): Continue on after errors.
597 (gld${EMULATION_NAME}_finish): Likewise.
599 2005-02-15 Nick Clifton <nickc@redhat.com>
601 * ldlex.l (YY_NO_UNPUT): Define so that the yy_unput function is
602 not declared. It is not used and its presence causes a compile
605 2005-02-11 Zack Weinberg <zack@codesourcery.com>
607 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed):
608 If st.st_ino is zero, do not treat the library as a duplicate.
610 2005-02-10 Jakub Jelinek <jakub@redhat.com>
612 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
613 Set BFD_LINKER_CREATED on the stubs bfd.
614 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
617 2005-02-08 Mark Mitchell <mark@codesourcery.com>
619 * scripttempl/armbpabi.sc (VERSION): Make special section symbols
621 (Image$$ER_RO$$Base): Define whenever RELOCATING.
622 (Image$$ER_RO$$Limit): Likewise.
623 (SHT$$INIT_ARRAY$$Base): Likewise.
624 (SHT$$INIT_ARRAY$$Limit): Likeise.
626 2005-02-10 Ben Elliston <bje@au.ibm.com>
628 * emultempl/beos.em: Remove #if 0 and #if 1 blocks.
630 2005-02-08 Richard Sandiford <rsandifo@redhat.com>
632 * configure.tgt (mips64*el-*-linux-gnu*): Define targ_extra_libpath
633 to include o32 and n64 emulations.
634 (mips64*-*-linux-gnu*): Likewise.
636 2005-02-08 Hans-Peter Nilsson <hp@axis.com>
638 * ldmain.c (warning_callback, warning_find_reloc): Prepend
639 "warning: " to warning messages.
641 2005-02-04 Alan Modra <amodra@bigpond.net.au>
643 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't
644 look up symbol for etree_provide here.
646 2005-02-02 Daniel Jacobowitz <dan@codesourcery.com>
648 * emulparams/elf32bmip.sh (TEXT_DYNAMIC): Always set.
650 2005-02-01 Edward Welbourne <eddy@opera.com>
651 Nick Clifton <nickc@redhat.com>
653 * ld.texinfo (Source Code Reference): New node describing how to
654 access linker script defined variables from source code.
656 2005-02-01 Alan Modra <amodra@bigpond.net.au>
658 * ld.texinfo: Clarify --as-needed operation.
660 2005-01-31 Andrew Cagney <cagney@gnu.org>
662 * configure: Regenerate to track ../gettext.m4.
664 2005-01-31 Nick Clifton <nickc@redhat.com>
666 * ldver.c (ldversion): Bump reported copyright date to 2005.
668 2005-01-31 Nick Clifton <nickc@redhat.com>
670 * configure.tgt: Remove obsolete targets m68k-lynxos and
673 2005-01-28 Julian Brown <julian@codesourcery.com>
675 * emultempl/armelf.em (fix_v4bx): New variable.
676 (arm_elf_create_output_section_statements): Communicate fix_v4bx flag
678 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_FIX_V4BX.
679 (PARSE_AND_LIST_LONGOPTS): Add option --fix-v4bx.
680 (PARSE_AND_LIST_OPTIONS): Add option --fix-v4bx.
681 (PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX.
682 * NEWS: Mention --fix-v4bx.
683 * ld.texinfo: Document --fix-v4bx.
685 2005-01-25 Mark Mitchell <mark@codesourcery.com>
687 * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Define, so
688 as to include .ARM.exidx$${Base,Limit}.
689 * ld/scripttempl/armbpabi.sc: Move .plt to end of text segment.
690 Define IMAGE$$ER_RO$${Base,Limit} and SHT$$INIT_ARRAY$${Base,Limit}.
691 Put .init_array, .fini_array, etc. into the read-only data
694 2005-01-25 Alan Modra <amodra@bigpond.net.au>
696 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Formatting.
697 (gld${EMULATION_NAME}_after_open): Ignore needed libs if they were
698 only needed by an as-needed lib that didn't get linked.
700 2005-01-23 Alan Modra <amodra@bigpond.net.au>
702 * ld.texinfo (Output Section Keywords <CONSTRUCTORS>): Correct
703 __DTOR_LIST__ description.
705 2005-01-23 Alan Modra <amodra@bigpond.net.au>
707 * ld.texinfo (Location Counter <dot outside sections>): Document
708 effects of orphan section placement, and ". = ." workaround.
709 * Makefile.in: Regenerate.
711 2005-01-22 Richard Sandiford <rsandifo@redhat.com>
713 * emulparams/elf32bmip.sh (OTHER_GOT_SECTIONS): Add ". = .;".
714 * emulparams/elf32bmipn32-defs.sh (OTHER_GOT_SECTIONS): Likewise.
716 2005-01-21 Jakub Jelinek <jakub@redhat.com>
718 * ldgram.y (AS_NEEDED): New token.
719 (input_list): Handle AS_NEEDED ( input_list ).
720 * ldlex.l (AS_NEEDED): Add.
721 * ld.texinfo: Document AS_NEEDED ().
722 * NEWS: Mention AS_NEEDED ().
724 2005-01-21 Ben Elliston <bje@au.ibm.com>
726 * ldlang.c (lang_reasonable_defaults): Remove.
727 (lang_process): Don't call lang_reasonable_defaults.
729 * ldexp.c (exp_assop): Remove #if 0'd code.
730 (exp_print_tree): Likewise.
731 * ldlang.c (lang_memory_region_lookup): Likewise.
732 (open_output): Likewise.
733 (lang_do_assignments_1): Likewise.
734 (lang_place_orphans): Likewise.
735 (lang_enter_output_section_statement): Likewise.
736 (lang_reasonable_defaults): Likewise.
737 * ldlang.h (struct lang_input_statement_struct): Likewise.
738 * mri.c (mri_draw_tree): Likewise.
739 (mri_load): Likewise.
740 * pe-dll.c (generate_reloc): Likewise.
741 (make_import_fixup_entry): Likewise.
743 * emultempl/beos.em (set_pe_subsystem): Likewise.
744 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
745 * emultempl/pe.em: Likewise.
746 * emultempl/xtensaelf.em (xtensa_colocate_literals): Likewise.
748 2005-01-20 Daniel Jacobowitz <dan@codesourcery.com>
750 * Makefile.am (ALL_EMULATIONS): Add earmelfb_linux_eabi.o.
751 (earmelfb_linux_eabi.c): New target.
752 * Makefile.in: Regenerated.
753 * configure.tgt (arm*b-*-linux-gnueabi): New target.
754 * emulparams/armelfb_linux_eabi.sh: New file.
756 2005-01-20 Nick Hudson <skrll@netbsd.org>
759 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
760 Handle bfd_elf32_hppa_nbsd_vec.
762 2005-01-19 Richard Sandiford <rsandifo@redhat.com>
764 * ldmain.h (ld_sysroot): Change type to a constant string.
765 * ldmain.c (ld_sysroot): Likewise.
766 (get_relative_sysroot, get_sysroot): New functions, adding command-line
767 support for changing the sysroot.
768 (main): Call the new functions.
769 * lexsup.c (OPTION_SYSROOT): New.
770 (ld_options): Add --sysroot.
771 (parse_args): Add a dummy handler for it.
772 * ld.texinfo (--sysroot): Document.
773 * NEWS: Mention the new --sysroot option.
775 2005-01-18 Alan Modra <amodra@bigpond.net.au>
777 * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
778 (lang_place_orphans): Don't abort on just_syms_flag, instead call
781 2005-01-16 Danny Smith <dannysmith@users.sourceforge.net>
783 * defilep.y (def_name, def_library): Combine into...
784 (def_image_name): New function. Strip name to basename,
787 2005-01-12 Mark Kettenis <kettenis@gnu.org>
789 * configure.in: Be sure to invoke config.sub using the shell.
790 * configure: Regenerate.
792 2005-01-11 Alan Modra <amodra@bigpond.net.au>
794 * configure.host: Correct sed patterns for last change.
796 2005-01-10 Nick Clifton <nickc@redhat.com>
799 * ldmisc.c (vfinfo): Add an extra argument: is_warning. Use this
800 to determine whether config.make_executable should be set to FALSE in
801 conjunction with config.fatal_warnings.
802 (info_msg, minfo, lfinof): Pass FALSE as the extra argument.
803 (einfo): Pass TRUE as the extra argument.
805 2005-01-10 Greg Schaffer <gschafer@zip.com.au>
807 * configure.host (linux targets): Use "${CC} -dumpspecs" instead
808 of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0.
809 (ia64-*-aix): Delete - this target is obsolete, and would be
810 broken by this patch.
812 2005-01-06 Eric Botcazou <ebotcazou@libertysurf.fr>
814 * configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*.
815 (sparc64-sun-solaris2*): New host.
817 2005-01-06 Paul Brook <paul@codesourcery.com>
819 * Makefie.am: Add earmelf_vxworks.
820 * Makefile.in: Regenerate.
821 * configure.tgt: Make arm-*-vxworks a separate case.
822 * emulparams/armelf_vxworks.sh: New function.
824 2005-01-06 Alan Modra <amodra@bigpond.net.au>
826 * emultempl/ppc64elf.em (no_multi_toc): New var.
827 (gld${EMULATION_NAME}_finish): Pass to ppc64_elf_setup_section_lists.
828 (OPTION_NO_MULTI_TOC): Define.
829 (PARSE_AND_LIST_LONGOPTS): Add --no-multi-toc support.
830 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
832 2005-01-05 Nick Clifton <nickc@redhat.com>
835 * ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
836 Standard's specification for parsable error messages.
838 2005-01-04 Paul Brook <paul@codesourcery.com>
840 * Makefile.am: Correct dependency for earmsymbian.c.
841 * Makefile.in: Regenerate.
843 2004-12-28 Danny Smith <dannysmith@users.sourceforge.net>
845 * emultempl/pe.em (set_pe_subsystem): Change second arg to
846 lang_add_entry to FALSE.
848 2004-12-23 Nick Clifton <nickc@redhat.com>
851 * emulparams/shelf.sh (.stack): Increase stack start address to
854 2004-12-20 Nick Clifton <nickc@redhat.com>
856 * ldmain.c (main): Issue an error message if -static and -shared
859 2004-12-17 Jakub Jelinek <jakub@redhat.com>
861 * ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
862 * ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
863 * ldlang.c (lang_size_sections): Use them to avoid wasting virtual
864 address space at DATA_SEGMENT_ALIGN. Fix computation of expected
865 PT_GNU_RELRO segment end.
867 2004-12-14 P.J. Darcy <darcypj@us.ibm.com>
869 * configure.tgt: Add s390x-ibm-tpf support.
871 2004-12-16 Martin Kögler <mkoegler@auto.tuwien.ac.at>
873 * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
876 2004-12-07 Ben Elliston <bje@gnu.org>
878 * ldemul.h: Forward declare struct option.
880 2004-12-01 Danny Smith <dannysmith@users.sourceforge.net>
882 * scripttempl/pe.sc (.data): Add .jcr subsection.
884 2004-11-30 Paul Brook <paul@codesourcery.com>
886 * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
888 2004-11-30 Tero Niemela <tero_niemela@yahoo.com>
890 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
891 * Makefile.in: Regenerate.
893 2004-11-26 Melissa Mears <asterisk@graces.dricas.com>
895 * emultempl/pe.em: Add --subsystem:xbox as well as
897 * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
898 and numeric subsystems.
900 2004-11-24 Alan Modra <amodra@bigpond.net.au>
902 * ldexp.c (fold_name): Correct PR 338 fix.
904 2004-11-19 Mark Mitchell <mark@codesourcery.com>
906 * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
907 (earmelf_linux_eabi.c): New target.
908 * configure.tgt (arm*-*-linux-gnueabi): Handle it.
909 * emulparams/armelf_linux_eabi.sh: New file.
910 * Makefile.in: Regenerated.
912 2004-11-19 Nick Clifton <nickc@redhat.com>
915 * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
916 LENGTH fields in the MEMORY command, to explicitly state that
917 symbols cannot be used in their expressions.
919 2004-11-19 Jon Beniston <jon@beniston.com>
921 * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
922 * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
923 * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
924 which return the length and origin of a memory.
925 * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
926 * NEWS: Mention support for ORIGIN and LENGTH operators.
928 2004-11-17 Daniel Jacobowitz <dan@codesourcery.com>
930 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
931 a dynamic object for stubs.
933 2004-11-04 Paul Brook <paul@codesourcery.com>
935 * ld.texinfo: Document --default-imported-symver.
936 * ldmain.c (main): Set link_info.default_imported_symver.
937 * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
938 (ld_options): Add --default-imported-symver.
939 (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
941 2004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
942 Vineet Sharma <vineets@noida.hcltech.com>
944 * Makefile.am: Add entries for new maxq-coff target.
945 * Makefile.in: Regenerate.
946 * configure.tgt: Add support for maxq.
947 * emulparams/maxqcoff.sh: New File.
948 * scripttempl/maxqcoff.sc: New linker script for target maxq.
949 * NEWS: Mention the new target.
951 2004-11-04 Daniel Jacobowitz <dan@debian.org>
953 * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
954 (earmelf_oabi.c): Remove rule.
955 * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
956 * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
957 * Makefile.in: Regenerated.
959 2004-11-04 Hans-Peter Nilsson <hp@axis.com>
961 * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
962 * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
964 (INIT_END): Remove emitted "jump [sp+]".
967 2004-11-04 Alan Modra <amodra@bigpond.net.au>
969 * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
970 (no_opd_opt, no_toc_opt): New static vars.
971 (ppc_before_allocation): Don't edit opt if no_opd_opt. Call
973 (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
974 (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
975 (PARSE_AND_LIST_OPTIONS): Describe new options.
976 (PARSE_AND_LIST_ARGS_CASES): Handle them.
978 2004-10-27 Nick Clifton <nickc@redhat.com>
980 * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
981 parameter to invocation of lang_section_start.
982 * emultempl/aix.em (_handle_option): Likewise.
984 * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
985 eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
986 * Makefile.in: Regenerate.
988 2004-10-26 Mark Mitchell <mark@codesourcery.com>
990 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
991 __exidx_{start,end} when not relocating.
993 2004-10-25 Mark Mitchell <mark@codesourcery.com>
995 * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
996 * ldexp.h (segment_type): New type.
997 (segments): New variable.
998 * ldexp.c (segments): New variable.
999 (exp_print_token): Handle SEGMENT_START.
1000 (fold_binary): Likewise.
1001 * ldgram.y (SEGMENT_START): Declare it as a token.
1002 (exp): Handle SEGMENT_START.
1003 * ldlang.h (lang_address_statement_type): Add segment field.
1004 (lang_section_start): Change prototype.
1005 * ldlang.c (map_input_to_output_sections): Do not process section
1006 assignments if a corresponding SEGMENT_START has already been
1008 (lang_section_start): Add segment parameter.
1009 * ldlex.l (SEGMENT_START): Add it.
1010 * lexsup.c (seg_segment_start): New function.
1011 (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
1012 * ld.texinfo (SEGMENT_START): Document it.
1013 * emulparams/armsymbian.sh (EMBEDDED): Set it.
1014 * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
1015 base addresses. Do not map relocations.
1016 * NEWS: Mention SEGMENT_START.
1018 2004-10-26 Paul Brook <paul@codesourcery.com>
1020 * ld.texinfo: Document --default-symver.
1021 * ldmain.c (main): Set link_info.create_default_symver.
1022 * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
1023 (ld_options): Add default-symver.
1024 (parse_args): Handle OPTION_DEFAULT_SYMVER.
1026 2004-10-24 Danny Smith <dannysmith@users.sourceforge.net>
1028 * pe-dll.c (process_def_file): Don't export all symbols by default if
1029 building a position-independent executable.
1031 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
1034 * ldmain.c (reloc_overflow): Accept a pointer to struct
1035 bfd_link_hash_entry. Report symbol location for relocation
1038 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
1040 * genscripts.sh (libpath.exp): Really generate for first
1043 2004-10-19 Danny Smith <dannysmith@users.sourceforge.net>
1045 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
1046 comparison and replacement of filenames.
1048 2004-10-19 H.J. Lu <hongjiu.lu@intel.com>
1051 * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
1052 option on linker script as the one for linker script.
1054 2004-10-16 Daniel Jacobowitz <dan@debian.org>
1056 * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
1057 (check_excluded_libs): New.
1058 (load_symbols): Call check_excluded_libs.
1059 * ldlang.h (add_excluded_libs): New prototype.
1060 * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
1061 (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
1062 (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
1063 * ld.texinfo (Command Line Variables): Document --exclude-libs.
1064 (Options Specific to i386 PE Targets): Remove --exclude-libs.
1066 2004-10-15 Alan Modra <amodra@bigpond.net.au>
1068 * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
1069 failing link script assert.
1071 * ldctor.c (ldctor_add_set_entry): Fix comment typo.
1073 2004-10-14 H.J. Lu <hongjiu.lu@intel.com>
1076 * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
1077 (SMALL_DATA_DTOR): Set.
1078 * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
1079 (SMALL_DATA_DTOR): Unset.
1080 * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
1081 after .data. If SMALL_DATA_DTOR is set, move .dtors after
1084 2004-10-14 Alan Modra <amodra@bigpond.net.au>
1087 * ldlang.h (lang_output_section_statement_type): Make "next" a
1088 struct lang_output_section_statement_struct *.
1089 (struct orphan_save): Move from elf32.em. Add "name" and "flags".
1090 (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
1091 * ldlang.c (lang_output_section_find_1): Adjust for changed
1092 output_section_statement "next".
1093 (strip_excluded_output_sections): Likewise.
1094 (lang_record_phdrs): Likewise.
1095 (lang_output_section_find_by_flags): New function.
1096 (output_prev_sec_find): Move from pe.em. Adjust iterator.
1097 (lang_insert_orphan): New function. Tail end of elf32.em's
1098 place_orphan merged with that from pe.em. Allow bfd_section to
1099 be placed first. New heuristic for placing new output section
1100 statement in existing script, and accompanying split of __start
1101 symbol alignment into a separate assignment to dot.
1102 (lang_add_section): Consistently use output->bfd_section rather than
1103 an alias, section->output_section.
1104 (map_input_to_output_sections): Rename overly long arg. Move
1105 initialization of data_statement output section to here..
1106 (lang_check_section_addresses): ..from here.
1107 (print_assignment): Correct printing of etree_assert.
1108 (print_all_symbols): Don't bomb if userdata is NULL.
1109 (IGNORE_SECTION): Rearrange.
1110 * emultempl/elf32.em (output_rel_find): Adjust interator.
1111 (output_prev_sec_find): Delete.
1112 (struct orphan_save): Delete.
1113 (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
1114 flags without creating a duplicate output section statement.
1115 Revise code holding history of various orphan section placements.
1116 Allow orphan sections to place before script specified output
1117 sections. Call lang_output_section_find_by_flags when placement
1118 by name fails. Use lang_insert_orphan.
1119 * emultempl/mmo.em (output_prev_sec_find): Delete.
1120 (struct orphan_save): Delete.
1121 (mmo_place_orphan): Revise code holding history of orphan placement.
1122 Allow orphans to place before existing output sections. Use
1124 * emultempl/pe.em (output_prev_sec_find): Delete.
1125 (struct orphan_save): Delete.
1126 (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
1129 2004-10-13 Mark Mitchell <mark@codesourcery.com>
1131 * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
1134 2004-10-13 Alan Modra <amodra@bigpond.net.au>
1137 * ldcref.c (check_section_sym_xref): Delete.
1138 (check_local_sym_xref): New function.
1139 (check_nocrossrefs): Adjust call.
1140 * emultempl/pe.em (struct orphan_save): Add os_tail.
1141 (place_orphan): Backport assorted fixes from elf32.em.
1143 2004-10-12 Bob Wilson <bob.wilson@acm.org>
1145 * emultempl/xtensaelf.em: Use ISO C90 formatting.
1147 2004-10-11 Jakub Jelinek <jakub@redhat.com>
1149 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
1150 getline for portability.
1152 * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
1153 (gld${EMULATION_NAME}_parse_ld_so_conf,
1154 gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
1155 (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
1157 2004-10-11 Alan Modra <amodra@bigpond.net.au>
1160 * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
1161 rejected when linking statically.
1163 2004-10-08 Daniel Jacobowitz <dan@debian.org>
1165 * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
1167 2004-10-07 Bob Wilson <bob.wilson@acm.org>
1169 * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
1170 assembler-generated longcall sequences. Describe new --size-opt
1172 * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
1173 * emultempl/xtensaelf.em (remove_section,
1174 replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
1175 elf_xtensa_after_open): New.
1176 (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
1177 OPTION_NO_LITERAL_MOVEMENT): Define.
1178 (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
1179 (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
1180 (PARSE_AND_LIST_OPTIONS): Add --size-opt.
1181 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
1182 OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
1183 (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
1184 * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
1185 * Makefile.am (eelf32xtensa.c): Update dependencies.
1186 * Makefile.in: Regenerate.
1188 2004-10-07 Jeff Baker <jbaker@qnx.com>
1190 * lexsup.c: Handle --warn-shared-textrel option.
1191 (ld_options): Restore alpha sorting of options.
1192 * ldmain.c (main): Initialise warn_shared_info field to FALSE.
1193 * ld.texinfo: Add documentation for --warn-shared-textrel.
1194 * NEWS: Added mention of --warn-shared-textrel option.
1196 2004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
1198 * emultempl/crxelf.em (disable_relaxation): Add.
1199 (crxelf_before_allocation): Enable --relax option by default.
1200 (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
1201 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
1202 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
1204 2004-10-04 H.J. Lu <hongjiu.lu@intel.com>
1206 * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
1207 --sort-section name|alignment.
1209 * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
1210 --sort-section name|alignment.
1212 * ld.h (sort_type): New enum.
1213 (wildcard_spec): Change the type of `sorted' to sort_type.
1215 * ldgram.y (SORT): Removed.
1216 (SORT_BY_NAME): Added.
1217 (SORT_BY_ALIGNMENT): Added.
1218 (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
1220 (input_section_spec_no_keep): Updated `sorted'.
1221 (statement): Replace SORT with SORT_BY_NAME.
1223 * ldlang.c (compare_section): New function to compare 2
1224 sections with different sorting schemes.
1225 (wild_sort): Updated. Use compare_section.
1226 (update_wild_statements): New function.
1227 (lang_process): Call update_wild_statements before
1228 map_input_to_output_sections.
1230 * ldlex.l (SORT_BY_NAME): New.
1231 (SORT_BY_ALIGNMENT): New.
1232 (SORT): Return SORT_BY_NAME.
1234 * ldmain.c (sort_section): New. Defined.
1235 (main): Initialize it to none.
1237 * lexsup.c (option_values): Add OPTION_SORT_SECTION.
1238 (ld_options): Add an entry for OPTION_SORT_SECTION.
1239 (parse_args): Handle OPTION_SORT_SECTION.
1241 * mri.c (mri_draw_tree): Updated `sorted'.
1243 2004-10-04 Jakub Jelinek <jakub@redhat.com>
1245 * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
1246 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
1248 (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
1249 and . as second argument.
1250 (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
1251 * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
1252 (fold_binary): Add it here. Insert padding to make relro_end
1253 COMMONPAGESIZE bytes aligned. For DATA_SEGMENT_ALIGN in
1254 exp_dataseg_relro_adjust phase just use previously computed
1256 * ldlang.c (lang_size_sections): Set exp_data_seg.base for
1257 relro_adjust here. Call lang_size_sections_1 once more if there
1258 was too big padding at DATA_SEGMENT_RELRO_END.
1259 * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
1261 2004-10-01 Paul Brook <paul@codesourcery.com>
1263 * emulparams/armelf.sh: Add unwinding table sections.
1265 2004-09-30 Filip Navara <navaraf@reactos.com>
1267 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
1268 correct base address for position independant executables.
1269 * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
1270 executables as DLLs.
1272 2004-09-30 Paul Brook <paul@codesourcery.com>
1274 * ld.texinfo: Document --target2=abs.
1275 * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
1277 2004-09-29 Nick Clifton <nickc@redhat.com>
1279 * scripttempl/xstormy16.sc: Only perform the assignments to the
1280 ROM region when not performing a relocatable link. The ROM region
1281 does not start at address 0, but the sections will.
1282 * Makefile.am: Fix linker script dependency for the generation of
1284 * Makefile.in: Regenerate.
1286 2004-09-18 Filip Navara <navaraf@reactos.com>
1288 * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
1289 emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
1290 emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
1292 * scripttempl/pe.sc: Make the virtual address and file offset synced if
1293 the alignment is lower than the target page size.
1295 2004-09-27 Filip Navara <navaraf@reactos.com>
1297 * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
1298 def_file_parse to handle pe_def_file if NULL and prevent crash with
1301 2004-09-27 Alan Modra <amodra@bigpond.net.au>
1303 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
1304 --emit-stub-syms automatically when --emit-relocs.
1306 2004-09-24 Paul Brook <paul@codeosurcery.com>
1308 * scripttempl/elf.sc: Keep .preinit_array, .init_array and
1309 .fini_array sections.
1311 2004-09-19 Andreas Schwab <schwab@suse.de>
1313 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
1314 base so that relro end is suitably aligned.
1316 2004-09-17 Paul Brook <paul@codesourcery.com>
1318 * ld.texinfo: Rename arm-specific section. Document --target*
1319 * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
1320 * emulparams/armelf_linux.sh: Ditto.
1321 * emulparams/armelf_nbsd.sh: Ditto.
1322 * emultempl/armelf.em: Set default for TARGET2_TYPE.
1323 (target2_type): New variable.
1324 (arm_elf_before_allocation): Don't pass target1_type.
1325 (arm_elf_create_output_section_statements): New function.
1326 (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
1327 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
1328 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
1329 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
1330 * emultempl/armelf_oabi.em (_before_allocation): Remove extra
1331 argument to bfd_elf32_arm_process_before_allocation.
1333 2004-09-17 Alan Modra <amodra@bigpond.net.au>
1335 * ldexp.c (fold_name): Update u.undef.next refs.
1336 * emultempl/pe.em: Likewise.
1337 * emultempl/sunos.em: Likewise.
1339 2004-09-17 Alan Modra <amodra@bigpond.net.au>
1341 * Makefile.am: Run "make dep-am".
1342 * Makefile.in: Regenerate.
1343 * config.in: Regenerate.
1344 * configure: Regenerate.
1345 * aclocal.m4: Regenerate.
1346 * po/ld.pot: Regenerate.
1348 2004-09-16 Tomer Levi <Tomer.Levi@nsc.com>
1350 * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
1354 2004-09-16 Alan Modra <amodra@bigpond.net.au>
1356 * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
1357 to bfd_elf32_arm_process_before_allocation call.
1359 2004-09-13 Paul Brook <paul@codesourcery.com>
1361 * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
1362 * emultempl/armelf.em: Use TARGET1_IS_REL. Add --target1-{rel,abs}.
1364 2004-09-07 H.J. Lu <hongjiu.lu@intel.com>
1366 * configure: Regenerated with autconfig 2.13.
1368 2004-09-07 Andreas Schwab <schwab@suse.de>
1370 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
1371 alignment before adjusting DATA_SEGMENT_RELRO_END.
1373 2004-09-06 Mark Mitchell <mark@codesourcery.com>
1375 * emulparams/armsymbian.sh: Use armbpabi script.
1376 * scripttempl/armbpabi.sc: New script.
1378 2004-09-02 Mark Mitchell <mark@codesourcery.com>
1380 * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
1381 (earmsymbian.c): New target.
1382 * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
1383 * Makefile.in: Regenerated.
1384 * aclocal.m4: Likewise.
1385 * configure: Likewise.
1386 * emulparams/armsymbian.sh: New file.
1388 2004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
1390 * scripttempl/elf32crx.sc: Edit file with comments.
1391 (.init): Add new section.
1393 (.ctor): Control the linkage order.
1396 2004-08-27 Nick Clifton <nickc@redhat.com>
1398 * emultempl/pe.em (after_open): Do not assume that either bfd is
1401 2004-08-26 Alan Modra <amodra@bigpond.net.au>
1403 * ldlang.c (lang_init): Don't compare with TRUE.
1405 2004-08-25 Dmitry Diky <diwil@spec.ru>
1407 * emulparams/msp430all.sh: Fix RAM sizes for all targets.
1408 * scripttempl/elf32msp430.sc: Add .profiler section definition.
1410 2004-08-24 H.J. Lu <hongjiu.lu@intel.com>
1412 * ldlang.c (wildcardp): Defined as a macro with strpbrk.
1414 2004-08-19 Mark Mitchell <mark@codesourcery.com>
1416 * configure.tgt (arm*-*-symbianelf*): New target.
1417 (arm*-*-eabi*): Likewise.
1419 2004-08-19 Jakub Jelinek <jakub@redhat.com>
1421 * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
1422 (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
1423 (OPTION_NON_OVERLAPPING_OPD): Define.
1424 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
1425 --non-overlapping-opd option.
1427 2004-08-18 Alan Modra <amodra@bigpond.net.au>
1430 * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
1431 was already on the undefs list.
1433 2004-08-17 Alan Modra <amodra@bigpond.net.au>
1435 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
1436 prefix the symbol field too.
1438 2004-08-13 Alan Modra <amodra@bigpond.net.au>
1440 * ldmain.c (link_callbacks): Remove "error_handler".
1441 * ldmisc.c: Include elf-bfd.h.
1442 (vfinfo): Sort comment. Handle %A. Use %A instead of
1443 bfd_get_section_indent.
1444 (error_handler): Delete.
1445 * ldmisc.h (error_handler): Delete declaration.
1447 2004-08-10 Alan Modra <amodra@bigpond.net.au>
1449 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
1450 ppc64_elf_restore_symbols.
1452 2004-08-09 Alan Modra <amodra@bigpond.net.au>
1454 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
1455 .toc is too large on relocatable linking.
1457 2004-08-09 Alan Modra <amodra@bigpond.net.au>
1459 * emultempl/ppc64elf.em (ppc_after_open): Delete.
1460 (LDEMUL_AFTER_OPEN): Don't define.
1462 2004-08-02 Stephane Carrez <stcarrez@nerim.fr>
1464 * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
1466 2004-08-01 Stephane Carrez <stcarrez@nerim.fr>
1468 * scripttempl/elfm68hc12.sc: Align text, rodata and data section
1471 2004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
1473 * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
1475 2004-07-26 Dmitry Diky <diwil@spec.ru>
1477 * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
1478 msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
1480 * configure.tgt: Likewise.
1481 * emulparams/msp430all.sh: Likewise.
1482 * Makefile.in: Regenerate.
1484 2004-07-23 Nick Clifton <nickc@redhat.com>
1486 * emultempl/elf32.em (_place_orphan): Use an already existing
1487 section name if that section does not have any flags set.
1489 2004-07-21 H.J. Lu <hongjiu.lu@intel.com>
1491 * ldlang.c (already_linked_hash_entry): Removed.
1492 (already_linked): Likewise.
1493 (already_linked_table): Likewise.
1494 (section_already_linked): Call bfd_section_already_linked.
1495 (lang_process): Replace already_linked_table_init with
1496 bfd_section_already_linked_table_init and check return. Replace
1497 already_linked_table_free with bfd_section_already_linked_table_free.
1499 2004-07-21 Nick Clifton <nickc@redhat.com>
1501 * ldlang.c (init_os): Make sure that the newly allocated userdata
1502 structure is zeroed out.
1504 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
1506 * NEWS: Mention the new --add-needed/--no-add-needed and
1507 --as-needed/--no-as-needed options.
1509 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
1511 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
1512 check the add_needed field.
1513 (dt_needed): New struct.
1514 (gld${EMULATION_NAME}_try_needed): Change the first argument
1515 to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
1516 bit in the file where the DT_NEEDED entry comes from.
1517 (gld${EMULATION_NAME}_search_needed): Change the second
1518 argument to a pointer to struct dt_needed.
1519 (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
1520 (gld${EMULATION_NAME}_after_open): Likewise.
1522 * ld.texinfo: Add --add-needed document.
1523 * ldlang.c (new_afile): Set p->add_needed.
1524 * ldlang.h (lang_input_statement_type): Add add_needed field.
1525 * ldmain.h (add_needed): Declare.
1526 * ldmain.c (add_needed): New global var.
1527 * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
1528 OPTION_NO_ADD_NEEDED.
1529 (ld_options): Likewise.
1530 (parse_args): Handle them.
1532 2004-07-13 Christof Petig <christof@petig-baender.de>
1534 * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
1535 for endian-ness of extracted addend.
1537 2004-07-13 Danny Smith <dannysmith@usesr.sourceforge.net>
1539 * pe-dll.c (auto_export): Filter on just the import prefix,
1540 "_imp_", not "_imp__".
1542 2004-07-09 Nick Clifton <nickc@redhat.com>
1544 * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
1546 2004-07-06 Tomer Levi <Tomer.Levi@nsc.com>
1548 * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
1549 (eelf32crx.c): New target.
1550 * Makefile.in: Regenerate.
1551 * configure.tgt: Handle crx-*-elf*.
1552 * emulparams/elf32crx.sh: New file.
1553 * emultempl/crxelf.em: New file.
1554 * scripttempl/elf32crx.sc: New file.
1555 * NEWS: Mention new target.
1557 2004-07-06 Nick Clifton <nickc@redhat.com>
1559 * Makefile.am: Add eshlsymbian.c.
1560 * Makefile.in: Regenerate.
1561 * configure.tgt: Add sh*-symbian-elf target.
1562 * emulparams/shlsymbian.sh: New file. Configure the
1563 sh-symbian-elf linker scripts.
1564 * scripttemp/elf32sh-symbian.sc: New file. Linker script
1565 template for the sh-symbian-elf target.
1567 2004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1569 * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
1570 * emulparams/hppalinux.sh: Likewise.
1571 * scripttempl/elf.sc: Place .plt just before .got when .plt is in
1572 data segment and PLT_BEFORE_GOT is defined.
1574 2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1576 * ld.texinfo (WIN32): Document PE weak symbols.
1578 2004-07-02 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1580 * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
1582 2004-07-01 H.J. Lu <hongjiu.lu@intel.com>
1584 * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
1587 2004-06-29 Alan Modra <amodra@bigpond.net.au>
1589 * ldlang.c (lang_reset_memory_regions): Save last relax pass section
1592 2004-06-24 Alan Modra <amodra@bigpond.net.au>
1594 * ldlang.c (print_output_section_statement): Don't print size before
1596 (IGNORE_SECTION): Remove bfd arg. Update all callers.
1598 * ldexp.c (fold_name): .. See below.
1599 * ldlang.c (section_already_linked, print_output_section_statement,
1600 print_input_section, insert_pad, size_input_section,
1601 lang_check_section_addresses, lang_size_sections_1,
1602 lang_size_sections, lang_do_assignments_1, lang_set_startof,
1603 lang_one_common, lang_reset_memory_regions, lang_process,
1604 lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
1605 * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
1606 * pe-dll.c (process_def_file, generate_reloc): ..
1607 * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
1608 gld${EMULATION_NAME}_before_allocation): ..
1609 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
1610 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
1611 sh64_elf_${EMULATION_NAME}_after_allocation): ..
1612 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
1613 * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
1614 ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
1615 "size" instead of "_raw_size" and "_cooked_size". Expand
1616 bfd_section_size macro invocations.
1618 2004-06-22 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1620 * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
1621 ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
1622 ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
1624 (.tls): Define ___tls_start__ and ___tls_end__.
1626 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
1628 * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
1630 2004-06-18 Adam Nemet <anemet@lnxw.com>
1632 * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
1633 * configure: Regenerate.
1635 2004-06-15 Jakub Jelinek <jakub@redhat.com>
1637 * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
1638 .gcc_except_table output sections lost accidentally with
1641 2004-06-15 Alan Modra <amodra@bigpond.net.au>
1643 * ldwrite.c (build_link_order): Use bfd_get_section_size
1644 instead of bfd_get_section_size_before_reloc or _raw_size.
1645 * pe-dll.c (process_def_file): Likewise.
1647 2004-06-14 Alan Modra <amodra@bigpond.net.au>
1649 From Richard Wirth <r.wirth@wirthware.de>
1650 * ldlang.c (lang_finish): Don't free lang_definedness_table.
1652 2004-05-29 Alan Modra <amodra@bigpond.net.au>
1654 * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
1655 (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
1657 2004-05-28 Alan Modra <amodra@bigpond.net.au>
1659 * ldlang.c: Formatting. Wrap long lines, expand bfd_get_section_flags
1661 * lexsup.c: Formatting. Wrap long lines.
1662 * ldwrite.c: Update copyright date.
1664 * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
1665 (output_section_callback): Nor SEC_KEEP here.
1666 (gc_section_callback): Twiddle SEC_EXCLUDE here.
1667 (lang_gc_wild): Delete. Fold into..
1668 (lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage
1670 (lang_process): Always call lang_gc_sections.
1671 (lang_place_orphans): Handle SEC_EXCLUDE sections.
1672 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
1675 2004-05-26 H.J. Lu <hongjiu.lu@intel.com>
1677 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
1678 SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
1679 * ldlang.c (lang_add_section): Likewise.
1681 2004-05-26 Alan Modra <amodra@bigpond.net.au>
1683 * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
1684 sections when doing a final link. Clear SEC_EXCLUDE when doing
1685 a relocable link, except for SEC_DEBUGGING sections.
1686 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
1687 same condition here to drop SEC_EXCLUDE orphan sections.
1689 2004-05-25 Alan Modra <amodra@bigpond.net.au>
1691 * ldlang.c (lang_process): Call bfd_merge_sections later, and
1692 only when not a relocatable link.
1693 (print_input_section): Handle SEC_EXCLUDE sections.
1694 (size_input_section): Don't update dot on SEC_EXCLUDE sections.
1695 (lang_do_assignments_1): Likewise.
1696 * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
1697 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
1698 * emultempl/hppaelf.em (build_section_lists): Likewise.
1699 * emultempl/ppc64elf.em (build_toc_list): Likewise.
1700 (build_section_lists): Likewise.
1702 2004-05-23 Andreas Schwab <schwab@suse.de>
1704 * ld.texinfo (Options): Fix typo in last change.
1706 2004-05-21 Andy Chittenden <achittenden@bluearc.com>
1708 * ld.h (ld_config_type): Add new field: hash_table_size.
1709 * ldmain.c: Initialise the new field to zero. If it is non-zero
1710 after parsing the linker's command line call
1711 bfd_hash_set_default_size.
1712 * lexsup.c (option_values): Add OPTION_HASH_SIZE.
1713 (ld_options): Add hash-size.
1714 (parse_args): Parse --hash-size option. Allow
1715 --reduce-memory-overheads to set the default hash table size as
1717 * ld.texinfo: Document the new switch. Also mention that
1718 --reduce-memory-overheads can affect the hash table size.
1719 * NEWS: Mention the new feature.
1721 2004-05-19 J"orn Rennecke <joern.rennecke@superh.com>
1723 * NEWS: Mention new linker map file generation and the
1724 --reduce-memory-overheads option.
1725 * ld.texinfo: Document --reduce-memory-overheads option.
1726 * ld.h (map_symbol_def): New struct.
1727 (struct user_section_struct, section_userdata_type): Rename to:
1728 (struct lean_user_section_struct, lean_section_userdata_type).
1729 (struct fat_user_section_struct, fat_section_userdata_type): New.
1730 (SECTION_USERDATA_SIZE): Define.
1731 (args_type): New member reduce_memory_overheads.
1732 * ldlang.c (map_obstack): New static variable.
1733 (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
1734 (lang_map): Unless command_line.reduce_memory_overheads is set,
1735 initialize lists of defined symbols for each section.
1736 (print_input_section): Unless command_line.reduce_memory_overheads
1737 is set, use print_all_symbols.
1738 (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
1739 * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
1740 * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
1741 (ld_options): Add entry for --reduce-memory-overheads.
1742 (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
1744 2004-05-19 Jakub Jelinek <jakub@redhat.com>
1746 * ldgram.y (sect_constraint): New.
1747 (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1748 (section): Add sect_constraint. Pass additional argument
1749 to lang_enter_output_section_statement.
1750 * mri.c (mri_draw_tree): Pass additional argument to
1751 lang_enter_output_section_statement.
1752 * emultempl/pe.em (place_orphan): Likewise.
1753 (output_prev_sec_find): Disregard output section statements with
1755 * emultempl/mmo.em (output_prev_sec_find): Likewise.
1756 (mmo_place_orphan): Pass additional argument to
1757 lang_enter_output_section_statement.
1758 * emultempl/elf32.em (output_prev_sec_find): Disregard output section
1759 statements with constraint == -1.
1760 (place_orphan): Pass additional argument to
1761 lang_enter_output_section_statement.
1762 * ldlang.c (lang_enter_overlay_section): Likewise.
1763 (lang_output_section_find_1): New.
1764 (lang_output_section_find): Use it.
1765 (lang_output_section_statement_lookup_1): New.
1766 (lang_output_section_statement_lookup): Use it.
1767 (check_section_callback, check_input_sections): New.
1768 (map_input_to_output_sections): Check if all input sections
1769 are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
1770 (strip_excluded_output_sections): Disregard output section statements
1771 with constraint == -1.
1772 (lang_record_phdrs): Likewise.
1773 (lang_enter_output_section_statement): Add constraint argument.
1774 Use lang_output_section_statement_lookup_1.
1775 * ldlang.h (lang_output_section_statement_type): Add constraint
1776 and all_input_readonly fields.
1777 (lang_enter_output_section_statement): Adjust prototype.
1778 * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1779 * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
1780 segment if all input sections are readonly.
1782 2004-05-19 Adam Nemet <anemet@lnxw.com>
1784 * scripttempl/i386lynx.sc: Remove file.
1786 2004-05-17 Bob Wilson <bob.wilson@acm.org>
1788 * ld.texinfo (Output Section Address): Correct subsection name.
1790 2004-05-17 Adam Nemet <anemet@lnxw.com>
1792 * configure.tgt (powerpc-*-lynxos* case): New case.
1793 * configure.host (i[3-7]86-*-lynxos* case): Remove case.
1794 * emulparams/ppclynx.sh: New file.
1795 * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
1796 * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
1797 (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
1798 (eppclynx.c): New rule.
1799 * Makefile.in: Regenerate.
1801 2004-05-13 Joel Sherrill <joel@oarcorp.com>
1803 * configure.tgt (or32-*-rtems*): Switch to elf and
1804 support versioned targets.
1806 2004-05-13 Nick Clifton <nickc@redhat.com>
1808 * po/fr.po: Updated French translation.
1810 2004-05-11 Jakub Jelinek <jakub@redhat.com>
1812 * genscripts.sh: Generate -z combreloc -z now -z relro scripts
1813 for binaries, -shared and -pie.
1814 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
1815 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
1816 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
1817 (OTHER_RELRO_SECTIONS): ... this.
1818 * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
1819 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
1820 -z relro and -z norelro.
1821 (gld${EMULATION_NAME}_list_options): Add it to usage.
1822 (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
1823 -z relro scripts when appropriate.
1824 * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
1825 Create separate .got.plt section if SEPARATE_GOTPLT.
1826 Move sections which are only written during relocation handling
1827 to the beginning of RW segment. If NO_SMALL_DATA, move .got
1828 before .data. Add DATA_SEGMENT_RELRO_END directive.
1829 Include OTHER_RELRO_SECTIONS.
1830 * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
1831 * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
1832 (fold_unary): Likewise.
1833 (fold_binary): Handle -z relro.
1834 * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
1835 exp_dataseg_relro_adjust phases. Add relro_end field.
1836 * ldmain.c (main): Initialize link_info.relro to FALSE.
1837 * ldlang.c (lang_size_sections): Handle -z relro.
1839 2004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
1841 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
1843 2004-05-07 J"orn Rennecke <joern.rennecke@superh.com>
1845 * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
1846 before printing it with %W.
1848 2004-05-07 Brian Ford <ford@vss.fsi.com>
1849 DJ Delorie <dj@redhat.com>
1851 * emultempl/pe.em (real_flags): New static.
1852 (OPTION_LARGE_ADDRESS_AWARE): New define.
1853 (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
1854 (gld_${EMULATION_NAME}_list_options): Likewise.
1855 (gld${EMULATION_NAME}_handle_option): Likewise.
1856 (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
1857 * ld.texinfo: Document it.
1860 2004-05-07 Brian Ford <ford@vss.fsi.com>
1862 * NEWS: Mention DWARF 2 support for i386pe.
1864 2004-05-05 Alexandre Oliva <aoliva@redhat.com>
1866 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
1869 2004-04-30 Alan Modra <amodra@bigpond.net.au>
1871 * ldlang.c (unique_section_p): Pass section parm, return true on
1873 (output_section_callback): Adjust.
1874 * ldlang.h (unique_section_p): Update prototype.
1875 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
1877 2004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
1879 * ld.texinfo (--gc-sections): Remove restriction for
1882 2004-04-29 Brian Ford <ford@vss.fsi.com>
1884 * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
1885 for DWARF 2/3. Update stab section's syntax.
1887 2004-04-29 Alan Modra <amodra@bigpond.net.au>
1889 * pe-dll.c: Revert changes accidentally committed 2004-03-08.
1890 (fill_edata): Correct pointer arithmetic.
1892 2004-04-21 Chris Demetriou <cgd@broadcom.com>
1894 * ld.texinfo: Remove MIPS --embedded-relocs documentation.
1895 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
1896 * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
1897 (EXTRA_EM_FILE): Use mipsecoff.em
1898 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
1899 (EXTRA_EM_FILE): Use mipsecoff.em
1900 * emultempl/mipsecoff.em: Restructure to be included as an
1901 extra emulation file.
1902 (check_sections, gld${EMULATION_NAME}_after_open)
1903 (gld${EMULATION_NAME}_after_allocation)
1904 (gld${EMULATION_NAME}_get_script)
1905 (ld_${EMULATION_NAME}_emulation): Remove
1906 (gld${EMULATION_NAME}_before_parse): Rename to...
1907 (mipsecoff_before_parse): This.
1908 (LDEMUL_BEFORE_PARSE): Define.
1909 * emultempl/mipself.em: Remove file.
1910 * scripttempl/mips.sc (.rel.sdata): Do not include in output.
1911 (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
1913 * Makefile.am: Remove dependencies on emultempl/mipself.em.
1914 * Makefile.in: Regenerate.
1916 2004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
1918 * ld.texinfo (synthesizing on H8/300): Information about linker
1919 relaxation support for bit manipulation instructions and system
1920 control instructions is added.
1922 2004-04-21 Hans-Peter Nilsson <hp@axis.com>
1924 * NEWS: Mention change in DEFINED semantics.
1926 2004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
1928 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
1929 (.data): Add KEEP for .gnu.linkonce.d.*personality*.
1930 (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
1932 2004-04-21 Ben Elliston <bje@au.ibm.com>
1934 * ld.texinfo (Simple Example): Add missing punctuation.
1936 2004-04-20 Chris Demetriou <cgd@broadcom.com>
1938 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
1940 2004-04-19 Jakub Jelinek <jakub@redhat.com>
1942 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
1945 2004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
1947 * scriptempl/pe.sc: Put numbered .ctors.* after .ctors
1948 with default priority. Likewise for dtors.
1950 2004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1952 * configure.host: Remove mips*-dec-bsd* target.
1953 * configure.tgt: Likewise.
1955 2004-04-08 Richard Sandiford <rsandifo@redhat.com>
1957 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
1958 * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
1959 * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
1960 * emultempl/irix.em: New file.
1961 * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
1963 * Makefile.in: Regenerate.
1965 2004-04-01 Paul Brook <paul@codesourcery.com>
1967 * emultempl/armelf.em (byteswap_code): Add.
1968 (arm_elf_before_allocation): Pass extra parameter.
1969 (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
1970 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
1971 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
1972 * emultempl/armelf_oabi.em: Pass extra parameter.
1973 * ld.texinfo: Document --be8.
1975 2004-03-30 Stan Shebs <shebs@apple.com>
1977 Remove long-obsolete MPW support.
1978 * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
1979 * Makefile.am (mpw): Remove file-presynthesizing actions.
1980 * Makefile.in: Likewise.
1981 * ldfile.c (slash): Remove MPW case.
1982 * ldlex.l [MPW]: Remove unused definition.
1984 2004-03-30 Galit Heller <Galit.Heller@nsc.com>
1986 * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
1987 (eelf32cr16c.c): New target.
1988 * Makefile.in: Regenerate.
1989 * configure.tgt: Handle cr16c-*-elf*.
1990 * emulparams/elf32cr16c.sh: New file.
1991 * scripttempl/elfcr16c.sc: Likewise
1992 * NEWS: Mention support for new target.
1994 2004-03-30 Nick Clifton <nickc@redhat.com>
1996 * po/sv.po: Updated Swedish translation.
1998 2004-03-27 Alan Modra <amodra@bigpond.net.au>
2000 * emultempl/elf32.em: Update new bfd_elf_discard_info name.
2001 * emultempl/hppaelf.em: Likewise.
2002 * emultempl/ppc64elf.em: Likewise.
2003 * emultempl/sh64elf.em: Likewise.
2005 2004-03-25 Alan Modra <amodra@bigpond.net.au>
2007 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
2008 size_dynamic_sections call.
2010 2004-03-23 Alan Modra <amodra@bigpond.net.au>
2013 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
2014 link_info.wrap_char.
2016 2004-03-20 H.J. Lu <hongjiu.lu@intel.com>
2018 * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
2019 or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
2021 2004-03-20 Alexandre Oliva <aoliva@redhat.com>
2023 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
2025 2004-03-19 Alan Modra <amodra@bigpond.net.au>
2027 * config.in: Regenerate.
2028 * po/ld.pot: Regenerate.
2030 2004-03-18 Alan Modra <amodra@bigpond.net.au>
2032 * ld.texinfo: Add --as-needed doco.
2033 * ldmain.c (as_needed): New global var.
2034 * ldmain.h (as_needed): Declare.
2035 * lexsup.c (option_values): Add OPTION_AS_NEEDED and
2036 OPTION_NO_AS_NEEDED.
2037 (ld_options): Likewise.
2038 (parse_args): Handle them.
2039 * ldlang.h (lang_input_statement_type): Add as_needed field.
2040 * ldlang.c (new_afile): Set p->as_needed.
2041 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
2042 (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
2043 (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
2045 * ldlang.c (open_input_bfds): Remove useless cast.
2046 (lang_do_assignments_1): Likewise.
2047 (lang_for_each_input_section): Delete.
2049 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2051 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
2053 2004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
2055 * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
2056 private when building implib.
2058 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
2060 * ldlang.c (lang_add_section): Don't force SEC_LOAD on
2062 (IGNORE_SECTION): Ignore .tbss sections too.
2063 (lang_size_sections_1): .tbss sections do not advance dot.
2065 2004-03-01 Andreas Schwab <schwab@suse.de>
2067 * ld.texinfo (Options): Fix example for --wrap.
2069 2004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
2071 * pe-dll.c (fill_edata): Check that exported_symbol_sections is
2074 2004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
2076 * ldlang.c (lang_check): Use %P, not %E, in error message.
2078 2004-02-23 Nathan Sidwell <nathan@codesourcery.com>
2080 * ldlang.h (struct lang_output_section_state): Change processed
2082 * ldexp.c (check, invalid): Remove.
2083 (fold_name): Move valid_p assignments. Create undefined symbol
2084 when needed. Directly exampine section's processd flag.
2085 * ldlang.c (lang_output_section_statement_lookup): Adjust
2086 processed field init.
2087 (lang_size_sections_1): Allow LOADADDR when determining section's
2088 VMA. Adjust error message. Fold data statement's expr.
2089 (lang_size_sections): Correctly increment lang_statement_iteration.
2091 2004-02-23 Alan Modra <amodra@bigpond.net.au>
2093 * ldexp.c (fold_tree): Follow indirect symbols.
2095 2004-02-20 Nathan Sidwell <nathan@codesourcery.com>
2097 * ldgram.y (exp): Add two operand ALIGN.
2098 * ldexp.c (fold_binary): Add ALIGN_K case.
2099 * ld.texinfo (ALIGN): Document two operand version.
2101 2004-02-19 Nathan Sidwell <nathan@codesourcery.com>
2103 * ldlang.c (map_input_to_output_sections): Initialize sections
2104 mentioned in a data statement expression.
2105 (lang_do_assignments_1): Add data statement's expression's
2108 2004-02-18 Nathan Sidwell <nathan@codesourcery.com>
2110 * ldgram.y (statement_anywhere): Add assert rule.
2111 * ldlang.c (exp_init_os): Add assert case.
2113 2004-02-14 Andrew Cagney <cagney@redhat.com>
2115 * ldmain.c (remove_output): Call bfd_cache_close.
2117 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
2119 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
2120 .MIPS.content* and .MIPS.events* sections.
2122 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
2124 * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
2125 .note.gnu.arm.ident to after allocated sections. Mark its
2128 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
2130 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
2131 * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
2132 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
2133 * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
2134 * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
2136 2004-02-05 Nick Clifton <nickc@redhat.com>
2138 * emultempl/pe.em (_after_open): Fix typo in previous delta.
2140 2004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
2142 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
2144 2004-01-28 Alan Modra <amodra@bigpond.net.au>
2146 * genscripts.sh: Fix typo.
2148 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
2150 2004-01-24 Jakub Jelinek <jakub@redhat.com>
2152 * emulparams/elf64_ia64.sh: Put .rela.opd into
2153 OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
2155 2004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
2157 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
2158 * ld.texinfo (--omagic): Note that writable text section
2159 does not conform to published PE-COFF specs.
2160 (--enable-auto-import): Likewise.
2162 2004-01-15 Alan Modra <amodra@bigpond.net.au>
2164 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
2166 2004-01-13 Nick Clifton <nickc@redhat.com>
2168 * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
2169 which if true will prevent the LMA region being used as a
2170 replacement for a default VMA region.
2171 (lang_leave_output_section_statement): Pass extra parameter.
2172 (lang_leave_overlay): Likewise.
2173 * ld.texinfo (Output Section LMA): Document that the LMA
2174 region can be set to the VMA region if no VMA has been set.
2175 * ldlang.h (struct lang_output_section_phdr_list): Create a
2176 typedef for this type. Minor formatting fixes.
2178 2004-01-13 Nick Clifton <nickc@redhat.com>
2180 * ldlang.c (lang_size_sections_1): If dot is advanced, then
2181 assume that the section should be allocated.
2183 2004-01-13 Alan Modra <amodra@bigpond.net.au>
2185 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
2186 sections. Do ignore SEC_NEVER_LOAD sections.
2187 (lang_size_sections_1): Remove test made redundant with the above.
2189 2004-01-09 Alan Modra <amodra@bigpond.net.au>
2191 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
2192 program_header_size.
2194 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
2196 2003-11-28 Alexandre Oliva <aoliva@redhat.com>
2197 * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
2198 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
2199 * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
2200 (MAXPAGESIZE): Set to 64Kb.
2201 (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
2202 __ROFIXUP_END__. Don't map .rofixup.got any more.
2203 * emulparams/elf32frv.sh (NOP): Set.
2204 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
2205 * configure.tgt: Add frv-*-*linux*.
2206 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
2207 * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
2208 (eelf32frvfd.c): New.
2209 * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
2210 * emulparams/elf32frv.sh: Reverted previous two patches.
2211 * emulparams/elf32frvfd.sh: New.
2212 * Makefile.in: Rebuilt.
2213 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
2214 * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
2215 .rofixup.got to .rofixup.
2216 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
2217 * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
2218 (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
2220 2004-01-05 Jakub Jelinek <jakub@redhat.com>
2222 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
2223 * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
2225 2004-01-03 Alan Modra <amodra@bigpond.net.au>
2227 * ldexp.c (align_n): Make static.
2228 * ldexp.h (align_n): Delete declaration.
2229 * ldlang.h (lang_enter_output_section_statement): Remove
2231 * ldlang.c (lang_enter_output_section_statement): Likewise.
2232 (TO_ADDR, TO_SIZE): Define.
2233 (opb_shift): New var.
2234 (init_opb): New function.
2235 (print_input_section): Call init_opb and use TO_ADDR.
2236 (print_data_statement, print_reloc_statement): Likewise.
2237 (print_padding_statement): Likewise.
2238 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
2239 (lang_check_section_addresses): Likewise.
2240 (lang_size_sections_1): Likewise.
2241 (lang_do_assignments_1): Likewise.
2242 (lang_set_startof): Likewise.
2243 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
2244 (lang_process): Call init_opb.
2245 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
2246 (lang_enter_overlay_section): Adjust
2247 lang_enter_output_section_statement call.
2248 * ldgram.y: Likewise.
2249 * mri.c (mri_draw_tree): Likewise.
2250 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
2251 * emultempl/mmo.em (mmo_place_orphan): Likewise.
2252 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
2254 * ldfile.c (ldfile_set_output_arch): Add defarch param.
2255 * ldfile.h (ldfile_set_output_arch): Ditto.
2256 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
2257 ldfile_set_output_arch.
2258 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
2259 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
2260 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
2261 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2262 * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
2263 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
2264 * ldgram.y: Adjust ldfile_set_output_arch call.
2265 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2266 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
2267 * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
2268 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
2269 * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
2270 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2271 * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2273 2004-01-02 Bernardo Innocenti <bernie@develer.com>
2275 * configure.tgt: Add m68k-uClinux target.
2277 For older changes see ChangeLog-0203
2283 version-control: never