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