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