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