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