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