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