1 2005-03-14 Alan Modra <amodra@bigpond.net.au>
3 * po/tr.po: Commit new Turkish translation.
5 2005-03-11 Daniel Jacobowitz <dan@codesourcery.com>
7 * Makefile.am: Remove references to em68klynx.o and esparclynx.o.
8 * Makefile.in: Regenerated.
9 * emulparams/m68klynx.sh, emulparams/sparclynx.sh: Remove.
11 2005-03-07 Nick Clifton <nickc@redhat.com>
13 * po/fr.po: Updated translation.
15 2005-03-05 Alan Modra <amodra@bigpond.net.au>
17 * po/ld.pot: Regenerate.
19 2005-03-02 Jan Beulich <jbeulich@novell.com>
21 * ldmain.c (remove_output): Use unlink_if_ordinary instead of unlink.
22 * pe-dll.c (pe_dll_generate_implib): Likewise.
24 2005-02-24 Ben Elliston <bje@au.ibm.com>
26 * ldfile.c: Remove GNU960 conditional code.
27 * emultempl/gld960.em: Likewise.
28 * emultempl/gld960c.em: Likewise.
29 * emultempl/lnk960.em: Likewise.
31 2005-02-24 Nick Clifton <nickc@redhat.com>
33 * emultempl/lnk960.em (lnk960_before_parse): Remove redundant
34 empty string from calls to concat.
36 2005-02-23 Nick Clifton <nickc@redhat.com>
38 * emultempl/lnk960.em (lnk960_before_parse): Terminate list of
39 arguments passed to concat() with a NULL.
41 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h because they
42 define types needed by ldfile.h
44 2005-02-23 Alan Modra <amodra@bigpond.net.au>
46 * pe-dll.c: Warning fixes.
47 * emultempl/sunos.em: Likewise.
49 2005-02-22 Daniel Jacobowitz <dan@codesourcery.com>
51 * ldlang.c (section_already_linked): Don't call
52 bfd_section_already_linked for dynamic objects.
54 2005-02-22 Alan Modra <amodra@bigpond.net.au>
56 * ldexp.c: Warning fixes.
57 * ldwrite.c: Likewise.
58 * emultempl/elf32.em: Likewise.
60 2005-02-21 H.J. Lu <hongjiu.lu@intel.com>
62 * ldlang.c (lang_add_section): Check SEC_TIC54X_BLOCK for TI
64 (lang_size_sections_1): Check SEC_COFF_SHARED_LIBRARY for COFF
65 and ECOFF output only.
67 2005-02-21 Alan Modra <amodra@bigpond.net.au>
69 * config.in: Regenerate.
70 * configure: Regenerate.
72 2005-02-17 Zack Weinberg <zack@codesourcery.com>
74 * ldexp.c (assigning_to_dot): New global flag.
75 (fold_name): If assigning_to_dot is true, object immediately to
77 (exp_fold_tree): Set and clear assigning_to_dot around the
78 recursive call to exp_fold_tree to process the right-hand side
79 of an assignment to the location counter.
81 2005-02-17 Paul Brook <paul@codesourcery.com>
83 * scripttempl/armbpabi.sc: Add dummy name to version block.
85 2005-02-17 Alan Modra <amodra@bigpond.net.au>
87 * ldexp.c (new_abs): Init new.str.
89 2005-02-15 Mark Mitchell <mark@codesourcery.com>
91 * configure.in (AC_CHECK_FUNCS): Add glob.
92 * configure: Regenerated.
93 * emultempl/elf32.em (<glob.h>): Do not include if HAVE_GLOB is
95 (gld${EMULATION_NAME}_parse_ld_so_conf_include): Do not use glob
96 if HAVE_GLOB is not defined.
98 2005-02-16 Kaz Kojima <kkojima@rr.iij4u.or.jp>
100 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define
101 lib_path if NATIVE is yes.
103 2005-02-16 Alan Modra <amodra@bigpond.net.au>
105 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Make
106 an error creating fake bfd fatal.
107 (ppc_before_allocation): Continue on after errors.
108 (gld${EMULATION_NAME}_finish): Likewise.
110 2005-02-15 Nick Clifton <nickc@redhat.com>
112 * ldlex.l (YY_NO_UNPUT): Define so that the yy_unput function is
113 not declared. It is not used and its presence causes a compile
116 2005-02-11 Zack Weinberg <zack@codesourcery.com>
118 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed):
119 If st.st_ino is zero, do not treat the library as a duplicate.
121 2005-02-10 Jakub Jelinek <jakub@redhat.com>
123 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
124 Set BFD_LINKER_CREATED on the stubs bfd.
125 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
128 2005-02-08 Mark Mitchell <mark@codesourcery.com>
130 * scripttempl/armbpabi.sc (VERSION): Make special section symbols
132 (Image$$ER_RO$$Base): Define whenever RELOCATING.
133 (Image$$ER_RO$$Limit): Likewise.
134 (SHT$$INIT_ARRAY$$Base): Likewise.
135 (SHT$$INIT_ARRAY$$Limit): Likeise.
137 2005-02-10 Ben Elliston <bje@au.ibm.com>
139 * emultempl/beos.em: Remove #if 0 and #if 1 blocks.
141 2005-02-08 Richard Sandiford <rsandifo@redhat.com>
143 * configure.tgt (mips64*el-*-linux-gnu*): Define targ_extra_libpath
144 to include o32 and n64 emulations.
145 (mips64*-*-linux-gnu*): Likewise.
147 2005-02-08 Hans-Peter Nilsson <hp@axis.com>
149 * ldmain.c (warning_callback, warning_find_reloc): Prepend
150 "warning: " to warning messages.
152 2005-02-04 Alan Modra <amodra@bigpond.net.au>
154 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't
155 look up symbol for etree_provide here.
157 2005-02-02 Daniel Jacobowitz <dan@codesourcery.com>
159 * emulparams/elf32bmip.sh (TEXT_DYNAMIC): Always set.
161 2005-02-01 Edward Welbourne <eddy@opera.com>
162 Nick Clifton <nickc@redhat.com>
164 * ld.texinfo (Source Code Reference): New node describing how to
165 access linker script defined variables from source code.
167 2005-02-01 Alan Modra <amodra@bigpond.net.au>
169 * ld.texinfo: Clarify --as-needed operation.
171 2005-01-31 Andrew Cagney <cagney@gnu.org>
173 * configure: Regenerate to track ../gettext.m4.
175 2005-01-31 Nick Clifton <nickc@redhat.com>
177 * ldver.c (ldversion): Bump reported copyright date to 2005.
179 2005-01-31 Nick Clifton <nickc@redhat.com>
181 * configure.tgt: Remove obsolete targets m68k-lynxos and
184 2005-01-28 Julian Brown <julian@codesourcery.com>
186 * emultempl/armelf.em (fix_v4bx): New variable.
187 (arm_elf_create_output_section_statements): Communicate fix_v4bx flag
189 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_FIX_V4BX.
190 (PARSE_AND_LIST_LONGOPTS): Add option --fix-v4bx.
191 (PARSE_AND_LIST_OPTIONS): Add option --fix-v4bx.
192 (PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX.
193 * NEWS: Mention --fix-v4bx.
194 * ld.texinfo: Document --fix-v4bx.
196 2005-01-25 Mark Mitchell <mark@codesourcery.com>
198 * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Define, so
199 as to include .ARM.exidx$${Base,Limit}.
200 * ld/scripttempl/armbpabi.sc: Move .plt to end of text segment.
201 Define IMAGE$$ER_RO$${Base,Limit} and SHT$$INIT_ARRAY$${Base,Limit}.
202 Put .init_array, .fini_array, etc. into the read-only data
205 2005-01-25 Alan Modra <amodra@bigpond.net.au>
207 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Formatting.
208 (gld${EMULATION_NAME}_after_open): Ignore needed libs if they were
209 only needed by an as-needed lib that didn't get linked.
211 2005-01-23 Alan Modra <amodra@bigpond.net.au>
213 * ld.texinfo (Output Section Keywords <CONSTRUCTORS>): Correct
214 __DTOR_LIST__ description.
216 2005-01-23 Alan Modra <amodra@bigpond.net.au>
218 * ld.texinfo (Location Counter <dot outside sections>): Document
219 effects of orphan section placement, and ". = ." workaround.
220 * Makefile.in: Regenerate.
222 2005-01-22 Richard Sandiford <rsandifo@redhat.com>
224 * emulparams/elf32bmip.sh (OTHER_GOT_SECTIONS): Add ". = .;".
225 * emulparams/elf32bmipn32-defs.sh (OTHER_GOT_SECTIONS): Likewise.
227 2005-01-21 Jakub Jelinek <jakub@redhat.com>
229 * ldgram.y (AS_NEEDED): New token.
230 (input_list): Handle AS_NEEDED ( input_list ).
231 * ldlex.l (AS_NEEDED): Add.
232 * ld.texinfo: Document AS_NEEDED ().
233 * NEWS: Mention AS_NEEDED ().
235 2005-01-21 Ben Elliston <bje@au.ibm.com>
237 * ldlang.c (lang_reasonable_defaults): Remove.
238 (lang_process): Don't call lang_reasonable_defaults.
240 * ldexp.c (exp_assop): Remove #if 0'd code.
241 (exp_print_tree): Likewise.
242 * ldlang.c (lang_memory_region_lookup): Likewise.
243 (open_output): Likewise.
244 (lang_do_assignments_1): Likewise.
245 (lang_place_orphans): Likewise.
246 (lang_enter_output_section_statement): Likewise.
247 (lang_reasonable_defaults): Likewise.
248 * ldlang.h (struct lang_input_statement_struct): Likewise.
249 * mri.c (mri_draw_tree): Likewise.
250 (mri_load): Likewise.
251 * pe-dll.c (generate_reloc): Likewise.
252 (make_import_fixup_entry): Likewise.
254 * emultempl/beos.em (set_pe_subsystem): Likewise.
255 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
256 * emultempl/pe.em: Likewise.
257 * emultempl/xtensaelf.em (xtensa_colocate_literals): Likewise.
259 2005-01-20 Daniel Jacobowitz <dan@codesourcery.com>
261 * Makefile.am (ALL_EMULATIONS): Add earmelfb_linux_eabi.o.
262 (earmelfb_linux_eabi.c): New target.
263 * Makefile.in: Regenerated.
264 * configure.tgt (arm*b-*-linux-gnueabi): New target.
265 * emulparams/armelfb_linux_eabi.sh: New file.
267 2005-01-20 Nick Hudson <skrll@netbsd.org>
270 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
271 Handle bfd_elf32_hppa_nbsd_vec.
273 2005-01-19 Richard Sandiford <rsandifo@redhat.com>
275 * ldmain.h (ld_sysroot): Change type to a constant string.
276 * ldmain.c (ld_sysroot): Likewise.
277 (get_relative_sysroot, get_sysroot): New functions, adding command-line
278 support for changing the sysroot.
279 (main): Call the new functions.
280 * lexsup.c (OPTION_SYSROOT): New.
281 (ld_options): Add --sysroot.
282 (parse_args): Add a dummy handler for it.
283 * ld.texinfo (--sysroot): Document.
284 * NEWS: Mention the new --sysroot option.
286 2005-01-18 Alan Modra <amodra@bigpond.net.au>
288 * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
289 (lang_place_orphans): Don't abort on just_syms_flag, instead call
292 2005-01-16 Danny Smith <dannysmith@users.sourceforge.net>
294 * defilep.y (def_name, def_library): Combine into...
295 (def_image_name): New function. Strip name to basename,
298 2005-01-12 Mark Kettenis <kettenis@gnu.org>
300 * configure.in: Be sure to invoke config.sub using the shell.
301 * configure: Regenerate.
303 2005-01-11 Alan Modra <amodra@bigpond.net.au>
305 * configure.host: Correct sed patterns for last change.
307 2005-01-10 Nick Clifton <nickc@redhat.com>
310 * ldmisc.c (vfinfo): Add an extra argument: is_warning. Use this
311 to determine whether config.make_executable should be set to FALSE in
312 conjunction with config.fatal_warnings.
313 (info_msg, minfo, lfinof): Pass FALSE as the extra argument.
314 (einfo): Pass TRUE as the extra argument.
316 2005-01-10 Greg Schaffer <gschafer@zip.com.au>
318 * configure.host (linux targets): Use "${CC} -dumpspecs" instead
319 of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0.
320 (ia64-*-aix): Delete - this target is obsolete, and would be
321 broken by this patch.
323 2005-01-06 Eric Botcazou <ebotcazou@libertysurf.fr>
325 * configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*.
326 (sparc64-sun-solaris2*): New host.
328 2005-01-06 Paul Brook <paul@codesourcery.com>
330 * Makefie.am: Add earmelf_vxworks.
331 * Makefile.in: Regenerate.
332 * configure.tgt: Make arm-*-vxworks a separate case.
333 * emulparams/armelf_vxworks.sh: New function.
335 2005-01-06 Alan Modra <amodra@bigpond.net.au>
337 * emultempl/ppc64elf.em (no_multi_toc): New var.
338 (gld${EMULATION_NAME}_finish): Pass to ppc64_elf_setup_section_lists.
339 (OPTION_NO_MULTI_TOC): Define.
340 (PARSE_AND_LIST_LONGOPTS): Add --no-multi-toc support.
341 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
343 2005-01-05 Nick Clifton <nickc@redhat.com>
346 * ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
347 Standard's specification for parsable error messages.
349 2005-01-04 Paul Brook <paul@codesourcery.com>
351 * Makefile.am: Correct dependency for earmsymbian.c.
352 * Makefile.in: Regenerate.
354 2004-12-28 Danny Smith <dannysmith@users.sourceforge.net>
356 * emultempl/pe.em (set_pe_subsystem): Change second arg to
357 lang_add_entry to FALSE.
359 2004-12-23 Nick Clifton <nickc@redhat.com>
362 * emulparams/shelf.sh (.stack): Increase stack start address to
365 2004-12-20 Nick Clifton <nickc@redhat.com>
367 * ldmain.c (main): Issue an error message if -static and -shared
370 2004-12-17 Jakub Jelinek <jakub@redhat.com>
372 * ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
373 * ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
374 * ldlang.c (lang_size_sections): Use them to avoid wasting virtual
375 address space at DATA_SEGMENT_ALIGN. Fix computation of expected
376 PT_GNU_RELRO segment end.
378 2004-12-14 P.J. Darcy <darcypj@us.ibm.com>
380 * configure.tgt: Add s390x-ibm-tpf support.
382 2004-12-16 Martin Kögler <mkoegler@auto.tuwien.ac.at>
384 * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
387 2004-12-07 Ben Elliston <bje@gnu.org>
389 * ldemul.h: Forward declare struct option.
391 2004-12-01 Danny Smith <dannysmith@users.sourceforge.net>
393 * scripttempl/pe.sc (.data): Add .jcr subsection.
395 2004-11-30 Paul Brook <paul@codesourcery.com>
397 * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
399 2004-11-30 Tero Niemela <tero_niemela@yahoo.com>
401 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
402 * Makefile.in: Regenerate.
404 2004-11-26 Melissa Mears <asterisk@graces.dricas.com>
406 * emultempl/pe.em: Add --subsystem:xbox as well as
408 * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
409 and numeric subsystems.
411 2004-11-24 Alan Modra <amodra@bigpond.net.au>
413 * ldexp.c (fold_name): Correct PR 338 fix.
415 2004-11-19 Mark Mitchell <mark@codesourcery.com>
417 * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
418 (earmelf_linux_eabi.c): New target.
419 * configure.tgt (arm*-*-linux-gnueabi): Handle it.
420 * emulparams/armelf_linux_eabi.sh: New file.
421 * Makefile.in: Regenerated.
423 2004-11-19 Nick Clifton <nickc@redhat.com>
426 * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
427 LENGTH fields in the MEMORY command, to explicitly state that
428 symbols cannot be used in their expressions.
430 2004-11-19 Jon Beniston <jon@beniston.com>
432 * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
433 * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
434 * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
435 which return the length and origin of a memory.
436 * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
437 * NEWS: Mention support for ORIGIN and LENGTH operators.
439 2004-11-17 Daniel Jacobowitz <dan@codesourcery.com>
441 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
442 a dynamic object for stubs.
444 2004-11-04 Paul Brook <paul@codesourcery.com>
446 * ld.texinfo: Document --default-imported-symver.
447 * ldmain.c (main): Set link_info.default_imported_symver.
448 * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
449 (ld_options): Add --default-imported-symver.
450 (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
452 2004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
453 Vineet Sharma <vineets@noida.hcltech.com>
455 * Makefile.am: Add entries for new maxq-coff target.
456 * Makefile.in: Regenerate.
457 * configure.tgt: Add support for maxq.
458 * emulparams/maxqcoff.sh: New File.
459 * scripttempl/maxqcoff.sc: New linker script for target maxq.
460 * NEWS: Mention the new target.
462 2004-11-08 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
464 * testsuite/ld-scripts/weak.exp: Enable test on PE,
466 * testsuite/ld-undefined/weak-undef.exp: Enable test on PE,
468 * testsuite/lib/ld-lib.exp (is_pecoff_format): New.
470 2004-11-04 Daniel Jacobowitz <dan@debian.org>
472 * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
473 (earmelf_oabi.c): Remove rule.
474 * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
475 * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
476 * Makefile.in: Regenerated.
478 2004-11-04 Hans-Peter Nilsson <hp@axis.com>
480 * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
481 * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
483 (INIT_END): Remove emitted "jump [sp+]".
486 2004-11-04 Alan Modra <amodra@bigpond.net.au>
488 * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
489 (no_opd_opt, no_toc_opt): New static vars.
490 (ppc_before_allocation): Don't edit opt if no_opd_opt. Call
492 (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
493 (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
494 (PARSE_AND_LIST_OPTIONS): Describe new options.
495 (PARSE_AND_LIST_ARGS_CASES): Handle them.
497 2004-10-27 Nick Clifton <nickc@redhat.com>
499 * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
500 parameter to invocation of lang_section_start.
501 * emultempl/aix.em (_handle_option): Likewise.
503 * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
504 eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
505 * Makefile.in: Regenerate.
507 2004-10-26 Mark Mitchell <mark@codesourcery.com>
509 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
510 __exidx_{start,end} when not relocating.
512 2004-10-25 Mark Mitchell <mark@codesourcery.com>
514 * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
515 * ldexp.h (segment_type): New type.
516 (segments): New variable.
517 * ldexp.c (segments): New variable.
518 (exp_print_token): Handle SEGMENT_START.
519 (fold_binary): Likewise.
520 * ldgram.y (SEGMENT_START): Declare it as a token.
521 (exp): Handle SEGMENT_START.
522 * ldlang.h (lang_address_statement_type): Add segment field.
523 (lang_section_start): Change prototype.
524 * ldlang.c (map_input_to_output_sections): Do not process section
525 assignments if a corresponding SEGMENT_START has already been
527 (lang_section_start): Add segment parameter.
528 * ldlex.l (SEGMENT_START): Add it.
529 * lexsup.c (seg_segment_start): New function.
530 (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
531 * ld.texinfo (SEGMENT_START): Document it.
532 * emulparams/armsymbian.sh (EMBEDDED): Set it.
533 * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
534 base addresses. Do not map relocations.
535 * NEWS: Mention SEGMENT_START.
537 2004-10-26 Paul Brook <paul@codesourcery.com>
539 * ld.texinfo: Document --default-symver.
540 * ldmain.c (main): Set link_info.create_default_symver.
541 * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
542 (ld_options): Add default-symver.
543 (parse_args): Handle OPTION_DEFAULT_SYMVER.
545 2004-10-24 Danny Smith <dannysmith@users.sourceforge.net>
547 * pe-dll.c (process_def_file): Don't export all symbols by default if
548 building a position-independent executable.
550 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
553 * ldmain.c (reloc_overflow): Accept a pointer to struct
554 bfd_link_hash_entry. Report symbol location for relocation
557 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
559 * genscripts.sh (libpath.exp): Really generate for first
562 2004-10-19 Danny Smith <dannysmith@users.sourceforge.net>
564 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
565 comparison and replacement of filenames.
567 2004-10-19 H.J. Lu <hongjiu.lu@intel.com>
570 * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
571 option on linker script as the one for linker script.
573 2004-10-16 Daniel Jacobowitz <dan@debian.org>
575 * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
576 (check_excluded_libs): New.
577 (load_symbols): Call check_excluded_libs.
578 * ldlang.h (add_excluded_libs): New prototype.
579 * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
580 (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
581 (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
582 * ld.texinfo (Command Line Variables): Document --exclude-libs.
583 (Options Specific to i386 PE Targets): Remove --exclude-libs.
585 2004-10-15 Alan Modra <amodra@bigpond.net.au>
587 * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
588 failing link script assert.
590 * ldctor.c (ldctor_add_set_entry): Fix comment typo.
592 2004-10-14 H.J. Lu <hongjiu.lu@intel.com>
595 * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
596 (SMALL_DATA_DTOR): Set.
597 * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
598 (SMALL_DATA_DTOR): Unset.
599 * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
600 after .data. If SMALL_DATA_DTOR is set, move .dtors after
603 2004-10-14 Alan Modra <amodra@bigpond.net.au>
606 * ldlang.h (lang_output_section_statement_type): Make "next" a
607 struct lang_output_section_statement_struct *.
608 (struct orphan_save): Move from elf32.em. Add "name" and "flags".
609 (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
610 * ldlang.c (lang_output_section_find_1): Adjust for changed
611 output_section_statement "next".
612 (strip_excluded_output_sections): Likewise.
613 (lang_record_phdrs): Likewise.
614 (lang_output_section_find_by_flags): New function.
615 (output_prev_sec_find): Move from pe.em. Adjust iterator.
616 (lang_insert_orphan): New function. Tail end of elf32.em's
617 place_orphan merged with that from pe.em. Allow bfd_section to
618 be placed first. New heuristic for placing new output section
619 statement in existing script, and accompanying split of __start
620 symbol alignment into a separate assignment to dot.
621 (lang_add_section): Consistently use output->bfd_section rather than
622 an alias, section->output_section.
623 (map_input_to_output_sections): Rename overly long arg. Move
624 initialization of data_statement output section to here..
625 (lang_check_section_addresses): ..from here.
626 (print_assignment): Correct printing of etree_assert.
627 (print_all_symbols): Don't bomb if userdata is NULL.
628 (IGNORE_SECTION): Rearrange.
629 * emultempl/elf32.em (output_rel_find): Adjust interator.
630 (output_prev_sec_find): Delete.
631 (struct orphan_save): Delete.
632 (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
633 flags without creating a duplicate output section statement.
634 Revise code holding history of various orphan section placements.
635 Allow orphan sections to place before script specified output
636 sections. Call lang_output_section_find_by_flags when placement
637 by name fails. Use lang_insert_orphan.
638 * emultempl/mmo.em (output_prev_sec_find): Delete.
639 (struct orphan_save): Delete.
640 (mmo_place_orphan): Revise code holding history of orphan placement.
641 Allow orphans to place before existing output sections. Use
643 * emultempl/pe.em (output_prev_sec_find): Delete.
644 (struct orphan_save): Delete.
645 (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
648 2004-10-13 Mark Mitchell <mark@codesourcery.com>
650 * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
653 2004-10-13 Alan Modra <amodra@bigpond.net.au>
656 * ldcref.c (check_section_sym_xref): Delete.
657 (check_local_sym_xref): New function.
658 (check_nocrossrefs): Adjust call.
659 * emultempl/pe.em (struct orphan_save): Add os_tail.
660 (place_orphan): Backport assorted fixes from elf32.em.
662 2004-10-12 Bob Wilson <bob.wilson@acm.org>
664 * emultempl/xtensaelf.em: Use ISO C90 formatting.
666 2004-10-11 Jakub Jelinek <jakub@redhat.com>
668 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
669 getline for portability.
671 * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
672 (gld${EMULATION_NAME}_parse_ld_so_conf,
673 gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
674 (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
676 2004-10-11 Alan Modra <amodra@bigpond.net.au>
679 * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
680 rejected when linking statically.
682 2004-10-08 Daniel Jacobowitz <dan@debian.org>
684 * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
686 2004-10-07 Bob Wilson <bob.wilson@acm.org>
688 * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
689 assembler-generated longcall sequences. Describe new --size-opt
691 * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
692 * emultempl/xtensaelf.em (remove_section,
693 replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
694 elf_xtensa_after_open): New.
695 (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
696 OPTION_NO_LITERAL_MOVEMENT): Define.
697 (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
698 (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
699 (PARSE_AND_LIST_OPTIONS): Add --size-opt.
700 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
701 OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
702 (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
703 * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
704 * Makefile.am (eelf32xtensa.c): Update dependencies.
705 * Makefile.in: Regenerate.
707 2004-10-07 Jeff Baker <jbaker@qnx.com>
709 * lexsup.c: Handle --warn-shared-textrel option.
710 (ld_options): Restore alpha sorting of options.
711 * ldmain.c (main): Initialise warn_shared_info field to FALSE.
712 * ld.texinfo: Add documentation for --warn-shared-textrel.
713 * NEWS: Added mention of --warn-shared-textrel option.
715 2004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
717 * emultempl/crxelf.em (disable_relaxation): Add.
718 (crxelf_before_allocation): Enable --relax option by default.
719 (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
720 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
721 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
723 2004-10-04 H.J. Lu <hongjiu.lu@intel.com>
725 * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
726 --sort-section name|alignment.
728 * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
729 --sort-section name|alignment.
731 * ld.h (sort_type): New enum.
732 (wildcard_spec): Change the type of `sorted' to sort_type.
734 * ldgram.y (SORT): Removed.
735 (SORT_BY_NAME): Added.
736 (SORT_BY_ALIGNMENT): Added.
737 (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
739 (input_section_spec_no_keep): Updated `sorted'.
740 (statement): Replace SORT with SORT_BY_NAME.
742 * ldlang.c (compare_section): New function to compare 2
743 sections with different sorting schemes.
744 (wild_sort): Updated. Use compare_section.
745 (update_wild_statements): New function.
746 (lang_process): Call update_wild_statements before
747 map_input_to_output_sections.
749 * ldlex.l (SORT_BY_NAME): New.
750 (SORT_BY_ALIGNMENT): New.
751 (SORT): Return SORT_BY_NAME.
753 * ldmain.c (sort_section): New. Defined.
754 (main): Initialize it to none.
756 * lexsup.c (option_values): Add OPTION_SORT_SECTION.
757 (ld_options): Add an entry for OPTION_SORT_SECTION.
758 (parse_args): Handle OPTION_SORT_SECTION.
760 * mri.c (mri_draw_tree): Updated `sorted'.
762 2004-10-04 Jakub Jelinek <jakub@redhat.com>
764 * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
765 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
767 (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
768 and . as second argument.
769 (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
770 * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
771 (fold_binary): Add it here. Insert padding to make relro_end
772 COMMONPAGESIZE bytes aligned. For DATA_SEGMENT_ALIGN in
773 exp_dataseg_relro_adjust phase just use previously computed
775 * ldlang.c (lang_size_sections): Set exp_data_seg.base for
776 relro_adjust here. Call lang_size_sections_1 once more if there
777 was too big padding at DATA_SEGMENT_RELRO_END.
778 * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
780 2004-10-01 Paul Brook <paul@codesourcery.com>
782 * emulparams/armelf.sh: Add unwinding table sections.
784 2004-09-30 Filip Navara <navaraf@reactos.com>
786 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
787 correct base address for position independant executables.
788 * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
791 2004-09-30 Paul Brook <paul@codesourcery.com>
793 * ld.texinfo: Document --target2=abs.
794 * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
796 2004-09-29 Nick Clifton <nickc@redhat.com>
798 * scripttempl/xstormy16.sc: Only perform the assignments to the
799 ROM region when not performing a relocatable link. The ROM region
800 does not start at address 0, but the sections will.
801 * Makefile.am: Fix linker script dependency for the generation of
803 * Makefile.in: Regenerate.
805 2004-09-18 Filip Navara <navaraf@reactos.com>
807 * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
808 emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
809 emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
811 * scripttempl/pe.sc: Make the virtual address and file offset synced if
812 the alignment is lower than the target page size.
814 2004-09-27 Filip Navara <navaraf@reactos.com>
816 * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
817 def_file_parse to handle pe_def_file if NULL and prevent crash with
820 2004-09-27 Alan Modra <amodra@bigpond.net.au>
822 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
823 --emit-stub-syms automatically when --emit-relocs.
825 2004-09-24 Paul Brook <paul@codeosurcery.com>
827 * scripttempl/elf.sc: Keep .preinit_array, .init_array and
828 .fini_array sections.
830 2004-09-19 Andreas Schwab <schwab@suse.de>
832 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
833 base so that relro end is suitably aligned.
835 2004-09-17 Paul Brook <paul@codesourcery.com>
837 * ld.texinfo: Rename arm-specific section. Document --target*
838 * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
839 * emulparams/armelf_linux.sh: Ditto.
840 * emulparams/armelf_nbsd.sh: Ditto.
841 * emultempl/armelf.em: Set default for TARGET2_TYPE.
842 (target2_type): New variable.
843 (arm_elf_before_allocation): Don't pass target1_type.
844 (arm_elf_create_output_section_statements): New function.
845 (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
846 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
847 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
848 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
849 * emultempl/armelf_oabi.em (_before_allocation): Remove extra
850 argument to bfd_elf32_arm_process_before_allocation.
852 2004-09-17 Alan Modra <amodra@bigpond.net.au>
854 * ldexp.c (fold_name): Update u.undef.next refs.
855 * emultempl/pe.em: Likewise.
856 * emultempl/sunos.em: Likewise.
858 2004-09-17 Alan Modra <amodra@bigpond.net.au>
860 * Makefile.am: Run "make dep-am".
861 * Makefile.in: Regenerate.
862 * config.in: Regenerate.
863 * configure: Regenerate.
864 * aclocal.m4: Regenerate.
865 * po/ld.pot: Regenerate.
867 2004-09-16 Tomer Levi <Tomer.Levi@nsc.com>
869 * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
873 2004-09-16 Alan Modra <amodra@bigpond.net.au>
875 * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
876 to bfd_elf32_arm_process_before_allocation call.
878 2004-09-13 Paul Brook <paul@codesourcery.com>
880 * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
881 * emultempl/armelf.em: Use TARGET1_IS_REL. Add --target1-{rel,abs}.
883 2004-09-07 H.J. Lu <hongjiu.lu@intel.com>
885 * configure: Regenerated with autconfig 2.13.
887 2004-09-07 Andreas Schwab <schwab@suse.de>
889 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
890 alignment before adjusting DATA_SEGMENT_RELRO_END.
892 2004-09-06 Mark Mitchell <mark@codesourcery.com>
894 * emulparams/armsymbian.sh: Use armbpabi script.
895 * scripttempl/armbpabi.sc: New script.
897 2004-09-02 Mark Mitchell <mark@codesourcery.com>
899 * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
900 (earmsymbian.c): New target.
901 * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
902 * Makefile.in: Regenerated.
903 * aclocal.m4: Likewise.
904 * configure: Likewise.
905 * emulparams/armsymbian.sh: New file.
907 2004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
909 * scripttempl/elf32crx.sc: Edit file with comments.
910 (.init): Add new section.
912 (.ctor): Control the linkage order.
915 2004-08-27 Nick Clifton <nickc@redhat.com>
917 * emultempl/pe.em (after_open): Do not assume that either bfd is
920 2004-08-26 Alan Modra <amodra@bigpond.net.au>
922 * ldlang.c (lang_init): Don't compare with TRUE.
924 2004-08-25 Dmitry Diky <diwil@spec.ru>
926 * emulparams/msp430all.sh: Fix RAM sizes for all targets.
927 * scripttempl/elf32msp430.sc: Add .profiler section definition.
929 2004-08-24 H.J. Lu <hongjiu.lu@intel.com>
931 * ldlang.c (wildcardp): Defined as a macro with strpbrk.
933 2004-08-19 Mark Mitchell <mark@codesourcery.com>
935 * configure.tgt (arm*-*-symbianelf*): New target.
936 (arm*-*-eabi*): Likewise.
938 2004-08-19 Jakub Jelinek <jakub@redhat.com>
940 * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
941 (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
942 (OPTION_NON_OVERLAPPING_OPD): Define.
943 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
944 --non-overlapping-opd option.
946 2004-08-18 Alan Modra <amodra@bigpond.net.au>
949 * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
950 was already on the undefs list.
952 2004-08-17 Alan Modra <amodra@bigpond.net.au>
954 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
955 prefix the symbol field too.
957 2004-08-13 Alan Modra <amodra@bigpond.net.au>
959 * ldmain.c (link_callbacks): Remove "error_handler".
960 * ldmisc.c: Include elf-bfd.h.
961 (vfinfo): Sort comment. Handle %A. Use %A instead of
962 bfd_get_section_indent.
963 (error_handler): Delete.
964 * ldmisc.h (error_handler): Delete declaration.
966 2004-08-10 Alan Modra <amodra@bigpond.net.au>
968 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
969 ppc64_elf_restore_symbols.
971 2004-08-09 Alan Modra <amodra@bigpond.net.au>
973 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
974 .toc is too large on relocatable linking.
976 2004-08-09 Alan Modra <amodra@bigpond.net.au>
978 * emultempl/ppc64elf.em (ppc_after_open): Delete.
979 (LDEMUL_AFTER_OPEN): Don't define.
981 2004-08-02 Stephane Carrez <stcarrez@nerim.fr>
983 * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
985 2004-08-01 Stephane Carrez <stcarrez@nerim.fr>
987 * scripttempl/elfm68hc12.sc: Align text, rodata and data section
990 2004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
992 * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
994 2004-07-26 Dmitry Diky <diwil@spec.ru>
996 * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
997 msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
999 * configure.tgt: Likewise.
1000 * emulparams/msp430all.sh: Likewise.
1001 * Makefile.in: Regenerate.
1003 2004-07-23 Nick Clifton <nickc@redhat.com>
1005 * emultempl/elf32.em (_place_orphan): Use an already existing
1006 section name if that section does not have any flags set.
1008 2004-07-21 H.J. Lu <hongjiu.lu@intel.com>
1010 * ldlang.c (already_linked_hash_entry): Removed.
1011 (already_linked): Likewise.
1012 (already_linked_table): Likewise.
1013 (section_already_linked): Call bfd_section_already_linked.
1014 (lang_process): Replace already_linked_table_init with
1015 bfd_section_already_linked_table_init and check return. Replace
1016 already_linked_table_free with bfd_section_already_linked_table_free.
1018 2004-07-21 Nick Clifton <nickc@redhat.com>
1020 * ldlang.c (init_os): Make sure that the newly allocated userdata
1021 structure is zeroed out.
1023 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
1025 * NEWS: Mention the new --add-needed/--no-add-needed and
1026 --as-needed/--no-as-needed options.
1028 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
1030 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
1031 check the add_needed field.
1032 (dt_needed): New struct.
1033 (gld${EMULATION_NAME}_try_needed): Change the first argument
1034 to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
1035 bit in the file where the DT_NEEDED entry comes from.
1036 (gld${EMULATION_NAME}_search_needed): Change the second
1037 argument to a pointer to struct dt_needed.
1038 (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
1039 (gld${EMULATION_NAME}_after_open): Likewise.
1041 * ld.texinfo: Add --add-needed document.
1042 * ldlang.c (new_afile): Set p->add_needed.
1043 * ldlang.h (lang_input_statement_type): Add add_needed field.
1044 * ldmain.h (add_needed): Declare.
1045 * ldmain.c (add_needed): New global var.
1046 * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
1047 OPTION_NO_ADD_NEEDED.
1048 (ld_options): Likewise.
1049 (parse_args): Handle them.
1051 2004-07-13 Christof Petig <christof@petig-baender.de>
1053 * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
1054 for endian-ness of extracted addend.
1056 2004-07-13 Danny Smith <dannysmith@usesr.sourceforge.net>
1058 * pe-dll.c (auto_export): Filter on just the import prefix,
1059 "_imp_", not "_imp__".
1061 2004-07-09 Nick Clifton <nickc@redhat.com>
1063 * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
1065 2004-07-06 Tomer Levi <Tomer.Levi@nsc.com>
1067 * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
1068 (eelf32crx.c): New target.
1069 * Makefile.in: Regenerate.
1070 * configure.tgt: Handle crx-*-elf*.
1071 * emulparams/elf32crx.sh: New file.
1072 * emultempl/crxelf.em: New file.
1073 * scripttempl/elf32crx.sc: New file.
1074 * NEWS: Mention new target.
1076 2004-07-06 Nick Clifton <nickc@redhat.com>
1078 * Makefile.am: Add eshlsymbian.c.
1079 * Makefile.in: Regenerate.
1080 * configure.tgt: Add sh*-symbian-elf target.
1081 * emulparams/shlsymbian.sh: New file. Configure the
1082 sh-symbian-elf linker scripts.
1083 * scripttemp/elf32sh-symbian.sc: New file. Linker script
1084 template for the sh-symbian-elf target.
1086 2004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1088 * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
1089 * emulparams/hppalinux.sh: Likewise.
1090 * scripttempl/elf.sc: Place .plt just before .got when .plt is in
1091 data segment and PLT_BEFORE_GOT is defined.
1093 2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1095 * ld.texinfo (WIN32): Document PE weak symbols.
1097 2004-07-02 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1099 * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
1101 2004-07-01 H.J. Lu <hongjiu.lu@intel.com>
1103 * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
1106 2004-06-29 Alan Modra <amodra@bigpond.net.au>
1108 * ldlang.c (lang_reset_memory_regions): Save last relax pass section
1111 2004-06-24 Alan Modra <amodra@bigpond.net.au>
1113 * ldlang.c (print_output_section_statement): Don't print size before
1115 (IGNORE_SECTION): Remove bfd arg. Update all callers.
1117 * ldexp.c (fold_name): .. See below.
1118 * ldlang.c (section_already_linked, print_output_section_statement,
1119 print_input_section, insert_pad, size_input_section,
1120 lang_check_section_addresses, lang_size_sections_1,
1121 lang_size_sections, lang_do_assignments_1, lang_set_startof,
1122 lang_one_common, lang_reset_memory_regions, lang_process,
1123 lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
1124 * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
1125 * pe-dll.c (process_def_file, generate_reloc): ..
1126 * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
1127 gld${EMULATION_NAME}_before_allocation): ..
1128 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
1129 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
1130 sh64_elf_${EMULATION_NAME}_after_allocation): ..
1131 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
1132 * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
1133 ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
1134 "size" instead of "_raw_size" and "_cooked_size". Expand
1135 bfd_section_size macro invocations.
1137 2004-06-22 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1139 * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
1140 ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
1141 ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
1143 (.tls): Define ___tls_start__ and ___tls_end__.
1145 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
1147 * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
1149 2004-06-18 Adam Nemet <anemet@lnxw.com>
1151 * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
1152 * configure: Regenerate.
1154 2004-06-15 Jakub Jelinek <jakub@redhat.com>
1156 * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
1157 .gcc_except_table output sections lost accidentally with
1160 2004-06-15 Alan Modra <amodra@bigpond.net.au>
1162 * ldwrite.c (build_link_order): Use bfd_get_section_size
1163 instead of bfd_get_section_size_before_reloc or _raw_size.
1164 * pe-dll.c (process_def_file): Likewise.
1166 2004-06-14 Alan Modra <amodra@bigpond.net.au>
1168 From Richard Wirth <r.wirth@wirthware.de>
1169 * ldlang.c (lang_finish): Don't free lang_definedness_table.
1171 2004-05-29 Alan Modra <amodra@bigpond.net.au>
1173 * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
1174 (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
1176 2004-05-28 Andrew Stubbs <andrew.stubbs@superh.com>
1178 * testsuite/ld-sh/arch/arch.exp: New test script.
1179 * testsuite/ld-sh/arch/arch_expected.txt: New file.
1180 * testsuite/ld-sh/arch/sh.s: New file.
1181 * testsuite/ld-sh/arch/sh2.s: New file.
1182 * testsuite/ld-sh/arch/sh-dsp.s: New file.
1183 * testsuite/ld-sh/arch/sh2e.s: New file.
1184 * testsuite/ld-sh/arch/sh3-nommu.s: New file.
1185 * testsuite/ld-sh/arch/sh3.s: New file.
1186 * testsuite/ld-sh/arch/sh3-dsp.s: New file.
1187 * testsuite/ld-sh/arch/sh3e.s: New file.
1188 * testsuite/ld-sh/arch/sh4-nommu-nofpu.s: New file.
1189 * testsuite/ld-sh/arch/sh4-nofpu.s: New file.
1190 * testsuite/ld-sh/arch/sh4.s: New file.
1191 * testsuite/ld-sh/arch/sh4a-nofpu.s: New file.
1192 * testsuite/ld-sh/arch/sh4al-dsp.s: New file.
1193 * testsuite/ld-sh/arch/sh4a.s: New file.
1195 2004-05-28 Alan Modra <amodra@bigpond.net.au>
1197 * ldlang.c: Formatting. Wrap long lines, expand bfd_get_section_flags
1199 * lexsup.c: Formatting. Wrap long lines.
1200 * ldwrite.c: Update copyright date.
1202 * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
1203 (output_section_callback): Nor SEC_KEEP here.
1204 (gc_section_callback): Twiddle SEC_EXCLUDE here.
1205 (lang_gc_wild): Delete. Fold into..
1206 (lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage
1208 (lang_process): Always call lang_gc_sections.
1209 (lang_place_orphans): Handle SEC_EXCLUDE sections.
1210 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
1213 2004-05-26 H.J. Lu <hongjiu.lu@intel.com>
1215 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
1216 SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
1217 * ldlang.c (lang_add_section): Likewise.
1219 2004-05-26 Alan Modra <amodra@bigpond.net.au>
1221 * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
1222 sections when doing a final link. Clear SEC_EXCLUDE when doing
1223 a relocable link, except for SEC_DEBUGGING sections.
1224 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
1225 same condition here to drop SEC_EXCLUDE orphan sections.
1227 2004-05-25 Alan Modra <amodra@bigpond.net.au>
1229 * ldlang.c (lang_process): Call bfd_merge_sections later, and
1230 only when not a relocatable link.
1231 (print_input_section): Handle SEC_EXCLUDE sections.
1232 (size_input_section): Don't update dot on SEC_EXCLUDE sections.
1233 (lang_do_assignments_1): Likewise.
1234 * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
1235 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
1236 * emultempl/hppaelf.em (build_section_lists): Likewise.
1237 * emultempl/ppc64elf.em (build_toc_list): Likewise.
1238 (build_section_lists): Likewise.
1240 2004-05-23 Andreas Schwab <schwab@suse.de>
1242 * ld.texinfo (Options): Fix typo in last change.
1244 2004-05-21 Andy Chittenden <achittenden@bluearc.com>
1246 * ld.h (ld_config_type): Add new field: hash_table_size.
1247 * ldmain.c: Initialise the new field to zero. If it is non-zero
1248 after parsing the linker's command line call
1249 bfd_hash_set_default_size.
1250 * lexsup.c (option_values): Add OPTION_HASH_SIZE.
1251 (ld_options): Add hash-size.
1252 (parse_args): Parse --hash-size option. Allow
1253 --reduce-memory-overheads to set the default hash table size as
1255 * ld.texinfo: Document the new switch. Also mention that
1256 --reduce-memory-overheads can affect the hash table size.
1257 * NEWS: Mention the new feature.
1259 2004-05-19 J"orn Rennecke <joern.rennecke@superh.com>
1261 * NEWS: Mention new linker map file generation and the
1262 --reduce-memory-overheads option.
1263 * ld.texinfo: Document --reduce-memory-overheads option.
1264 * ld.h (map_symbol_def): New struct.
1265 (struct user_section_struct, section_userdata_type): Rename to:
1266 (struct lean_user_section_struct, lean_section_userdata_type).
1267 (struct fat_user_section_struct, fat_section_userdata_type): New.
1268 (SECTION_USERDATA_SIZE): Define.
1269 (args_type): New member reduce_memory_overheads.
1270 * ldlang.c (map_obstack): New static variable.
1271 (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
1272 (lang_map): Unless command_line.reduce_memory_overheads is set,
1273 initialize lists of defined symbols for each section.
1274 (print_input_section): Unless command_line.reduce_memory_overheads
1275 is set, use print_all_symbols.
1276 (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
1277 * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
1278 * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
1279 (ld_options): Add entry for --reduce-memory-overheads.
1280 (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
1282 2004-05-19 Jakub Jelinek <jakub@redhat.com>
1284 * ldgram.y (sect_constraint): New.
1285 (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1286 (section): Add sect_constraint. Pass additional argument
1287 to lang_enter_output_section_statement.
1288 * mri.c (mri_draw_tree): Pass additional argument to
1289 lang_enter_output_section_statement.
1290 * emultempl/pe.em (place_orphan): Likewise.
1291 (output_prev_sec_find): Disregard output section statements with
1293 * emultempl/mmo.em (output_prev_sec_find): Likewise.
1294 (mmo_place_orphan): Pass additional argument to
1295 lang_enter_output_section_statement.
1296 * emultempl/elf32.em (output_prev_sec_find): Disregard output section
1297 statements with constraint == -1.
1298 (place_orphan): Pass additional argument to
1299 lang_enter_output_section_statement.
1300 * ldlang.c (lang_enter_overlay_section): Likewise.
1301 (lang_output_section_find_1): New.
1302 (lang_output_section_find): Use it.
1303 (lang_output_section_statement_lookup_1): New.
1304 (lang_output_section_statement_lookup): Use it.
1305 (check_section_callback, check_input_sections): New.
1306 (map_input_to_output_sections): Check if all input sections
1307 are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
1308 (strip_excluded_output_sections): Disregard output section statements
1309 with constraint == -1.
1310 (lang_record_phdrs): Likewise.
1311 (lang_enter_output_section_statement): Add constraint argument.
1312 Use lang_output_section_statement_lookup_1.
1313 * ldlang.h (lang_output_section_statement_type): Add constraint
1314 and all_input_readonly fields.
1315 (lang_enter_output_section_statement): Adjust prototype.
1316 * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1317 * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
1318 segment if all input sections are readonly.
1320 2004-05-19 Adam Nemet <anemet@lnxw.com>
1322 * scripttempl/i386lynx.sc: Remove file.
1324 2004-05-17 Bob Wilson <bob.wilson@acm.org>
1326 * ld.texinfo (Output Section Address): Correct subsection name.
1328 2004-05-17 Adam Nemet <anemet@lnxw.com>
1330 * configure.tgt (powerpc-*-lynxos* case): New case.
1331 * configure.host (i[3-7]86-*-lynxos* case): Remove case.
1332 * emulparams/ppclynx.sh: New file.
1333 * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
1334 * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
1335 (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
1336 (eppclynx.c): New rule.
1337 * Makefile.in: Regenerate.
1339 2004-05-13 Joel Sherrill <joel@oarcorp.com>
1341 * configure.tgt (or32-*-rtems*): Switch to elf and
1342 support versioned targets.
1344 2004-05-13 Nick Clifton <nickc@redhat.com>
1346 * po/fr.po: Updated French translation.
1348 2004-05-11 Jakub Jelinek <jakub@redhat.com>
1350 * genscripts.sh: Generate -z combreloc -z now -z relro scripts
1351 for binaries, -shared and -pie.
1352 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
1353 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
1354 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
1355 (OTHER_RELRO_SECTIONS): ... this.
1356 * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
1357 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
1358 -z relro and -z norelro.
1359 (gld${EMULATION_NAME}_list_options): Add it to usage.
1360 (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
1361 -z relro scripts when appropriate.
1362 * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
1363 Create separate .got.plt section if SEPARATE_GOTPLT.
1364 Move sections which are only written during relocation handling
1365 to the beginning of RW segment. If NO_SMALL_DATA, move .got
1366 before .data. Add DATA_SEGMENT_RELRO_END directive.
1367 Include OTHER_RELRO_SECTIONS.
1368 * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
1369 * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
1370 (fold_unary): Likewise.
1371 (fold_binary): Handle -z relro.
1372 * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
1373 exp_dataseg_relro_adjust phases. Add relro_end field.
1374 * ldmain.c (main): Initialize link_info.relro to FALSE.
1375 * ldlang.c (lang_size_sections): Handle -z relro.
1377 2004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
1379 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
1381 2004-05-07 J"orn Rennecke <joern.rennecke@superh.com>
1383 * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
1384 before printing it with %W.
1386 2004-05-07 Brian Ford <ford@vss.fsi.com>
1387 DJ Delorie <dj@redhat.com>
1389 * emultempl/pe.em (real_flags): New static.
1390 (OPTION_LARGE_ADDRESS_AWARE): New define.
1391 (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
1392 (gld_${EMULATION_NAME}_list_options): Likewise.
1393 (gld${EMULATION_NAME}_handle_option): Likewise.
1394 (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
1395 * ld.texinfo: Document it.
1398 2004-05-07 Brian Ford <ford@vss.fsi.com>
1400 * NEWS: Mention DWARF 2 support for i386pe.
1402 2004-05-05 Alexandre Oliva <aoliva@redhat.com>
1404 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
1407 2004-04-30 Alan Modra <amodra@bigpond.net.au>
1409 * ldlang.c (unique_section_p): Pass section parm, return true on
1411 (output_section_callback): Adjust.
1412 * ldlang.h (unique_section_p): Update prototype.
1413 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
1415 2004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
1417 * ld.texinfo (--gc-sections): Remove restriction for
1420 2004-04-29 Brian Ford <ford@vss.fsi.com>
1422 * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
1423 for DWARF 2/3. Update stab section's syntax.
1425 2004-04-29 Alan Modra <amodra@bigpond.net.au>
1427 * pe-dll.c: Revert changes accidentally committed 2004-03-08.
1428 (fill_edata): Correct pointer arithmetic.
1430 2004-04-21 Chris Demetriou <cgd@broadcom.com>
1432 * ld.texinfo: Remove MIPS --embedded-relocs documentation.
1433 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
1434 * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
1435 (EXTRA_EM_FILE): Use mipsecoff.em
1436 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
1437 (EXTRA_EM_FILE): Use mipsecoff.em
1438 * emultempl/mipsecoff.em: Restructure to be included as an
1439 extra emulation file.
1440 (check_sections, gld${EMULATION_NAME}_after_open)
1441 (gld${EMULATION_NAME}_after_allocation)
1442 (gld${EMULATION_NAME}_get_script)
1443 (ld_${EMULATION_NAME}_emulation): Remove
1444 (gld${EMULATION_NAME}_before_parse): Rename to...
1445 (mipsecoff_before_parse): This.
1446 (LDEMUL_BEFORE_PARSE): Define.
1447 * emultempl/mipself.em: Remove file.
1448 * scripttempl/mips.sc (.rel.sdata): Do not include in output.
1449 (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
1451 * Makefile.am: Remove dependencies on emultempl/mipself.em.
1452 * Makefile.in: Regenerate.
1454 2004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
1456 * ld.texinfo (synthesizing on H8/300): Information about linker
1457 relaxation support for bit manipulation instructions and system
1458 control instructions is added.
1460 2004-04-21 Hans-Peter Nilsson <hp@axis.com>
1462 * NEWS: Mention change in DEFINED semantics.
1464 2004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
1466 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
1467 (.data): Add KEEP for .gnu.linkonce.d.*personality*.
1468 (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
1470 2004-04-21 Ben Elliston <bje@au.ibm.com>
1472 * ld.texinfo (Simple Example): Add missing punctuation.
1474 2004-04-20 Chris Demetriou <cgd@broadcom.com>
1476 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
1478 2004-04-19 Jakub Jelinek <jakub@redhat.com>
1480 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
1483 2004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
1485 * scriptempl/pe.sc: Put numbered .ctors.* after .ctors
1486 with default priority. Likewise for dtors.
1488 2004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1490 * configure.host: Remove mips*-dec-bsd* target.
1491 * configure.tgt: Likewise.
1493 2004-04-08 Richard Sandiford <rsandifo@redhat.com>
1495 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
1496 * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
1497 * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
1498 * emultempl/irix.em: New file.
1499 * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
1501 * Makefile.in: Regenerate.
1503 2004-04-01 Paul Brook <paul@codesourcery.com>
1505 * emultempl/armelf.em (byteswap_code): Add.
1506 (arm_elf_before_allocation): Pass extra parameter.
1507 (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
1508 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
1509 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
1510 * emultempl/armelf_oabi.em: Pass extra parameter.
1511 * ld.texinfo: Document --be8.
1513 2004-03-30 Stan Shebs <shebs@apple.com>
1515 Remove long-obsolete MPW support.
1516 * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
1517 * Makefile.am (mpw): Remove file-presynthesizing actions.
1518 * Makefile.in: Likewise.
1519 * ldfile.c (slash): Remove MPW case.
1520 * ldlex.l [MPW]: Remove unused definition.
1522 2004-03-30 Galit Heller <Galit.Heller@nsc.com>
1524 * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
1525 (eelf32cr16c.c): New target.
1526 * Makefile.in: Regenerate.
1527 * configure.tgt: Handle cr16c-*-elf*.
1528 * emulparams/elf32cr16c.sh: New file.
1529 * scripttempl/elfcr16c.sc: Likewise
1530 * NEWS: Mention support for new target.
1532 2004-03-30 Nick Clifton <nickc@redhat.com>
1534 * po/sv.po: Updated Swedish translation.
1536 2004-03-27 Alan Modra <amodra@bigpond.net.au>
1538 * emultempl/elf32.em: Update new bfd_elf_discard_info name.
1539 * emultempl/hppaelf.em: Likewise.
1540 * emultempl/ppc64elf.em: Likewise.
1541 * emultempl/sh64elf.em: Likewise.
1543 2004-03-25 Alan Modra <amodra@bigpond.net.au>
1545 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
1546 size_dynamic_sections call.
1548 2004-03-23 Alan Modra <amodra@bigpond.net.au>
1551 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
1552 link_info.wrap_char.
1554 2004-03-20 H.J. Lu <hongjiu.lu@intel.com>
1556 * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
1557 or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
1559 2004-03-20 Alexandre Oliva <aoliva@redhat.com>
1561 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
1563 2004-03-19 Alan Modra <amodra@bigpond.net.au>
1565 * config.in: Regenerate.
1566 * po/ld.pot: Regenerate.
1568 2004-03-18 Alan Modra <amodra@bigpond.net.au>
1570 * ld.texinfo: Add --as-needed doco.
1571 * ldmain.c (as_needed): New global var.
1572 * ldmain.h (as_needed): Declare.
1573 * lexsup.c (option_values): Add OPTION_AS_NEEDED and
1574 OPTION_NO_AS_NEEDED.
1575 (ld_options): Likewise.
1576 (parse_args): Handle them.
1577 * ldlang.h (lang_input_statement_type): Add as_needed field.
1578 * ldlang.c (new_afile): Set p->as_needed.
1579 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
1580 (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
1581 (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
1583 * ldlang.c (open_input_bfds): Remove useless cast.
1584 (lang_do_assignments_1): Likewise.
1585 (lang_for_each_input_section): Delete.
1587 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1589 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
1591 2004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
1593 * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
1594 private when building implib.
1596 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
1598 * ldlang.c (lang_add_section): Don't force SEC_LOAD on
1600 (IGNORE_SECTION): Ignore .tbss sections too.
1601 (lang_size_sections_1): .tbss sections do not advance dot.
1603 2004-03-01 Andreas Schwab <schwab@suse.de>
1605 * ld.texinfo (Options): Fix example for --wrap.
1607 2004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
1609 * pe-dll.c (fill_edata): Check that exported_symbol_sections is
1612 2004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
1614 * ldlang.c (lang_check): Use %P, not %E, in error message.
1616 2004-02-23 Nathan Sidwell <nathan@codesourcery.com>
1618 * ldlang.h (struct lang_output_section_state): Change processed
1620 * ldexp.c (check, invalid): Remove.
1621 (fold_name): Move valid_p assignments. Create undefined symbol
1622 when needed. Directly exampine section's processd flag.
1623 * ldlang.c (lang_output_section_statement_lookup): Adjust
1624 processed field init.
1625 (lang_size_sections_1): Allow LOADADDR when determining section's
1626 VMA. Adjust error message. Fold data statement's expr.
1627 (lang_size_sections): Correctly increment lang_statement_iteration.
1629 2004-02-23 Alan Modra <amodra@bigpond.net.au>
1631 * ldexp.c (fold_tree): Follow indirect symbols.
1633 2004-02-20 Nathan Sidwell <nathan@codesourcery.com>
1635 * ldgram.y (exp): Add two operand ALIGN.
1636 * ldexp.c (fold_binary): Add ALIGN_K case.
1637 * ld.texinfo (ALIGN): Document two operand version.
1639 2004-02-19 Nathan Sidwell <nathan@codesourcery.com>
1641 * ldlang.c (map_input_to_output_sections): Initialize sections
1642 mentioned in a data statement expression.
1643 (lang_do_assignments_1): Add data statement's expression's
1646 2004-02-18 Nathan Sidwell <nathan@codesourcery.com>
1648 * ldgram.y (statement_anywhere): Add assert rule.
1649 * ldlang.c (exp_init_os): Add assert case.
1651 2004-02-14 Andrew Cagney <cagney@redhat.com>
1653 * ldmain.c (remove_output): Call bfd_cache_close.
1655 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
1657 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
1658 .MIPS.content* and .MIPS.events* sections.
1660 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
1662 * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
1663 .note.gnu.arm.ident to after allocated sections. Mark its
1666 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
1668 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
1669 * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
1670 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
1671 * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
1672 * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
1674 2004-02-05 Nick Clifton <nickc@redhat.com>
1676 * emultempl/pe.em (_after_open): Fix typo in previous delta.
1678 2004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
1680 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
1682 2004-01-28 Alan Modra <amodra@bigpond.net.au>
1684 * genscripts.sh: Fix typo.
1686 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
1688 2004-01-24 Jakub Jelinek <jakub@redhat.com>
1690 * emulparams/elf64_ia64.sh: Put .rela.opd into
1691 OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
1693 2004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
1695 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
1696 * ld.texinfo (--omagic): Note that writable text section
1697 does not conform to published PE-COFF specs.
1698 (--enable-auto-import): Likewise.
1700 2004-01-15 Alan Modra <amodra@bigpond.net.au>
1702 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
1704 2004-01-13 Nick Clifton <nickc@redhat.com>
1706 * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
1707 which if true will prevent the LMA region being used as a
1708 replacement for a default VMA region.
1709 (lang_leave_output_section_statement): Pass extra parameter.
1710 (lang_leave_overlay): Likewise.
1711 * ld.texinfo (Output Section LMA): Document that the LMA
1712 region can be set to the VMA region if no VMA has been set.
1713 * ldlang.h (struct lang_output_section_phdr_list): Create a
1714 typedef for this type. Minor formatting fixes.
1716 2004-01-13 Nick Clifton <nickc@redhat.com>
1718 * ldlang.c (lang_size_sections_1): If dot is advanced, then
1719 assume that the section should be allocated.
1721 2004-01-13 Alan Modra <amodra@bigpond.net.au>
1723 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
1724 sections. Do ignore SEC_NEVER_LOAD sections.
1725 (lang_size_sections_1): Remove test made redundant with the above.
1727 2004-01-09 Alan Modra <amodra@bigpond.net.au>
1729 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
1730 program_header_size.
1732 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
1734 2003-11-28 Alexandre Oliva <aoliva@redhat.com>
1735 * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
1736 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
1737 * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
1738 (MAXPAGESIZE): Set to 64Kb.
1739 (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
1740 __ROFIXUP_END__. Don't map .rofixup.got any more.
1741 * emulparams/elf32frv.sh (NOP): Set.
1742 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
1743 * configure.tgt: Add frv-*-*linux*.
1744 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
1745 * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
1746 (eelf32frvfd.c): New.
1747 * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
1748 * emulparams/elf32frv.sh: Reverted previous two patches.
1749 * emulparams/elf32frvfd.sh: New.
1750 * Makefile.in: Rebuilt.
1751 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
1752 * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
1753 .rofixup.got to .rofixup.
1754 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
1755 * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
1756 (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
1758 2004-01-05 Jakub Jelinek <jakub@redhat.com>
1760 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
1761 * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
1763 2004-01-03 Alan Modra <amodra@bigpond.net.au>
1765 * ldexp.c (align_n): Make static.
1766 * ldexp.h (align_n): Delete declaration.
1767 * ldlang.h (lang_enter_output_section_statement): Remove
1769 * ldlang.c (lang_enter_output_section_statement): Likewise.
1770 (TO_ADDR, TO_SIZE): Define.
1771 (opb_shift): New var.
1772 (init_opb): New function.
1773 (print_input_section): Call init_opb and use TO_ADDR.
1774 (print_data_statement, print_reloc_statement): Likewise.
1775 (print_padding_statement): Likewise.
1776 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
1777 (lang_check_section_addresses): Likewise.
1778 (lang_size_sections_1): Likewise.
1779 (lang_do_assignments_1): Likewise.
1780 (lang_set_startof): Likewise.
1781 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
1782 (lang_process): Call init_opb.
1783 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
1784 (lang_enter_overlay_section): Adjust
1785 lang_enter_output_section_statement call.
1786 * ldgram.y: Likewise.
1787 * mri.c (mri_draw_tree): Likewise.
1788 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1789 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1790 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1792 * ldfile.c (ldfile_set_output_arch): Add defarch param.
1793 * ldfile.h (ldfile_set_output_arch): Ditto.
1794 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
1795 ldfile_set_output_arch.
1796 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1797 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
1798 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
1799 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1800 * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
1801 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1802 * ldgram.y: Adjust ldfile_set_output_arch call.
1803 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1804 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
1805 * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
1806 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
1807 * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
1808 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1809 * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1811 2004-01-02 Bernardo Innocenti <bernie@develer.com>
1813 * configure.tgt: Add m68k-uClinux target.
1815 For older changes see ChangeLog-0203
1821 version-control: never