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