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