(m32r_elf_check_relocs): Fix pc count for R_M32R_REL32.
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
71f51525
BE
12005-07-21 Ben Elliston <bje@gnu.org>
2
3 * ldgram.y (ldgram_want_filename): Remove unused static.
4
fe773494
DD
52005-07-20 DJ Delorie <dj@redhat.com>
6
7 * emulparams/elf32m32c.sh (TEMPLATE_NAME): New.
8 (EXTRA_EM_FILE): New.
9
0e1b44ba
L
102005-07-19 H.J. Lu <hongjiu.lu@intel.com>
11
12 * ldmain.c (main): Reindent.
13
a3540342
PB
142005-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
85da3a56
NC
192005-07-18 Nick Clifton <nickc@redhat.com>
20
21 * configure.tgt: Restore alpha ordering to list of arches.
22
42fa7765
AM
232005-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
0f82ff91
AM
332005-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
5e797c2c
AM
392005-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
49f58d10
JB
632005-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
a3c2b96a
AM
722005-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
438361cd
NC
832005-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
2c7fd14a
CF
892005-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
32124d5b
AM
952005-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
4cd5aacc 1042005-07-05 Paul Brook <paul@codesourcery.com>
9d8504b1
PB
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
35eb9fb6
NC
1172005-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
5b5a4ec7
NC
1222005-07-04 Mike Frysinger <vapier@gentoo.org>
123
124 * emulparams/hppalinux.sh (GENERATE_PIE_SCRIPT): Fix typo in
125 name.
126
80447b21
NC
1272005-07-04 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
128
129 * emulparams/m32relf_linux.sh (GENERATE_PIE_SCRIPT): Set to yes.
130
711c0baa
AM
1312005-07-04 Aurelien Jarno <aurel32@debian.org>
132
133 * emultempl/elf32.em: Enable use of ld.so.conf for *-*-k*bsd-*.
134
c8c9c297
AM
1352005-07-01 Alan Modra <amodra@bigpond.net.au>
136
137 * scripttempl/elf.sc (.gcc_except_table): Don't KEEP.
138
b753922c
BE
1392005-06-30 Ben Elliston <bje@gnu.org>
140
141 * Makefile.am (check-DEJAGNU): Don't search for expect.
142 * Makefile.in: Regenerate.
143
c3298874
BE
1442005-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
a82644e2
NC
1502005-06-16 Alexander Klimov <alserkli@inbox.ru>
151
152 * emultempl/armelf.em: Add quotes to avoid a null test
153 expression.
154
e185dd51
DJ
1552005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
156
157 * ld.texinfo (Command Line Options): Add @item for --hash-size.
158
9d12f64c
AM
1592005-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
502bdb00
JW
1642005-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
dea2f0a8
AM
1732005-06-09 Alan Modra <amodra@bigpond.net.au>
174
175 * ldexp.c (fold_unary <ALIGN_K>): Revert last change.
176
e9ee469a
AM
1772005-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
b2be2013
AH
2642005-06-08 Aldy Hernandez <aldyh@redhat.com>
265
266 * emulparams/elf32ms1.sh: New.
267
a34e3ecb
EC
2682005-06-07 Eric Christopher <echristo@redhat.com>
269
270 * Makefile.am (eelf32ms1.c): Use tab.
271 * Makefile.in: Regenerate.
272
9e1f170f
AH
2732005-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
b4f4e59f
AM
2842005-06-06 Alan Modra <amodra@bigpond.net.au>
285
286 * emultempl/ppc64elf.em (ppc_before_allocation): Always run
287 ppc64_elf_edit_opd.
288
18b79829
L
2892005-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
079f985c
L
2942005-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
e1fffbe6
AM
3032005-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
408082ec
AM
3132005-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
d0d3b2e8
MR
3282005-06-01 Maciej W. Rozycki <macro@linux-mips.org>
329
330 * emulparams/elf32btsmip.sh: Unset DATA_ADDR.
331
a359509e
ZW
3322005-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
8d6d53d4
RH
3412005-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
f93e81d6
AS
3592005-05-27 Andreas Schwab <schwab@suse.de>
360
361 * configure.host (HOSTING_LIBS): Add libunwind.a if it exists.
362
61f8ebf2
AM
3632005-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
8b803601
L
3682005-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
e366efef
L
3742005-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
abf32a89
L
3802005-05-21 H.J. Lu <hongjiu.lu@intel.com>
381
382 * Makefile.am (ld.1): Depend on "info".
383 * Makefile.in: Regenerated.
384
e3e71e27
ZW
3852005-05-19 Zack Weinberg <zack@codesourcery.com>
386
387 * Makefile.am: Have 'all' depend on 'info' and 'ld.1'.
388 * Makefile.in: Regenerate.
389
c19d1205
ZW
3902005-05-17 Zack Weinberg <zack@codesourcery.com>
391
392 * ld-arm/mixed-app.d: Adjust expected disassembly a little.
393
970c3dbc
DJ
3942005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
395
396 * Makefile.am (ldver.texi): Don't use $<.
397 * Makefile.in: Regenerated.
398
6e1b59d2
DJ
3992005-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
75ff4589
L
4052005-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
25ba8e7b
NC
4432005-05-17 Lennert Buytenhek <buytenh@wantstofly.org>
444 Peter S. Mazinger" <ps.m@gmx.net>
445
c19d1205
ZW
446 * emulparams/armelf_linux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
447 * emulparams/hppalinux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
25ba8e7b 448
10dbd1f3
NC
4492005-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
3b83e13a
NC
4542005-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
42ecbf5e
DJ
4642005-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
be2c2e39
BW
4792005-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
0cf7d72c
AM
4842005-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
4ca02259
AM
5042005-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
baf6e97f
L
5112005-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
a6e1b90f
L
5162005-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
c18bae34
L
5212005-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
4ef24a2e
L
5262005-05-06 H.J. Lu <hongjiu.lu@intel.com>
527
3f693ed5 528 PR 878
4ef24a2e
L
529 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
530 Just check link_info.executable.
531
e06fb9c3
NC
5322005-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
01d9ad14
L
5542005-05-05 H.J. Lu <hongjiu.lu@intel.com>
555
556 * scripttempl/elf.sc: Document the usage of __bss_start.
557
eac338cf
PB
5582005-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
f652615e
L
5672005-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
8423293d
AM
5722005-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
5daa8fe7
L
5982005-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
009b6a7a
DJ
6082005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
609
610 * configure.tgt: Add h8300*-*-rtemscoff.
611 Switch h8300*-*-rtems* to elf.
612
279e75dc
BE
6132005-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
4a2afbc1
L
6272005-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
fd9719b1
MK
6332005-04-24 Mark Kettenis <kettenis@gnu.org>
634
635 * configure.host: Add *-*-openbsd support.
636
33bfe774
JB
6372005-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
9e9b66a9
AM
6472005-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
ceae3e33
AM
6542005-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
7cedef86
AM
6612005-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
187ffe95
NC
6672005-04-07 Nick Clifton <nickc@redhat.com>
668
669 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h so that
0cf7d72c 670 ldfile.h can use the lang_input_statement type.
187ffe95 671
72223188
JJ
6722005-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
6792005-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
34875e64
NC
7042005-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
deb04cdb
AM
7152005-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
8b4e5e28
AM
7292005-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
510a939b
NC
7352005-03-24 Nick Clifton <nickc@redhat.com>
736
737 * po/fr.po: Updated French translation.
738
ed84e695
NC
7392005-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.
deb04cdb 746
81e1b023
L
7472005-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
11d2f718
AM
7592005-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
644285ef
AM
7642005-03-22 Alan Modra <amodra@bigpond.net.au>
765
766 * scripttempl/elf.sc (SBSS): Don't provide sbss start and end syms.
767
c9a2f333
AM
7682005-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
b1ab9777
AM
7742005-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
2a2a7c94
JB
7822005-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
98720c64
L
7892005-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
41c7ba7c
AM
7952005-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
0fb53118
AM
8002005-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
de7f8cc8
BW
8052005-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
57316bff
L
8112005-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
1ad12f97
NC
8272005-03-16 Nick Clifton <nickc@redhat.com>
828 Ben Elliston <bje@au.ibm.com>
829
569acd2c 830 * configure.in (werror): New switch: Add -Werror to the
1ad12f97 831 compiler command line. Enabled by default. Disable via
569acd2c 832 --disable-werror.
1ad12f97
NC
833 * configure: Regenerate.
834
cb2d1ef2
AM
8352005-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
957d91c1
NC
8402005-03-15 Nick Clifton <nickc@redhat.com>
841
842 * NEWS: Add cutoff for changes in 2.16 release.
843
34723071
NC
8442005-03-15 Mikkel Krautz <krautz@gmail.com>
845
846 * configure.tgt (x86_64-elf): Add target.
847
729ae8d2
AM
8482005-03-15 Alan Modra <amodra@bigpond.net.au>
849
850 * po/es.po: Commit new Spanish translation.
851
8b3d8fa8
AM
8522005-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
882cb63e
AM
8572005-03-14 Alan Modra <amodra@bigpond.net.au>
858
859 * po/tr.po: Commit new Turkish translation.
860
61c84b48
DJ
8612005-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
41c9e29d
NC
8672005-03-07 Nick Clifton <nickc@redhat.com>
868
869 * po/fr.po: Updated translation.
870
06647dfd
AM
8712005-03-05 Alan Modra <amodra@bigpond.net.au>
872
873 * po/ld.pot: Regenerate.
874
bb14f524
JB
8752005-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
0ef622cb
BE
8802005-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
f3f4bcca
NC
8872005-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
8922005-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
47639182
AM
9002005-02-23 Alan Modra <amodra@bigpond.net.au>
901
902 * pe-dll.c: Warning fixes.
903 * emultempl/sunos.em: Likewise.
904
ace66bb2
DJ
9052005-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
5718918d
AM
9102005-02-22 Alan Modra <amodra@bigpond.net.au>
911
912 * ldexp.c: Warning fixes.
913 * ldwrite.c: Likewise.
914 * emultempl/elf32.em: Likewise.
915
ebe372c1
L
9162005-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
0ca2f5d5
AM
9232005-02-21 Alan Modra <amodra@bigpond.net.au>
924
925 * config.in: Regenerate.
926 * configure: Regenerate.
927
fbbb9ac5
ZW
9282005-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
c68dac40
PB
9372005-02-17 Paul Brook <paul@codesourcery.com>
938
939 * scripttempl/armbpabi.sc: Add dummy name to version block.
940
20c2cbe3
AM
9412005-02-17 Alan Modra <amodra@bigpond.net.au>
942
943 * ldexp.c (new_abs): Init new.str.
944
0b48acfe
MM
9452005-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.
fbbb9ac5 953
ff925e69
KK
9542005-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
92b7a70f
AM
9592005-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
297ba367
NC
9662005-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.
fbbb9ac5 971
9eabd475
ZW
9722005-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
d457dcf6
JJ
9772005-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
4e5db43b
MM
9842005-02-08 Mark Mitchell <mark@codesourcery.com>
985
986 * scripttempl/armbpabi.sc (VERSION): Make special section symbols
9eabd475 987 local.
4e5db43b
MM
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
4297f9f1
BE
9932005-02-10 Ben Elliston <bje@au.ibm.com>
994
995 * emultempl/beos.em: Remove #if 0 and #if 1 blocks.
996
1c7c5e5b
RS
9972005-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
300475fe
HPN
10032005-02-08 Hans-Peter Nilsson <hp@axis.com>
1004
1005 * ldmain.c (warning_callback, warning_find_reloc): Prepend
1006 "warning: " to warning messages.
1007
4ea42fb7
AM
10082005-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
161f49a3
DJ
10132005-02-02 Daniel Jacobowitz <dan@codesourcery.com>
1014
1015 * emulparams/elf32bmip.sh (TEXT_DYNAMIC): Always set.
1016
73ae6183
NC
10172005-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
77cfaee6
AM
10232005-02-01 Alan Modra <amodra@bigpond.net.au>
1024
1025 * ld.texinfo: Clarify --as-needed operation.
1026
c46f8c51
AC
10272005-01-31 Andrew Cagney <cagney@gnu.org>
1028
1029 * configure: Regenerate to track ../gettext.m4.
1030
d342277e
NC
10312005-01-31 Nick Clifton <nickc@redhat.com>
1032
1033 * ldver.c (ldversion): Bump reported copyright date to 2005.
1034
d6486796
NC
10352005-01-31 Nick Clifton <nickc@redhat.com>
1036
1037 * configure.tgt: Remove obsolete targets m68k-lynxos and
1038 sparc-lynxos.
1039
319850b4
JB
10402005-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.
9eabd475 1048 (PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX.
319850b4
JB
1049 * NEWS: Mention --fix-v4bx.
1050 * ld.texinfo: Document --fix-v4bx.
1051
dc4c9c19
MM
10522005-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
9eabd475
ZW
1059 segment.
1060
7e9f0867
AM
10612005-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
7e69709c
AM
10672005-01-23 Alan Modra <amodra@bigpond.net.au>
1068
1069 * ld.texinfo (Output Section Keywords <CONSTRUCTORS>): Correct
1070 __DTOR_LIST__ description.
1071
b5666f2f
AM
10722005-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
4e25343c
RS
10782005-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
b717d30e
JJ
10832005-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
7a64f7b8
BE
10912005-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
a154a8ad
MM
11152005-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
9c183183
AM
11232005-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
e2243057
RS
11292005-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
1449d79b
AM
11422005-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
a880c748
DS
11482005-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
07baa8ee
MK
11542005-01-12 Mark Kettenis <kettenis@gnu.org>
1155
1156 * configure.in: Be sure to invoke config.sub using the shell.
1157 * configure: Regenerate.
1158
e9b181b8
AM
11592005-01-11 Alan Modra <amodra@bigpond.net.au>
1160
1161 * configure.host: Correct sed patterns for last change.
1162
59ef2528
NC
11632005-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
71a2d53a
NC
11722005-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
d6d0b336
EB
11792005-01-06 Eric Botcazou <ebotcazou@libertysurf.fr>
1180
1181 * configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*.
1182 (sparc64-sun-solaris2*): New host.
1183
4e7fd91e
PB
11842005-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
4c52953f
AM
11912005-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
98d87ee7
NC
11992005-01-05 Nick Clifton <nickc@redhat.com>
1200
1201 PR binutils/614
1202 * ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
4c52953f 1203 Standard's specification for parsable error messages.
98d87ee7 1204
5f81b918
PB
12052005-01-04 Paul Brook <paul@codesourcery.com>
1206
1207 * Makefile.am: Correct dependency for earmsymbian.c.
1208 * Makefile.in: Regenerate.
1209
2af59bab
DS
12102004-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
c38f024c
NC
12152004-12-23 Nick Clifton <nickc@redhat.com>
1216
1217 PR 600
1218 * emulparams/shelf.sh (.stack): Increase stack start address to
1219 0x300000.
1220
550bdea6
NC
12212004-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
e3070fef
JJ
12262004-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
2fbd2a87
NC
12342004-12-14 P.J. Darcy <darcypj@us.ibm.com>
1235
1236 * configure.tgt: Add s390x-ibm-tpf support.
1237
f2763b01
NC
12382004-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
cb9faf63
BE
12432004-12-07 Ben Elliston <bje@gnu.org>
1244
1245 * ldemul.h: Forward declare struct option.
1246
02f80eef
DS
12472004-12-01 Danny Smith <dannysmith@users.sourceforge.net>
1248
1249 * scripttempl/pe.sc (.data): Add .jcr subsection.
1250
dea514f5
PB
12512004-11-30 Paul Brook <paul@codesourcery.com>
1252
1253 * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
1254
32118081
NC
12552004-11-30 Tero Niemela <tero_niemela@yahoo.com>
1256
1257 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
1258 * Makefile.in: Regenerate.
1259
33f362e1
NC
12602004-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
3eda52aa
AM
12672004-11-24 Alan Modra <amodra@bigpond.net.au>
1268
1269 * ldexp.c (fold_name): Correct PR 338 fix.
1270
6b3221b4
MM
12712004-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
9cd6d51a
NC
12792004-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
3ec57632
NC
12862004-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.
4c52953f 1290 * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
3ec57632
NC
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
b7693d02
DJ
12952004-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
fc0e6df6
PB
13002004-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
7499d566
NC
13082004-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
7f266840
DJ
13182004-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
a0055007
HPN
13262004-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
c5614fa4
AM
13342004-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
7a5df8d0
NC
13452004-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.
c5614fa4 1350
7a5df8d0
NC
1351 * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
1352 eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
1353 * Makefile.in: Regenerate.
1354
6f372e19
MM
13552004-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
ba916c8a
MM
13602004-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
3e3b46e5
PB
13852004-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
7b0eaa22
DS
13932004-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
dfeffb9f
L
13982004-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
dc4f76f8
L
14052004-10-21 H.J. Lu <hongjiu.lu@intel.com>
1406
1407 * genscripts.sh (libpath.exp): Really generate for first
1408 emulation only.
1409
2a08daf3
DS
14102004-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
532345f2
L
14152004-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
b58f81ae
DJ
14212004-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
95c148b4
AM
14332004-10-15 Alan Modra <amodra@bigpond.net.au>
1434
c468c8bc
AM
1435 * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
1436 failing link script assert.
1437
95c148b4
AM
1438 * ldctor.c (ldctor_add_set_entry): Fix comment typo.
1439
951e9133
L
14402004-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
afd7a018
AM
14512004-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
c0042f5d
MM
14962004-10-13 Mark Mitchell <mark@codesourcery.com>
1497
1498 * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
1499 loadable segment.
1500
1af699f4
AM
15012004-10-13 Alan Modra <amodra@bigpond.net.au>
1502
1503 PR 44
09c112da
AM
1504 * ldcref.c (check_section_sym_xref): Delete.
1505 (check_local_sym_xref): New function.
1506 (check_nocrossrefs): Adjust call.
1af699f4
AM
1507 * emultempl/pe.em (struct orphan_save): Add os_tail.
1508 (place_orphan): Backport assorted fixes from elf32.em.
1509
7fa3d080
BW
15102004-10-12 Bob Wilson <bob.wilson@acm.org>
1511
1512 * emultempl/xtensaelf.em: Use ISO C90 formatting.
1513
d3989512
JJ
15142004-10-11 Jakub Jelinek <jakub@redhat.com>
1515
563f4125
JJ
1516 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
1517 getline for portability.
1518
d3989512
JJ
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
6c0c5b1e
AM
15242004-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
d2b2c203
DJ
15302004-10-08 Daniel Jacobowitz <dan@debian.org>
1531
1532 * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
1533
43cd72b9
BW
15342004-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
8fdd7217 15552004-10-07 Jeff Baker <jbaker@qnx.com>
6c0c5b1e 1556
8fdd7217
NC
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
339207f8 15632004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
6c0c5b1e 1564
339207f8 1565 * emultempl/crxelf.em (disable_relaxation): Add.
6c0c5b1e 1566 (crxelf_before_allocation): Enable --relax option by default.
339207f8
TL
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
bcaa7b3e
L
15712004-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
a4f5ad88
JJ
16102004-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
40a18ebd
NC
16282004-10-01 Paul Brook <paul@codesourcery.com>
1629
1630 * emulparams/armelf.sh: Add unwinding table sections.
1631
db8acf26
NC
16322004-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
eeac373a
PB
16392004-09-30 Paul Brook <paul@codesourcery.com>
1640
1641 * ld.texinfo: Document --target2=abs.
1642 * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
1643
1ee7cf4c
NC
16442004-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
03098a9a
CF
16532004-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
f2d3750d
CF
16622004-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
a23d8409
AM
16682004-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
7b89fa29
PB
16732004-09-24 Paul Brook <paul@codeosurcery.com>
1674
1675 * scripttempl/elf.sc: Keep .preinit_array, .init_array and
1676 .fini_array sections.
1677
e2a68bcc
AS
16782004-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
3674e28a
PB
16832004-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
f6e332e6
AM
17002004-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
9c933e04
AM
17062004-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
1fa32646
TL
17152004-09-16 Tomer Levi <Tomer.Levi@nsc.com>
1716
9c933e04
AM
1717 * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
1718 (.fini): Likewise.
1719 (.jcr): Likewise.
1fa32646 1720
b6ee372a
AM
17212004-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
9c504268
PB
17262004-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
d15b04bd
L
17312004-09-07 H.J. Lu <hongjiu.lu@intel.com>
1732
1733 * configure: Regenerated with autconfig 2.13.
1734
875c4330
AS
17352004-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
229fcec5
MM
17402004-09-06 Mark Mitchell <mark@codesourcery.com>
1741
1742 * emulparams/armsymbian.sh: Use armbpabi script.
1743 * scripttempl/armbpabi.sc: New script.
1744
e5a52504
MM
17452004-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
42851540
NC
17552004-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
c034e3e0
NC
17632004-08-27 Nick Clifton <nickc@redhat.com>
1764
1765 * emultempl/pe.em (after_open): Do not assume that either bfd is
9c933e04 1766 an archive.
c034e3e0 1767
688c58f3
AM
17682004-08-26 Alan Modra <amodra@bigpond.net.au>
1769
1770 * ldlang.c (lang_init): Don't compare with TRUE.
1771
b18c562e
NC
17722004-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
61f5d054
L
17772004-08-24 H.J. Lu <hongjiu.lu@intel.com>
1778
1779 * ldlang.c (wildcardp): Defined as a macro with strpbrk.
1780
e77d3d77
MM
17812004-08-19 Mark Mitchell <mark@codesourcery.com>
1782
1783 * configure.tgt (arm*-*-symbianelf*): New target.
1784 (arm*-*-eabi*): Likewise.
1785
3f764659
JJ
17862004-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
a010d60f
AM
17942004-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
c4e33880
AM
18002004-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
d003868e
AM
18052004-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
99877b66
AM
18142004-08-10 Alan Modra <amodra@bigpond.net.au>
1815
1816 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
1817 ppc64_elf_restore_symbols.
1818
40e45c8b
AM
18192004-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
ccfa59ea
AM
18242004-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
93fd0973
SC
18292004-08-02 Stephane Carrez <stcarrez@nerim.fr>
1830
1831 * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
1832
f1b123db
SC
18332004-08-01 Stephane Carrez <stcarrez@nerim.fr>
1834
1835 * scripttempl/elfm68hc12.sc: Align text, rodata and data section
1836 on power of 2.
1837
e7fbc2bf
JT
18382004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
1839
1840 * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
1841
c05e9f04
NC
18422004-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
9f61903d
NC
18512004-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
082b7297
L
18562004-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
76d7af2d
NC
18662004-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
14b3c463
L
18712004-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
e56f61be
L
18762004-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
c99b8138
NC
18992004-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
13ed4151
NC
19042004-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
1a320fbb
NC
19092004-07-09 Nick Clifton <nickc@redhat.com>
1910
1911 * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
1912
1fe1f39c
NC
19132004-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
85fbca6a
NC
19242004-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
b71a5181
DA
19342004-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
c87db184
CF
19412004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1942
1943 * ld.texinfo (WIN32): Document PE weak symbols.
1944
f6a8ae81
KK
19452004-07-02 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1946
1947 * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
1948
b602c853
L
19492004-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
1a23a9e6
AM
19542004-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
eea6121a
AM
19592004-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
552f8272
CF
19852004-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
aee6f5b4
AO
19932004-06-21 Alexandre Oliva <aoliva@redhat.com>
1994
1995 * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
1996
eea6121a 19972004-06-18 Adam Nemet <anemet@lnxw.com>
f234d5fe 1998
eea6121a
AM
1999 * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
2000 * configure: Regenerate.
f234d5fe 2001
dfff4fbe
JJ
20022004-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
a9e0c0c6
AM
20082004-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
7115639b
AM
20142004-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
9ca57817
AM
20192004-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
164e712d
AM
20242004-05-28 Alan Modra <amodra@bigpond.net.au>
2025
6feb9908
AM
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
164e712d
AM
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
b3096250
L
20422004-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
e49f5022
AM
20482004-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
57ceae94
AM
20562004-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
a85785bc
AS
20692004-05-23 Andreas Schwab <schwab@suse.de>
2070
2071 * ld.texinfo (Options): Fix typo in last change.
2072
2d643429
NC
20732004-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
35835446
JR
20882004-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
0841712e
JJ
21112004-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
eea6121a 21492004-05-19 Adam Nemet <anemet@lnxw.com>
f2c50328
NC
2150
2151 * scripttempl/i386lynx.sc: Remove file.
2152
2a16d82a
BW
21532004-05-17 Bob Wilson <bob.wilson@acm.org>
2154
2155 * ld.texinfo (Output Section Address): Correct subsection name.
2156
eea6121a 21572004-05-17 Adam Nemet <anemet@lnxw.com>
b2d65c0b
NC
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
4b363073
NC
21682004-05-13 Joel Sherrill <joel@oarcorp.com>
2169
2170 * configure.tgt (or32-*-rtems*): Switch to elf and
2171 support versioned targets.
2172
9598fbe5
NC
21732004-05-13 Nick Clifton <nickc@redhat.com>
2174
2175 * po/fr.po: Updated French translation.
2176
8c37241b
JJ
21772004-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
e21059f2
MM
22062004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
2207
2208 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
2209
5f9b8920
JR
22102004-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
26d2d8a2 22152004-05-07 Brian Ford <ford@vss.fsi.com>
eea6121a 2216 DJ Delorie <dj@redhat.com>
26d2d8a2
BF
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
1b169501
BF
22272004-05-07 Brian Ford <ford@vss.fsi.com>
2228
2229 * NEWS: Mention DWARF 2 support for i386pe.
2230
41cf0c62
AO
22312004-05-05 Alexandre Oliva <aoliva@redhat.com>
2232
2233 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
2234 elf32-frvfdpic.
2235
d0d6a25b
AM
22362004-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
755306be
EB
22442004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
2245
eea6121a 2246 * ld.texinfo (--gc-sections): Remove restriction for
755306be
EB
2247 dynamic linking.
2248
8a7140c3
NC
22492004-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
2f9636ba
AM
22542004-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
23867d67
CD
22592004-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
1502569c
NC
22832004-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
c894ddfb
HPN
22892004-04-21 Hans-Peter Nilsson <hp@axis.com>
2290
2291 * NEWS: Mention change in DEFINED semantics.
2292
a85bf78e
EB
22932004-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
58434bc1
BE
22992004-04-21 Ben Elliston <bje@au.ibm.com>
2300
2301 * ld.texinfo (Simple Example): Add missing punctuation.
2302
7a7f4e42
CD
23032004-04-20 Chris Demetriou <cgd@broadcom.com>
2304
2305 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
2306
3737f867
JJ
23072004-04-19 Jakub Jelinek <jakub@redhat.com>
2308
2309 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
2310 specially.
2311
3c17e4f7
DS
23122004-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
279500de
TS
23172004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2318
2319 * configure.host: Remove mips*-dec-bsd* target.
2320 * configure.tgt: Likewise.
2321
52f89c0a
RS
23222004-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
e489d0ae
PB
23322004-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
7cc8057a
SS
23422004-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
0949843d
NC
23512004-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
0a159ef8
NC
23612004-03-30 Nick Clifton <nickc@redhat.com>
2362
2363 * po/sv.po: Updated Swedish translation.
2364
7a945db6
AM
23652004-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
5a580b3a
AM
23722004-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
b9cf773d
AM
23772004-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
59c2e50f
L
23832004-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
44349745
AO
23882004-03-20 Alexandre Oliva <aoliva@redhat.com>
2389
2390 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
2391
81359a70
AM
23922004-03-19 Alan Modra <amodra@bigpond.net.au>
2393
2394 * config.in: Regenerate.
2395 * po/ld.pot: Regenerate.
2396
4a43e768
AM
23972004-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
9183ed4b
AM
24162004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2417
2418 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
2419
ee31fbd0
NC
24202004-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
e5caec89
NS
24252004-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
cc2f008e
AS
24322004-03-01 Andreas Schwab <schwab@suse.de>
2433
2434 * ld.texinfo (Options): Fix example for --wrap.
2435
f5a95868
DS
24362004-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
177b729b
ILT
24412004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
2442
2443 * ldlang.c (lang_check): Use %P, not %E, in error message.
2444
1b493742
NS
24452004-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
24582004-02-23 Alan Modra <amodra@bigpond.net.au>
2459
2460 * ldexp.c (fold_tree): Follow indirect symbols.
b9cf773d 2461
876f4090
NS
24622004-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
384d938f
NS
24682004-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
b6ca8815
NS
24752004-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
c92c35e7
AC
24802004-02-14 Andrew Cagney <cagney@redhat.com>
2481
2482 * ldmain.c (remove_output): Call bfd_cache_close.
2483
9bf78c99
RS
24842004-02-14 Richard Sandiford <rsandifo@redhat.com>
2485
2486 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
2487 .MIPS.content* and .MIPS.events* sections.
2488
f3806916
DJ
24892004-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
4c8e70d7
DJ
24952004-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
ff71f4f7
NC
25032004-02-05 Nick Clifton <nickc@redhat.com>
2504
2505 * emultempl/pe.em (_after_open): Fix typo in previous delta.
2506
07a68a80
NC
25072004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
2508
2509 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
2510
1dd3bf68
AM
25112004-01-28 Alan Modra <amodra@bigpond.net.au>
2512
586196d5
AM
2513 * genscripts.sh: Fix typo.
2514
1dd3bf68
AM
2515 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
2516
13d9421f
JJ
25172004-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
4d8907ac
DS
25222004-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
e5c60db5
AM
25292004-01-15 Alan Modra <amodra@bigpond.net.au>
2530
2531 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
2532
6bdafbeb
NC
25332004-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.
586196d5
AM
2538 (lang_leave_output_section_statement): Pass extra parameter.
2539 (lang_leave_overlay): Likewise.
2540 * ld.texinfo (Output Section LMA): Document that the LMA
6bdafbeb
NC
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.
586196d5 2544
9dfc8ab2
NC
25452004-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
8325c4dd
AM
25502004-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
83490352
AM
25562004-01-09 Alan Modra <amodra@bigpond.net.au>
2557
2558 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
2559 program_header_size.
2560
005e1118
AO
25612004-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
060feee5
JJ
25872004-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
5e2f1575
AM
25922004-01-03 Alan Modra <amodra@bigpond.net.au>
2593
e5caa5e0
AM
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.
c2df3ea5 2600 (opb_shift): New var.
e5caa5e0
AM
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.
c2df3ea5 2605 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
e5caa5e0
AM
2606 (lang_check_section_addresses): Likewise.
2607 (lang_size_sections_1): Likewise.
2608 (lang_do_assignments_1): Likewise.
2609 (lang_set_startof): Likewise.
c2df3ea5 2610 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
e5caa5e0 2611 (lang_process): Call init_opb.
c2df3ea5 2612 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
e5caa5e0
AM
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
5e2f1575
AM
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
b50c15dc
NC
26402004-01-02 Bernardo Innocenti <bernie@develer.com>
2641
2642 * configure.tgt: Add m68k-uClinux target.
6edf0760 2643
c9e214e5 2644For older changes see ChangeLog-0203
252b5132
RH
2645\f
2646Local Variables:
2647mode: change-log
2648left-margin: 8
2649fill-column: 74
2650version-control: never
2651End:
This page took 0.450477 seconds and 4 git commands to generate.