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