1 2005-09-30 H.J. Lu <hongjiu.lu@intel.com>
3 * Makefile.am: Run "make dep-am".
4 * Makefile.in: Regenerated.
5 * aclocal.m4: Likewise.
7 2005-09-30 H.J. Lu <hongjiu.lu@intel.com>
9 * ldlang.c (output_statement_hash_entry): New type.
10 (output_statement_table): New variable for hash table.
11 (output_statement_newfunc): New function.
12 (output_statement_table_init): Likewise.
13 (output_statement_table_free): Likewise.
14 (lang_init): Call output_statement_table_init.
15 (lang_finish): Renamed to ...
17 (lang_process): Updated.
18 (lang_finish): New function.
19 (lang_output_section_find_1): Use hash table.
20 (lang_output_section_statement_lookup_1): Likewise.
22 * ldlang.h (lang_finish): New.
24 * ldmain.c (main): Call lang_finish.
26 2005-09-30 Mark Mitchell <mark@codesourcery.com>
28 * ldmain.c (main): Use expandargv.
30 2005-09-30 Catherine Moore <clm@cm00re.com>
32 * Makefile.am: Bfin support.
33 * Makefile.in: Regenerated.
34 * aclocal.m4: Regenerated.
35 * configure.tgt: Bfin support.
36 * emulparams/bfin.sh: New file.
37 * emultempl/bfin.em: New file.
39 2005-09-30 Matthias Kurz <mk@baerlap.north.de>
41 * ld.h: Prevent the inclusion of <libintl.h> from the Solaris
42 version of <locale.h> when ENABLE_NLS is not defined.
44 2005-09-27 H.J. Lu <hongjiu.lu@intel.com>
46 * ld.texinfo (ALIGN): Document it as forcing output section
49 * ldgram.y (ALIGN): Support it for forcing output section
52 2005-09-20 Alan Modra <amodra@bigpond.net.au>
54 * ldlang.h (lang_output_section_statement_struct): Change type of
55 "processed" to bfd_boolean.
56 * ldexp.c (fold_name): Update references to os->processed.
57 * ldlang.c (lang_output_section_statement_lookup_1): Likewise.
58 (lang_size_sections_1): Likewise.
59 (lang_reset_memory_regions): Likewise.
62 * ldlang.c (lang_size_sections_1): Process addr_tree earlier,
63 so that unused output section statements affect dot.
65 2005-09-08 Jakub Jelinek <jakub@redhat.com>
67 * ld.texinfo: Document -z {no,}execstack, -z {no,}relro
68 and --eh-frame-hdr options.
70 2005-09-07 Alan Modra <amodra@bigpond.net.au>
72 * ldexp.c (fold_name <SIZEOF>): Return 0 for non-existent section.
73 (exp_fold_tree_1): Print assert message only in final stage of
74 linking. Trigger assertion failure if expression cannot be
77 2005-09-06 H.J. Lu <hongjiu.lu@intel.com>
80 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Check
81 --just-symbols on DSO.
83 2005-08-18 Alan Modra <amodra@bigpond.net.au>
85 * scripttempl/elf.sc: Remove commented out defines.
87 2005-08-18 Alan Modra <amodra@bigpond.net.au>
89 * emulparams/a29k.sh: Delete.
90 * emulparams/ebmon29k.sh: Delete.
91 * emulparams/sa29200.sh: Delete.
92 * Makefile.am: Remove a29k support.
93 * configure.tgt: Likewise.
94 * ld.texinfo: Likewise.
95 * Makefile.in: Regenerate.
97 2005-08-17 Jakub Jelinek <jakub@redhat.com>
99 * ldgram.y (vers_defns): Don't lose pattern list before
100 extern NAME {}. Handle global, local and extern symbol names.
102 2005-08-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
104 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
105 Don't increment rel_count of .cranges here. Set rawsize of .cranges.
107 2005-08-10 Nick Clifton <nickc@redhat.com>
109 * pe-dll.c (pe_exe_fill_sections): Call lang_reset_memory_regions
110 before lang_size_sections.
112 2005-08-09 Alan Modra <amodra@bigpond.net.au>
114 * emulparams/hppa64linux.sh (LARGE_SECTIONS): Remove .tbss.
116 2005-08-08 Eric Doenges <Eric.Doenges@betty-tv.com>
118 * Makefile.am (ALL_EMULATIONS): Add msp430x21xx variants.
119 Add rules to build these emulations.
120 * Makefile.in: Regenerate.
121 * configure.tgt (msp430): Add the new variants to the
122 targ_extra_emuls list.
123 * emulparams/msp430all.sh: Add entries for the msp430x21xx
126 2005-08-05 H.J. Lu <hongjiu.lu@intel.com>
128 * ld.texinfo: Document PROVIDE_HIDDEN.
130 * ldexp.c (exp_fold_tree_1): Hide a provided symbol if asked.
131 (exp_provide): Add and set hidden.
133 * ldexp.h (etree_type): Add hidden to assign.
135 * ldgram.y (PROVIDE_HIDDEN): New.
136 * ldlex.l (PROVIDE_HIDDEN): Likewise.
138 * scripttempl/elf.sc: Use PROVIDE_HIDDEN on array bound
141 2005-08-05 Alan Modra <amodra@bigpond.net.au>
143 * emulparams/elf_x86_64.sh: Revert last change.
144 * scripttempl/elf.sc (REL_LARGE, LARGE_SECTIONS): Define here.
146 2005-08-05 Alan Modra <amodra@bigpond.net.au>
148 * emulparams/armelf.sh (OTHER_BSS_END_SYMBOLS): Split out from
150 * emulparams/armelf_linux.sh: Likewise.
151 * emulparams/armnto.sh: Likewise.
152 * emulparams/criself.sh: Likewise.
153 * emulparams/elf32mcore.sh: Likewise.
154 * emulparams/criself.sh (OTHER_SYMBOLS): Define.
155 * emulparams/crislinux.sh (OTHER_SYMBOLS): Define.
156 (OTHER_END_SYMBOLS): Don't define.
157 * emulparams/elf32fr30.sh: Likewise.
158 * emulparams/elf64mmix.sh: Likewise.
159 * emulparams/hppa64linux.sh: Likewise.
160 * emulparams/m32relf.sh: Likewise.
161 * emulparams/vxworks.sh: Likewise.
162 * scripttempl/armbpabi.sc (OTHER_BSS_SECTIONS): Delete.
163 (OTHER_BSS_END_SYMBOLS): Add.
164 (OTHER_END_SYMBOLS): Move before current end sym definitions.
165 (OTHER_SYMBOLS): Replace OTHER_END_SYMBOLS near end of script.
166 * scripttempl/elf.sc: Likewise.
167 * scripttempl/elf32sh-symbian.sc: Likewise.
168 * scripttempl/elf_chaos.sc: Likewise.
169 * scripttempl/elfxtensa.sc: Likewise.
170 * scripttempl/iq2000.sc: Likewise.
171 * scripttempl/xstormy16.sc: Likewise.
173 * scripttempl/elf.sc (LBSS, LARGE_SECTIONS): Delete.
174 (REL_LDATA, REL_LBSS, REL_LRODATA): Delete.
175 (REL_LARGE, LARGE_SECTIONS): Add.
176 * emulparams/elf_x86_64.sh (LARGE_SECTIONS): Define as script text.
178 * emulparams/hppa64linux.sh (OTHER_BSS_SECTIONS): Don't define.
179 (LARGE_SECTIONS): Define.
180 * emulparams/hppa64linux.sh (OTHER_BSS_SECTIONS): Don't define.
181 (LARGE_SECTIONS): Define.
183 2005-08-04 Alan Modra <amodra@bigpond.net.au>
185 * ldemul.c (ldemul_do_assignments, do_assignments_default): Delete.
186 * ldemul.h (ldemul_do_assignments, do_assignments_default): Delete.
187 (struct ld_emulation_xfer_struct): Remove do_assignments field.
188 * ldlang.c (lang_do_assignments): Don't call ldemul_do_assignments.
189 * emulparams/elf32ppc.sh (SDATA_START_SYMBOLS): New.
190 (SDATA2_START_SYMBOLS, SBSS_START_SYMBOLS, SBSS_END_SYMBOLS): New.
191 * emultempl/aix.em (ld_*_emulation): Delete do_assignments init.
192 * emultempl/armcoff.em: Likewise.
193 * emultempl/beos.em: Likewise.
194 * emultempl/generic.em: Likewise.
195 * emultempl/gld960.em: Likewise.
196 * emultempl/gld960c.em: Likewise.
197 * emultempl/linux.em: Likewise.
198 * emultempl/lnk960.em: Likewise.
199 * emultempl/m68kcoff.em: Likewise.
200 * emultempl/pe.em: Likewise.
201 * emultempl/sunos.em: Likewise.
202 * emultempl/ticoff.em: Likewise.
203 * emultempl/vanilla.em: Likewise.
204 * emultempl/elf32.em: Likewise.
205 (gld*_provide_bound_symbols): Delete.
206 (gld*_provide_init_fini_syms): Delete.
207 (gld*_before_allocation): Don't call ldemul_do_assignments.
208 * emultempl/ppc32elf.em (ppc_do_assignments): Delete.
209 (LDEMUL_DO_ASSIGNMENTS): Delete.
210 * scripttempl/elf.sc: Provide init/fini syms. Add SBSS_START_SYMBOLS,
211 SBSS_END_SYMBOLS, SDATA2_START_SYMBOLS.
213 2005-08-04 Alan Modra <amodra@bigpond.net.au>
215 * Makefile.am (eelf32m32c.c): Fix dependencies.
216 * Makefile.in: Regenerate.
218 2005-08-04 Alan Modra <amodra@bigpond.net.au>
220 * ldemul.c (ldemul_finish): Call ld_emulation->finish unconditionally.
221 (finish_default): New function.
222 * ldemul.h (finish_default): Declare.
223 * emultempl/aix.em (gld*_before_allocation): Call
224 before_allocation_default rather than strip_excluded_output_sections.
225 (ld_*_emulation): Init finish field to finish_default.
226 * emultempl/armcoff.em: Likewise.
227 * emultempl/beos.em: Likewise.
228 * emultempl/elf32.em: Likewise.
229 * emultempl/generic.em: Likewise.
230 * emultempl/gld960.em: Likewise.
231 * emultempl/gld960c.em: Likewise.
232 * emultempl/hppaelf.em: Likewise.
233 * emultempl/linux.em: Likewise.
234 * emultempl/lnk960.em: Likewise.
235 * emultempl/m68kcoff.em: Likewise.
236 * emultempl/mmo.em: Likewise.
237 * emultempl/pe.em: Likewise.
238 * emultempl/ppc64elf.em: Likewise.
239 * emultempl/sunos.em: Likewise.
240 * emultempl/ticoff.em: Likewise.
241 * emultempl/vanilla.em: Likewise.
243 2005-08-03 Alan Modra <amodra@bigpond.net.au>
245 * ldlang.c (exp_init_os): Handle etree_provide.
246 * emulparams/armelf.sh (OTHER_END_SYMBOLS): Rename from..
247 (OTHER_BSS_END_SYMBOLS): ..this.
248 * emulparams/armelf_linux.sh: Likewise.
249 * emulparams/armnto.sh: Likewise.
250 * emulparams/criself.sh: Likewise.
251 * emulparams/crislinux.sh: Likewise.
252 * emulparams/elf32frv.sh: Likewise.
253 * emulparams/elf32mcore.sh: Likewise.
254 * emulparams/elf32ppc.sh: Likewise.
255 * emulparams/elf32ppclinux.sh: Likewise.
256 * emulparams/hppa64linux.sh: Likewise.
257 * scripttempl/armbpabi.sc: Substitute $OTHER_END_SYMBOLS, not
258 $OTHER_BSS_END_SYMBOLS.
259 * scripttempl/elf32sh-symbian.sc: Likewise.
260 * scripttempl/elf_chaos.sc: Likewise.
261 * scripttempl/iq2000.sc: Likewise.
262 * scripttempl/xstormy16.sc: Likewise.
263 * scripttempl/elf.sc: Likewise. Delete __bss_start comment.
264 * scripttempl/elfxtensa.sc: Likewise.
266 2005-07-29 Nick Clifton <nickc@redhat.com>
268 * ldmain.c (main): Allow -shared and -static to be used together.
269 * ld.texinfo (-static): Mention that it is allowed with -shared.
271 2005-07-28 DJ Delorie <dj@redhat.com>
273 * ldlang.c (lang_output_section_statement_lookup_1): Don't cast a
274 unary & address operator, as that breaks GCC's strict aliasing
277 2005-07-25 Jan Hubicka <jh@suse.cz>
278 H.J. Lu <hongjiu.lu@intel.com>
280 * emulparams/elf_x86_64.sh (LARGE_SECTIONS): New.
282 * scripttempl/elf.sc: Updated for large section support.
284 2005-07-21 Ralf Corsepius <ralf.corsepius@rtems.org>
286 * configure.tgt: Remove i[3-7]86-*-rtemself*.
287 Remove sparc-*-rtemself*.
289 2005-07-21 Ben Elliston <bje@gnu.org>
291 * ldgram.y (ldgram_want_filename): Remove unused static.
293 2005-07-20 DJ Delorie <dj@redhat.com>
295 * emulparams/elf32m32c.sh (TEMPLATE_NAME): New.
296 (EXTRA_EM_FILE): New.
298 2005-07-19 H.J. Lu <hongjiu.lu@intel.com>
300 * ldmain.c (main): Reindent.
302 2005-07-19 Paul Brook <paul@codesourcery.com>
304 * configure.host (HOSTING_CRT0): Parse output of gcc --help --verbose
305 to determine dynamic linker name.
307 2005-07-18 Nick Clifton <nickc@redhat.com>
309 * configure.tgt: Restore alpha ordering to list of arches.
311 2005-07-16 Alan Modra <amodra@bigpond.net.au>
313 * emultempl/elf32.em (gld*_provide_init_fini_syms): Prototype.
314 (gld*_before_allocation): Call ldemul_do_assignments rather than
315 gld*_provide_init_fini_syms directly.
316 * emultempl/ppc32elf.em (gld*_after_allocation): Delete.
317 (ppc_do_assignments): New function.
318 (LDEMUL_AFTER_ALLOCATION): Don't define.
319 (LDEMUL_DO_ASSIGNMENTS): Define.
321 2005-07-16 Alan Modra <amodra@bigpond.net.au>
323 * Makefile.am: Run "make dep-am".
324 (emipsidt.c, emipsidtl.c): Depend on generic.em.
325 * Makefile.in: Regenerate.
327 2005-07-15 Alan Modra <amodra@bigpond.net.au>
329 * ldemul.c (ldemul_do_assignments): New function.
330 (do_assignments_default): New function.
331 * ldemul.h (ldemul_do_assignments): Declare.
332 (do_assignments_default): Declare.
333 (struct ld_emulation_xfer_struct): Add do_assignments.
334 * ldlang.c (lang_do_assignments) Call ldemul_do_assignments.
335 * emultempl/aix.em (ld_*_emulation): Init do_assignments field.
336 * emultempl/armcoff.em: Likewise.
337 * emultempl/beos.em: Likewise.
338 * emultempl/generic.em: Likewise.
339 * emultempl/gld960.em: Likewise.
340 * emultempl/gld960c.em: Likewise.
341 * emultempl/linux.em: Likewise.
342 * emultempl/lnk960.em: Likewise.
343 * emultempl/m68kcoff.em: Likewise.
344 * emultempl/pe.em: Likewise.
345 * emultempl/sunos.em: Likewise.
346 * emultempl/ticoff.em: Likewise.
347 * emultempl/vanilla.em: Likewise.
348 * emultempl/elf32.em: Likewise, to call gld*_provide_init_fini_syms.
349 (gld*_find_exp_assignment): Adjust bfd_elf_record_link_assignment call.
351 2005-07-14 Jim Blandy <jimb@redhat.com>
353 Add support for the Renesas M32C and M16C.
354 * Makefile.am (ALL_EMULATIONS): Add eelf32m32c.o.
355 (eelf32m32c.c): New target.
356 * Makefile.in: Regenerated.
357 * configure.tgt: Add case for m32c-*-elf.
358 * emulparams/elf32m32c.sh: New file.
360 2005-07-14 Alan Modra <amodra@bigpond.net.au>
362 * ldlang.c (strip_excluded_output_sections): Don't call
364 * emultempl/elf32.em (gld*_provide_bound_symbols): Move.
365 (gld*_provide_init_fini_syms): Move.
366 (gld*_before_allocation): Call the above from here..
367 (gld*_finish): ..not here. Call _bfd_elf_fix_excluded_sec_syms.
368 * emultempl/hppaelf.em (hppaelf_finish): Likewise.
369 * emultempl/ppc64elf.em (ppc_finish): Likewise.
371 2005-07-10 Ralf Corsepius <ralf.corsepius@rtems.org>
373 * configure.tgt: Remove sparc*-*-rtemsaout*, i[3-7]86-go32-rtems*,
374 i[3-7]86-*-rtemscoff*, hppa*-*-rtems*, mips*el-*-rtems*,
377 2005-07-09 Christopher Faylor <cgf@timesys.com>
379 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Enable runtime
380 relocation by default.
381 (compute_dll_image_base): Avoid linking into cygwin dll address space.
383 2005-07-08 Alan Modra <amodra@bigpond.net.au>
385 * ldlang.c (wild_sort): Formatting.
386 (strip_excluded_output_sections): Strip zero size sections here.
387 * emultempl/elf32.em (gld*_strip_empty_sections): Delete.
388 (gld*_finish): Don't call the above.
389 * emultempl/hppaelf.em (hppaelf_finish): Likewise.
390 * emultempl/ppc64elf.em (ppc_finish): Likewise.
392 2005-07-05 Paul Brook <paul@codesourcery.com>
394 * Makefile.am (ALL_EMULATIONS): Add eelf32ppcvxworks.o.
395 (eelf32ppcvxworks.o): Add dependencies.
396 * Makefile.in: Regenerate.
397 * configure.tgt: Add entry for powerpc-vxworks.
398 * emulparams/elf32-ppc.c: Mention elf32ppcvxworks.sh in comment.
399 * emulparams/elf32ppcvxworks.sh: New file.
400 * emultempl/ppc32elf.em (bfd_elf32_powerpc_vxworks_vec): Declare.
401 (is_ppc_elf32_vec): New function.
402 (ppc_after_open, ppc_before_allocation,
403 gld${EMULATION_NAME}_after_allocation): Use it.
405 2005-07-05 Peter S. Mazinger" <ps.m@gmx.net>
407 * emulparams/elf32bmip.sh (GENERATE_PIE_SCRIPT): Define as "yes".
408 * emulparams/elf32bmipn32-defs.sh (GENERATE_PIE_SCRIPT): Define as "yes".
410 2005-07-04 Mike Frysinger <vapier@gentoo.org>
412 * emulparams/hppalinux.sh (GENERATE_PIE_SCRIPT): Fix typo in
415 2005-07-04 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
417 * emulparams/m32relf_linux.sh (GENERATE_PIE_SCRIPT): Set to yes.
419 2005-07-04 Aurelien Jarno <aurel32@debian.org>
421 * emultempl/elf32.em: Enable use of ld.so.conf for *-*-k*bsd-*.
423 2005-07-01 Alan Modra <amodra@bigpond.net.au>
425 * scripttempl/elf.sc (.gcc_except_table): Don't KEEP.
427 2005-06-30 Ben Elliston <bje@gnu.org>
429 * Makefile.am (check-DEJAGNU): Don't search for expect.
430 * Makefile.in: Regenerate.
432 2005-06-30 Ben Elliston <bje@gnu.org>
434 * Makefile.am (EXPECT): Set to expect.
435 (RUNTEST): Likewise, set to runtest.
436 * Makefile.in: Regenerate.
438 2005-06-16 Alexander Klimov <alserkli@inbox.ru>
440 * emultempl/armelf.em: Add quotes to avoid a null test
443 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
445 * ld.texinfo (Command Line Options): Add @item for --hash-size.
447 2005-06-10 Alan Modra <amodra@bigpond.net.au>
449 * scripttempt/elf.sc (.bss): Align tail in a way that allows
450 empty section pruning.
452 2005-06-09 Steve Ellcey <sje@cup.hp.com>
454 * configure.in (AM_BINUTILS_WARNINGS): Add.
455 (BFD_NEED_DECLARATION) Replace with AC_CHECK_DECLS.
456 * config.in: Regenerate.
457 * configure: Regenerate.
458 * sysdep.h (NEED_DECLARATION_*): Replace with HAVE_DECL_*
461 2005-06-09 Alan Modra <amodra@bigpond.net.au>
463 * ldexp.c (fold_unary <ALIGN_K>): Revert last change.
465 2005-06-09 Alan Modra <amodra@bigpond.net.au>
467 * ld.h (lang_phase_type): Move to..
468 * ldexp.h: ..here. Add lang_mark_phase_enum.
469 (node_type): Remove etree_undef and etree_unspec.
470 (exp_data_seg): Delete.
471 (struct ldexp_control, expld): New.
472 (invalid, exp_mark_used_section): Delete.
473 (exp_fold_tree, exp_get_vma, exp_get_value_int, exp_get_fill,
474 exp_get_abs_int): Update prototypes.
475 * ldexp.c (assigning_to_dot): Delete.
477 (make_abs): Operate directly on expld.result. Update all callers.
478 (new_abs): Likewise. Return void.
479 (new_rel_from_abs): Rename from new_rel_from_section.
480 (new_rel, new_rel_from_abs): Operate on expld.result and return void.
482 (fold_unary): Operate on expld.result and return void. Remove
483 "current_section", "allocation_done", "dot", "dotp" and "mark_used"
484 params. Update all callers.
485 (fold_binary, fold_trinary, fold_name, exp_fold_tree_1): Likewise.
486 (fold_unary <ALIGN_K>): Ensure alignment is absolute.
487 (fold_unary <ABSOLUTE>): Use make_abs.
488 (fold_unary <DATA_SEGMENT_END>): Evaluate mark_phase as for
490 (fold_binary <DATA_SEGMENT_ALIGN, DATA_SEGMENT_RELRO_END, >): Ditto.
491 (fold_binary <'%','/'>): Don't error if marking.
492 (fold_name <SIZEOF_HEADERS>): Don't call bfd_sizeof_headers when
494 (fold_name <NAME>): Remove FIXME; -R is handled correctly. Don't
496 (fold_name <ADDR, LOADADDR, SIZEOF>): Don't set SEC_KEEP.
497 (exp_fold_tree_1): Don't error when marking.
498 (exp_fold_tree_1 <etree_rel>): Evaluate in all phases except first.
499 (exp_fold_tree_1 <etree_assign to dot>): Don't check for NULL
500 current section, instead check for NULL dotp.
501 (exp_fold_tree_1 <etree_provide>): Don't evaluate the assignment
502 source unless the symbol is referenced and undefined.
503 (exp_fold_tree): Remove "allocation_done" and "dot" params. Save
505 (exp_fold_tree_no_dot): Remove "current_section", "allocation_done
506 and "mark_used" params. Save params to expld. Update all callers.
507 (exp_assop): Do without temp var.
508 (exp_print_tree <etree_undef>): Delete code.
509 (exp_get_vma): Remove "allocation_done" param. Correct error return.
510 (exp_get_fill, exp_get_abs_int): Likewise.
511 (exp_get_value_int): Remove "allocation_done" param.
512 (exp_mark_used_section): Delete.
513 * ldgram.y (fill_exp): Update exp_get_fill call.
514 (origin_spec, length_spec): Update exp_get_vma call.
515 * ldlang.c (lang_init): Don't bother clearing lang_statement_iteration.
516 (lang_mark_used_section_1, lang_mark_used_section): Delete.
517 (strip_excluded_output_sections): Call one_lang_size_sections_pass in
518 marking mode. Merge old lang_mark_used_section code. Correct handling
519 of output sections with excluded input sections and data statements.
520 Don't drop non-zero sized sections. Don't zap os->bfd_section.
521 Do set SEC_EXCLUDE when appropriate.
522 (print_output_section_statement): Update for changed ldexp.c
524 (print_assignment, lang_size_sections_1): Likewise.
525 (lang_do_assignments_1, lang_enter_output_section_statement): Likewise.
526 (lang_new_phdr, lang_record_phdrs): Likewise.
527 (lang_size_sections): Likewise.
528 (insert_pad): Use following statement if it is a pad, rather than
530 (lang_size_sections_1 <lang_output_section_statement_enum>): Do
531 process ignored output section to set vma and lma, but don't
532 update dot for these sections. Don't error if marking.
533 (lang_size_sections_1 <lang_assignment_statement_enum>): Don't
534 update dot for ignored sections.
535 (lang_size_sections_1 <lang_data_statement_enum>): Don't mark absolute
536 section with SEC_ALLOC.
537 (one_lang_size_sections_pass): New function.
538 (lang_size_sections): Remove first five params. Set expld.phase on
539 entry and exit. Use one_lang_size_sections_pass.
540 (lang_do_assignments): Remove all params. Update all callers.
541 (lang_reset_memory_regions): Clear os->processed for all output
543 * ldlang.h (lang_do_assignments): Update prototype.
544 (lang_size_sections): Likewise.
545 (one_lang_size_sections_pass): Declare.
546 * pe-dll.c (pe_dll_fill_sections, pe_exe_fill_sections): Update
547 lang_size_sections and lang_do_assignments calls.
548 * emultempl/elf32.em (layout_sections_again): Likewise.
549 * emultempl/ppc64elf.em (ppc_before_allocation): Use
550 one_lang_size_sections_pass.
552 2005-06-08 Aldy Hernandez <aldyh@redhat.com>
554 * emulparams/elf32ms1.sh: New.
556 2005-06-07 Eric Christopher <echristo@redhat.com>
558 * Makefile.am (eelf32ms1.c): Use tab.
559 * Makefile.in: Regenerate.
561 2005-06-07 Aldy Hernandez <aldyh@redhat.com>
562 Michael Snyder <msnyder@redhat.com>
563 Stan Cox <scox@redhat.com>
565 * configure.tgt: Same.
567 * Makefile.am (ALL_EMULATIONS): Depend on eelf32ms1.o.
568 (eelf32ms1.c): Add eelf32ms1.c rule.
570 * Makefile.in: Regenerate.
572 2005-06-06 Alan Modra <amodra@bigpond.net.au>
574 * emultempl/ppc64elf.em (ppc_before_allocation): Always run
577 2005-06-05 H.J. Lu <hongjiu.lu@intel.com>
579 * ldexp.c (exp_mark_used_section): Set SEC_KEEP on current
580 section only if the symbol will be defined.
582 2005-06-04 H.J. Lu <hongjiu.lu@intel.com>
585 * ldexp.c (exp_mark_used_section): Set SEC_KEEP on current
586 section for etree_assign, etree_provide and etree_provided.
587 Call fold_binary on etree_binary.
589 * ldlang.c (lang_mark_used_section_1): Handle load base.
591 2005-06-03 Alan Modra <amodra@bigpond.net.au>
593 * ldmain.c (link_callbacks): Add einfo.
594 (add_archive_element): Use passed info, not link_info.
595 (constructor_callback): Likewise.
596 (reloc_overflow): Don't handle null bfd specially.
597 (reloc_dangerous, unattached_reloc): Likewise.
598 * ldmisc.c (vfinfo <B>): Print "ld generated" for null bfd.
599 (vfinfo <C, D, G>): Handle null bfd. Wrap comments.
601 2005-06-02 Alan Modra <amodra@bigpond.net.au>
603 * ldexp.h (etree_value_type): Use "asection *" in place of
604 "struct lang_output_section_statement_struct *" for "section".
605 (exp_fold_tree): Likewise.
606 (exp_mark_used_section): Likewise.
607 * ldexp.c (new_rel, new_rel_from_section, fold_unary, fold_binary,
608 fold_trinary, fold_name, exp_fold_tree_1, exp_fold_tree,
609 exp_mark_used_section): Likewise for "current_section" param.
610 (make_abs, new_abs, exp_binop, exp_unop, exp_get_vma, exp_get_fill,
611 exp_get_abs_int): Adjust for above changes.
612 * ldlang.c (lang_mark_used_section_1, print_assignment,
613 lang_size_sections_1, lang_do_assignments_1): Likewise.
614 * ldexp.c (fold_name): Init entire result struct.
616 2005-06-01 Maciej W. Rozycki <macro@linux-mips.org>
618 * emulparams/elf32btsmip.sh: Unset DATA_ADDR.
620 2005-05-31 Zack Weinberg <zack@codesourcery.com>
622 * ldlang.c (entry_symbol_default): New file-scope global.
623 (lang_finish): Use it, not a hardwired "start".
624 (lang_default_entry): Set it.
625 * ldlang.h: Declare lang_default_entry.
626 * emultempl/beos.em, emultempl/pe.em: Use lang_default_entry,
627 not lang_add_entry, to override default entry point symbol.
629 2005-05-29 Richard Henderson <rth@redhat.com>
631 * emulparams/elf64alpha.sh (PLT): New.
633 * emultempl/alphaelf.em (disable_relaxation): New.
634 (limit_32bit): Rename from elf64alpha_32bit; update all users.
635 (elf64_alpha_use_secureplt): Declare.
636 (bfd_elf64_alpha_vec, bfd_elf64_alpha_freebsd_vec): Declare.
637 (alpha_after_open): New.
638 (alpha_before_allocation): New.
639 (OPTION_NO_RELAX, OPTION_SECUREPLT, OPTION_NO_SECUREPLT): New.
640 (PARSE_AND_LIST_LONGOPTS): Include them.
641 (PARSE_AND_LIST_OPTIONS): Likewise.
642 (PARSE_AND_LIST_ARGS_CASES): Likewise.
643 (LDEMUL_AFTER_OPEN, LDEMUL_BEFORE_ALLOCATION): New.
644 * scripttempl/elf.sc (TEXT_PLT): New.
647 2005-05-27 Andreas Schwab <schwab@suse.de>
649 * configure.host (HOSTING_LIBS): Add libunwind.a if it exists.
651 2005-05-24 Alan Modra <amodra@bigpond.net.au>
653 * emultempl/ppc32elf.em (after_allocation): Don't call
654 ppc_elf_set_sdata_syms when relocatable.
656 2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
658 * Makefile.am (ld.1): Revert the last 2 changes.
659 (info-recursive): Depend on ld.1.
660 * Makefile.in: Regenerated.
662 2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
664 * Makefile.am (ld.1): Depend on "info" instead of
665 "configdoc.texi ldver.texi".
666 * Makefile.in: Regenerated.
668 2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
670 * Makefile.am (ld.1): Depend on "info".
671 * Makefile.in: Regenerated.
673 2005-05-19 Zack Weinberg <zack@codesourcery.com>
675 * Makefile.am: Have 'all' depend on 'info' and 'ld.1'.
676 * Makefile.in: Regenerate.
678 2005-05-17 Zack Weinberg <zack@codesourcery.com>
680 * ld-arm/mixed-app.d: Adjust expected disassembly a little.
682 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
684 * Makefile.am (ldver.texi): Don't use $<.
685 * Makefile.in: Regenerated.
687 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
689 * Makefile.am (AM_MAKEINFOFLAGS, TEXI2DVI): Explicitly include
690 $(srcdir) before $(BFDDIR)/doc.
691 * Makefile.in: Regenerated.
693 2005-05-17 H.J. Lu <hongjiu.lu@intel.com>
696 * ldexp.c (exp_fold_tree_1): Renamed from exp_fold_tree and
697 take take a bfd_boolean, mark_used. Ignore assert failure if
699 (exp_fold_tree) Call exp_fold_tree_1 with mark_used == FALSE.
700 (exp_fold_tree_no_dot): Updated to take a bfd_boolean,
701 mark_used and pass down.
702 (fold_unary): Likewise.
703 (fold_binary): Likewise.
704 (fold_trinary): Likewise.
705 (exp_binop): Add FALSE to call to exp_fold_tree_no_dot.
706 (exp_trinop): Likewise.
707 (exp_unop): Likewise.
708 (exp_nameop): Likewise.
709 (exp_get_vma): Likewise.
710 (exp_get_fill): Likewise.
711 (exp_get_abs_int): Likewise.
712 (fold_name): Likewise. Set SEC_KEEP in output section flags.
713 (exp_mark_used_section): New.
715 * ldexp.h (exp_mark_used_section): New.
717 * ldlang.c (lang_output_section_statement_lookup_1): Set the
718 ignored field to FALSE.
719 (lang_mark_used_section_1): New.
720 (lang_mark_used_section): Call lang_mark_used_section_1.
721 (strip_excluded_output_sections): Call lang_mark_used_section
722 and check for unused sections.
723 (lang_size_sections_1): Skip an output section if it should
725 (lang_do_assignments_1): Likewise.
726 (lang_process): Don't call lang_mark_used_section here.
728 * ldlang.h (lang_output_section_statement_type): Change
729 all_input_readonly to bitfield. Add ignored.
731 2005-05-17 Lennert Buytenhek <buytenh@wantstofly.org>
732 Peter S. Mazinger" <ps.m@gmx.net>
734 * emulparams/armelf_linux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
735 * emulparams/hppalinux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
737 2005-05-17 Julian Brown <julian@codesourcery.com>
739 * ldlang.c (print_assignment): Do not rely upon a valid result
740 having a section associated with it.
742 2005-05-17 Nick Clifton <nickc@redhat.com>
744 * ldlang.c (Scan_for_self_assignment): Check an assignment tree to
745 see if the same value is being used on the rhs as on the lhs.
746 (print_assignment): Call scan_for_self_assignment and if it
747 returns true, do no display the result of the computation but
748 instead just the final value of the symbol on the lhs.
749 * ld.texinfo: Document this behaviour and provide an example of
752 2005-05-15 Daniel Jacobowitz <dan@codesourcery.com>
754 * Makefile.am (AM_MAKEINFOFLAGS): Define.
756 (ldver.texi): Depend on distributed files instead of built files.
757 (ld.info): Include $(srcdir) in the rule target. Remove actions.
758 (ld.dvi): Remove actions.
759 (MAINTAINERCLEANFILES): Add configdoc.texi.
760 (CONFIG_STATUS_DEPENDENCIES): Add bfd/configure.in.
761 (install-data-local): Renamed from install.
762 (Makefile): Remove explicit dependency.
763 * acinclude.m4: Remove obsolete code.
764 * configure.in: Update AC_PREREQ. Remove extra $CONFIG_SHELL.
765 * Makefile.in, aclocal.m4, config.in, configure: Regenerated.
767 2005-05-11 Bob Wilson <bob.wilson@acm.org>
769 * scripttempl/elfxtensa.sc: Sync up with elf.sc.
770 * emulparams/elf32xtensa.sh (PLT, GOT): Define.
772 2005-05-11 Alan Modra <amodra@bigpond.net.au>
774 * ldgram.y: Add SPECIAL token.
775 (sect_constraint): Handle SPECIAL.
776 * ldlang.c (lang_output_section_find_1): Don't match SPECIAL.
777 (map_input_to_output_sections): Likewise.
778 * ldlex.l (SPECIAL): Define.
779 * emulparams/elf32ppc.sh (DATA_GOT, SDATA_GOT, SEPARATE_GOTPLT,
780 GOT, PLT, GOTPLT): Define.
781 * emultempl/ppc32elf.em (old_plt, old_got): New static vars.
782 (ppc_after_open): New function.
783 (PARSE_AND_LIST_PROLOGUE): Define OPTION_OLD_LPT and OPTION_OLD_GOT.
784 (PARSE_AND_LIST_LONGOPTS): Add "bss-plt" and "sdata-got".
785 (PARSE_AND_LIST_OPTIONS): Document them.
786 (PARSE_AND_LIST_ARGS_CASES): Handle them.
787 (LDEMUL_AFTER_OPEN): Define.
788 * scripttempl/elf.sc (PLT): Don't override existing define.
789 (DATA_GOT, SDATA_GOT): Define and use to enable alternate got
790 placement rather than using NO_SMALL_DATA. Emit GOTPLT for RELRO_NOW.
792 2005-05-10 Alan Modra <amodra@bigpond.net.au>
794 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_GOTPLT_END): Delete.
795 (DATA_SEGMENT_RELRO_END): Use SEPARATE_GOTPLT value.
796 (GOTPLT): Remove DATA_SEGMENT_RELRO_GOTPLT_END. Place after
797 DATA_SEGMENT_RELRO_END in script.
799 2005-05-09 H.J. Lu <hongjiu.lu@intel.com>
801 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
802 Don't use a removed section.
804 2005-05-09 H.J. Lu <hongjiu.lu@intel.com>
806 * ldmain.c (reloc_overflow): Use output_bfd if the symbol
807 is defined in the ABS section.
809 2005-05-06 H.J. Lu <hongjiu.lu@intel.com>
811 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
812 Put back !link_info.relocatable.
814 2005-05-06 H.J. Lu <hongjiu.lu@intel.com>
817 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
818 Just check link_info.executable.
820 2005-05-06 Nick Clifton <nickc@redhat.com>
822 * Update the address and phone number of the FSF organization in
823 the GPL notices in the following files:
824 aclocal.m4, deffile.h, deffilep.y, fdl.texi, ld.h, ldcref.c,
825 ldctor.c, ldctor.h, ldemul.c, ldexp.c, ldexp.h, ldfile.c,
826 ldfile.h, 20ldgram.y, ldint.texinfo, ldlang.c, ldlang.h, ldlex.h,
827 ldlex.l, ldmain.c, ldmain.h, ldmisc.c, ldmisc.h, ldver.c, ldver.h,
828 ldwrite.c, ldwrite.h, lexsup.c, mri.c, mri.h, pe-dll.c, pe-dll.h,
829 sysdep.h, emultempl/aix.em, emultempl/alphaelf.em,
830 emultempl/armcoff.em, emultempl/armelf.em, emultempl/beos.em,
831 emultempl/crxelf.em, emultempl/elf32.em, emultempl/generic.em,
832 emultempl/gld960.em, emultempl/gld960c.em, emultempl/hppaelf.em,
833 emultempl/ia64elf.em, emultempl/irix.em, emultempl/linux.em,
834 emultempl/lnk960.em, emultempl/m68hc1xelf.em,
835 emultempl/m68kcoff.em, emultempl/m68kelf.em,
836 emultempl/mipsecoff.em, emultempl/mmix-elfnmmo.em,
837 emultempl/mmixelf.em, emultempl/mmo.em, emultempl/needrelax.em,
838 emultempl/pe.em, emultempl/ppc32elf.em, emultempl/ppc64elf.em,
839 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em,
840 emultempl/vanilla.em, emultempl/xtensaelf.em
842 2005-05-05 H.J. Lu <hongjiu.lu@intel.com>
844 * scripttempl/elf.sc: Document the usage of __bss_start.
846 2005-05-05 Paul Brook <paul@codesourcery.com>
848 * Makefile.am: Add eelf_i386_vxworks.
849 * Makefile.in: Regenerate.
850 * configure.tgt: Make i?86-*-vxworks use targ_emul=elf_i386_vxworks.
851 * emulparams/elf_i386_vxworks.sh: New file.
852 * emulparams/vxworks.sh: New file.
853 * scripttempl/elf.sc: Add DATA_END_SYMBOLS and ETEXT_NAME.
855 2005-05-04 H.J. Lu <hongjiu.lu@intel.com>
857 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
858 Call _bfd_elf_provide_section_bound_symbols.
860 2005-05-04 Alan Modra <amodra@bigpond.net.au>
862 * ldemul.c: Include bfdlink.h.
863 (ldemul_before_allocation): Assume before_allocation is non-zero.
864 (before_allocation_default): Call strip_excluded_output_sections.
865 * ldlang.c (stripped_excluded_sections): New variable.
866 (lang_add_section): Build input section list for each output
867 section, attached via map_head and map_tail pointers.
868 (strip_excluded_output_sections): Make global. Traverse the
869 input section lists to find which output sections can go. Clear
870 link_order pointers and set stripped_excluded_sections.
871 (lang_process): Call strip_excluded_output_sections.
872 * ldlang.h (strip_excluded_output_sections): Declare.
873 * ldwrite.c: Update throuhout for link_order_head -> map_head change.
874 * emultempl/aix.em (before_allocation): Call
875 strip_excluded_output_sections.
876 * emultempl/armcoff.em (before_allocation): Likewise.
877 * emultempl/beos.em (before_allocation): Likewise.
878 * emultempl/linux.em (before_allocation): Likewise.
879 * emultempl/pe.em (before_allocation): Likewise.
880 * emultempl/sunos.em (before_allocation): Likewise.
881 * emultempl/elf32.em (before_allocation): Likewise. Call
882 bfd_elf_size_dynsym_hash_dynstr too.
883 * emultempl/lnk960.em (lnk960_before_allocation): Delete.
884 (ld_lnk960): Use before_allocation_default.
886 2005-05-02 H.J. Lu <hongjiu.lu@intel.com>
888 * emultempl/elf32.em (gld${EMULATION_NAME}_strip_empty_section):
889 Updated for bfd_section_list_remove change.
890 * ldlang.c (lang_insert_orphan): Likewise.
891 (strip_excluded_output_sections): Likewise.
892 (sort_sections_by_lma): New.
893 (lang_check_section_addresses): Sort the sections before
896 2005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
898 * configure.tgt: Add h8300*-*-rtemscoff.
899 Switch h8300*-*-rtems* to elf.
901 2005-04-29 Ben Elliston <bje@au.ibm.com>
903 * ldgram.y (lang_memory_region_type): Make static.
904 (ldgram_want_filename): Likewise.
905 * ldemul.c (ld_emulation): Make static.
906 * ldfile.h (ldfile_find_command_file): Remove extern.
907 * ldfile.c (ldfile_find_command_file): Make static.
908 * ldlang.h (unique_section_list): Remove extern declaration.
909 * ldlang.c (unique_section_list): Make static.
910 * mri.h (symbol_truncate): Remove extern declaration.
911 * mri.c (symbol_truncate): Make static.
912 (order, only_load, address, alias): Likewise.
913 (alignment, subalignment): Likewise.
915 2005-04-27 H.J. Lu <hongjiu.lu@intel.com>
917 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
918 Use the first SEC_ALLOC section which isn't SEC_READONLY or the
919 last SEC_ALLOC section if such a section doesn't exist.
921 2005-04-24 Mark Kettenis <kettenis@gnu.org>
923 * configure.host: Add *-*-openbsd support.
925 2005-04-15 Julian Brown <julian@codesourcery.com>
927 * ld.texinfo: Document --use-blx.
928 * emultempl/armelf.em (use_blx): New variable.
929 (arm_elf_create_output_section_statements): Communicate value of
931 (PARSE_AND_LIST_PROLOGUE): Add OPTION_USE_BLX.
932 (PARSE_AND_LIST_OPTIONS): Add --use-blx option.
933 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_USE_BLX case.
935 2005-04-14 Alan Modra <amodra@bigpond.net.au>
937 * Makefile.am (NO_WERROR): Define. Use instead of -Wno-error.
938 * configure.in: Include ../bfd/warning.m4 contents.
939 * Makefile.in: Regenerate.
940 * configure: Regenerate.
942 2005-04-12 Alan Modra <amodra@bigpond.net.au>
944 * Makefile.am: Run "make dep-am".
945 (ldgram.o, ldlex.o, deffilep.o): Add -Wno-error to command.
946 * Makefile.in: Regenerate.
947 * config.in: Regenerate.
949 2005-04-11 Alan Modra <amodra@bigpond.net.au>
951 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Ignore
952 as_needed libs that were not needed.
953 (gld${EMULATION_NAME}_check_needed): Likewise.
955 2005-04-07 Nick Clifton <nickc@redhat.com>
957 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h so that
958 ldfile.h can use the lang_input_statement type.
960 2005-04-06 Jakub Jelinek <jakub@redhat.com>
962 * ldlang.c: Formatting.
963 (walk_wild_consider_section): Remember return value from wildcardp.
964 (is_simple_wild): Use strcspn instead of 2 strpbrk calls and strlen.
965 (wild_spec_can_overlap): Use strcspn instead of strpbrk and strlen.
967 2005-04-06 Robert O'Callahan <rocallahan@novell.com>
969 * ld.h (lean_section_userdata_type): Remove.
970 (fat_section_userdata_type): Remove file field.
971 (SECTION_USERDATA_SIZE): Remove.
972 * ldlang.c (init_os): Eliminate initialization of unused
973 lean_section_userdata_type.
975 * ldlang.h (callback_t, walk_wild_section_handler_t): New
977 (struct lang_wild_statement_struct): Add walk_wild_section_handler
978 and handler_data fields.
979 * ldlang.c (callback_t): Removed.
980 (walk_wild_consider_section, walk_wild_section_general,
981 section_iterator_callback, find_section, is_simple_wild,
982 match_simple_wild, walk_wild_section_specs1_wild0,
983 walk_wild_section_specs1_wild1, walk_wild_section_specs2_wild1,
984 walk_wild_section_specs3_wild2, walk_wild_section_specs4_wild2,
985 wild_spec_can_overlap, analyze_walk_wild_section_handler): New
987 (lang_add_wild): Call analyze_walk_wild_section_handler.
988 (walk_wild_section): Renamed to walk_wild_section_general and
989 created a wrapper function.
990 (section_iterator_callback_data): New typedef.
992 2005-04-04 Nick Clifton <nickc@redhat.com>
994 * configure.in: Add a check for <unistd.h> providing a prototype
995 for getopt() which is compatible with the one in
996 include/getopt.h. If so then define HAVE_DECL_GETOPT.
997 * configure: Regenerate.
998 * config.in (HAVE_DECL_GETOPT): Add.
999 * ldemul.c: Include config.h
1000 * lexsup.c: Likewise.
1001 * emultempl/elf32.sc: Likewise.
1003 2005-03-29 Alan Modra <amodra@bigpond.net.au>
1005 * emultempl/elf32.em (gld${EMULATION_NAME}_layout_sections_again):
1006 New function, extracted from static void gld${EMULATION_NAME}_finish.
1007 (gld${EMULATION_NAME}_strip_empty_sections): Likewise.
1008 (gld${EMULATION_NAME}_provide_init_fini_syms): Likewise.
1009 * emultempl/ppc64elf.em: Revert last change.
1010 (ppc_layout_sections_again): Use
1011 gld${EMULATION_NAME}_layout_sections_again.
1012 (ppc_finish): Don't call gld${EMULATION_NAME}_finish. Instead call
1013 gld${EMULATION_NAME}_strip_empty_sections and
1014 gld${EMULATION_NAME}_provide_init_fini_syms.
1015 * emultempl/hppaelf.em: Similarly.
1017 2005-03-29 Alan Modra <amodra@bigpond.net.au>
1019 * emultempl/ppc64elf.em (need_laying_out): Delete. Remove all refs.
1020 (ppc_finish): Don't call bfd_elf_discard_info.
1021 * emultempl/hppaelf.em: Similarly.
1023 2005-03-24 Nick Clifton <nickc@redhat.com>
1025 * po/fr.po: Updated French translation.
1027 2005-03-23 Mike Frysinger <vapier@gentoo.org>
1028 Nick Clifton <nickc@redhat.com>
1030 * configure.host: Accept any C library to accompany a GNU Linux
1031 implementation, not just the GNU C library.
1032 * configure.tgt: Likewise.
1033 * emultempl/elf32.em: Likewise.
1035 2005-03-22 H.J. Lu <hongjiu.lu@intel.com>
1037 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols): New
1038 (gld${EMULATION_NAME}_finish): Call
1039 gld${EMULATION_NAME}_provide_bound_symbols to provide
1040 __preinit_array_start, __preinit_array_end, __init_array_start,
1041 __init_array_end, __fini_array_start and __fini_array_end.
1043 * scripttempl/elf.sc: Don't provide __preinit_array_start,
1044 __preinit_array_end, __init_array_start, __init_array_end,
1045 __fini_array_start nor __fini_array_end.
1047 2005-03-23 Alan Modra <amodra@bigpond.net.au>
1049 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Set
1050 SEC_EXCLUDE on .gnu.warning sections.
1052 2005-03-22 Alan Modra <amodra@bigpond.net.au>
1054 * scripttempl/elf.sc (SBSS): Don't provide sbss start and end syms.
1056 2005-03-21 Alan Modra <amodra@bigpond.net.au>
1058 * emultempl/ppc32elf.em (gld${EMULATION_NAME}_after_allocation): New
1060 (LDEMUL_AFTER_ALLOCATION): Define.
1062 2005-03-21 Alan Modra <amodra@bigpond.net.au>
1064 * emultempl/ppc64elf.em (ppc_finish): Rename from
1065 gld${EMULATION_NAME}_finish. Call gld${EMULATION_NAME}_finish.
1066 (LDEMUL_FINISH): Update.
1067 * emultempl/hppaelf.em (hppaelf_finish, LDEMUL_FINISH): Likewise.
1068 * emultempl/m68hc1xelf.em (m68hc11elf_finish, LDEMUL_FINISH): Likewise.
1070 2005-03-18 Julian Brown <julian@codesourcery.com>
1072 * scripttempl/armbpapi.sc (.rel.dyn): Add .rel.init_array,
1074 (.rela.dyn): Add .rela.init_array, .rela.fini_array.
1075 (SECTIONS): Add .rel.other, .rela.other, .reli.other after PLT relocs.
1077 2005-03-18 H.J. Lu <hongjiu.lu@intel.com>
1079 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Don't set
1080 bfd_section when removing unused empty output sections for
1081 non-relocatable link.
1083 2005-03-19 Alan Modra <amodra@bigpond.net.au>
1085 * ldlang.c (lang_insert_orphan): Use old section_tail rather than
1086 traversing the bfd section list to find pointer to new section.
1088 2005-03-18 Alan Modra <amodra@bigpond.net.au>
1090 * scripttempl/elf.sc: When CREATE_SHLIB, put .sdata2 and .sbss2
1091 input sections into .sdata and .sbss output respectively.
1093 2005-03-16 David Heine <dlheine@tensilica.com>
1094 Bob Wilson <bob.wilson@acm.org>
1096 * ldlang.c (IGNORE_SECTION): Remove check for zero size.
1097 (lang_check_section_addresses): Ignore zero size sections here.
1099 2005-03-16 H.J. Lu <hongjiu.lu@intel.com>
1101 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Remove
1102 unused empty output sections for non-relocatable link.
1104 * ld.h (args_type): Remove gc_sections.
1106 * ldlang.c (lang_mark_used_section): New.
1107 (lang_gc_sections): Use link_info.gc_sections instead of
1108 command_line.gc_sections.
1109 * ldmain.c (main): Likewise.
1110 * lexsup.c (parse_args): Likewise.
1111 * ldlang.c (lang_process): Call lang_mark_used_section.
1113 * ldmain.c (main): Initialize link_info.gc_sections to FALSE.
1115 2005-03-16 Nick Clifton <nickc@redhat.com>
1116 Ben Elliston <bje@au.ibm.com>
1118 * configure.in (werror): New switch: Add -Werror to the
1119 compiler command line. Enabled by default. Disable via
1121 * configure: Regenerate.
1123 2005-03-16 Alan Modra <amodra@bigpond.net.au>
1125 * emulparams/elf32ppclinux.sh (OTHER_READWRITE_SECTION): Delete.
1126 (OTHER_RELRO_SECTIONS): Set this instead.
1128 2005-03-15 Nick Clifton <nickc@redhat.com>
1130 * NEWS: Add cutoff for changes in 2.16 release.
1132 2005-03-15 Mikkel Krautz <krautz@gmail.com>
1134 * configure.tgt (x86_64-elf): Add target.
1136 2005-03-15 Alan Modra <amodra@bigpond.net.au>
1138 * po/es.po: Commit new Spanish translation.
1140 2005-03-14 Alan Modra <amodra@bigpond.net.au>
1142 * ldexp.c (exp_fold_tree): Ensure return value is initialized.
1143 Tidy etree_assert case.
1145 2005-03-14 Alan Modra <amodra@bigpond.net.au>
1147 * po/tr.po: Commit new Turkish translation.
1149 2005-03-11 Daniel Jacobowitz <dan@codesourcery.com>
1151 * Makefile.am: Remove references to em68klynx.o and esparclynx.o.
1152 * Makefile.in: Regenerated.
1153 * emulparams/m68klynx.sh, emulparams/sparclynx.sh: Remove.
1155 2005-03-07 Nick Clifton <nickc@redhat.com>
1157 * po/fr.po: Updated translation.
1159 2005-03-05 Alan Modra <amodra@bigpond.net.au>
1161 * po/ld.pot: Regenerate.
1163 2005-03-02 Jan Beulich <jbeulich@novell.com>
1165 * ldmain.c (remove_output): Use unlink_if_ordinary instead of unlink.
1166 * pe-dll.c (pe_dll_generate_implib): Likewise.
1168 2005-02-24 Ben Elliston <bje@au.ibm.com>
1170 * ldfile.c: Remove GNU960 conditional code.
1171 * emultempl/gld960.em: Likewise.
1172 * emultempl/gld960c.em: Likewise.
1173 * emultempl/lnk960.em: Likewise.
1175 2005-02-24 Nick Clifton <nickc@redhat.com>
1177 * emultempl/lnk960.em (lnk960_before_parse): Remove redundant
1178 empty string from calls to concat.
1180 2005-02-23 Nick Clifton <nickc@redhat.com>
1182 * emultempl/lnk960.em (lnk960_before_parse): Terminate list of
1183 arguments passed to concat() with a NULL.
1185 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h because they
1186 define types needed by ldfile.h
1188 2005-02-23 Alan Modra <amodra@bigpond.net.au>
1190 * pe-dll.c: Warning fixes.
1191 * emultempl/sunos.em: Likewise.
1193 2005-02-22 Daniel Jacobowitz <dan@codesourcery.com>
1195 * ldlang.c (section_already_linked): Don't call
1196 bfd_section_already_linked for dynamic objects.
1198 2005-02-22 Alan Modra <amodra@bigpond.net.au>
1200 * ldexp.c: Warning fixes.
1201 * ldwrite.c: Likewise.
1202 * emultempl/elf32.em: Likewise.
1204 2005-02-21 H.J. Lu <hongjiu.lu@intel.com>
1206 * ldlang.c (lang_add_section): Check SEC_TIC54X_BLOCK for TI
1208 (lang_size_sections_1): Check SEC_COFF_SHARED_LIBRARY for COFF
1209 and ECOFF output only.
1211 2005-02-21 Alan Modra <amodra@bigpond.net.au>
1213 * config.in: Regenerate.
1214 * configure: Regenerate.
1216 2005-02-17 Zack Weinberg <zack@codesourcery.com>
1218 * ldexp.c (assigning_to_dot): New global flag.
1219 (fold_name): If assigning_to_dot is true, object immediately to
1220 an undefined symbol.
1221 (exp_fold_tree): Set and clear assigning_to_dot around the
1222 recursive call to exp_fold_tree to process the right-hand side
1223 of an assignment to the location counter.
1225 2005-02-17 Paul Brook <paul@codesourcery.com>
1227 * scripttempl/armbpabi.sc: Add dummy name to version block.
1229 2005-02-17 Alan Modra <amodra@bigpond.net.au>
1231 * ldexp.c (new_abs): Init new.str.
1233 2005-02-15 Mark Mitchell <mark@codesourcery.com>
1235 * configure.in (AC_CHECK_FUNCS): Add glob.
1236 * configure: Regenerated.
1237 * emultempl/elf32.em (<glob.h>): Do not include if HAVE_GLOB is
1239 (gld${EMULATION_NAME}_parse_ld_so_conf_include): Do not use glob
1240 if HAVE_GLOB is not defined.
1242 2005-02-16 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1244 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define
1245 lib_path if NATIVE is yes.
1247 2005-02-16 Alan Modra <amodra@bigpond.net.au>
1249 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Make
1250 an error creating fake bfd fatal.
1251 (ppc_before_allocation): Continue on after errors.
1252 (gld${EMULATION_NAME}_finish): Likewise.
1254 2005-02-15 Nick Clifton <nickc@redhat.com>
1256 * ldlex.l (YY_NO_UNPUT): Define so that the yy_unput function is
1257 not declared. It is not used and its presence causes a compile
1260 2005-02-11 Zack Weinberg <zack@codesourcery.com>
1262 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed):
1263 If st.st_ino is zero, do not treat the library as a duplicate.
1265 2005-02-10 Jakub Jelinek <jakub@redhat.com>
1267 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
1268 Set BFD_LINKER_CREATED on the stubs bfd.
1269 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
1272 2005-02-08 Mark Mitchell <mark@codesourcery.com>
1274 * scripttempl/armbpabi.sc (VERSION): Make special section symbols
1276 (Image$$ER_RO$$Base): Define whenever RELOCATING.
1277 (Image$$ER_RO$$Limit): Likewise.
1278 (SHT$$INIT_ARRAY$$Base): Likewise.
1279 (SHT$$INIT_ARRAY$$Limit): Likeise.
1281 2005-02-10 Ben Elliston <bje@au.ibm.com>
1283 * emultempl/beos.em: Remove #if 0 and #if 1 blocks.
1285 2005-02-08 Richard Sandiford <rsandifo@redhat.com>
1287 * configure.tgt (mips64*el-*-linux-gnu*): Define targ_extra_libpath
1288 to include o32 and n64 emulations.
1289 (mips64*-*-linux-gnu*): Likewise.
1291 2005-02-08 Hans-Peter Nilsson <hp@axis.com>
1293 * ldmain.c (warning_callback, warning_find_reloc): Prepend
1294 "warning: " to warning messages.
1296 2005-02-04 Alan Modra <amodra@bigpond.net.au>
1298 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't
1299 look up symbol for etree_provide here.
1301 2005-02-02 Daniel Jacobowitz <dan@codesourcery.com>
1303 * emulparams/elf32bmip.sh (TEXT_DYNAMIC): Always set.
1305 2005-02-01 Edward Welbourne <eddy@opera.com>
1306 Nick Clifton <nickc@redhat.com>
1308 * ld.texinfo (Source Code Reference): New node describing how to
1309 access linker script defined variables from source code.
1311 2005-02-01 Alan Modra <amodra@bigpond.net.au>
1313 * ld.texinfo: Clarify --as-needed operation.
1315 2005-01-31 Andrew Cagney <cagney@gnu.org>
1317 * configure: Regenerate to track ../gettext.m4.
1319 2005-01-31 Nick Clifton <nickc@redhat.com>
1321 * ldver.c (ldversion): Bump reported copyright date to 2005.
1323 2005-01-31 Nick Clifton <nickc@redhat.com>
1325 * configure.tgt: Remove obsolete targets m68k-lynxos and
1328 2005-01-28 Julian Brown <julian@codesourcery.com>
1330 * emultempl/armelf.em (fix_v4bx): New variable.
1331 (arm_elf_create_output_section_statements): Communicate fix_v4bx flag
1333 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_FIX_V4BX.
1334 (PARSE_AND_LIST_LONGOPTS): Add option --fix-v4bx.
1335 (PARSE_AND_LIST_OPTIONS): Add option --fix-v4bx.
1336 (PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX.
1337 * NEWS: Mention --fix-v4bx.
1338 * ld.texinfo: Document --fix-v4bx.
1340 2005-01-25 Mark Mitchell <mark@codesourcery.com>
1342 * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Define, so
1343 as to include .ARM.exidx$${Base,Limit}.
1344 * ld/scripttempl/armbpabi.sc: Move .plt to end of text segment.
1345 Define IMAGE$$ER_RO$${Base,Limit} and SHT$$INIT_ARRAY$${Base,Limit}.
1346 Put .init_array, .fini_array, etc. into the read-only data
1349 2005-01-25 Alan Modra <amodra@bigpond.net.au>
1351 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Formatting.
1352 (gld${EMULATION_NAME}_after_open): Ignore needed libs if they were
1353 only needed by an as-needed lib that didn't get linked.
1355 2005-01-23 Alan Modra <amodra@bigpond.net.au>
1357 * ld.texinfo (Output Section Keywords <CONSTRUCTORS>): Correct
1358 __DTOR_LIST__ description.
1360 2005-01-23 Alan Modra <amodra@bigpond.net.au>
1362 * ld.texinfo (Location Counter <dot outside sections>): Document
1363 effects of orphan section placement, and ". = ." workaround.
1364 * Makefile.in: Regenerate.
1366 2005-01-22 Richard Sandiford <rsandifo@redhat.com>
1368 * emulparams/elf32bmip.sh (OTHER_GOT_SECTIONS): Add ". = .;".
1369 * emulparams/elf32bmipn32-defs.sh (OTHER_GOT_SECTIONS): Likewise.
1371 2005-01-21 Jakub Jelinek <jakub@redhat.com>
1373 * ldgram.y (AS_NEEDED): New token.
1374 (input_list): Handle AS_NEEDED ( input_list ).
1375 * ldlex.l (AS_NEEDED): Add.
1376 * ld.texinfo: Document AS_NEEDED ().
1377 * NEWS: Mention AS_NEEDED ().
1379 2005-01-21 Ben Elliston <bje@au.ibm.com>
1381 * ldlang.c (lang_reasonable_defaults): Remove.
1382 (lang_process): Don't call lang_reasonable_defaults.
1384 * ldexp.c (exp_assop): Remove #if 0'd code.
1385 (exp_print_tree): Likewise.
1386 * ldlang.c (lang_memory_region_lookup): Likewise.
1387 (open_output): Likewise.
1388 (lang_do_assignments_1): Likewise.
1389 (lang_place_orphans): Likewise.
1390 (lang_enter_output_section_statement): Likewise.
1391 (lang_reasonable_defaults): Likewise.
1392 * ldlang.h (struct lang_input_statement_struct): Likewise.
1393 * mri.c (mri_draw_tree): Likewise.
1394 (mri_load): Likewise.
1395 * pe-dll.c (generate_reloc): Likewise.
1396 (make_import_fixup_entry): Likewise.
1397 (pe_as16): Likewise.
1398 * emultempl/beos.em (set_pe_subsystem): Likewise.
1399 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
1400 * emultempl/pe.em: Likewise.
1401 * emultempl/xtensaelf.em (xtensa_colocate_literals): Likewise.
1403 2005-01-20 Daniel Jacobowitz <dan@codesourcery.com>
1405 * Makefile.am (ALL_EMULATIONS): Add earmelfb_linux_eabi.o.
1406 (earmelfb_linux_eabi.c): New target.
1407 * Makefile.in: Regenerated.
1408 * configure.tgt (arm*b-*-linux-gnueabi): New target.
1409 * emulparams/armelfb_linux_eabi.sh: New file.
1411 2005-01-20 Nick Hudson <skrll@netbsd.org>
1414 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
1415 Handle bfd_elf32_hppa_nbsd_vec.
1417 2005-01-19 Richard Sandiford <rsandifo@redhat.com>
1419 * ldmain.h (ld_sysroot): Change type to a constant string.
1420 * ldmain.c (ld_sysroot): Likewise.
1421 (get_relative_sysroot, get_sysroot): New functions, adding command-line
1422 support for changing the sysroot.
1423 (main): Call the new functions.
1424 * lexsup.c (OPTION_SYSROOT): New.
1425 (ld_options): Add --sysroot.
1426 (parse_args): Add a dummy handler for it.
1427 * ld.texinfo (--sysroot): Document.
1428 * NEWS: Mention the new --sysroot option.
1430 2005-01-18 Alan Modra <amodra@bigpond.net.au>
1432 * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
1433 (lang_place_orphans): Don't abort on just_syms_flag, instead call
1436 2005-01-16 Danny Smith <dannysmith@users.sourceforge.net>
1438 * defilep.y (def_name, def_library): Combine into...
1439 (def_image_name): New function. Strip name to basename,
1442 2005-01-12 Mark Kettenis <kettenis@gnu.org>
1444 * configure.in: Be sure to invoke config.sub using the shell.
1445 * configure: Regenerate.
1447 2005-01-11 Alan Modra <amodra@bigpond.net.au>
1449 * configure.host: Correct sed patterns for last change.
1451 2005-01-10 Nick Clifton <nickc@redhat.com>
1454 * ldmisc.c (vfinfo): Add an extra argument: is_warning. Use this
1455 to determine whether config.make_executable should be set to FALSE in
1456 conjunction with config.fatal_warnings.
1457 (info_msg, minfo, lfinof): Pass FALSE as the extra argument.
1458 (einfo): Pass TRUE as the extra argument.
1460 2005-01-10 Greg Schaffer <gschafer@zip.com.au>
1462 * configure.host (linux targets): Use "${CC} -dumpspecs" instead
1463 of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0.
1464 (ia64-*-aix): Delete - this target is obsolete, and would be
1465 broken by this patch.
1467 2005-01-06 Eric Botcazou <ebotcazou@libertysurf.fr>
1469 * configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*.
1470 (sparc64-sun-solaris2*): New host.
1472 2005-01-06 Paul Brook <paul@codesourcery.com>
1474 * Makefie.am: Add earmelf_vxworks.
1475 * Makefile.in: Regenerate.
1476 * configure.tgt: Make arm-*-vxworks a separate case.
1477 * emulparams/armelf_vxworks.sh: New function.
1479 2005-01-06 Alan Modra <amodra@bigpond.net.au>
1481 * emultempl/ppc64elf.em (no_multi_toc): New var.
1482 (gld${EMULATION_NAME}_finish): Pass to ppc64_elf_setup_section_lists.
1483 (OPTION_NO_MULTI_TOC): Define.
1484 (PARSE_AND_LIST_LONGOPTS): Add --no-multi-toc support.
1485 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
1487 2005-01-05 Nick Clifton <nickc@redhat.com>
1490 * ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
1491 Standard's specification for parsable error messages.
1493 2005-01-04 Paul Brook <paul@codesourcery.com>
1495 * Makefile.am: Correct dependency for earmsymbian.c.
1496 * Makefile.in: Regenerate.
1498 2004-12-28 Danny Smith <dannysmith@users.sourceforge.net>
1500 * emultempl/pe.em (set_pe_subsystem): Change second arg to
1501 lang_add_entry to FALSE.
1503 2004-12-23 Nick Clifton <nickc@redhat.com>
1506 * emulparams/shelf.sh (.stack): Increase stack start address to
1509 2004-12-20 Nick Clifton <nickc@redhat.com>
1511 * ldmain.c (main): Issue an error message if -static and -shared
1514 2004-12-17 Jakub Jelinek <jakub@redhat.com>
1516 * ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
1517 * ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
1518 * ldlang.c (lang_size_sections): Use them to avoid wasting virtual
1519 address space at DATA_SEGMENT_ALIGN. Fix computation of expected
1520 PT_GNU_RELRO segment end.
1522 2004-12-14 P.J. Darcy <darcypj@us.ibm.com>
1524 * configure.tgt: Add s390x-ibm-tpf support.
1526 2004-12-16 Martin Kögler <mkoegler@auto.tuwien.ac.at>
1528 * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
1531 2004-12-07 Ben Elliston <bje@gnu.org>
1533 * ldemul.h: Forward declare struct option.
1535 2004-12-01 Danny Smith <dannysmith@users.sourceforge.net>
1537 * scripttempl/pe.sc (.data): Add .jcr subsection.
1539 2004-11-30 Paul Brook <paul@codesourcery.com>
1541 * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
1543 2004-11-30 Tero Niemela <tero_niemela@yahoo.com>
1545 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
1546 * Makefile.in: Regenerate.
1548 2004-11-26 Melissa Mears <asterisk@graces.dricas.com>
1550 * emultempl/pe.em: Add --subsystem:xbox as well as
1552 * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
1553 and numeric subsystems.
1555 2004-11-24 Alan Modra <amodra@bigpond.net.au>
1557 * ldexp.c (fold_name): Correct PR 338 fix.
1559 2004-11-19 Mark Mitchell <mark@codesourcery.com>
1561 * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
1562 (earmelf_linux_eabi.c): New target.
1563 * configure.tgt (arm*-*-linux-gnueabi): Handle it.
1564 * emulparams/armelf_linux_eabi.sh: New file.
1565 * Makefile.in: Regenerated.
1567 2004-11-19 Nick Clifton <nickc@redhat.com>
1570 * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
1571 LENGTH fields in the MEMORY command, to explicitly state that
1572 symbols cannot be used in their expressions.
1574 2004-11-19 Jon Beniston <jon@beniston.com>
1576 * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
1577 * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
1578 * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
1579 which return the length and origin of a memory.
1580 * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
1581 * NEWS: Mention support for ORIGIN and LENGTH operators.
1583 2004-11-17 Daniel Jacobowitz <dan@codesourcery.com>
1585 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
1586 a dynamic object for stubs.
1588 2004-11-04 Paul Brook <paul@codesourcery.com>
1590 * ld.texinfo: Document --default-imported-symver.
1591 * ldmain.c (main): Set link_info.default_imported_symver.
1592 * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
1593 (ld_options): Add --default-imported-symver.
1594 (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
1596 2004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
1597 Vineet Sharma <vineets@noida.hcltech.com>
1599 * Makefile.am: Add entries for new maxq-coff target.
1600 * Makefile.in: Regenerate.
1601 * configure.tgt: Add support for maxq.
1602 * emulparams/maxqcoff.sh: New File.
1603 * scripttempl/maxqcoff.sc: New linker script for target maxq.
1604 * NEWS: Mention the new target.
1606 2004-11-04 Daniel Jacobowitz <dan@debian.org>
1608 * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
1609 (earmelf_oabi.c): Remove rule.
1610 * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
1611 * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
1612 * Makefile.in: Regenerated.
1614 2004-11-04 Hans-Peter Nilsson <hp@axis.com>
1616 * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
1617 * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
1618 (FINI_START): Ditto.
1619 (INIT_END): Remove emitted "jump [sp+]".
1622 2004-11-04 Alan Modra <amodra@bigpond.net.au>
1624 * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
1625 (no_opd_opt, no_toc_opt): New static vars.
1626 (ppc_before_allocation): Don't edit opt if no_opd_opt. Call
1628 (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
1629 (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
1630 (PARSE_AND_LIST_OPTIONS): Describe new options.
1631 (PARSE_AND_LIST_ARGS_CASES): Handle them.
1633 2004-10-27 Nick Clifton <nickc@redhat.com>
1635 * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
1636 parameter to invocation of lang_section_start.
1637 * emultempl/aix.em (_handle_option): Likewise.
1639 * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
1640 eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
1641 * Makefile.in: Regenerate.
1643 2004-10-26 Mark Mitchell <mark@codesourcery.com>
1645 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
1646 __exidx_{start,end} when not relocating.
1648 2004-10-25 Mark Mitchell <mark@codesourcery.com>
1650 * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
1651 * ldexp.h (segment_type): New type.
1652 (segments): New variable.
1653 * ldexp.c (segments): New variable.
1654 (exp_print_token): Handle SEGMENT_START.
1655 (fold_binary): Likewise.
1656 * ldgram.y (SEGMENT_START): Declare it as a token.
1657 (exp): Handle SEGMENT_START.
1658 * ldlang.h (lang_address_statement_type): Add segment field.
1659 (lang_section_start): Change prototype.
1660 * ldlang.c (map_input_to_output_sections): Do not process section
1661 assignments if a corresponding SEGMENT_START has already been
1663 (lang_section_start): Add segment parameter.
1664 * ldlex.l (SEGMENT_START): Add it.
1665 * lexsup.c (seg_segment_start): New function.
1666 (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
1667 * ld.texinfo (SEGMENT_START): Document it.
1668 * emulparams/armsymbian.sh (EMBEDDED): Set it.
1669 * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
1670 base addresses. Do not map relocations.
1671 * NEWS: Mention SEGMENT_START.
1673 2004-10-26 Paul Brook <paul@codesourcery.com>
1675 * ld.texinfo: Document --default-symver.
1676 * ldmain.c (main): Set link_info.create_default_symver.
1677 * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
1678 (ld_options): Add default-symver.
1679 (parse_args): Handle OPTION_DEFAULT_SYMVER.
1681 2004-10-24 Danny Smith <dannysmith@users.sourceforge.net>
1683 * pe-dll.c (process_def_file): Don't export all symbols by default if
1684 building a position-independent executable.
1686 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
1689 * ldmain.c (reloc_overflow): Accept a pointer to struct
1690 bfd_link_hash_entry. Report symbol location for relocation
1693 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
1695 * genscripts.sh (libpath.exp): Really generate for first
1698 2004-10-19 Danny Smith <dannysmith@users.sourceforge.net>
1700 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
1701 comparison and replacement of filenames.
1703 2004-10-19 H.J. Lu <hongjiu.lu@intel.com>
1706 * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
1707 option on linker script as the one for linker script.
1709 2004-10-16 Daniel Jacobowitz <dan@debian.org>
1711 * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
1712 (check_excluded_libs): New.
1713 (load_symbols): Call check_excluded_libs.
1714 * ldlang.h (add_excluded_libs): New prototype.
1715 * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
1716 (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
1717 (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
1718 * ld.texinfo (Command Line Variables): Document --exclude-libs.
1719 (Options Specific to i386 PE Targets): Remove --exclude-libs.
1721 2004-10-15 Alan Modra <amodra@bigpond.net.au>
1723 * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
1724 failing link script assert.
1726 * ldctor.c (ldctor_add_set_entry): Fix comment typo.
1728 2004-10-14 H.J. Lu <hongjiu.lu@intel.com>
1731 * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
1732 (SMALL_DATA_DTOR): Set.
1733 * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
1734 (SMALL_DATA_DTOR): Unset.
1735 * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
1736 after .data. If SMALL_DATA_DTOR is set, move .dtors after
1739 2004-10-14 Alan Modra <amodra@bigpond.net.au>
1742 * ldlang.h (lang_output_section_statement_type): Make "next" a
1743 struct lang_output_section_statement_struct *.
1744 (struct orphan_save): Move from elf32.em. Add "name" and "flags".
1745 (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
1746 * ldlang.c (lang_output_section_find_1): Adjust for changed
1747 output_section_statement "next".
1748 (strip_excluded_output_sections): Likewise.
1749 (lang_record_phdrs): Likewise.
1750 (lang_output_section_find_by_flags): New function.
1751 (output_prev_sec_find): Move from pe.em. Adjust iterator.
1752 (lang_insert_orphan): New function. Tail end of elf32.em's
1753 place_orphan merged with that from pe.em. Allow bfd_section to
1754 be placed first. New heuristic for placing new output section
1755 statement in existing script, and accompanying split of __start
1756 symbol alignment into a separate assignment to dot.
1757 (lang_add_section): Consistently use output->bfd_section rather than
1758 an alias, section->output_section.
1759 (map_input_to_output_sections): Rename overly long arg. Move
1760 initialization of data_statement output section to here..
1761 (lang_check_section_addresses): ..from here.
1762 (print_assignment): Correct printing of etree_assert.
1763 (print_all_symbols): Don't bomb if userdata is NULL.
1764 (IGNORE_SECTION): Rearrange.
1765 * emultempl/elf32.em (output_rel_find): Adjust interator.
1766 (output_prev_sec_find): Delete.
1767 (struct orphan_save): Delete.
1768 (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
1769 flags without creating a duplicate output section statement.
1770 Revise code holding history of various orphan section placements.
1771 Allow orphan sections to place before script specified output
1772 sections. Call lang_output_section_find_by_flags when placement
1773 by name fails. Use lang_insert_orphan.
1774 * emultempl/mmo.em (output_prev_sec_find): Delete.
1775 (struct orphan_save): Delete.
1776 (mmo_place_orphan): Revise code holding history of orphan placement.
1777 Allow orphans to place before existing output sections. Use
1779 * emultempl/pe.em (output_prev_sec_find): Delete.
1780 (struct orphan_save): Delete.
1781 (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
1784 2004-10-13 Mark Mitchell <mark@codesourcery.com>
1786 * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
1789 2004-10-13 Alan Modra <amodra@bigpond.net.au>
1792 * ldcref.c (check_section_sym_xref): Delete.
1793 (check_local_sym_xref): New function.
1794 (check_nocrossrefs): Adjust call.
1795 * emultempl/pe.em (struct orphan_save): Add os_tail.
1796 (place_orphan): Backport assorted fixes from elf32.em.
1798 2004-10-12 Bob Wilson <bob.wilson@acm.org>
1800 * emultempl/xtensaelf.em: Use ISO C90 formatting.
1802 2004-10-11 Jakub Jelinek <jakub@redhat.com>
1804 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
1805 getline for portability.
1807 * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
1808 (gld${EMULATION_NAME}_parse_ld_so_conf,
1809 gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
1810 (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
1812 2004-10-11 Alan Modra <amodra@bigpond.net.au>
1815 * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
1816 rejected when linking statically.
1818 2004-10-08 Daniel Jacobowitz <dan@debian.org>
1820 * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
1822 2004-10-07 Bob Wilson <bob.wilson@acm.org>
1824 * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
1825 assembler-generated longcall sequences. Describe new --size-opt
1827 * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
1828 * emultempl/xtensaelf.em (remove_section,
1829 replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
1830 elf_xtensa_after_open): New.
1831 (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
1832 OPTION_NO_LITERAL_MOVEMENT): Define.
1833 (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
1834 (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
1835 (PARSE_AND_LIST_OPTIONS): Add --size-opt.
1836 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
1837 OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
1838 (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
1839 * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
1840 * Makefile.am (eelf32xtensa.c): Update dependencies.
1841 * Makefile.in: Regenerate.
1843 2004-10-07 Jeff Baker <jbaker@qnx.com>
1845 * lexsup.c: Handle --warn-shared-textrel option.
1846 (ld_options): Restore alpha sorting of options.
1847 * ldmain.c (main): Initialise warn_shared_info field to FALSE.
1848 * ld.texinfo: Add documentation for --warn-shared-textrel.
1849 * NEWS: Added mention of --warn-shared-textrel option.
1851 2004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
1853 * emultempl/crxelf.em (disable_relaxation): Add.
1854 (crxelf_before_allocation): Enable --relax option by default.
1855 (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
1856 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
1857 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
1859 2004-10-04 H.J. Lu <hongjiu.lu@intel.com>
1861 * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
1862 --sort-section name|alignment.
1864 * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
1865 --sort-section name|alignment.
1867 * ld.h (sort_type): New enum.
1868 (wildcard_spec): Change the type of `sorted' to sort_type.
1870 * ldgram.y (SORT): Removed.
1871 (SORT_BY_NAME): Added.
1872 (SORT_BY_ALIGNMENT): Added.
1873 (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
1875 (input_section_spec_no_keep): Updated `sorted'.
1876 (statement): Replace SORT with SORT_BY_NAME.
1878 * ldlang.c (compare_section): New function to compare 2
1879 sections with different sorting schemes.
1880 (wild_sort): Updated. Use compare_section.
1881 (update_wild_statements): New function.
1882 (lang_process): Call update_wild_statements before
1883 map_input_to_output_sections.
1885 * ldlex.l (SORT_BY_NAME): New.
1886 (SORT_BY_ALIGNMENT): New.
1887 (SORT): Return SORT_BY_NAME.
1889 * ldmain.c (sort_section): New. Defined.
1890 (main): Initialize it to none.
1892 * lexsup.c (option_values): Add OPTION_SORT_SECTION.
1893 (ld_options): Add an entry for OPTION_SORT_SECTION.
1894 (parse_args): Handle OPTION_SORT_SECTION.
1896 * mri.c (mri_draw_tree): Updated `sorted'.
1898 2004-10-04 Jakub Jelinek <jakub@redhat.com>
1900 * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
1901 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
1903 (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
1904 and . as second argument.
1905 (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
1906 * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
1907 (fold_binary): Add it here. Insert padding to make relro_end
1908 COMMONPAGESIZE bytes aligned. For DATA_SEGMENT_ALIGN in
1909 exp_dataseg_relro_adjust phase just use previously computed
1911 * ldlang.c (lang_size_sections): Set exp_data_seg.base for
1912 relro_adjust here. Call lang_size_sections_1 once more if there
1913 was too big padding at DATA_SEGMENT_RELRO_END.
1914 * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
1916 2004-10-01 Paul Brook <paul@codesourcery.com>
1918 * emulparams/armelf.sh: Add unwinding table sections.
1920 2004-09-30 Filip Navara <navaraf@reactos.com>
1922 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
1923 correct base address for position independant executables.
1924 * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
1925 executables as DLLs.
1927 2004-09-30 Paul Brook <paul@codesourcery.com>
1929 * ld.texinfo: Document --target2=abs.
1930 * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
1932 2004-09-29 Nick Clifton <nickc@redhat.com>
1934 * scripttempl/xstormy16.sc: Only perform the assignments to the
1935 ROM region when not performing a relocatable link. The ROM region
1936 does not start at address 0, but the sections will.
1937 * Makefile.am: Fix linker script dependency for the generation of
1939 * Makefile.in: Regenerate.
1941 2004-09-18 Filip Navara <navaraf@reactos.com>
1943 * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
1944 emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
1945 emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
1947 * scripttempl/pe.sc: Make the virtual address and file offset synced if
1948 the alignment is lower than the target page size.
1950 2004-09-27 Filip Navara <navaraf@reactos.com>
1952 * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
1953 def_file_parse to handle pe_def_file if NULL and prevent crash with
1956 2004-09-27 Alan Modra <amodra@bigpond.net.au>
1958 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
1959 --emit-stub-syms automatically when --emit-relocs.
1961 2004-09-24 Paul Brook <paul@codeosurcery.com>
1963 * scripttempl/elf.sc: Keep .preinit_array, .init_array and
1964 .fini_array sections.
1966 2004-09-19 Andreas Schwab <schwab@suse.de>
1968 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
1969 base so that relro end is suitably aligned.
1971 2004-09-17 Paul Brook <paul@codesourcery.com>
1973 * ld.texinfo: Rename arm-specific section. Document --target*
1974 * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
1975 * emulparams/armelf_linux.sh: Ditto.
1976 * emulparams/armelf_nbsd.sh: Ditto.
1977 * emultempl/armelf.em: Set default for TARGET2_TYPE.
1978 (target2_type): New variable.
1979 (arm_elf_before_allocation): Don't pass target1_type.
1980 (arm_elf_create_output_section_statements): New function.
1981 (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
1982 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
1983 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
1984 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
1985 * emultempl/armelf_oabi.em (_before_allocation): Remove extra
1986 argument to bfd_elf32_arm_process_before_allocation.
1988 2004-09-17 Alan Modra <amodra@bigpond.net.au>
1990 * ldexp.c (fold_name): Update u.undef.next refs.
1991 * emultempl/pe.em: Likewise.
1992 * emultempl/sunos.em: Likewise.
1994 2004-09-17 Alan Modra <amodra@bigpond.net.au>
1996 * Makefile.am: Run "make dep-am".
1997 * Makefile.in: Regenerate.
1998 * config.in: Regenerate.
1999 * configure: Regenerate.
2000 * aclocal.m4: Regenerate.
2001 * po/ld.pot: Regenerate.
2003 2004-09-16 Tomer Levi <Tomer.Levi@nsc.com>
2005 * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
2009 2004-09-16 Alan Modra <amodra@bigpond.net.au>
2011 * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
2012 to bfd_elf32_arm_process_before_allocation call.
2014 2004-09-13 Paul Brook <paul@codesourcery.com>
2016 * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
2017 * emultempl/armelf.em: Use TARGET1_IS_REL. Add --target1-{rel,abs}.
2019 2004-09-07 H.J. Lu <hongjiu.lu@intel.com>
2021 * configure: Regenerated with autconfig 2.13.
2023 2004-09-07 Andreas Schwab <schwab@suse.de>
2025 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
2026 alignment before adjusting DATA_SEGMENT_RELRO_END.
2028 2004-09-06 Mark Mitchell <mark@codesourcery.com>
2030 * emulparams/armsymbian.sh: Use armbpabi script.
2031 * scripttempl/armbpabi.sc: New script.
2033 2004-09-02 Mark Mitchell <mark@codesourcery.com>
2035 * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
2036 (earmsymbian.c): New target.
2037 * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
2038 * Makefile.in: Regenerated.
2039 * aclocal.m4: Likewise.
2040 * configure: Likewise.
2041 * emulparams/armsymbian.sh: New file.
2043 2004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
2045 * scripttempl/elf32crx.sc: Edit file with comments.
2046 (.init): Add new section.
2048 (.ctor): Control the linkage order.
2051 2004-08-27 Nick Clifton <nickc@redhat.com>
2053 * emultempl/pe.em (after_open): Do not assume that either bfd is
2056 2004-08-26 Alan Modra <amodra@bigpond.net.au>
2058 * ldlang.c (lang_init): Don't compare with TRUE.
2060 2004-08-25 Dmitry Diky <diwil@spec.ru>
2062 * emulparams/msp430all.sh: Fix RAM sizes for all targets.
2063 * scripttempl/elf32msp430.sc: Add .profiler section definition.
2065 2004-08-24 H.J. Lu <hongjiu.lu@intel.com>
2067 * ldlang.c (wildcardp): Defined as a macro with strpbrk.
2069 2004-08-19 Mark Mitchell <mark@codesourcery.com>
2071 * configure.tgt (arm*-*-symbianelf*): New target.
2072 (arm*-*-eabi*): Likewise.
2074 2004-08-19 Jakub Jelinek <jakub@redhat.com>
2076 * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
2077 (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
2078 (OPTION_NON_OVERLAPPING_OPD): Define.
2079 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
2080 --non-overlapping-opd option.
2082 2004-08-18 Alan Modra <amodra@bigpond.net.au>
2085 * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
2086 was already on the undefs list.
2088 2004-08-17 Alan Modra <amodra@bigpond.net.au>
2090 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
2091 prefix the symbol field too.
2093 2004-08-13 Alan Modra <amodra@bigpond.net.au>
2095 * ldmain.c (link_callbacks): Remove "error_handler".
2096 * ldmisc.c: Include elf-bfd.h.
2097 (vfinfo): Sort comment. Handle %A. Use %A instead of
2098 bfd_get_section_indent.
2099 (error_handler): Delete.
2100 * ldmisc.h (error_handler): Delete declaration.
2102 2004-08-10 Alan Modra <amodra@bigpond.net.au>
2104 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
2105 ppc64_elf_restore_symbols.
2107 2004-08-09 Alan Modra <amodra@bigpond.net.au>
2109 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
2110 .toc is too large on relocatable linking.
2112 2004-08-09 Alan Modra <amodra@bigpond.net.au>
2114 * emultempl/ppc64elf.em (ppc_after_open): Delete.
2115 (LDEMUL_AFTER_OPEN): Don't define.
2117 2004-08-02 Stephane Carrez <stcarrez@nerim.fr>
2119 * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
2121 2004-08-01 Stephane Carrez <stcarrez@nerim.fr>
2123 * scripttempl/elfm68hc12.sc: Align text, rodata and data section
2126 2004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
2128 * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
2130 2004-07-26 Dmitry Diky <diwil@spec.ru>
2132 * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
2133 msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
2135 * configure.tgt: Likewise.
2136 * emulparams/msp430all.sh: Likewise.
2137 * Makefile.in: Regenerate.
2139 2004-07-23 Nick Clifton <nickc@redhat.com>
2141 * emultempl/elf32.em (_place_orphan): Use an already existing
2142 section name if that section does not have any flags set.
2144 2004-07-21 H.J. Lu <hongjiu.lu@intel.com>
2146 * ldlang.c (already_linked_hash_entry): Removed.
2147 (already_linked): Likewise.
2148 (already_linked_table): Likewise.
2149 (section_already_linked): Call bfd_section_already_linked.
2150 (lang_process): Replace already_linked_table_init with
2151 bfd_section_already_linked_table_init and check return. Replace
2152 already_linked_table_free with bfd_section_already_linked_table_free.
2154 2004-07-21 Nick Clifton <nickc@redhat.com>
2156 * ldlang.c (init_os): Make sure that the newly allocated userdata
2157 structure is zeroed out.
2159 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
2161 * NEWS: Mention the new --add-needed/--no-add-needed and
2162 --as-needed/--no-as-needed options.
2164 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
2166 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
2167 check the add_needed field.
2168 (dt_needed): New struct.
2169 (gld${EMULATION_NAME}_try_needed): Change the first argument
2170 to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
2171 bit in the file where the DT_NEEDED entry comes from.
2172 (gld${EMULATION_NAME}_search_needed): Change the second
2173 argument to a pointer to struct dt_needed.
2174 (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
2175 (gld${EMULATION_NAME}_after_open): Likewise.
2177 * ld.texinfo: Add --add-needed document.
2178 * ldlang.c (new_afile): Set p->add_needed.
2179 * ldlang.h (lang_input_statement_type): Add add_needed field.
2180 * ldmain.h (add_needed): Declare.
2181 * ldmain.c (add_needed): New global var.
2182 * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
2183 OPTION_NO_ADD_NEEDED.
2184 (ld_options): Likewise.
2185 (parse_args): Handle them.
2187 2004-07-13 Christof Petig <christof@petig-baender.de>
2189 * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
2190 for endian-ness of extracted addend.
2192 2004-07-13 Danny Smith <dannysmith@usesr.sourceforge.net>
2194 * pe-dll.c (auto_export): Filter on just the import prefix,
2195 "_imp_", not "_imp__".
2197 2004-07-09 Nick Clifton <nickc@redhat.com>
2199 * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
2201 2004-07-06 Tomer Levi <Tomer.Levi@nsc.com>
2203 * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
2204 (eelf32crx.c): New target.
2205 * Makefile.in: Regenerate.
2206 * configure.tgt: Handle crx-*-elf*.
2207 * emulparams/elf32crx.sh: New file.
2208 * emultempl/crxelf.em: New file.
2209 * scripttempl/elf32crx.sc: New file.
2210 * NEWS: Mention new target.
2212 2004-07-06 Nick Clifton <nickc@redhat.com>
2214 * Makefile.am: Add eshlsymbian.c.
2215 * Makefile.in: Regenerate.
2216 * configure.tgt: Add sh*-symbian-elf target.
2217 * emulparams/shlsymbian.sh: New file. Configure the
2218 sh-symbian-elf linker scripts.
2219 * scripttemp/elf32sh-symbian.sc: New file. Linker script
2220 template for the sh-symbian-elf target.
2222 2004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2224 * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
2225 * emulparams/hppalinux.sh: Likewise.
2226 * scripttempl/elf.sc: Place .plt just before .got when .plt is in
2227 data segment and PLT_BEFORE_GOT is defined.
2229 2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
2231 * ld.texinfo (WIN32): Document PE weak symbols.
2233 2004-07-02 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2235 * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
2237 2004-07-01 H.J. Lu <hongjiu.lu@intel.com>
2239 * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
2242 2004-06-29 Alan Modra <amodra@bigpond.net.au>
2244 * ldlang.c (lang_reset_memory_regions): Save last relax pass section
2247 2004-06-24 Alan Modra <amodra@bigpond.net.au>
2249 * ldlang.c (print_output_section_statement): Don't print size before
2251 (IGNORE_SECTION): Remove bfd arg. Update all callers.
2253 * ldexp.c (fold_name): .. See below.
2254 * ldlang.c (section_already_linked, print_output_section_statement,
2255 print_input_section, insert_pad, size_input_section,
2256 lang_check_section_addresses, lang_size_sections_1,
2257 lang_size_sections, lang_do_assignments_1, lang_set_startof,
2258 lang_one_common, lang_reset_memory_regions, lang_process,
2259 lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
2260 * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
2261 * pe-dll.c (process_def_file, generate_reloc): ..
2262 * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
2263 gld${EMULATION_NAME}_before_allocation): ..
2264 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
2265 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
2266 sh64_elf_${EMULATION_NAME}_after_allocation): ..
2267 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
2268 * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
2269 ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
2270 "size" instead of "_raw_size" and "_cooked_size". Expand
2271 bfd_section_size macro invocations.
2273 2004-06-22 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
2275 * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
2276 ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
2277 ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
2279 (.tls): Define ___tls_start__ and ___tls_end__.
2281 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
2283 * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
2285 2004-06-18 Adam Nemet <anemet@lnxw.com>
2287 * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
2288 * configure: Regenerate.
2290 2004-06-15 Jakub Jelinek <jakub@redhat.com>
2292 * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
2293 .gcc_except_table output sections lost accidentally with
2296 2004-06-15 Alan Modra <amodra@bigpond.net.au>
2298 * ldwrite.c (build_link_order): Use bfd_get_section_size
2299 instead of bfd_get_section_size_before_reloc or _raw_size.
2300 * pe-dll.c (process_def_file): Likewise.
2302 2004-06-14 Alan Modra <amodra@bigpond.net.au>
2304 From Richard Wirth <r.wirth@wirthware.de>
2305 * ldlang.c (lang_finish): Don't free lang_definedness_table.
2307 2004-05-29 Alan Modra <amodra@bigpond.net.au>
2309 * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
2310 (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
2312 2004-05-28 Alan Modra <amodra@bigpond.net.au>
2314 * ldlang.c: Formatting. Wrap long lines, expand bfd_get_section_flags
2316 * lexsup.c: Formatting. Wrap long lines.
2317 * ldwrite.c: Update copyright date.
2319 * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
2320 (output_section_callback): Nor SEC_KEEP here.
2321 (gc_section_callback): Twiddle SEC_EXCLUDE here.
2322 (lang_gc_wild): Delete. Fold into..
2323 (lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage
2325 (lang_process): Always call lang_gc_sections.
2326 (lang_place_orphans): Handle SEC_EXCLUDE sections.
2327 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
2330 2004-05-26 H.J. Lu <hongjiu.lu@intel.com>
2332 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
2333 SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
2334 * ldlang.c (lang_add_section): Likewise.
2336 2004-05-26 Alan Modra <amodra@bigpond.net.au>
2338 * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
2339 sections when doing a final link. Clear SEC_EXCLUDE when doing
2340 a relocable link, except for SEC_DEBUGGING sections.
2341 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
2342 same condition here to drop SEC_EXCLUDE orphan sections.
2344 2004-05-25 Alan Modra <amodra@bigpond.net.au>
2346 * ldlang.c (lang_process): Call bfd_merge_sections later, and
2347 only when not a relocatable link.
2348 (print_input_section): Handle SEC_EXCLUDE sections.
2349 (size_input_section): Don't update dot on SEC_EXCLUDE sections.
2350 (lang_do_assignments_1): Likewise.
2351 * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
2352 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
2353 * emultempl/hppaelf.em (build_section_lists): Likewise.
2354 * emultempl/ppc64elf.em (build_toc_list): Likewise.
2355 (build_section_lists): Likewise.
2357 2004-05-23 Andreas Schwab <schwab@suse.de>
2359 * ld.texinfo (Options): Fix typo in last change.
2361 2004-05-21 Andy Chittenden <achittenden@bluearc.com>
2363 * ld.h (ld_config_type): Add new field: hash_table_size.
2364 * ldmain.c: Initialise the new field to zero. If it is non-zero
2365 after parsing the linker's command line call
2366 bfd_hash_set_default_size.
2367 * lexsup.c (option_values): Add OPTION_HASH_SIZE.
2368 (ld_options): Add hash-size.
2369 (parse_args): Parse --hash-size option. Allow
2370 --reduce-memory-overheads to set the default hash table size as
2372 * ld.texinfo: Document the new switch. Also mention that
2373 --reduce-memory-overheads can affect the hash table size.
2374 * NEWS: Mention the new feature.
2376 2004-05-19 J"orn Rennecke <joern.rennecke@superh.com>
2378 * NEWS: Mention new linker map file generation and the
2379 --reduce-memory-overheads option.
2380 * ld.texinfo: Document --reduce-memory-overheads option.
2381 * ld.h (map_symbol_def): New struct.
2382 (struct user_section_struct, section_userdata_type): Rename to:
2383 (struct lean_user_section_struct, lean_section_userdata_type).
2384 (struct fat_user_section_struct, fat_section_userdata_type): New.
2385 (SECTION_USERDATA_SIZE): Define.
2386 (args_type): New member reduce_memory_overheads.
2387 * ldlang.c (map_obstack): New static variable.
2388 (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
2389 (lang_map): Unless command_line.reduce_memory_overheads is set,
2390 initialize lists of defined symbols for each section.
2391 (print_input_section): Unless command_line.reduce_memory_overheads
2392 is set, use print_all_symbols.
2393 (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
2394 * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
2395 * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
2396 (ld_options): Add entry for --reduce-memory-overheads.
2397 (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
2399 2004-05-19 Jakub Jelinek <jakub@redhat.com>
2401 * ldgram.y (sect_constraint): New.
2402 (ONLY_IF_RO, ONLY_IF_RW): New tokens.
2403 (section): Add sect_constraint. Pass additional argument
2404 to lang_enter_output_section_statement.
2405 * mri.c (mri_draw_tree): Pass additional argument to
2406 lang_enter_output_section_statement.
2407 * emultempl/pe.em (place_orphan): Likewise.
2408 (output_prev_sec_find): Disregard output section statements with
2410 * emultempl/mmo.em (output_prev_sec_find): Likewise.
2411 (mmo_place_orphan): Pass additional argument to
2412 lang_enter_output_section_statement.
2413 * emultempl/elf32.em (output_prev_sec_find): Disregard output section
2414 statements with constraint == -1.
2415 (place_orphan): Pass additional argument to
2416 lang_enter_output_section_statement.
2417 * ldlang.c (lang_enter_overlay_section): Likewise.
2418 (lang_output_section_find_1): New.
2419 (lang_output_section_find): Use it.
2420 (lang_output_section_statement_lookup_1): New.
2421 (lang_output_section_statement_lookup): Use it.
2422 (check_section_callback, check_input_sections): New.
2423 (map_input_to_output_sections): Check if all input sections
2424 are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
2425 (strip_excluded_output_sections): Disregard output section statements
2426 with constraint == -1.
2427 (lang_record_phdrs): Likewise.
2428 (lang_enter_output_section_statement): Add constraint argument.
2429 Use lang_output_section_statement_lookup_1.
2430 * ldlang.h (lang_output_section_statement_type): Add constraint
2431 and all_input_readonly fields.
2432 (lang_enter_output_section_statement): Adjust prototype.
2433 * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
2434 * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
2435 segment if all input sections are readonly.
2437 2004-05-19 Adam Nemet <anemet@lnxw.com>
2439 * scripttempl/i386lynx.sc: Remove file.
2441 2004-05-17 Bob Wilson <bob.wilson@acm.org>
2443 * ld.texinfo (Output Section Address): Correct subsection name.
2445 2004-05-17 Adam Nemet <anemet@lnxw.com>
2447 * configure.tgt (powerpc-*-lynxos* case): New case.
2448 * configure.host (i[3-7]86-*-lynxos* case): Remove case.
2449 * emulparams/ppclynx.sh: New file.
2450 * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
2451 * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
2452 (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
2453 (eppclynx.c): New rule.
2454 * Makefile.in: Regenerate.
2456 2004-05-13 Joel Sherrill <joel@oarcorp.com>
2458 * configure.tgt (or32-*-rtems*): Switch to elf and
2459 support versioned targets.
2461 2004-05-13 Nick Clifton <nickc@redhat.com>
2463 * po/fr.po: Updated French translation.
2465 2004-05-11 Jakub Jelinek <jakub@redhat.com>
2467 * genscripts.sh: Generate -z combreloc -z now -z relro scripts
2468 for binaries, -shared and -pie.
2469 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
2470 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
2471 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
2472 (OTHER_RELRO_SECTIONS): ... this.
2473 * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
2474 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
2475 -z relro and -z norelro.
2476 (gld${EMULATION_NAME}_list_options): Add it to usage.
2477 (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
2478 -z relro scripts when appropriate.
2479 * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
2480 Create separate .got.plt section if SEPARATE_GOTPLT.
2481 Move sections which are only written during relocation handling
2482 to the beginning of RW segment. If NO_SMALL_DATA, move .got
2483 before .data. Add DATA_SEGMENT_RELRO_END directive.
2484 Include OTHER_RELRO_SECTIONS.
2485 * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
2486 * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
2487 (fold_unary): Likewise.
2488 (fold_binary): Handle -z relro.
2489 * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
2490 exp_dataseg_relro_adjust phases. Add relro_end field.
2491 * ldmain.c (main): Initialize link_info.relro to FALSE.
2492 * ldlang.c (lang_size_sections): Handle -z relro.
2494 2004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
2496 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
2498 2004-05-07 J"orn Rennecke <joern.rennecke@superh.com>
2500 * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
2501 before printing it with %W.
2503 2004-05-07 Brian Ford <ford@vss.fsi.com>
2504 DJ Delorie <dj@redhat.com>
2506 * emultempl/pe.em (real_flags): New static.
2507 (OPTION_LARGE_ADDRESS_AWARE): New define.
2508 (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
2509 (gld_${EMULATION_NAME}_list_options): Likewise.
2510 (gld${EMULATION_NAME}_handle_option): Likewise.
2511 (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
2512 * ld.texinfo: Document it.
2515 2004-05-07 Brian Ford <ford@vss.fsi.com>
2517 * NEWS: Mention DWARF 2 support for i386pe.
2519 2004-05-05 Alexandre Oliva <aoliva@redhat.com>
2521 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
2524 2004-04-30 Alan Modra <amodra@bigpond.net.au>
2526 * ldlang.c (unique_section_p): Pass section parm, return true on
2528 (output_section_callback): Adjust.
2529 * ldlang.h (unique_section_p): Update prototype.
2530 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
2532 2004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
2534 * ld.texinfo (--gc-sections): Remove restriction for
2537 2004-04-29 Brian Ford <ford@vss.fsi.com>
2539 * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
2540 for DWARF 2/3. Update stab section's syntax.
2542 2004-04-29 Alan Modra <amodra@bigpond.net.au>
2544 * pe-dll.c: Revert changes accidentally committed 2004-03-08.
2545 (fill_edata): Correct pointer arithmetic.
2547 2004-04-21 Chris Demetriou <cgd@broadcom.com>
2549 * ld.texinfo: Remove MIPS --embedded-relocs documentation.
2550 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
2551 * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
2552 (EXTRA_EM_FILE): Use mipsecoff.em
2553 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
2554 (EXTRA_EM_FILE): Use mipsecoff.em
2555 * emultempl/mipsecoff.em: Restructure to be included as an
2556 extra emulation file.
2557 (check_sections, gld${EMULATION_NAME}_after_open)
2558 (gld${EMULATION_NAME}_after_allocation)
2559 (gld${EMULATION_NAME}_get_script)
2560 (ld_${EMULATION_NAME}_emulation): Remove
2561 (gld${EMULATION_NAME}_before_parse): Rename to...
2562 (mipsecoff_before_parse): This.
2563 (LDEMUL_BEFORE_PARSE): Define.
2564 * emultempl/mipself.em: Remove file.
2565 * scripttempl/mips.sc (.rel.sdata): Do not include in output.
2566 (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
2568 * Makefile.am: Remove dependencies on emultempl/mipself.em.
2569 * Makefile.in: Regenerate.
2571 2004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
2573 * ld.texinfo (synthesizing on H8/300): Information about linker
2574 relaxation support for bit manipulation instructions and system
2575 control instructions is added.
2577 2004-04-21 Hans-Peter Nilsson <hp@axis.com>
2579 * NEWS: Mention change in DEFINED semantics.
2581 2004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
2583 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
2584 (.data): Add KEEP for .gnu.linkonce.d.*personality*.
2585 (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
2587 2004-04-21 Ben Elliston <bje@au.ibm.com>
2589 * ld.texinfo (Simple Example): Add missing punctuation.
2591 2004-04-20 Chris Demetriou <cgd@broadcom.com>
2593 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
2595 2004-04-19 Jakub Jelinek <jakub@redhat.com>
2597 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
2600 2004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
2602 * scriptempl/pe.sc: Put numbered .ctors.* after .ctors
2603 with default priority. Likewise for dtors.
2605 2004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2607 * configure.host: Remove mips*-dec-bsd* target.
2608 * configure.tgt: Likewise.
2610 2004-04-08 Richard Sandiford <rsandifo@redhat.com>
2612 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
2613 * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
2614 * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
2615 * emultempl/irix.em: New file.
2616 * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
2618 * Makefile.in: Regenerate.
2620 2004-04-01 Paul Brook <paul@codesourcery.com>
2622 * emultempl/armelf.em (byteswap_code): Add.
2623 (arm_elf_before_allocation): Pass extra parameter.
2624 (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
2625 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
2626 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
2627 * emultempl/armelf_oabi.em: Pass extra parameter.
2628 * ld.texinfo: Document --be8.
2630 2004-03-30 Stan Shebs <shebs@apple.com>
2632 Remove long-obsolete MPW support.
2633 * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
2634 * Makefile.am (mpw): Remove file-presynthesizing actions.
2635 * Makefile.in: Likewise.
2636 * ldfile.c (slash): Remove MPW case.
2637 * ldlex.l [MPW]: Remove unused definition.
2639 2004-03-30 Galit Heller <Galit.Heller@nsc.com>
2641 * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
2642 (eelf32cr16c.c): New target.
2643 * Makefile.in: Regenerate.
2644 * configure.tgt: Handle cr16c-*-elf*.
2645 * emulparams/elf32cr16c.sh: New file.
2646 * scripttempl/elfcr16c.sc: Likewise
2647 * NEWS: Mention support for new target.
2649 2004-03-30 Nick Clifton <nickc@redhat.com>
2651 * po/sv.po: Updated Swedish translation.
2653 2004-03-27 Alan Modra <amodra@bigpond.net.au>
2655 * emultempl/elf32.em: Update new bfd_elf_discard_info name.
2656 * emultempl/hppaelf.em: Likewise.
2657 * emultempl/ppc64elf.em: Likewise.
2658 * emultempl/sh64elf.em: Likewise.
2660 2004-03-25 Alan Modra <amodra@bigpond.net.au>
2662 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
2663 size_dynamic_sections call.
2665 2004-03-23 Alan Modra <amodra@bigpond.net.au>
2668 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
2669 link_info.wrap_char.
2671 2004-03-20 H.J. Lu <hongjiu.lu@intel.com>
2673 * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
2674 or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
2676 2004-03-20 Alexandre Oliva <aoliva@redhat.com>
2678 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
2680 2004-03-19 Alan Modra <amodra@bigpond.net.au>
2682 * config.in: Regenerate.
2683 * po/ld.pot: Regenerate.
2685 2004-03-18 Alan Modra <amodra@bigpond.net.au>
2687 * ld.texinfo: Add --as-needed doco.
2688 * ldmain.c (as_needed): New global var.
2689 * ldmain.h (as_needed): Declare.
2690 * lexsup.c (option_values): Add OPTION_AS_NEEDED and
2691 OPTION_NO_AS_NEEDED.
2692 (ld_options): Likewise.
2693 (parse_args): Handle them.
2694 * ldlang.h (lang_input_statement_type): Add as_needed field.
2695 * ldlang.c (new_afile): Set p->as_needed.
2696 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
2697 (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
2698 (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
2700 * ldlang.c (open_input_bfds): Remove useless cast.
2701 (lang_do_assignments_1): Likewise.
2702 (lang_for_each_input_section): Delete.
2704 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2706 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
2708 2004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
2710 * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
2711 private when building implib.
2713 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
2715 * ldlang.c (lang_add_section): Don't force SEC_LOAD on
2717 (IGNORE_SECTION): Ignore .tbss sections too.
2718 (lang_size_sections_1): .tbss sections do not advance dot.
2720 2004-03-01 Andreas Schwab <schwab@suse.de>
2722 * ld.texinfo (Options): Fix example for --wrap.
2724 2004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
2726 * pe-dll.c (fill_edata): Check that exported_symbol_sections is
2729 2004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
2731 * ldlang.c (lang_check): Use %P, not %E, in error message.
2733 2004-02-23 Nathan Sidwell <nathan@codesourcery.com>
2735 * ldlang.h (struct lang_output_section_state): Change processed
2737 * ldexp.c (check, invalid): Remove.
2738 (fold_name): Move valid_p assignments. Create undefined symbol
2739 when needed. Directly exampine section's processd flag.
2740 * ldlang.c (lang_output_section_statement_lookup): Adjust
2741 processed field init.
2742 (lang_size_sections_1): Allow LOADADDR when determining section's
2743 VMA. Adjust error message. Fold data statement's expr.
2744 (lang_size_sections): Correctly increment lang_statement_iteration.
2746 2004-02-23 Alan Modra <amodra@bigpond.net.au>
2748 * ldexp.c (fold_tree): Follow indirect symbols.
2750 2004-02-20 Nathan Sidwell <nathan@codesourcery.com>
2752 * ldgram.y (exp): Add two operand ALIGN.
2753 * ldexp.c (fold_binary): Add ALIGN_K case.
2754 * ld.texinfo (ALIGN): Document two operand version.
2756 2004-02-19 Nathan Sidwell <nathan@codesourcery.com>
2758 * ldlang.c (map_input_to_output_sections): Initialize sections
2759 mentioned in a data statement expression.
2760 (lang_do_assignments_1): Add data statement's expression's
2763 2004-02-18 Nathan Sidwell <nathan@codesourcery.com>
2765 * ldgram.y (statement_anywhere): Add assert rule.
2766 * ldlang.c (exp_init_os): Add assert case.
2768 2004-02-14 Andrew Cagney <cagney@redhat.com>
2770 * ldmain.c (remove_output): Call bfd_cache_close.
2772 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
2774 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
2775 .MIPS.content* and .MIPS.events* sections.
2777 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
2779 * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
2780 .note.gnu.arm.ident to after allocated sections. Mark its
2783 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
2785 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
2786 * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
2787 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
2788 * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
2789 * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
2791 2004-02-05 Nick Clifton <nickc@redhat.com>
2793 * emultempl/pe.em (_after_open): Fix typo in previous delta.
2795 2004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
2797 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
2799 2004-01-28 Alan Modra <amodra@bigpond.net.au>
2801 * genscripts.sh: Fix typo.
2803 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
2805 2004-01-24 Jakub Jelinek <jakub@redhat.com>
2807 * emulparams/elf64_ia64.sh: Put .rela.opd into
2808 OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
2810 2004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
2812 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
2813 * ld.texinfo (--omagic): Note that writable text section
2814 does not conform to published PE-COFF specs.
2815 (--enable-auto-import): Likewise.
2817 2004-01-15 Alan Modra <amodra@bigpond.net.au>
2819 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
2821 2004-01-13 Nick Clifton <nickc@redhat.com>
2823 * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
2824 which if true will prevent the LMA region being used as a
2825 replacement for a default VMA region.
2826 (lang_leave_output_section_statement): Pass extra parameter.
2827 (lang_leave_overlay): Likewise.
2828 * ld.texinfo (Output Section LMA): Document that the LMA
2829 region can be set to the VMA region if no VMA has been set.
2830 * ldlang.h (struct lang_output_section_phdr_list): Create a
2831 typedef for this type. Minor formatting fixes.
2833 2004-01-13 Nick Clifton <nickc@redhat.com>
2835 * ldlang.c (lang_size_sections_1): If dot is advanced, then
2836 assume that the section should be allocated.
2838 2004-01-13 Alan Modra <amodra@bigpond.net.au>
2840 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
2841 sections. Do ignore SEC_NEVER_LOAD sections.
2842 (lang_size_sections_1): Remove test made redundant with the above.
2844 2004-01-09 Alan Modra <amodra@bigpond.net.au>
2846 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
2847 program_header_size.
2849 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
2851 2003-11-28 Alexandre Oliva <aoliva@redhat.com>
2852 * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
2853 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
2854 * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
2855 (MAXPAGESIZE): Set to 64Kb.
2856 (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
2857 __ROFIXUP_END__. Don't map .rofixup.got any more.
2858 * emulparams/elf32frv.sh (NOP): Set.
2859 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
2860 * configure.tgt: Add frv-*-*linux*.
2861 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
2862 * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
2863 (eelf32frvfd.c): New.
2864 * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
2865 * emulparams/elf32frv.sh: Reverted previous two patches.
2866 * emulparams/elf32frvfd.sh: New.
2867 * Makefile.in: Rebuilt.
2868 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
2869 * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
2870 .rofixup.got to .rofixup.
2871 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
2872 * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
2873 (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
2875 2004-01-05 Jakub Jelinek <jakub@redhat.com>
2877 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
2878 * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
2880 2004-01-03 Alan Modra <amodra@bigpond.net.au>
2882 * ldexp.c (align_n): Make static.
2883 * ldexp.h (align_n): Delete declaration.
2884 * ldlang.h (lang_enter_output_section_statement): Remove
2886 * ldlang.c (lang_enter_output_section_statement): Likewise.
2887 (TO_ADDR, TO_SIZE): Define.
2888 (opb_shift): New var.
2889 (init_opb): New function.
2890 (print_input_section): Call init_opb and use TO_ADDR.
2891 (print_data_statement, print_reloc_statement): Likewise.
2892 (print_padding_statement): Likewise.
2893 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
2894 (lang_check_section_addresses): Likewise.
2895 (lang_size_sections_1): Likewise.
2896 (lang_do_assignments_1): Likewise.
2897 (lang_set_startof): Likewise.
2898 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
2899 (lang_process): Call init_opb.
2900 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
2901 (lang_enter_overlay_section): Adjust
2902 lang_enter_output_section_statement call.
2903 * ldgram.y: Likewise.
2904 * mri.c (mri_draw_tree): Likewise.
2905 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
2906 * emultempl/mmo.em (mmo_place_orphan): Likewise.
2907 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
2909 * ldfile.c (ldfile_set_output_arch): Add defarch param.
2910 * ldfile.h (ldfile_set_output_arch): Ditto.
2911 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
2912 ldfile_set_output_arch.
2913 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
2914 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
2915 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
2916 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2917 * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
2918 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
2919 * ldgram.y: Adjust ldfile_set_output_arch call.
2920 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2921 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
2922 * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
2923 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
2924 * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
2925 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2926 * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2928 2004-01-02 Bernardo Innocenti <bernie@develer.com>
2930 * configure.tgt: Add m68k-uClinux target.
2932 For older changes see ChangeLog-0203
2938 version-control: never