1 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
3 * Makefile.am (AM_MAKEINFOFLAGS, TEXI2DVI): Explicitly include
4 $(srcdir) before $(BFDDIR)/doc.
5 * Makefile.in: Regenerated.
7 2005-05-17 H.J. Lu <hongjiu.lu@intel.com>
10 * ldexp.c (exp_fold_tree_1): Renamed from exp_fold_tree and
11 take take a bfd_boolean, mark_used. Ignore assert failure if
13 (exp_fold_tree) Call exp_fold_tree_1 with mark_used == FALSE.
14 (exp_fold_tree_no_dot): Updated to take a bfd_boolean,
15 mark_used and pass down.
16 (fold_unary): Likewise.
17 (fold_binary): Likewise.
18 (fold_trinary): Likewise.
19 (exp_binop): Add FALSE to call to exp_fold_tree_no_dot.
20 (exp_trinop): Likewise.
22 (exp_nameop): Likewise.
23 (exp_get_vma): Likewise.
24 (exp_get_fill): Likewise.
25 (exp_get_abs_int): Likewise.
26 (fold_name): Likewise. Set SEC_KEEP in output section flags.
27 (exp_mark_used_section): New.
29 * ldexp.h (exp_mark_used_section): New.
31 * ldlang.c (lang_output_section_statement_lookup_1): Set the
32 ignored field to FALSE.
33 (lang_mark_used_section_1): New.
34 (lang_mark_used_section): Call lang_mark_used_section_1.
35 (strip_excluded_output_sections): Call lang_mark_used_section
36 and check for unused sections.
37 (lang_size_sections_1): Skip an output section if it should
39 (lang_do_assignments_1): Likewise.
40 (lang_process): Don't call lang_mark_used_section here.
42 * ldlang.h (lang_output_section_statement_type): Change
43 all_input_readonly to bitfield. Add ignored.
45 2005-05-17 Lennert Buytenhek <buytenh@wantstofly.org>
46 Peter S. Mazinger" <ps.m@gmx.net>
48 * emulparams/armelf_linux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
49 * emulparams/hppalinux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
51 2005-05-17 Julian Brown <julian@codesourcery.com>
53 * ldlang.c (print_assignment): Do not rely upon a valid result
54 having a section associated with it.
56 2005-05-17 Nick Clifton <nickc@redhat.com>
58 * ldlang.c (Scan_for_self_assignment): Check an assignment tree to
59 see if the same value is being used on the rhs as on the lhs.
60 (print_assignment): Call scan_for_self_assignment and if it
61 returns true, do no display the result of the computation but
62 instead just the final value of the symbol on the lhs.
63 * ld.texinfo: Document this behaviour and provide an example of
66 2005-05-15 Daniel Jacobowitz <dan@codesourcery.com>
68 * Makefile.am (AM_MAKEINFOFLAGS): Define.
70 (ldver.texi): Depend on distributed files instead of built files.
71 (ld.info): Include $(srcdir) in the rule target. Remove actions.
72 (ld.dvi): Remove actions.
73 (MAINTAINERCLEANFILES): Add configdoc.texi.
74 (CONFIG_STATUS_DEPENDENCIES): Add bfd/configure.in.
75 (install-data-local): Renamed from install.
76 (Makefile): Remove explicit dependency.
77 * acinclude.m4: Remove obsolete code.
78 * configure.in: Update AC_PREREQ. Remove extra $CONFIG_SHELL.
79 * Makefile.in, aclocal.m4, config.in, configure: Regenerated.
81 2005-05-11 Bob Wilson <bob.wilson@acm.org>
83 * scripttempl/elfxtensa.sc: Sync up with elf.sc.
84 * emulparams/elf32xtensa.sh (PLT, GOT): Define.
86 2005-05-11 Alan Modra <amodra@bigpond.net.au>
88 * ldgram.y: Add SPECIAL token.
89 (sect_constraint): Handle SPECIAL.
90 * ldlang.c (lang_output_section_find_1): Don't match SPECIAL.
91 (map_input_to_output_sections): Likewise.
92 * ldlex.l (SPECIAL): Define.
93 * emulparams/elf32ppc.sh (DATA_GOT, SDATA_GOT, SEPARATE_GOTPLT,
94 GOT, PLT, GOTPLT): Define.
95 * emultempl/ppc32elf.em (old_plt, old_got): New static vars.
96 (ppc_after_open): New function.
97 (PARSE_AND_LIST_PROLOGUE): Define OPTION_OLD_LPT and OPTION_OLD_GOT.
98 (PARSE_AND_LIST_LONGOPTS): Add "bss-plt" and "sdata-got".
99 (PARSE_AND_LIST_OPTIONS): Document them.
100 (PARSE_AND_LIST_ARGS_CASES): Handle them.
101 (LDEMUL_AFTER_OPEN): Define.
102 * scripttempl/elf.sc (PLT): Don't override existing define.
103 (DATA_GOT, SDATA_GOT): Define and use to enable alternate got
104 placement rather than using NO_SMALL_DATA. Emit GOTPLT for RELRO_NOW.
106 2005-05-10 Alan Modra <amodra@bigpond.net.au>
108 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_GOTPLT_END): Delete.
109 (DATA_SEGMENT_RELRO_END): Use SEPARATE_GOTPLT value.
110 (GOTPLT): Remove DATA_SEGMENT_RELRO_GOTPLT_END. Place after
111 DATA_SEGMENT_RELRO_END in script.
113 2005-05-09 H.J. Lu <hongjiu.lu@intel.com>
115 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
116 Don't use a removed section.
118 2005-05-09 H.J. Lu <hongjiu.lu@intel.com>
120 * ldmain.c (reloc_overflow): Use output_bfd if the symbol
121 is defined in the ABS section.
123 2005-05-06 H.J. Lu <hongjiu.lu@intel.com>
125 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
126 Put back !link_info.relocatable.
128 2005-05-06 H.J. Lu <hongjiu.lu@intel.com>
131 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
132 Just check link_info.executable.
134 2005-05-06 Nick Clifton <nickc@redhat.com>
136 * Update the address and phone number of the FSF organization in
137 the GPL notices in the following files:
138 aclocal.m4, deffile.h, deffilep.y, fdl.texi, ld.h, ldcref.c,
139 ldctor.c, ldctor.h, ldemul.c, ldexp.c, ldexp.h, ldfile.c,
140 ldfile.h, 20ldgram.y, ldint.texinfo, ldlang.c, ldlang.h, ldlex.h,
141 ldlex.l, ldmain.c, ldmain.h, ldmisc.c, ldmisc.h, ldver.c, ldver.h,
142 ldwrite.c, ldwrite.h, lexsup.c, mri.c, mri.h, pe-dll.c, pe-dll.h,
143 sysdep.h, emultempl/aix.em, emultempl/alphaelf.em,
144 emultempl/armcoff.em, emultempl/armelf.em, emultempl/beos.em,
145 emultempl/crxelf.em, emultempl/elf32.em, emultempl/generic.em,
146 emultempl/gld960.em, emultempl/gld960c.em, emultempl/hppaelf.em,
147 emultempl/ia64elf.em, emultempl/irix.em, emultempl/linux.em,
148 emultempl/lnk960.em, emultempl/m68hc1xelf.em,
149 emultempl/m68kcoff.em, emultempl/m68kelf.em,
150 emultempl/mipsecoff.em, emultempl/mmix-elfnmmo.em,
151 emultempl/mmixelf.em, emultempl/mmo.em, emultempl/needrelax.em,
152 emultempl/pe.em, emultempl/ppc32elf.em, emultempl/ppc64elf.em,
153 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em,
154 emultempl/vanilla.em, emultempl/xtensaelf.em
156 2005-05-05 H.J. Lu <hongjiu.lu@intel.com>
158 * scripttempl/elf.sc: Document the usage of __bss_start.
160 2005-05-05 Paul Brook <paul@codesourcery.com>
162 * Makefile.am: Add eelf_i386_vxworks.
163 * Makefile.in: Regenerate.
164 * configure.tgt: Make i?86-*-vxworks use targ_emul=elf_i386_vxworks.
165 * emulparams/elf_i386_vxworks.sh: New file.
166 * emulparams/vxworks.sh: New file.
167 * scripttempl/elf.sc: Add DATA_END_SYMBOLS and ETEXT_NAME.
169 2005-05-04 H.J. Lu <hongjiu.lu@intel.com>
171 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
172 Call _bfd_elf_provide_section_bound_symbols.
174 2005-05-04 Alan Modra <amodra@bigpond.net.au>
176 * ldemul.c: Include bfdlink.h.
177 (ldemul_before_allocation): Assume before_allocation is non-zero.
178 (before_allocation_default): Call strip_excluded_output_sections.
179 * ldlang.c (stripped_excluded_sections): New variable.
180 (lang_add_section): Build input section list for each output
181 section, attached via map_head and map_tail pointers.
182 (strip_excluded_output_sections): Make global. Traverse the
183 input section lists to find which output sections can go. Clear
184 link_order pointers and set stripped_excluded_sections.
185 (lang_process): Call strip_excluded_output_sections.
186 * ldlang.h (strip_excluded_output_sections): Declare.
187 * ldwrite.c: Update throuhout for link_order_head -> map_head change.
188 * emultempl/aix.em (before_allocation): Call
189 strip_excluded_output_sections.
190 * emultempl/armcoff.em (before_allocation): Likewise.
191 * emultempl/beos.em (before_allocation): Likewise.
192 * emultempl/linux.em (before_allocation): Likewise.
193 * emultempl/pe.em (before_allocation): Likewise.
194 * emultempl/sunos.em (before_allocation): Likewise.
195 * emultempl/elf32.em (before_allocation): Likewise. Call
196 bfd_elf_size_dynsym_hash_dynstr too.
197 * emultempl/lnk960.em (lnk960_before_allocation): Delete.
198 (ld_lnk960): Use before_allocation_default.
200 2005-05-02 H.J. Lu <hongjiu.lu@intel.com>
202 * emultempl/elf32.em (gld${EMULATION_NAME}_strip_empty_section):
203 Updated for bfd_section_list_remove change.
204 * ldlang.c (lang_insert_orphan): Likewise.
205 (strip_excluded_output_sections): Likewise.
206 (sort_sections_by_lma): New.
207 (lang_check_section_addresses): Sort the sections before
210 2005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
212 * configure.tgt: Add h8300*-*-rtemscoff.
213 Switch h8300*-*-rtems* to elf.
215 2005-04-29 Ben Elliston <bje@au.ibm.com>
217 * ldgram.y (lang_memory_region_type): Make static.
218 (ldgram_want_filename): Likewise.
219 * ldemul.c (ld_emulation): Make static.
220 * ldfile.h (ldfile_find_command_file): Remove extern.
221 * ldfile.c (ldfile_find_command_file): Make static.
222 * ldlang.h (unique_section_list): Remove extern declaration.
223 * ldlang.c (unique_section_list): Make static.
224 * mri.h (symbol_truncate): Remove extern declaration.
225 * mri.c (symbol_truncate): Make static.
226 (order, only_load, address, alias): Likewise.
227 (alignment, subalignment): Likewise.
229 2005-04-27 H.J. Lu <hongjiu.lu@intel.com>
231 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
232 Use the first SEC_ALLOC section which isn't SEC_READONLY or the
233 last SEC_ALLOC section if such a section doesn't exist.
235 2005-04-24 Mark Kettenis <kettenis@gnu.org>
237 * configure.host: Add *-*-openbsd support.
239 2005-04-15 Julian Brown <julian@codesourcery.com>
241 * ld.texinfo: Document --use-blx.
242 * emultempl/armelf.em (use_blx): New variable.
243 (arm_elf_create_output_section_statements): Communicate value of
245 (PARSE_AND_LIST_PROLOGUE): Add OPTION_USE_BLX.
246 (PARSE_AND_LIST_OPTIONS): Add --use-blx option.
247 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_USE_BLX case.
249 2005-04-14 Alan Modra <amodra@bigpond.net.au>
251 * Makefile.am (NO_WERROR): Define. Use instead of -Wno-error.
252 * configure.in: Include ../bfd/warning.m4 contents.
253 * Makefile.in: Regenerate.
254 * configure: Regenerate.
256 2005-04-12 Alan Modra <amodra@bigpond.net.au>
258 * Makefile.am: Run "make dep-am".
259 (ldgram.o, ldlex.o, deffilep.o): Add -Wno-error to command.
260 * Makefile.in: Regenerate.
261 * config.in: Regenerate.
263 2005-04-11 Alan Modra <amodra@bigpond.net.au>
265 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Ignore
266 as_needed libs that were not needed.
267 (gld${EMULATION_NAME}_check_needed): Likewise.
269 2005-04-07 Nick Clifton <nickc@redhat.com>
271 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h so that
272 ldfile.h can use the lang_input_statement type.
274 2005-04-06 Jakub Jelinek <jakub@redhat.com>
276 * ldlang.c: Formatting.
277 (walk_wild_consider_section): Remember return value from wildcardp.
278 (is_simple_wild): Use strcspn instead of 2 strpbrk calls and strlen.
279 (wild_spec_can_overlap): Use strcspn instead of strpbrk and strlen.
281 2005-04-06 Robert O'Callahan <rocallahan@novell.com>
283 * ld.h (lean_section_userdata_type): Remove.
284 (fat_section_userdata_type): Remove file field.
285 (SECTION_USERDATA_SIZE): Remove.
286 * ldlang.c (init_os): Eliminate initialization of unused
287 lean_section_userdata_type.
289 * ldlang.h (callback_t, walk_wild_section_handler_t): New
291 (struct lang_wild_statement_struct): Add walk_wild_section_handler
292 and handler_data fields.
293 * ldlang.c (callback_t): Removed.
294 (walk_wild_consider_section, walk_wild_section_general,
295 section_iterator_callback, find_section, is_simple_wild,
296 match_simple_wild, walk_wild_section_specs1_wild0,
297 walk_wild_section_specs1_wild1, walk_wild_section_specs2_wild1,
298 walk_wild_section_specs3_wild2, walk_wild_section_specs4_wild2,
299 wild_spec_can_overlap, analyze_walk_wild_section_handler): New
301 (lang_add_wild): Call analyze_walk_wild_section_handler.
302 (walk_wild_section): Renamed to walk_wild_section_general and
303 created a wrapper function.
304 (section_iterator_callback_data): New typedef.
306 2005-04-04 Nick Clifton <nickc@redhat.com>
308 * configure.in: Add a check for <unistd.h> providing a prototype
309 for getopt() which is compatible with the one in
310 include/getopt.h. If so then define HAVE_DECL_GETOPT.
311 * configure: Regenerate.
312 * config.in (HAVE_DECL_GETOPT): Add.
313 * ldemul.c: Include config.h
314 * lexsup.c: Likewise.
315 * emultempl/elf32.sc: Likewise.
317 2005-03-29 Alan Modra <amodra@bigpond.net.au>
319 * emultempl/elf32.em (gld${EMULATION_NAME}_layout_sections_again):
320 New function, extracted from static void gld${EMULATION_NAME}_finish.
321 (gld${EMULATION_NAME}_strip_empty_sections): Likewise.
322 (gld${EMULATION_NAME}_provide_init_fini_syms): Likewise.
323 * emultempl/ppc64elf.em: Revert last change.
324 (ppc_layout_sections_again): Use
325 gld${EMULATION_NAME}_layout_sections_again.
326 (ppc_finish): Don't call gld${EMULATION_NAME}_finish. Instead call
327 gld${EMULATION_NAME}_strip_empty_sections and
328 gld${EMULATION_NAME}_provide_init_fini_syms.
329 * emultempl/hppaelf.em: Similarly.
331 2005-03-29 Alan Modra <amodra@bigpond.net.au>
333 * emultempl/ppc64elf.em (need_laying_out): Delete. Remove all refs.
334 (ppc_finish): Don't call bfd_elf_discard_info.
335 * emultempl/hppaelf.em: Similarly.
337 2005-03-24 Nick Clifton <nickc@redhat.com>
339 * po/fr.po: Updated French translation.
341 2005-03-23 Mike Frysinger <vapier@gentoo.org>
342 Nick Clifton <nickc@redhat.com>
344 * configure.host: Accept any C library to accompany a GNU Linux
345 implementation, not just the GNU C library.
346 * configure.tgt: Likewise.
347 * emultempl/elf32.em: Likewise.
349 2005-03-22 H.J. Lu <hongjiu.lu@intel.com>
351 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols): New
352 (gld${EMULATION_NAME}_finish): Call
353 gld${EMULATION_NAME}_provide_bound_symbols to provide
354 __preinit_array_start, __preinit_array_end, __init_array_start,
355 __init_array_end, __fini_array_start and __fini_array_end.
357 * scripttempl/elf.sc: Don't provide __preinit_array_start,
358 __preinit_array_end, __init_array_start, __init_array_end,
359 __fini_array_start nor __fini_array_end.
361 2005-03-23 Alan Modra <amodra@bigpond.net.au>
363 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Set
364 SEC_EXCLUDE on .gnu.warning sections.
366 2005-03-22 Alan Modra <amodra@bigpond.net.au>
368 * scripttempl/elf.sc (SBSS): Don't provide sbss start and end syms.
370 2005-03-21 Alan Modra <amodra@bigpond.net.au>
372 * emultempl/ppc32elf.em (gld${EMULATION_NAME}_after_allocation): New
374 (LDEMUL_AFTER_ALLOCATION): Define.
376 2005-03-21 Alan Modra <amodra@bigpond.net.au>
378 * emultempl/ppc64elf.em (ppc_finish): Rename from
379 gld${EMULATION_NAME}_finish. Call gld${EMULATION_NAME}_finish.
380 (LDEMUL_FINISH): Update.
381 * emultempl/hppaelf.em (hppaelf_finish, LDEMUL_FINISH): Likewise.
382 * emultempl/m68hc1xelf.em (m68hc11elf_finish, LDEMUL_FINISH): Likewise.
384 2005-03-18 Julian Brown <julian@codesourcery.com>
386 * scripttempl/armbpapi.sc (.rel.dyn): Add .rel.init_array,
388 (.rela.dyn): Add .rela.init_array, .rela.fini_array.
389 (SECTIONS): Add .rel.other, .rela.other, .reli.other after PLT relocs.
391 2005-03-18 H.J. Lu <hongjiu.lu@intel.com>
393 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Don't set
394 bfd_section when removing unused empty output sections for
395 non-relocatable link.
397 2005-03-19 Alan Modra <amodra@bigpond.net.au>
399 * ldlang.c (lang_insert_orphan): Use old section_tail rather than
400 traversing the bfd section list to find pointer to new section.
402 2005-03-18 Alan Modra <amodra@bigpond.net.au>
404 * scripttempl/elf.sc: When CREATE_SHLIB, put .sdata2 and .sbss2
405 input sections into .sdata and .sbss output respectively.
407 2005-03-16 David Heine <dlheine@tensilica.com>
408 Bob Wilson <bob.wilson@acm.org>
410 * ldlang.c (IGNORE_SECTION): Remove check for zero size.
411 (lang_check_section_addresses): Ignore zero size sections here.
413 2005-03-16 H.J. Lu <hongjiu.lu@intel.com>
415 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Remove
416 unused empty output sections for non-relocatable link.
418 * ld.h (args_type): Remove gc_sections.
420 * ldlang.c (lang_mark_used_section): New.
421 (lang_gc_sections): Use link_info.gc_sections instead of
422 command_line.gc_sections.
423 * ldmain.c (main): Likewise.
424 * lexsup.c (parse_args): Likewise.
425 * ldlang.c (lang_process): Call lang_mark_used_section.
427 * ldmain.c (main): Initialize link_info.gc_sections to FALSE.
429 2005-03-16 Nick Clifton <nickc@redhat.com>
430 Ben Elliston <bje@au.ibm.com>
432 * configure.in (werror): New switch: Add -Werror to the
433 compiler command line. Enabled by default. Disable via
435 * configure: Regenerate.
437 2005-03-16 Alan Modra <amodra@bigpond.net.au>
439 * emulparams/elf32ppclinux.sh (OTHER_READWRITE_SECTION): Delete.
440 (OTHER_RELRO_SECTIONS): Set this instead.
442 2005-03-15 Nick Clifton <nickc@redhat.com>
444 * NEWS: Add cutoff for changes in 2.16 release.
446 2005-03-15 Mikkel Krautz <krautz@gmail.com>
448 * configure.tgt (x86_64-elf): Add target.
450 2005-03-15 Alan Modra <amodra@bigpond.net.au>
452 * po/es.po: Commit new Spanish translation.
454 2005-03-14 Alan Modra <amodra@bigpond.net.au>
456 * ldexp.c (exp_fold_tree): Ensure return value is initialized.
457 Tidy etree_assert case.
459 2005-03-14 Alan Modra <amodra@bigpond.net.au>
461 * po/tr.po: Commit new Turkish translation.
463 2005-03-11 Daniel Jacobowitz <dan@codesourcery.com>
465 * Makefile.am: Remove references to em68klynx.o and esparclynx.o.
466 * Makefile.in: Regenerated.
467 * emulparams/m68klynx.sh, emulparams/sparclynx.sh: Remove.
469 2005-03-07 Nick Clifton <nickc@redhat.com>
471 * po/fr.po: Updated translation.
473 2005-03-05 Alan Modra <amodra@bigpond.net.au>
475 * po/ld.pot: Regenerate.
477 2005-03-02 Jan Beulich <jbeulich@novell.com>
479 * ldmain.c (remove_output): Use unlink_if_ordinary instead of unlink.
480 * pe-dll.c (pe_dll_generate_implib): Likewise.
482 2005-02-24 Ben Elliston <bje@au.ibm.com>
484 * ldfile.c: Remove GNU960 conditional code.
485 * emultempl/gld960.em: Likewise.
486 * emultempl/gld960c.em: Likewise.
487 * emultempl/lnk960.em: Likewise.
489 2005-02-24 Nick Clifton <nickc@redhat.com>
491 * emultempl/lnk960.em (lnk960_before_parse): Remove redundant
492 empty string from calls to concat.
494 2005-02-23 Nick Clifton <nickc@redhat.com>
496 * emultempl/lnk960.em (lnk960_before_parse): Terminate list of
497 arguments passed to concat() with a NULL.
499 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h because they
500 define types needed by ldfile.h
502 2005-02-23 Alan Modra <amodra@bigpond.net.au>
504 * pe-dll.c: Warning fixes.
505 * emultempl/sunos.em: Likewise.
507 2005-02-22 Daniel Jacobowitz <dan@codesourcery.com>
509 * ldlang.c (section_already_linked): Don't call
510 bfd_section_already_linked for dynamic objects.
512 2005-02-22 Alan Modra <amodra@bigpond.net.au>
514 * ldexp.c: Warning fixes.
515 * ldwrite.c: Likewise.
516 * emultempl/elf32.em: Likewise.
518 2005-02-21 H.J. Lu <hongjiu.lu@intel.com>
520 * ldlang.c (lang_add_section): Check SEC_TIC54X_BLOCK for TI
522 (lang_size_sections_1): Check SEC_COFF_SHARED_LIBRARY for COFF
523 and ECOFF output only.
525 2005-02-21 Alan Modra <amodra@bigpond.net.au>
527 * config.in: Regenerate.
528 * configure: Regenerate.
530 2005-02-17 Zack Weinberg <zack@codesourcery.com>
532 * ldexp.c (assigning_to_dot): New global flag.
533 (fold_name): If assigning_to_dot is true, object immediately to
535 (exp_fold_tree): Set and clear assigning_to_dot around the
536 recursive call to exp_fold_tree to process the right-hand side
537 of an assignment to the location counter.
539 2005-02-17 Paul Brook <paul@codesourcery.com>
541 * scripttempl/armbpabi.sc: Add dummy name to version block.
543 2005-02-17 Alan Modra <amodra@bigpond.net.au>
545 * ldexp.c (new_abs): Init new.str.
547 2005-02-15 Mark Mitchell <mark@codesourcery.com>
549 * configure.in (AC_CHECK_FUNCS): Add glob.
550 * configure: Regenerated.
551 * emultempl/elf32.em (<glob.h>): Do not include if HAVE_GLOB is
553 (gld${EMULATION_NAME}_parse_ld_so_conf_include): Do not use glob
554 if HAVE_GLOB is not defined.
556 2005-02-16 Kaz Kojima <kkojima@rr.iij4u.or.jp>
558 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define
559 lib_path if NATIVE is yes.
561 2005-02-16 Alan Modra <amodra@bigpond.net.au>
563 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Make
564 an error creating fake bfd fatal.
565 (ppc_before_allocation): Continue on after errors.
566 (gld${EMULATION_NAME}_finish): Likewise.
568 2005-02-15 Nick Clifton <nickc@redhat.com>
570 * ldlex.l (YY_NO_UNPUT): Define so that the yy_unput function is
571 not declared. It is not used and its presence causes a compile
574 2005-02-11 Zack Weinberg <zack@codesourcery.com>
576 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed):
577 If st.st_ino is zero, do not treat the library as a duplicate.
579 2005-02-10 Jakub Jelinek <jakub@redhat.com>
581 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
582 Set BFD_LINKER_CREATED on the stubs bfd.
583 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
586 2005-02-08 Mark Mitchell <mark@codesourcery.com>
588 * scripttempl/armbpabi.sc (VERSION): Make special section symbols
590 (Image$$ER_RO$$Base): Define whenever RELOCATING.
591 (Image$$ER_RO$$Limit): Likewise.
592 (SHT$$INIT_ARRAY$$Base): Likewise.
593 (SHT$$INIT_ARRAY$$Limit): Likeise.
595 2005-02-10 Ben Elliston <bje@au.ibm.com>
597 * emultempl/beos.em: Remove #if 0 and #if 1 blocks.
599 2005-02-08 Richard Sandiford <rsandifo@redhat.com>
601 * configure.tgt (mips64*el-*-linux-gnu*): Define targ_extra_libpath
602 to include o32 and n64 emulations.
603 (mips64*-*-linux-gnu*): Likewise.
605 2005-02-08 Hans-Peter Nilsson <hp@axis.com>
607 * ldmain.c (warning_callback, warning_find_reloc): Prepend
608 "warning: " to warning messages.
610 2005-02-04 Alan Modra <amodra@bigpond.net.au>
612 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't
613 look up symbol for etree_provide here.
615 2005-02-02 Daniel Jacobowitz <dan@codesourcery.com>
617 * emulparams/elf32bmip.sh (TEXT_DYNAMIC): Always set.
619 2005-02-01 Edward Welbourne <eddy@opera.com>
620 Nick Clifton <nickc@redhat.com>
622 * ld.texinfo (Source Code Reference): New node describing how to
623 access linker script defined variables from source code.
625 2005-02-01 Alan Modra <amodra@bigpond.net.au>
627 * ld.texinfo: Clarify --as-needed operation.
629 2005-01-31 Andrew Cagney <cagney@gnu.org>
631 * configure: Regenerate to track ../gettext.m4.
633 2005-01-31 Nick Clifton <nickc@redhat.com>
635 * ldver.c (ldversion): Bump reported copyright date to 2005.
637 2005-01-31 Nick Clifton <nickc@redhat.com>
639 * configure.tgt: Remove obsolete targets m68k-lynxos and
642 2005-01-28 Julian Brown <julian@codesourcery.com>
644 * emultempl/armelf.em (fix_v4bx): New variable.
645 (arm_elf_create_output_section_statements): Communicate fix_v4bx flag
647 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_FIX_V4BX.
648 (PARSE_AND_LIST_LONGOPTS): Add option --fix-v4bx.
649 (PARSE_AND_LIST_OPTIONS): Add option --fix-v4bx.
650 (PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX.
651 * NEWS: Mention --fix-v4bx.
652 * ld.texinfo: Document --fix-v4bx.
654 2005-01-25 Mark Mitchell <mark@codesourcery.com>
656 * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Define, so
657 as to include .ARM.exidx$${Base,Limit}.
658 * ld/scripttempl/armbpabi.sc: Move .plt to end of text segment.
659 Define IMAGE$$ER_RO$${Base,Limit} and SHT$$INIT_ARRAY$${Base,Limit}.
660 Put .init_array, .fini_array, etc. into the read-only data
663 2005-01-25 Alan Modra <amodra@bigpond.net.au>
665 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Formatting.
666 (gld${EMULATION_NAME}_after_open): Ignore needed libs if they were
667 only needed by an as-needed lib that didn't get linked.
669 2005-01-23 Alan Modra <amodra@bigpond.net.au>
671 * ld.texinfo (Output Section Keywords <CONSTRUCTORS>): Correct
672 __DTOR_LIST__ description.
674 2005-01-23 Alan Modra <amodra@bigpond.net.au>
676 * ld.texinfo (Location Counter <dot outside sections>): Document
677 effects of orphan section placement, and ". = ." workaround.
678 * Makefile.in: Regenerate.
680 2005-01-22 Richard Sandiford <rsandifo@redhat.com>
682 * emulparams/elf32bmip.sh (OTHER_GOT_SECTIONS): Add ". = .;".
683 * emulparams/elf32bmipn32-defs.sh (OTHER_GOT_SECTIONS): Likewise.
685 2005-01-21 Jakub Jelinek <jakub@redhat.com>
687 * ldgram.y (AS_NEEDED): New token.
688 (input_list): Handle AS_NEEDED ( input_list ).
689 * ldlex.l (AS_NEEDED): Add.
690 * ld.texinfo: Document AS_NEEDED ().
691 * NEWS: Mention AS_NEEDED ().
693 2005-01-21 Ben Elliston <bje@au.ibm.com>
695 * ldlang.c (lang_reasonable_defaults): Remove.
696 (lang_process): Don't call lang_reasonable_defaults.
698 * ldexp.c (exp_assop): Remove #if 0'd code.
699 (exp_print_tree): Likewise.
700 * ldlang.c (lang_memory_region_lookup): Likewise.
701 (open_output): Likewise.
702 (lang_do_assignments_1): Likewise.
703 (lang_place_orphans): Likewise.
704 (lang_enter_output_section_statement): Likewise.
705 (lang_reasonable_defaults): Likewise.
706 * ldlang.h (struct lang_input_statement_struct): Likewise.
707 * mri.c (mri_draw_tree): Likewise.
708 (mri_load): Likewise.
709 * pe-dll.c (generate_reloc): Likewise.
710 (make_import_fixup_entry): Likewise.
712 * emultempl/beos.em (set_pe_subsystem): Likewise.
713 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
714 * emultempl/pe.em: Likewise.
715 * emultempl/xtensaelf.em (xtensa_colocate_literals): Likewise.
717 2005-01-20 Daniel Jacobowitz <dan@codesourcery.com>
719 * Makefile.am (ALL_EMULATIONS): Add earmelfb_linux_eabi.o.
720 (earmelfb_linux_eabi.c): New target.
721 * Makefile.in: Regenerated.
722 * configure.tgt (arm*b-*-linux-gnueabi): New target.
723 * emulparams/armelfb_linux_eabi.sh: New file.
725 2005-01-20 Nick Hudson <skrll@netbsd.org>
728 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
729 Handle bfd_elf32_hppa_nbsd_vec.
731 2005-01-19 Richard Sandiford <rsandifo@redhat.com>
733 * ldmain.h (ld_sysroot): Change type to a constant string.
734 * ldmain.c (ld_sysroot): Likewise.
735 (get_relative_sysroot, get_sysroot): New functions, adding command-line
736 support for changing the sysroot.
737 (main): Call the new functions.
738 * lexsup.c (OPTION_SYSROOT): New.
739 (ld_options): Add --sysroot.
740 (parse_args): Add a dummy handler for it.
741 * ld.texinfo (--sysroot): Document.
742 * NEWS: Mention the new --sysroot option.
744 2005-01-18 Alan Modra <amodra@bigpond.net.au>
746 * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
747 (lang_place_orphans): Don't abort on just_syms_flag, instead call
750 2005-01-16 Danny Smith <dannysmith@users.sourceforge.net>
752 * defilep.y (def_name, def_library): Combine into...
753 (def_image_name): New function. Strip name to basename,
756 2005-01-12 Mark Kettenis <kettenis@gnu.org>
758 * configure.in: Be sure to invoke config.sub using the shell.
759 * configure: Regenerate.
761 2005-01-11 Alan Modra <amodra@bigpond.net.au>
763 * configure.host: Correct sed patterns for last change.
765 2005-01-10 Nick Clifton <nickc@redhat.com>
768 * ldmisc.c (vfinfo): Add an extra argument: is_warning. Use this
769 to determine whether config.make_executable should be set to FALSE in
770 conjunction with config.fatal_warnings.
771 (info_msg, minfo, lfinof): Pass FALSE as the extra argument.
772 (einfo): Pass TRUE as the extra argument.
774 2005-01-10 Greg Schaffer <gschafer@zip.com.au>
776 * configure.host (linux targets): Use "${CC} -dumpspecs" instead
777 of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0.
778 (ia64-*-aix): Delete - this target is obsolete, and would be
779 broken by this patch.
781 2005-01-06 Eric Botcazou <ebotcazou@libertysurf.fr>
783 * configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*.
784 (sparc64-sun-solaris2*): New host.
786 2005-01-06 Paul Brook <paul@codesourcery.com>
788 * Makefie.am: Add earmelf_vxworks.
789 * Makefile.in: Regenerate.
790 * configure.tgt: Make arm-*-vxworks a separate case.
791 * emulparams/armelf_vxworks.sh: New function.
793 2005-01-06 Alan Modra <amodra@bigpond.net.au>
795 * emultempl/ppc64elf.em (no_multi_toc): New var.
796 (gld${EMULATION_NAME}_finish): Pass to ppc64_elf_setup_section_lists.
797 (OPTION_NO_MULTI_TOC): Define.
798 (PARSE_AND_LIST_LONGOPTS): Add --no-multi-toc support.
799 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
801 2005-01-05 Nick Clifton <nickc@redhat.com>
804 * ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
805 Standard's specification for parsable error messages.
807 2005-01-04 Paul Brook <paul@codesourcery.com>
809 * Makefile.am: Correct dependency for earmsymbian.c.
810 * Makefile.in: Regenerate.
812 2004-12-28 Danny Smith <dannysmith@users.sourceforge.net>
814 * emultempl/pe.em (set_pe_subsystem): Change second arg to
815 lang_add_entry to FALSE.
817 2004-12-23 Nick Clifton <nickc@redhat.com>
820 * emulparams/shelf.sh (.stack): Increase stack start address to
823 2004-12-20 Nick Clifton <nickc@redhat.com>
825 * ldmain.c (main): Issue an error message if -static and -shared
828 2004-12-17 Jakub Jelinek <jakub@redhat.com>
830 * ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
831 * ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
832 * ldlang.c (lang_size_sections): Use them to avoid wasting virtual
833 address space at DATA_SEGMENT_ALIGN. Fix computation of expected
834 PT_GNU_RELRO segment end.
836 2004-12-14 P.J. Darcy <darcypj@us.ibm.com>
838 * configure.tgt: Add s390x-ibm-tpf support.
840 2004-12-16 Martin Kögler <mkoegler@auto.tuwien.ac.at>
842 * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
845 2004-12-07 Ben Elliston <bje@gnu.org>
847 * ldemul.h: Forward declare struct option.
849 2004-12-01 Danny Smith <dannysmith@users.sourceforge.net>
851 * scripttempl/pe.sc (.data): Add .jcr subsection.
853 2004-11-30 Paul Brook <paul@codesourcery.com>
855 * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
857 2004-11-30 Tero Niemela <tero_niemela@yahoo.com>
859 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
860 * Makefile.in: Regenerate.
862 2004-11-26 Melissa Mears <asterisk@graces.dricas.com>
864 * emultempl/pe.em: Add --subsystem:xbox as well as
866 * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
867 and numeric subsystems.
869 2004-11-24 Alan Modra <amodra@bigpond.net.au>
871 * ldexp.c (fold_name): Correct PR 338 fix.
873 2004-11-19 Mark Mitchell <mark@codesourcery.com>
875 * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
876 (earmelf_linux_eabi.c): New target.
877 * configure.tgt (arm*-*-linux-gnueabi): Handle it.
878 * emulparams/armelf_linux_eabi.sh: New file.
879 * Makefile.in: Regenerated.
881 2004-11-19 Nick Clifton <nickc@redhat.com>
884 * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
885 LENGTH fields in the MEMORY command, to explicitly state that
886 symbols cannot be used in their expressions.
888 2004-11-19 Jon Beniston <jon@beniston.com>
890 * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
891 * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
892 * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
893 which return the length and origin of a memory.
894 * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
895 * NEWS: Mention support for ORIGIN and LENGTH operators.
897 2004-11-17 Daniel Jacobowitz <dan@codesourcery.com>
899 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
900 a dynamic object for stubs.
902 2004-11-04 Paul Brook <paul@codesourcery.com>
904 * ld.texinfo: Document --default-imported-symver.
905 * ldmain.c (main): Set link_info.default_imported_symver.
906 * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
907 (ld_options): Add --default-imported-symver.
908 (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
910 2004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
911 Vineet Sharma <vineets@noida.hcltech.com>
913 * Makefile.am: Add entries for new maxq-coff target.
914 * Makefile.in: Regenerate.
915 * configure.tgt: Add support for maxq.
916 * emulparams/maxqcoff.sh: New File.
917 * scripttempl/maxqcoff.sc: New linker script for target maxq.
918 * NEWS: Mention the new target.
920 2004-11-04 Daniel Jacobowitz <dan@debian.org>
922 * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
923 (earmelf_oabi.c): Remove rule.
924 * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
925 * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
926 * Makefile.in: Regenerated.
928 2004-11-04 Hans-Peter Nilsson <hp@axis.com>
930 * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
931 * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
933 (INIT_END): Remove emitted "jump [sp+]".
936 2004-11-04 Alan Modra <amodra@bigpond.net.au>
938 * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
939 (no_opd_opt, no_toc_opt): New static vars.
940 (ppc_before_allocation): Don't edit opt if no_opd_opt. Call
942 (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
943 (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
944 (PARSE_AND_LIST_OPTIONS): Describe new options.
945 (PARSE_AND_LIST_ARGS_CASES): Handle them.
947 2004-10-27 Nick Clifton <nickc@redhat.com>
949 * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
950 parameter to invocation of lang_section_start.
951 * emultempl/aix.em (_handle_option): Likewise.
953 * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
954 eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
955 * Makefile.in: Regenerate.
957 2004-10-26 Mark Mitchell <mark@codesourcery.com>
959 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
960 __exidx_{start,end} when not relocating.
962 2004-10-25 Mark Mitchell <mark@codesourcery.com>
964 * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
965 * ldexp.h (segment_type): New type.
966 (segments): New variable.
967 * ldexp.c (segments): New variable.
968 (exp_print_token): Handle SEGMENT_START.
969 (fold_binary): Likewise.
970 * ldgram.y (SEGMENT_START): Declare it as a token.
971 (exp): Handle SEGMENT_START.
972 * ldlang.h (lang_address_statement_type): Add segment field.
973 (lang_section_start): Change prototype.
974 * ldlang.c (map_input_to_output_sections): Do not process section
975 assignments if a corresponding SEGMENT_START has already been
977 (lang_section_start): Add segment parameter.
978 * ldlex.l (SEGMENT_START): Add it.
979 * lexsup.c (seg_segment_start): New function.
980 (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
981 * ld.texinfo (SEGMENT_START): Document it.
982 * emulparams/armsymbian.sh (EMBEDDED): Set it.
983 * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
984 base addresses. Do not map relocations.
985 * NEWS: Mention SEGMENT_START.
987 2004-10-26 Paul Brook <paul@codesourcery.com>
989 * ld.texinfo: Document --default-symver.
990 * ldmain.c (main): Set link_info.create_default_symver.
991 * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
992 (ld_options): Add default-symver.
993 (parse_args): Handle OPTION_DEFAULT_SYMVER.
995 2004-10-24 Danny Smith <dannysmith@users.sourceforge.net>
997 * pe-dll.c (process_def_file): Don't export all symbols by default if
998 building a position-independent executable.
1000 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
1003 * ldmain.c (reloc_overflow): Accept a pointer to struct
1004 bfd_link_hash_entry. Report symbol location for relocation
1007 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
1009 * genscripts.sh (libpath.exp): Really generate for first
1012 2004-10-19 Danny Smith <dannysmith@users.sourceforge.net>
1014 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
1015 comparison and replacement of filenames.
1017 2004-10-19 H.J. Lu <hongjiu.lu@intel.com>
1020 * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
1021 option on linker script as the one for linker script.
1023 2004-10-16 Daniel Jacobowitz <dan@debian.org>
1025 * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
1026 (check_excluded_libs): New.
1027 (load_symbols): Call check_excluded_libs.
1028 * ldlang.h (add_excluded_libs): New prototype.
1029 * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
1030 (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
1031 (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
1032 * ld.texinfo (Command Line Variables): Document --exclude-libs.
1033 (Options Specific to i386 PE Targets): Remove --exclude-libs.
1035 2004-10-15 Alan Modra <amodra@bigpond.net.au>
1037 * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
1038 failing link script assert.
1040 * ldctor.c (ldctor_add_set_entry): Fix comment typo.
1042 2004-10-14 H.J. Lu <hongjiu.lu@intel.com>
1045 * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
1046 (SMALL_DATA_DTOR): Set.
1047 * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
1048 (SMALL_DATA_DTOR): Unset.
1049 * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
1050 after .data. If SMALL_DATA_DTOR is set, move .dtors after
1053 2004-10-14 Alan Modra <amodra@bigpond.net.au>
1056 * ldlang.h (lang_output_section_statement_type): Make "next" a
1057 struct lang_output_section_statement_struct *.
1058 (struct orphan_save): Move from elf32.em. Add "name" and "flags".
1059 (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
1060 * ldlang.c (lang_output_section_find_1): Adjust for changed
1061 output_section_statement "next".
1062 (strip_excluded_output_sections): Likewise.
1063 (lang_record_phdrs): Likewise.
1064 (lang_output_section_find_by_flags): New function.
1065 (output_prev_sec_find): Move from pe.em. Adjust iterator.
1066 (lang_insert_orphan): New function. Tail end of elf32.em's
1067 place_orphan merged with that from pe.em. Allow bfd_section to
1068 be placed first. New heuristic for placing new output section
1069 statement in existing script, and accompanying split of __start
1070 symbol alignment into a separate assignment to dot.
1071 (lang_add_section): Consistently use output->bfd_section rather than
1072 an alias, section->output_section.
1073 (map_input_to_output_sections): Rename overly long arg. Move
1074 initialization of data_statement output section to here..
1075 (lang_check_section_addresses): ..from here.
1076 (print_assignment): Correct printing of etree_assert.
1077 (print_all_symbols): Don't bomb if userdata is NULL.
1078 (IGNORE_SECTION): Rearrange.
1079 * emultempl/elf32.em (output_rel_find): Adjust interator.
1080 (output_prev_sec_find): Delete.
1081 (struct orphan_save): Delete.
1082 (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
1083 flags without creating a duplicate output section statement.
1084 Revise code holding history of various orphan section placements.
1085 Allow orphan sections to place before script specified output
1086 sections. Call lang_output_section_find_by_flags when placement
1087 by name fails. Use lang_insert_orphan.
1088 * emultempl/mmo.em (output_prev_sec_find): Delete.
1089 (struct orphan_save): Delete.
1090 (mmo_place_orphan): Revise code holding history of orphan placement.
1091 Allow orphans to place before existing output sections. Use
1093 * emultempl/pe.em (output_prev_sec_find): Delete.
1094 (struct orphan_save): Delete.
1095 (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
1098 2004-10-13 Mark Mitchell <mark@codesourcery.com>
1100 * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
1103 2004-10-13 Alan Modra <amodra@bigpond.net.au>
1106 * ldcref.c (check_section_sym_xref): Delete.
1107 (check_local_sym_xref): New function.
1108 (check_nocrossrefs): Adjust call.
1109 * emultempl/pe.em (struct orphan_save): Add os_tail.
1110 (place_orphan): Backport assorted fixes from elf32.em.
1112 2004-10-12 Bob Wilson <bob.wilson@acm.org>
1114 * emultempl/xtensaelf.em: Use ISO C90 formatting.
1116 2004-10-11 Jakub Jelinek <jakub@redhat.com>
1118 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
1119 getline for portability.
1121 * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
1122 (gld${EMULATION_NAME}_parse_ld_so_conf,
1123 gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
1124 (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
1126 2004-10-11 Alan Modra <amodra@bigpond.net.au>
1129 * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
1130 rejected when linking statically.
1132 2004-10-08 Daniel Jacobowitz <dan@debian.org>
1134 * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
1136 2004-10-07 Bob Wilson <bob.wilson@acm.org>
1138 * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
1139 assembler-generated longcall sequences. Describe new --size-opt
1141 * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
1142 * emultempl/xtensaelf.em (remove_section,
1143 replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
1144 elf_xtensa_after_open): New.
1145 (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
1146 OPTION_NO_LITERAL_MOVEMENT): Define.
1147 (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
1148 (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
1149 (PARSE_AND_LIST_OPTIONS): Add --size-opt.
1150 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
1151 OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
1152 (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
1153 * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
1154 * Makefile.am (eelf32xtensa.c): Update dependencies.
1155 * Makefile.in: Regenerate.
1157 2004-10-07 Jeff Baker <jbaker@qnx.com>
1159 * lexsup.c: Handle --warn-shared-textrel option.
1160 (ld_options): Restore alpha sorting of options.
1161 * ldmain.c (main): Initialise warn_shared_info field to FALSE.
1162 * ld.texinfo: Add documentation for --warn-shared-textrel.
1163 * NEWS: Added mention of --warn-shared-textrel option.
1165 2004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
1167 * emultempl/crxelf.em (disable_relaxation): Add.
1168 (crxelf_before_allocation): Enable --relax option by default.
1169 (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
1170 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
1171 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
1173 2004-10-04 H.J. Lu <hongjiu.lu@intel.com>
1175 * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
1176 --sort-section name|alignment.
1178 * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
1179 --sort-section name|alignment.
1181 * ld.h (sort_type): New enum.
1182 (wildcard_spec): Change the type of `sorted' to sort_type.
1184 * ldgram.y (SORT): Removed.
1185 (SORT_BY_NAME): Added.
1186 (SORT_BY_ALIGNMENT): Added.
1187 (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
1189 (input_section_spec_no_keep): Updated `sorted'.
1190 (statement): Replace SORT with SORT_BY_NAME.
1192 * ldlang.c (compare_section): New function to compare 2
1193 sections with different sorting schemes.
1194 (wild_sort): Updated. Use compare_section.
1195 (update_wild_statements): New function.
1196 (lang_process): Call update_wild_statements before
1197 map_input_to_output_sections.
1199 * ldlex.l (SORT_BY_NAME): New.
1200 (SORT_BY_ALIGNMENT): New.
1201 (SORT): Return SORT_BY_NAME.
1203 * ldmain.c (sort_section): New. Defined.
1204 (main): Initialize it to none.
1206 * lexsup.c (option_values): Add OPTION_SORT_SECTION.
1207 (ld_options): Add an entry for OPTION_SORT_SECTION.
1208 (parse_args): Handle OPTION_SORT_SECTION.
1210 * mri.c (mri_draw_tree): Updated `sorted'.
1212 2004-10-04 Jakub Jelinek <jakub@redhat.com>
1214 * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
1215 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
1217 (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
1218 and . as second argument.
1219 (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
1220 * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
1221 (fold_binary): Add it here. Insert padding to make relro_end
1222 COMMONPAGESIZE bytes aligned. For DATA_SEGMENT_ALIGN in
1223 exp_dataseg_relro_adjust phase just use previously computed
1225 * ldlang.c (lang_size_sections): Set exp_data_seg.base for
1226 relro_adjust here. Call lang_size_sections_1 once more if there
1227 was too big padding at DATA_SEGMENT_RELRO_END.
1228 * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
1230 2004-10-01 Paul Brook <paul@codesourcery.com>
1232 * emulparams/armelf.sh: Add unwinding table sections.
1234 2004-09-30 Filip Navara <navaraf@reactos.com>
1236 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
1237 correct base address for position independant executables.
1238 * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
1239 executables as DLLs.
1241 2004-09-30 Paul Brook <paul@codesourcery.com>
1243 * ld.texinfo: Document --target2=abs.
1244 * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
1246 2004-09-29 Nick Clifton <nickc@redhat.com>
1248 * scripttempl/xstormy16.sc: Only perform the assignments to the
1249 ROM region when not performing a relocatable link. The ROM region
1250 does not start at address 0, but the sections will.
1251 * Makefile.am: Fix linker script dependency for the generation of
1253 * Makefile.in: Regenerate.
1255 2004-09-18 Filip Navara <navaraf@reactos.com>
1257 * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
1258 emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
1259 emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
1261 * scripttempl/pe.sc: Make the virtual address and file offset synced if
1262 the alignment is lower than the target page size.
1264 2004-09-27 Filip Navara <navaraf@reactos.com>
1266 * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
1267 def_file_parse to handle pe_def_file if NULL and prevent crash with
1270 2004-09-27 Alan Modra <amodra@bigpond.net.au>
1272 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
1273 --emit-stub-syms automatically when --emit-relocs.
1275 2004-09-24 Paul Brook <paul@codeosurcery.com>
1277 * scripttempl/elf.sc: Keep .preinit_array, .init_array and
1278 .fini_array sections.
1280 2004-09-19 Andreas Schwab <schwab@suse.de>
1282 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
1283 base so that relro end is suitably aligned.
1285 2004-09-17 Paul Brook <paul@codesourcery.com>
1287 * ld.texinfo: Rename arm-specific section. Document --target*
1288 * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
1289 * emulparams/armelf_linux.sh: Ditto.
1290 * emulparams/armelf_nbsd.sh: Ditto.
1291 * emultempl/armelf.em: Set default for TARGET2_TYPE.
1292 (target2_type): New variable.
1293 (arm_elf_before_allocation): Don't pass target1_type.
1294 (arm_elf_create_output_section_statements): New function.
1295 (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
1296 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
1297 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
1298 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
1299 * emultempl/armelf_oabi.em (_before_allocation): Remove extra
1300 argument to bfd_elf32_arm_process_before_allocation.
1302 2004-09-17 Alan Modra <amodra@bigpond.net.au>
1304 * ldexp.c (fold_name): Update u.undef.next refs.
1305 * emultempl/pe.em: Likewise.
1306 * emultempl/sunos.em: Likewise.
1308 2004-09-17 Alan Modra <amodra@bigpond.net.au>
1310 * Makefile.am: Run "make dep-am".
1311 * Makefile.in: Regenerate.
1312 * config.in: Regenerate.
1313 * configure: Regenerate.
1314 * aclocal.m4: Regenerate.
1315 * po/ld.pot: Regenerate.
1317 2004-09-16 Tomer Levi <Tomer.Levi@nsc.com>
1319 * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
1323 2004-09-16 Alan Modra <amodra@bigpond.net.au>
1325 * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
1326 to bfd_elf32_arm_process_before_allocation call.
1328 2004-09-13 Paul Brook <paul@codesourcery.com>
1330 * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
1331 * emultempl/armelf.em: Use TARGET1_IS_REL. Add --target1-{rel,abs}.
1333 2004-09-07 H.J. Lu <hongjiu.lu@intel.com>
1335 * configure: Regenerated with autconfig 2.13.
1337 2004-09-07 Andreas Schwab <schwab@suse.de>
1339 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
1340 alignment before adjusting DATA_SEGMENT_RELRO_END.
1342 2004-09-06 Mark Mitchell <mark@codesourcery.com>
1344 * emulparams/armsymbian.sh: Use armbpabi script.
1345 * scripttempl/armbpabi.sc: New script.
1347 2004-09-02 Mark Mitchell <mark@codesourcery.com>
1349 * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
1350 (earmsymbian.c): New target.
1351 * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
1352 * Makefile.in: Regenerated.
1353 * aclocal.m4: Likewise.
1354 * configure: Likewise.
1355 * emulparams/armsymbian.sh: New file.
1357 2004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
1359 * scripttempl/elf32crx.sc: Edit file with comments.
1360 (.init): Add new section.
1362 (.ctor): Control the linkage order.
1365 2004-08-27 Nick Clifton <nickc@redhat.com>
1367 * emultempl/pe.em (after_open): Do not assume that either bfd is
1370 2004-08-26 Alan Modra <amodra@bigpond.net.au>
1372 * ldlang.c (lang_init): Don't compare with TRUE.
1374 2004-08-25 Dmitry Diky <diwil@spec.ru>
1376 * emulparams/msp430all.sh: Fix RAM sizes for all targets.
1377 * scripttempl/elf32msp430.sc: Add .profiler section definition.
1379 2004-08-24 H.J. Lu <hongjiu.lu@intel.com>
1381 * ldlang.c (wildcardp): Defined as a macro with strpbrk.
1383 2004-08-19 Mark Mitchell <mark@codesourcery.com>
1385 * configure.tgt (arm*-*-symbianelf*): New target.
1386 (arm*-*-eabi*): Likewise.
1388 2004-08-19 Jakub Jelinek <jakub@redhat.com>
1390 * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
1391 (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
1392 (OPTION_NON_OVERLAPPING_OPD): Define.
1393 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
1394 --non-overlapping-opd option.
1396 2004-08-18 Alan Modra <amodra@bigpond.net.au>
1399 * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
1400 was already on the undefs list.
1402 2004-08-17 Alan Modra <amodra@bigpond.net.au>
1404 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
1405 prefix the symbol field too.
1407 2004-08-13 Alan Modra <amodra@bigpond.net.au>
1409 * ldmain.c (link_callbacks): Remove "error_handler".
1410 * ldmisc.c: Include elf-bfd.h.
1411 (vfinfo): Sort comment. Handle %A. Use %A instead of
1412 bfd_get_section_indent.
1413 (error_handler): Delete.
1414 * ldmisc.h (error_handler): Delete declaration.
1416 2004-08-10 Alan Modra <amodra@bigpond.net.au>
1418 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
1419 ppc64_elf_restore_symbols.
1421 2004-08-09 Alan Modra <amodra@bigpond.net.au>
1423 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
1424 .toc is too large on relocatable linking.
1426 2004-08-09 Alan Modra <amodra@bigpond.net.au>
1428 * emultempl/ppc64elf.em (ppc_after_open): Delete.
1429 (LDEMUL_AFTER_OPEN): Don't define.
1431 2004-08-02 Stephane Carrez <stcarrez@nerim.fr>
1433 * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
1435 2004-08-01 Stephane Carrez <stcarrez@nerim.fr>
1437 * scripttempl/elfm68hc12.sc: Align text, rodata and data section
1440 2004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
1442 * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
1444 2004-07-26 Dmitry Diky <diwil@spec.ru>
1446 * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
1447 msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
1449 * configure.tgt: Likewise.
1450 * emulparams/msp430all.sh: Likewise.
1451 * Makefile.in: Regenerate.
1453 2004-07-23 Nick Clifton <nickc@redhat.com>
1455 * emultempl/elf32.em (_place_orphan): Use an already existing
1456 section name if that section does not have any flags set.
1458 2004-07-21 H.J. Lu <hongjiu.lu@intel.com>
1460 * ldlang.c (already_linked_hash_entry): Removed.
1461 (already_linked): Likewise.
1462 (already_linked_table): Likewise.
1463 (section_already_linked): Call bfd_section_already_linked.
1464 (lang_process): Replace already_linked_table_init with
1465 bfd_section_already_linked_table_init and check return. Replace
1466 already_linked_table_free with bfd_section_already_linked_table_free.
1468 2004-07-21 Nick Clifton <nickc@redhat.com>
1470 * ldlang.c (init_os): Make sure that the newly allocated userdata
1471 structure is zeroed out.
1473 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
1475 * NEWS: Mention the new --add-needed/--no-add-needed and
1476 --as-needed/--no-as-needed options.
1478 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
1480 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
1481 check the add_needed field.
1482 (dt_needed): New struct.
1483 (gld${EMULATION_NAME}_try_needed): Change the first argument
1484 to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
1485 bit in the file where the DT_NEEDED entry comes from.
1486 (gld${EMULATION_NAME}_search_needed): Change the second
1487 argument to a pointer to struct dt_needed.
1488 (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
1489 (gld${EMULATION_NAME}_after_open): Likewise.
1491 * ld.texinfo: Add --add-needed document.
1492 * ldlang.c (new_afile): Set p->add_needed.
1493 * ldlang.h (lang_input_statement_type): Add add_needed field.
1494 * ldmain.h (add_needed): Declare.
1495 * ldmain.c (add_needed): New global var.
1496 * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
1497 OPTION_NO_ADD_NEEDED.
1498 (ld_options): Likewise.
1499 (parse_args): Handle them.
1501 2004-07-13 Christof Petig <christof@petig-baender.de>
1503 * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
1504 for endian-ness of extracted addend.
1506 2004-07-13 Danny Smith <dannysmith@usesr.sourceforge.net>
1508 * pe-dll.c (auto_export): Filter on just the import prefix,
1509 "_imp_", not "_imp__".
1511 2004-07-09 Nick Clifton <nickc@redhat.com>
1513 * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
1515 2004-07-06 Tomer Levi <Tomer.Levi@nsc.com>
1517 * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
1518 (eelf32crx.c): New target.
1519 * Makefile.in: Regenerate.
1520 * configure.tgt: Handle crx-*-elf*.
1521 * emulparams/elf32crx.sh: New file.
1522 * emultempl/crxelf.em: New file.
1523 * scripttempl/elf32crx.sc: New file.
1524 * NEWS: Mention new target.
1526 2004-07-06 Nick Clifton <nickc@redhat.com>
1528 * Makefile.am: Add eshlsymbian.c.
1529 * Makefile.in: Regenerate.
1530 * configure.tgt: Add sh*-symbian-elf target.
1531 * emulparams/shlsymbian.sh: New file. Configure the
1532 sh-symbian-elf linker scripts.
1533 * scripttemp/elf32sh-symbian.sc: New file. Linker script
1534 template for the sh-symbian-elf target.
1536 2004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1538 * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
1539 * emulparams/hppalinux.sh: Likewise.
1540 * scripttempl/elf.sc: Place .plt just before .got when .plt is in
1541 data segment and PLT_BEFORE_GOT is defined.
1543 2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1545 * ld.texinfo (WIN32): Document PE weak symbols.
1547 2004-07-02 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1549 * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
1551 2004-07-01 H.J. Lu <hongjiu.lu@intel.com>
1553 * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
1556 2004-06-29 Alan Modra <amodra@bigpond.net.au>
1558 * ldlang.c (lang_reset_memory_regions): Save last relax pass section
1561 2004-06-24 Alan Modra <amodra@bigpond.net.au>
1563 * ldlang.c (print_output_section_statement): Don't print size before
1565 (IGNORE_SECTION): Remove bfd arg. Update all callers.
1567 * ldexp.c (fold_name): .. See below.
1568 * ldlang.c (section_already_linked, print_output_section_statement,
1569 print_input_section, insert_pad, size_input_section,
1570 lang_check_section_addresses, lang_size_sections_1,
1571 lang_size_sections, lang_do_assignments_1, lang_set_startof,
1572 lang_one_common, lang_reset_memory_regions, lang_process,
1573 lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
1574 * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
1575 * pe-dll.c (process_def_file, generate_reloc): ..
1576 * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
1577 gld${EMULATION_NAME}_before_allocation): ..
1578 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
1579 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
1580 sh64_elf_${EMULATION_NAME}_after_allocation): ..
1581 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
1582 * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
1583 ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
1584 "size" instead of "_raw_size" and "_cooked_size". Expand
1585 bfd_section_size macro invocations.
1587 2004-06-22 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1589 * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
1590 ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
1591 ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
1593 (.tls): Define ___tls_start__ and ___tls_end__.
1595 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
1597 * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
1599 2004-06-18 Adam Nemet <anemet@lnxw.com>
1601 * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
1602 * configure: Regenerate.
1604 2004-06-15 Jakub Jelinek <jakub@redhat.com>
1606 * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
1607 .gcc_except_table output sections lost accidentally with
1610 2004-06-15 Alan Modra <amodra@bigpond.net.au>
1612 * ldwrite.c (build_link_order): Use bfd_get_section_size
1613 instead of bfd_get_section_size_before_reloc or _raw_size.
1614 * pe-dll.c (process_def_file): Likewise.
1616 2004-06-14 Alan Modra <amodra@bigpond.net.au>
1618 From Richard Wirth <r.wirth@wirthware.de>
1619 * ldlang.c (lang_finish): Don't free lang_definedness_table.
1621 2004-05-29 Alan Modra <amodra@bigpond.net.au>
1623 * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
1624 (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
1626 2004-05-28 Alan Modra <amodra@bigpond.net.au>
1628 * ldlang.c: Formatting. Wrap long lines, expand bfd_get_section_flags
1630 * lexsup.c: Formatting. Wrap long lines.
1631 * ldwrite.c: Update copyright date.
1633 * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
1634 (output_section_callback): Nor SEC_KEEP here.
1635 (gc_section_callback): Twiddle SEC_EXCLUDE here.
1636 (lang_gc_wild): Delete. Fold into..
1637 (lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage
1639 (lang_process): Always call lang_gc_sections.
1640 (lang_place_orphans): Handle SEC_EXCLUDE sections.
1641 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
1644 2004-05-26 H.J. Lu <hongjiu.lu@intel.com>
1646 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
1647 SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
1648 * ldlang.c (lang_add_section): Likewise.
1650 2004-05-26 Alan Modra <amodra@bigpond.net.au>
1652 * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
1653 sections when doing a final link. Clear SEC_EXCLUDE when doing
1654 a relocable link, except for SEC_DEBUGGING sections.
1655 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
1656 same condition here to drop SEC_EXCLUDE orphan sections.
1658 2004-05-25 Alan Modra <amodra@bigpond.net.au>
1660 * ldlang.c (lang_process): Call bfd_merge_sections later, and
1661 only when not a relocatable link.
1662 (print_input_section): Handle SEC_EXCLUDE sections.
1663 (size_input_section): Don't update dot on SEC_EXCLUDE sections.
1664 (lang_do_assignments_1): Likewise.
1665 * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
1666 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
1667 * emultempl/hppaelf.em (build_section_lists): Likewise.
1668 * emultempl/ppc64elf.em (build_toc_list): Likewise.
1669 (build_section_lists): Likewise.
1671 2004-05-23 Andreas Schwab <schwab@suse.de>
1673 * ld.texinfo (Options): Fix typo in last change.
1675 2004-05-21 Andy Chittenden <achittenden@bluearc.com>
1677 * ld.h (ld_config_type): Add new field: hash_table_size.
1678 * ldmain.c: Initialise the new field to zero. If it is non-zero
1679 after parsing the linker's command line call
1680 bfd_hash_set_default_size.
1681 * lexsup.c (option_values): Add OPTION_HASH_SIZE.
1682 (ld_options): Add hash-size.
1683 (parse_args): Parse --hash-size option. Allow
1684 --reduce-memory-overheads to set the default hash table size as
1686 * ld.texinfo: Document the new switch. Also mention that
1687 --reduce-memory-overheads can affect the hash table size.
1688 * NEWS: Mention the new feature.
1690 2004-05-19 J"orn Rennecke <joern.rennecke@superh.com>
1692 * NEWS: Mention new linker map file generation and the
1693 --reduce-memory-overheads option.
1694 * ld.texinfo: Document --reduce-memory-overheads option.
1695 * ld.h (map_symbol_def): New struct.
1696 (struct user_section_struct, section_userdata_type): Rename to:
1697 (struct lean_user_section_struct, lean_section_userdata_type).
1698 (struct fat_user_section_struct, fat_section_userdata_type): New.
1699 (SECTION_USERDATA_SIZE): Define.
1700 (args_type): New member reduce_memory_overheads.
1701 * ldlang.c (map_obstack): New static variable.
1702 (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
1703 (lang_map): Unless command_line.reduce_memory_overheads is set,
1704 initialize lists of defined symbols for each section.
1705 (print_input_section): Unless command_line.reduce_memory_overheads
1706 is set, use print_all_symbols.
1707 (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
1708 * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
1709 * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
1710 (ld_options): Add entry for --reduce-memory-overheads.
1711 (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
1713 2004-05-19 Jakub Jelinek <jakub@redhat.com>
1715 * ldgram.y (sect_constraint): New.
1716 (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1717 (section): Add sect_constraint. Pass additional argument
1718 to lang_enter_output_section_statement.
1719 * mri.c (mri_draw_tree): Pass additional argument to
1720 lang_enter_output_section_statement.
1721 * emultempl/pe.em (place_orphan): Likewise.
1722 (output_prev_sec_find): Disregard output section statements with
1724 * emultempl/mmo.em (output_prev_sec_find): Likewise.
1725 (mmo_place_orphan): Pass additional argument to
1726 lang_enter_output_section_statement.
1727 * emultempl/elf32.em (output_prev_sec_find): Disregard output section
1728 statements with constraint == -1.
1729 (place_orphan): Pass additional argument to
1730 lang_enter_output_section_statement.
1731 * ldlang.c (lang_enter_overlay_section): Likewise.
1732 (lang_output_section_find_1): New.
1733 (lang_output_section_find): Use it.
1734 (lang_output_section_statement_lookup_1): New.
1735 (lang_output_section_statement_lookup): Use it.
1736 (check_section_callback, check_input_sections): New.
1737 (map_input_to_output_sections): Check if all input sections
1738 are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
1739 (strip_excluded_output_sections): Disregard output section statements
1740 with constraint == -1.
1741 (lang_record_phdrs): Likewise.
1742 (lang_enter_output_section_statement): Add constraint argument.
1743 Use lang_output_section_statement_lookup_1.
1744 * ldlang.h (lang_output_section_statement_type): Add constraint
1745 and all_input_readonly fields.
1746 (lang_enter_output_section_statement): Adjust prototype.
1747 * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1748 * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
1749 segment if all input sections are readonly.
1751 2004-05-19 Adam Nemet <anemet@lnxw.com>
1753 * scripttempl/i386lynx.sc: Remove file.
1755 2004-05-17 Bob Wilson <bob.wilson@acm.org>
1757 * ld.texinfo (Output Section Address): Correct subsection name.
1759 2004-05-17 Adam Nemet <anemet@lnxw.com>
1761 * configure.tgt (powerpc-*-lynxos* case): New case.
1762 * configure.host (i[3-7]86-*-lynxos* case): Remove case.
1763 * emulparams/ppclynx.sh: New file.
1764 * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
1765 * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
1766 (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
1767 (eppclynx.c): New rule.
1768 * Makefile.in: Regenerate.
1770 2004-05-13 Joel Sherrill <joel@oarcorp.com>
1772 * configure.tgt (or32-*-rtems*): Switch to elf and
1773 support versioned targets.
1775 2004-05-13 Nick Clifton <nickc@redhat.com>
1777 * po/fr.po: Updated French translation.
1779 2004-05-11 Jakub Jelinek <jakub@redhat.com>
1781 * genscripts.sh: Generate -z combreloc -z now -z relro scripts
1782 for binaries, -shared and -pie.
1783 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
1784 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
1785 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
1786 (OTHER_RELRO_SECTIONS): ... this.
1787 * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
1788 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
1789 -z relro and -z norelro.
1790 (gld${EMULATION_NAME}_list_options): Add it to usage.
1791 (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
1792 -z relro scripts when appropriate.
1793 * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
1794 Create separate .got.plt section if SEPARATE_GOTPLT.
1795 Move sections which are only written during relocation handling
1796 to the beginning of RW segment. If NO_SMALL_DATA, move .got
1797 before .data. Add DATA_SEGMENT_RELRO_END directive.
1798 Include OTHER_RELRO_SECTIONS.
1799 * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
1800 * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
1801 (fold_unary): Likewise.
1802 (fold_binary): Handle -z relro.
1803 * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
1804 exp_dataseg_relro_adjust phases. Add relro_end field.
1805 * ldmain.c (main): Initialize link_info.relro to FALSE.
1806 * ldlang.c (lang_size_sections): Handle -z relro.
1808 2004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
1810 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
1812 2004-05-07 J"orn Rennecke <joern.rennecke@superh.com>
1814 * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
1815 before printing it with %W.
1817 2004-05-07 Brian Ford <ford@vss.fsi.com>
1818 DJ Delorie <dj@redhat.com>
1820 * emultempl/pe.em (real_flags): New static.
1821 (OPTION_LARGE_ADDRESS_AWARE): New define.
1822 (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
1823 (gld_${EMULATION_NAME}_list_options): Likewise.
1824 (gld${EMULATION_NAME}_handle_option): Likewise.
1825 (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
1826 * ld.texinfo: Document it.
1829 2004-05-07 Brian Ford <ford@vss.fsi.com>
1831 * NEWS: Mention DWARF 2 support for i386pe.
1833 2004-05-05 Alexandre Oliva <aoliva@redhat.com>
1835 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
1838 2004-04-30 Alan Modra <amodra@bigpond.net.au>
1840 * ldlang.c (unique_section_p): Pass section parm, return true on
1842 (output_section_callback): Adjust.
1843 * ldlang.h (unique_section_p): Update prototype.
1844 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
1846 2004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
1848 * ld.texinfo (--gc-sections): Remove restriction for
1851 2004-04-29 Brian Ford <ford@vss.fsi.com>
1853 * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
1854 for DWARF 2/3. Update stab section's syntax.
1856 2004-04-29 Alan Modra <amodra@bigpond.net.au>
1858 * pe-dll.c: Revert changes accidentally committed 2004-03-08.
1859 (fill_edata): Correct pointer arithmetic.
1861 2004-04-21 Chris Demetriou <cgd@broadcom.com>
1863 * ld.texinfo: Remove MIPS --embedded-relocs documentation.
1864 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
1865 * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
1866 (EXTRA_EM_FILE): Use mipsecoff.em
1867 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
1868 (EXTRA_EM_FILE): Use mipsecoff.em
1869 * emultempl/mipsecoff.em: Restructure to be included as an
1870 extra emulation file.
1871 (check_sections, gld${EMULATION_NAME}_after_open)
1872 (gld${EMULATION_NAME}_after_allocation)
1873 (gld${EMULATION_NAME}_get_script)
1874 (ld_${EMULATION_NAME}_emulation): Remove
1875 (gld${EMULATION_NAME}_before_parse): Rename to...
1876 (mipsecoff_before_parse): This.
1877 (LDEMUL_BEFORE_PARSE): Define.
1878 * emultempl/mipself.em: Remove file.
1879 * scripttempl/mips.sc (.rel.sdata): Do not include in output.
1880 (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
1882 * Makefile.am: Remove dependencies on emultempl/mipself.em.
1883 * Makefile.in: Regenerate.
1885 2004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
1887 * ld.texinfo (synthesizing on H8/300): Information about linker
1888 relaxation support for bit manipulation instructions and system
1889 control instructions is added.
1891 2004-04-21 Hans-Peter Nilsson <hp@axis.com>
1893 * NEWS: Mention change in DEFINED semantics.
1895 2004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
1897 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
1898 (.data): Add KEEP for .gnu.linkonce.d.*personality*.
1899 (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
1901 2004-04-21 Ben Elliston <bje@au.ibm.com>
1903 * ld.texinfo (Simple Example): Add missing punctuation.
1905 2004-04-20 Chris Demetriou <cgd@broadcom.com>
1907 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
1909 2004-04-19 Jakub Jelinek <jakub@redhat.com>
1911 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
1914 2004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
1916 * scriptempl/pe.sc: Put numbered .ctors.* after .ctors
1917 with default priority. Likewise for dtors.
1919 2004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1921 * configure.host: Remove mips*-dec-bsd* target.
1922 * configure.tgt: Likewise.
1924 2004-04-08 Richard Sandiford <rsandifo@redhat.com>
1926 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
1927 * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
1928 * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
1929 * emultempl/irix.em: New file.
1930 * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
1932 * Makefile.in: Regenerate.
1934 2004-04-01 Paul Brook <paul@codesourcery.com>
1936 * emultempl/armelf.em (byteswap_code): Add.
1937 (arm_elf_before_allocation): Pass extra parameter.
1938 (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
1939 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
1940 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
1941 * emultempl/armelf_oabi.em: Pass extra parameter.
1942 * ld.texinfo: Document --be8.
1944 2004-03-30 Stan Shebs <shebs@apple.com>
1946 Remove long-obsolete MPW support.
1947 * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
1948 * Makefile.am (mpw): Remove file-presynthesizing actions.
1949 * Makefile.in: Likewise.
1950 * ldfile.c (slash): Remove MPW case.
1951 * ldlex.l [MPW]: Remove unused definition.
1953 2004-03-30 Galit Heller <Galit.Heller@nsc.com>
1955 * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
1956 (eelf32cr16c.c): New target.
1957 * Makefile.in: Regenerate.
1958 * configure.tgt: Handle cr16c-*-elf*.
1959 * emulparams/elf32cr16c.sh: New file.
1960 * scripttempl/elfcr16c.sc: Likewise
1961 * NEWS: Mention support for new target.
1963 2004-03-30 Nick Clifton <nickc@redhat.com>
1965 * po/sv.po: Updated Swedish translation.
1967 2004-03-27 Alan Modra <amodra@bigpond.net.au>
1969 * emultempl/elf32.em: Update new bfd_elf_discard_info name.
1970 * emultempl/hppaelf.em: Likewise.
1971 * emultempl/ppc64elf.em: Likewise.
1972 * emultempl/sh64elf.em: Likewise.
1974 2004-03-25 Alan Modra <amodra@bigpond.net.au>
1976 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
1977 size_dynamic_sections call.
1979 2004-03-23 Alan Modra <amodra@bigpond.net.au>
1982 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
1983 link_info.wrap_char.
1985 2004-03-20 H.J. Lu <hongjiu.lu@intel.com>
1987 * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
1988 or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
1990 2004-03-20 Alexandre Oliva <aoliva@redhat.com>
1992 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
1994 2004-03-19 Alan Modra <amodra@bigpond.net.au>
1996 * config.in: Regenerate.
1997 * po/ld.pot: Regenerate.
1999 2004-03-18 Alan Modra <amodra@bigpond.net.au>
2001 * ld.texinfo: Add --as-needed doco.
2002 * ldmain.c (as_needed): New global var.
2003 * ldmain.h (as_needed): Declare.
2004 * lexsup.c (option_values): Add OPTION_AS_NEEDED and
2005 OPTION_NO_AS_NEEDED.
2006 (ld_options): Likewise.
2007 (parse_args): Handle them.
2008 * ldlang.h (lang_input_statement_type): Add as_needed field.
2009 * ldlang.c (new_afile): Set p->as_needed.
2010 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
2011 (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
2012 (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
2014 * ldlang.c (open_input_bfds): Remove useless cast.
2015 (lang_do_assignments_1): Likewise.
2016 (lang_for_each_input_section): Delete.
2018 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2020 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
2022 2004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
2024 * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
2025 private when building implib.
2027 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
2029 * ldlang.c (lang_add_section): Don't force SEC_LOAD on
2031 (IGNORE_SECTION): Ignore .tbss sections too.
2032 (lang_size_sections_1): .tbss sections do not advance dot.
2034 2004-03-01 Andreas Schwab <schwab@suse.de>
2036 * ld.texinfo (Options): Fix example for --wrap.
2038 2004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
2040 * pe-dll.c (fill_edata): Check that exported_symbol_sections is
2043 2004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
2045 * ldlang.c (lang_check): Use %P, not %E, in error message.
2047 2004-02-23 Nathan Sidwell <nathan@codesourcery.com>
2049 * ldlang.h (struct lang_output_section_state): Change processed
2051 * ldexp.c (check, invalid): Remove.
2052 (fold_name): Move valid_p assignments. Create undefined symbol
2053 when needed. Directly exampine section's processd flag.
2054 * ldlang.c (lang_output_section_statement_lookup): Adjust
2055 processed field init.
2056 (lang_size_sections_1): Allow LOADADDR when determining section's
2057 VMA. Adjust error message. Fold data statement's expr.
2058 (lang_size_sections): Correctly increment lang_statement_iteration.
2060 2004-02-23 Alan Modra <amodra@bigpond.net.au>
2062 * ldexp.c (fold_tree): Follow indirect symbols.
2064 2004-02-20 Nathan Sidwell <nathan@codesourcery.com>
2066 * ldgram.y (exp): Add two operand ALIGN.
2067 * ldexp.c (fold_binary): Add ALIGN_K case.
2068 * ld.texinfo (ALIGN): Document two operand version.
2070 2004-02-19 Nathan Sidwell <nathan@codesourcery.com>
2072 * ldlang.c (map_input_to_output_sections): Initialize sections
2073 mentioned in a data statement expression.
2074 (lang_do_assignments_1): Add data statement's expression's
2077 2004-02-18 Nathan Sidwell <nathan@codesourcery.com>
2079 * ldgram.y (statement_anywhere): Add assert rule.
2080 * ldlang.c (exp_init_os): Add assert case.
2082 2004-02-14 Andrew Cagney <cagney@redhat.com>
2084 * ldmain.c (remove_output): Call bfd_cache_close.
2086 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
2088 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
2089 .MIPS.content* and .MIPS.events* sections.
2091 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
2093 * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
2094 .note.gnu.arm.ident to after allocated sections. Mark its
2097 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
2099 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
2100 * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
2101 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
2102 * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
2103 * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
2105 2004-02-05 Nick Clifton <nickc@redhat.com>
2107 * emultempl/pe.em (_after_open): Fix typo in previous delta.
2109 2004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
2111 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
2113 2004-01-28 Alan Modra <amodra@bigpond.net.au>
2115 * genscripts.sh: Fix typo.
2117 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
2119 2004-01-24 Jakub Jelinek <jakub@redhat.com>
2121 * emulparams/elf64_ia64.sh: Put .rela.opd into
2122 OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
2124 2004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
2126 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
2127 * ld.texinfo (--omagic): Note that writable text section
2128 does not conform to published PE-COFF specs.
2129 (--enable-auto-import): Likewise.
2131 2004-01-15 Alan Modra <amodra@bigpond.net.au>
2133 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
2135 2004-01-13 Nick Clifton <nickc@redhat.com>
2137 * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
2138 which if true will prevent the LMA region being used as a
2139 replacement for a default VMA region.
2140 (lang_leave_output_section_statement): Pass extra parameter.
2141 (lang_leave_overlay): Likewise.
2142 * ld.texinfo (Output Section LMA): Document that the LMA
2143 region can be set to the VMA region if no VMA has been set.
2144 * ldlang.h (struct lang_output_section_phdr_list): Create a
2145 typedef for this type. Minor formatting fixes.
2147 2004-01-13 Nick Clifton <nickc@redhat.com>
2149 * ldlang.c (lang_size_sections_1): If dot is advanced, then
2150 assume that the section should be allocated.
2152 2004-01-13 Alan Modra <amodra@bigpond.net.au>
2154 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
2155 sections. Do ignore SEC_NEVER_LOAD sections.
2156 (lang_size_sections_1): Remove test made redundant with the above.
2158 2004-01-09 Alan Modra <amodra@bigpond.net.au>
2160 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
2161 program_header_size.
2163 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
2165 2003-11-28 Alexandre Oliva <aoliva@redhat.com>
2166 * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
2167 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
2168 * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
2169 (MAXPAGESIZE): Set to 64Kb.
2170 (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
2171 __ROFIXUP_END__. Don't map .rofixup.got any more.
2172 * emulparams/elf32frv.sh (NOP): Set.
2173 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
2174 * configure.tgt: Add frv-*-*linux*.
2175 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
2176 * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
2177 (eelf32frvfd.c): New.
2178 * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
2179 * emulparams/elf32frv.sh: Reverted previous two patches.
2180 * emulparams/elf32frvfd.sh: New.
2181 * Makefile.in: Rebuilt.
2182 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
2183 * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
2184 .rofixup.got to .rofixup.
2185 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
2186 * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
2187 (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
2189 2004-01-05 Jakub Jelinek <jakub@redhat.com>
2191 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
2192 * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
2194 2004-01-03 Alan Modra <amodra@bigpond.net.au>
2196 * ldexp.c (align_n): Make static.
2197 * ldexp.h (align_n): Delete declaration.
2198 * ldlang.h (lang_enter_output_section_statement): Remove
2200 * ldlang.c (lang_enter_output_section_statement): Likewise.
2201 (TO_ADDR, TO_SIZE): Define.
2202 (opb_shift): New var.
2203 (init_opb): New function.
2204 (print_input_section): Call init_opb and use TO_ADDR.
2205 (print_data_statement, print_reloc_statement): Likewise.
2206 (print_padding_statement): Likewise.
2207 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
2208 (lang_check_section_addresses): Likewise.
2209 (lang_size_sections_1): Likewise.
2210 (lang_do_assignments_1): Likewise.
2211 (lang_set_startof): Likewise.
2212 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
2213 (lang_process): Call init_opb.
2214 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
2215 (lang_enter_overlay_section): Adjust
2216 lang_enter_output_section_statement call.
2217 * ldgram.y: Likewise.
2218 * mri.c (mri_draw_tree): Likewise.
2219 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
2220 * emultempl/mmo.em (mmo_place_orphan): Likewise.
2221 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
2223 * ldfile.c (ldfile_set_output_arch): Add defarch param.
2224 * ldfile.h (ldfile_set_output_arch): Ditto.
2225 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
2226 ldfile_set_output_arch.
2227 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
2228 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
2229 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
2230 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2231 * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
2232 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
2233 * ldgram.y: Adjust ldfile_set_output_arch call.
2234 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2235 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
2236 * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
2237 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
2238 * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
2239 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2240 * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2242 2004-01-02 Bernardo Innocenti <bernie@develer.com>
2244 * configure.tgt: Add m68k-uClinux target.
2246 For older changes see ChangeLog-0203
2252 version-control: never