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