1 2005-02-21 Alan Modra <amodra@bigpond.net.au>
3 * config.in: Regenerate.
4 * configure: Regenerate.
6 2005-02-17 Zack Weinberg <zack@codesourcery.com>
8 * ldexp.c (assigning_to_dot): New global flag.
9 (fold_name): If assigning_to_dot is true, object immediately to
11 (exp_fold_tree): Set and clear assigning_to_dot around the
12 recursive call to exp_fold_tree to process the right-hand side
13 of an assignment to the location counter.
15 2005-02-17 Paul Brook <paul@codesourcery.com>
17 * scripttempl/armbpabi.sc: Add dummy name to version block.
19 2005-02-17 Alan Modra <amodra@bigpond.net.au>
21 * ldexp.c (new_abs): Init new.str.
23 2005-02-15 Mark Mitchell <mark@codesourcery.com>
25 * configure.in (AC_CHECK_FUNCS): Add glob.
26 * configure: Regenerated.
27 * emultempl/elf32.em (<glob.h>): Do not include if HAVE_GLOB is
29 (gld${EMULATION_NAME}_parse_ld_so_conf_include): Do not use glob
30 if HAVE_GLOB is not defined.
32 2005-02-16 Kaz Kojima <kkojima@rr.iij4u.or.jp>
34 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define
35 lib_path if NATIVE is yes.
37 2005-02-16 Alan Modra <amodra@bigpond.net.au>
39 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Make
40 an error creating fake bfd fatal.
41 (ppc_before_allocation): Continue on after errors.
42 (gld${EMULATION_NAME}_finish): Likewise.
44 2005-02-15 Nick Clifton <nickc@redhat.com>
46 * ldlex.l (YY_NO_UNPUT): Define so that the yy_unput function is
47 not declared. It is not used and its presence causes a compile
50 2005-02-11 Zack Weinberg <zack@codesourcery.com>
52 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed):
53 If st.st_ino is zero, do not treat the library as a duplicate.
55 2005-02-10 Jakub Jelinek <jakub@redhat.com>
57 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
58 Set BFD_LINKER_CREATED on the stubs bfd.
59 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
62 2005-02-08 Mark Mitchell <mark@codesourcery.com>
64 * scripttempl/armbpabi.sc (VERSION): Make special section symbols
66 (Image$$ER_RO$$Base): Define whenever RELOCATING.
67 (Image$$ER_RO$$Limit): Likewise.
68 (SHT$$INIT_ARRAY$$Base): Likewise.
69 (SHT$$INIT_ARRAY$$Limit): Likeise.
71 2005-02-10 Ben Elliston <bje@au.ibm.com>
73 * emultempl/beos.em: Remove #if 0 and #if 1 blocks.
75 2005-02-08 Richard Sandiford <rsandifo@redhat.com>
77 * configure.tgt (mips64*el-*-linux-gnu*): Define targ_extra_libpath
78 to include o32 and n64 emulations.
79 (mips64*-*-linux-gnu*): Likewise.
81 2005-02-08 Hans-Peter Nilsson <hp@axis.com>
83 * ldmain.c (warning_callback, warning_find_reloc): Prepend
84 "warning: " to warning messages.
86 2005-02-04 Alan Modra <amodra@bigpond.net.au>
88 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't
89 look up symbol for etree_provide here.
91 2005-02-02 Daniel Jacobowitz <dan@codesourcery.com>
93 * emulparams/elf32bmip.sh (TEXT_DYNAMIC): Always set.
95 2005-02-01 Edward Welbourne <eddy@opera.com>
96 Nick Clifton <nickc@redhat.com>
98 * ld.texinfo (Source Code Reference): New node describing how to
99 access linker script defined variables from source code.
101 2005-02-01 Alan Modra <amodra@bigpond.net.au>
103 * ld.texinfo: Clarify --as-needed operation.
105 2005-01-31 Andrew Cagney <cagney@gnu.org>
107 * configure: Regenerate to track ../gettext.m4.
109 2005-01-31 Nick Clifton <nickc@redhat.com>
111 * ldver.c (ldversion): Bump reported copyright date to 2005.
113 2005-01-31 Nick Clifton <nickc@redhat.com>
115 * configure.tgt: Remove obsolete targets m68k-lynxos and
118 2005-01-28 Julian Brown <julian@codesourcery.com>
120 * emultempl/armelf.em (fix_v4bx): New variable.
121 (arm_elf_create_output_section_statements): Communicate fix_v4bx flag
123 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_FIX_V4BX.
124 (PARSE_AND_LIST_LONGOPTS): Add option --fix-v4bx.
125 (PARSE_AND_LIST_OPTIONS): Add option --fix-v4bx.
126 (PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX.
127 * NEWS: Mention --fix-v4bx.
128 * ld.texinfo: Document --fix-v4bx.
130 2005-01-25 Mark Mitchell <mark@codesourcery.com>
132 * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Define, so
133 as to include .ARM.exidx$${Base,Limit}.
134 * ld/scripttempl/armbpabi.sc: Move .plt to end of text segment.
135 Define IMAGE$$ER_RO$${Base,Limit} and SHT$$INIT_ARRAY$${Base,Limit}.
136 Put .init_array, .fini_array, etc. into the read-only data
139 2005-01-25 Alan Modra <amodra@bigpond.net.au>
141 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Formatting.
142 (gld${EMULATION_NAME}_after_open): Ignore needed libs if they were
143 only needed by an as-needed lib that didn't get linked.
145 2005-01-23 Alan Modra <amodra@bigpond.net.au>
147 * ld.texinfo (Output Section Keywords <CONSTRUCTORS>): Correct
148 __DTOR_LIST__ description.
150 2005-01-23 Alan Modra <amodra@bigpond.net.au>
152 * ld.texinfo (Location Counter <dot outside sections>): Document
153 effects of orphan section placement, and ". = ." workaround.
154 * Makefile.in: Regenerate.
156 2005-01-22 Richard Sandiford <rsandifo@redhat.com>
158 * emulparams/elf32bmip.sh (OTHER_GOT_SECTIONS): Add ". = .;".
159 * emulparams/elf32bmipn32-defs.sh (OTHER_GOT_SECTIONS): Likewise.
161 2005-01-21 Jakub Jelinek <jakub@redhat.com>
163 * ldgram.y (AS_NEEDED): New token.
164 (input_list): Handle AS_NEEDED ( input_list ).
165 * ldlex.l (AS_NEEDED): Add.
166 * ld.texinfo: Document AS_NEEDED ().
167 * NEWS: Mention AS_NEEDED ().
169 2005-01-21 Ben Elliston <bje@au.ibm.com>
171 * ldlang.c (lang_reasonable_defaults): Remove.
172 (lang_process): Don't call lang_reasonable_defaults.
174 * ldexp.c (exp_assop): Remove #if 0'd code.
175 (exp_print_tree): Likewise.
176 * ldlang.c (lang_memory_region_lookup): Likewise.
177 (open_output): Likewise.
178 (lang_do_assignments_1): Likewise.
179 (lang_place_orphans): Likewise.
180 (lang_enter_output_section_statement): Likewise.
181 (lang_reasonable_defaults): Likewise.
182 * ldlang.h (struct lang_input_statement_struct): Likewise.
183 * mri.c (mri_draw_tree): Likewise.
184 (mri_load): Likewise.
185 * pe-dll.c (generate_reloc): Likewise.
186 (make_import_fixup_entry): Likewise.
188 * emultempl/beos.em (set_pe_subsystem): Likewise.
189 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
190 * emultempl/pe.em: Likewise.
191 * emultempl/xtensaelf.em (xtensa_colocate_literals): Likewise.
193 2005-01-20 Daniel Jacobowitz <dan@codesourcery.com>
195 * Makefile.am (ALL_EMULATIONS): Add earmelfb_linux_eabi.o.
196 (earmelfb_linux_eabi.c): New target.
197 * Makefile.in: Regenerated.
198 * configure.tgt (arm*b-*-linux-gnueabi): New target.
199 * emulparams/armelfb_linux_eabi.sh: New file.
201 2005-01-20 Nick Hudson <skrll@netbsd.org>
204 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
205 Handle bfd_elf32_hppa_nbsd_vec.
207 2005-01-19 Richard Sandiford <rsandifo@redhat.com>
209 * ldmain.h (ld_sysroot): Change type to a constant string.
210 * ldmain.c (ld_sysroot): Likewise.
211 (get_relative_sysroot, get_sysroot): New functions, adding command-line
212 support for changing the sysroot.
213 (main): Call the new functions.
214 * lexsup.c (OPTION_SYSROOT): New.
215 (ld_options): Add --sysroot.
216 (parse_args): Add a dummy handler for it.
217 * ld.texinfo (--sysroot): Document.
218 * NEWS: Mention the new --sysroot option.
220 2005-01-18 Alan Modra <amodra@bigpond.net.au>
222 * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
223 (lang_place_orphans): Don't abort on just_syms_flag, instead call
226 2005-01-16 Danny Smith <dannysmith@users.sourceforge.net>
228 * defilep.y (def_name, def_library): Combine into...
229 (def_image_name): New function. Strip name to basename,
232 2005-01-12 Mark Kettenis <kettenis@gnu.org>
234 * configure.in: Be sure to invoke config.sub using the shell.
235 * configure: Regenerate.
237 2005-01-11 Alan Modra <amodra@bigpond.net.au>
239 * configure.host: Correct sed patterns for last change.
241 2005-01-10 Nick Clifton <nickc@redhat.com>
244 * ldmisc.c (vfinfo): Add an extra argument: is_warning. Use this
245 to determine whether config.make_executable should be set to FALSE in
246 conjunction with config.fatal_warnings.
247 (info_msg, minfo, lfinof): Pass FALSE as the extra argument.
248 (einfo): Pass TRUE as the extra argument.
250 2005-01-10 Greg Schaffer <gschafer@zip.com.au>
252 * configure.host (linux targets): Use "${CC} -dumpspecs" instead
253 of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0.
254 (ia64-*-aix): Delete - this target is obsolete, and would be
255 broken by this patch.
257 2005-01-06 Eric Botcazou <ebotcazou@libertysurf.fr>
259 * configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*.
260 (sparc64-sun-solaris2*): New host.
262 2005-01-06 Paul Brook <paul@codesourcery.com>
264 * Makefie.am: Add earmelf_vxworks.
265 * Makefile.in: Regenerate.
266 * configure.tgt: Make arm-*-vxworks a separate case.
267 * emulparams/armelf_vxworks.sh: New function.
269 2005-01-06 Alan Modra <amodra@bigpond.net.au>
271 * emultempl/ppc64elf.em (no_multi_toc): New var.
272 (gld${EMULATION_NAME}_finish): Pass to ppc64_elf_setup_section_lists.
273 (OPTION_NO_MULTI_TOC): Define.
274 (PARSE_AND_LIST_LONGOPTS): Add --no-multi-toc support.
275 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
277 2005-01-05 Nick Clifton <nickc@redhat.com>
280 * ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
281 Standard's specification for parsable error messages.
283 2005-01-04 Paul Brook <paul@codesourcery.com>
285 * Makefile.am: Correct dependency for earmsymbian.c.
286 * Makefile.in: Regenerate.
288 2004-12-28 Danny Smith <dannysmith@users.sourceforge.net>
290 * emultempl/pe.em (set_pe_subsystem): Change second arg to
291 lang_add_entry to FALSE.
293 2004-12-23 Nick Clifton <nickc@redhat.com>
296 * emulparams/shelf.sh (.stack): Increase stack start address to
299 2004-12-20 Nick Clifton <nickc@redhat.com>
301 * ldmain.c (main): Issue an error message if -static and -shared
304 2004-12-17 Jakub Jelinek <jakub@redhat.com>
306 * ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
307 * ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
308 * ldlang.c (lang_size_sections): Use them to avoid wasting virtual
309 address space at DATA_SEGMENT_ALIGN. Fix computation of expected
310 PT_GNU_RELRO segment end.
312 2004-12-14 P.J. Darcy <darcypj@us.ibm.com>
314 * configure.tgt: Add s390x-ibm-tpf support.
316 2004-12-16 Martin Kögler <mkoegler@auto.tuwien.ac.at>
318 * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
321 2004-12-07 Ben Elliston <bje@gnu.org>
323 * ldemul.h: Forward declare struct option.
325 2004-12-01 Danny Smith <dannysmith@users.sourceforge.net>
327 * scripttempl/pe.sc (.data): Add .jcr subsection.
329 2004-11-30 Paul Brook <paul@codesourcery.com>
331 * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
333 2004-11-30 Tero Niemela <tero_niemela@yahoo.com>
335 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
336 * Makefile.in: Regenerate.
338 2004-11-26 Melissa Mears <asterisk@graces.dricas.com>
340 * emultempl/pe.em: Add --subsystem:xbox as well as
342 * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
343 and numeric subsystems.
345 2004-11-24 Alan Modra <amodra@bigpond.net.au>
347 * ldexp.c (fold_name): Correct PR 338 fix.
349 2004-11-19 Mark Mitchell <mark@codesourcery.com>
351 * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
352 (earmelf_linux_eabi.c): New target.
353 * configure.tgt (arm*-*-linux-gnueabi): Handle it.
354 * emulparams/armelf_linux_eabi.sh: New file.
355 * Makefile.in: Regenerated.
357 2004-11-19 Nick Clifton <nickc@redhat.com>
360 * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
361 LENGTH fields in the MEMORY command, to explicitly state that
362 symbols cannot be used in their expressions.
364 2004-11-19 Jon Beniston <jon@beniston.com>
366 * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
367 * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
368 * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
369 which return the length and origin of a memory.
370 * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
371 * NEWS: Mention support for ORIGIN and LENGTH operators.
373 2004-11-17 Daniel Jacobowitz <dan@codesourcery.com>
375 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
376 a dynamic object for stubs.
378 2004-11-04 Paul Brook <paul@codesourcery.com>
380 * ld.texinfo: Document --default-imported-symver.
381 * ldmain.c (main): Set link_info.default_imported_symver.
382 * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
383 (ld_options): Add --default-imported-symver.
384 (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
386 2004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
387 Vineet Sharma <vineets@noida.hcltech.com>
389 * Makefile.am: Add entries for new maxq-coff target.
390 * Makefile.in: Regenerate.
391 * configure.tgt: Add support for maxq.
392 * emulparams/maxqcoff.sh: New File.
393 * scripttempl/maxqcoff.sc: New linker script for target maxq.
394 * NEWS: Mention the new target.
396 2004-11-08 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
398 * testsuite/ld-scripts/weak.exp: Enable test on PE,
400 * testsuite/ld-undefined/weak-undef.exp: Enable test on PE,
402 * testsuite/lib/ld-lib.exp (is_pecoff_format): New.
404 2004-11-04 Daniel Jacobowitz <dan@debian.org>
406 * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
407 (earmelf_oabi.c): Remove rule.
408 * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
409 * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
410 * Makefile.in: Regenerated.
412 2004-11-04 Hans-Peter Nilsson <hp@axis.com>
414 * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
415 * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
417 (INIT_END): Remove emitted "jump [sp+]".
420 2004-11-04 Alan Modra <amodra@bigpond.net.au>
422 * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
423 (no_opd_opt, no_toc_opt): New static vars.
424 (ppc_before_allocation): Don't edit opt if no_opd_opt. Call
426 (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
427 (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
428 (PARSE_AND_LIST_OPTIONS): Describe new options.
429 (PARSE_AND_LIST_ARGS_CASES): Handle them.
431 2004-10-27 Nick Clifton <nickc@redhat.com>
433 * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
434 parameter to invocation of lang_section_start.
435 * emultempl/aix.em (_handle_option): Likewise.
437 * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
438 eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
439 * Makefile.in: Regenerate.
441 2004-10-26 Mark Mitchell <mark@codesourcery.com>
443 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
444 __exidx_{start,end} when not relocating.
446 2004-10-25 Mark Mitchell <mark@codesourcery.com>
448 * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
449 * ldexp.h (segment_type): New type.
450 (segments): New variable.
451 * ldexp.c (segments): New variable.
452 (exp_print_token): Handle SEGMENT_START.
453 (fold_binary): Likewise.
454 * ldgram.y (SEGMENT_START): Declare it as a token.
455 (exp): Handle SEGMENT_START.
456 * ldlang.h (lang_address_statement_type): Add segment field.
457 (lang_section_start): Change prototype.
458 * ldlang.c (map_input_to_output_sections): Do not process section
459 assignments if a corresponding SEGMENT_START has already been
461 (lang_section_start): Add segment parameter.
462 * ldlex.l (SEGMENT_START): Add it.
463 * lexsup.c (seg_segment_start): New function.
464 (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
465 * ld.texinfo (SEGMENT_START): Document it.
466 * emulparams/armsymbian.sh (EMBEDDED): Set it.
467 * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
468 base addresses. Do not map relocations.
469 * NEWS: Mention SEGMENT_START.
471 2004-10-26 Paul Brook <paul@codesourcery.com>
473 * ld.texinfo: Document --default-symver.
474 * ldmain.c (main): Set link_info.create_default_symver.
475 * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
476 (ld_options): Add default-symver.
477 (parse_args): Handle OPTION_DEFAULT_SYMVER.
479 2004-10-24 Danny Smith <dannysmith@users.sourceforge.net>
481 * pe-dll.c (process_def_file): Don't export all symbols by default if
482 building a position-independent executable.
484 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
487 * ldmain.c (reloc_overflow): Accept a pointer to struct
488 bfd_link_hash_entry. Report symbol location for relocation
491 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
493 * genscripts.sh (libpath.exp): Really generate for first
496 2004-10-19 Danny Smith <dannysmith@users.sourceforge.net>
498 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
499 comparison and replacement of filenames.
501 2004-10-19 H.J. Lu <hongjiu.lu@intel.com>
504 * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
505 option on linker script as the one for linker script.
507 2004-10-16 Daniel Jacobowitz <dan@debian.org>
509 * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
510 (check_excluded_libs): New.
511 (load_symbols): Call check_excluded_libs.
512 * ldlang.h (add_excluded_libs): New prototype.
513 * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
514 (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
515 (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
516 * ld.texinfo (Command Line Variables): Document --exclude-libs.
517 (Options Specific to i386 PE Targets): Remove --exclude-libs.
519 2004-10-15 Alan Modra <amodra@bigpond.net.au>
521 * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
522 failing link script assert.
524 * ldctor.c (ldctor_add_set_entry): Fix comment typo.
526 2004-10-14 H.J. Lu <hongjiu.lu@intel.com>
529 * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
530 (SMALL_DATA_DTOR): Set.
531 * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
532 (SMALL_DATA_DTOR): Unset.
533 * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
534 after .data. If SMALL_DATA_DTOR is set, move .dtors after
537 2004-10-14 Alan Modra <amodra@bigpond.net.au>
540 * ldlang.h (lang_output_section_statement_type): Make "next" a
541 struct lang_output_section_statement_struct *.
542 (struct orphan_save): Move from elf32.em. Add "name" and "flags".
543 (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
544 * ldlang.c (lang_output_section_find_1): Adjust for changed
545 output_section_statement "next".
546 (strip_excluded_output_sections): Likewise.
547 (lang_record_phdrs): Likewise.
548 (lang_output_section_find_by_flags): New function.
549 (output_prev_sec_find): Move from pe.em. Adjust iterator.
550 (lang_insert_orphan): New function. Tail end of elf32.em's
551 place_orphan merged with that from pe.em. Allow bfd_section to
552 be placed first. New heuristic for placing new output section
553 statement in existing script, and accompanying split of __start
554 symbol alignment into a separate assignment to dot.
555 (lang_add_section): Consistently use output->bfd_section rather than
556 an alias, section->output_section.
557 (map_input_to_output_sections): Rename overly long arg. Move
558 initialization of data_statement output section to here..
559 (lang_check_section_addresses): ..from here.
560 (print_assignment): Correct printing of etree_assert.
561 (print_all_symbols): Don't bomb if userdata is NULL.
562 (IGNORE_SECTION): Rearrange.
563 * emultempl/elf32.em (output_rel_find): Adjust interator.
564 (output_prev_sec_find): Delete.
565 (struct orphan_save): Delete.
566 (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
567 flags without creating a duplicate output section statement.
568 Revise code holding history of various orphan section placements.
569 Allow orphan sections to place before script specified output
570 sections. Call lang_output_section_find_by_flags when placement
571 by name fails. Use lang_insert_orphan.
572 * emultempl/mmo.em (output_prev_sec_find): Delete.
573 (struct orphan_save): Delete.
574 (mmo_place_orphan): Revise code holding history of orphan placement.
575 Allow orphans to place before existing output sections. Use
577 * emultempl/pe.em (output_prev_sec_find): Delete.
578 (struct orphan_save): Delete.
579 (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
582 2004-10-13 Mark Mitchell <mark@codesourcery.com>
584 * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
587 2004-10-13 Alan Modra <amodra@bigpond.net.au>
590 * ldcref.c (check_section_sym_xref): Delete.
591 (check_local_sym_xref): New function.
592 (check_nocrossrefs): Adjust call.
593 * emultempl/pe.em (struct orphan_save): Add os_tail.
594 (place_orphan): Backport assorted fixes from elf32.em.
596 2004-10-12 Bob Wilson <bob.wilson@acm.org>
598 * emultempl/xtensaelf.em: Use ISO C90 formatting.
600 2004-10-11 Jakub Jelinek <jakub@redhat.com>
602 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
603 getline for portability.
605 * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
606 (gld${EMULATION_NAME}_parse_ld_so_conf,
607 gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
608 (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
610 2004-10-11 Alan Modra <amodra@bigpond.net.au>
613 * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
614 rejected when linking statically.
616 2004-10-08 Daniel Jacobowitz <dan@debian.org>
618 * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
620 2004-10-07 Bob Wilson <bob.wilson@acm.org>
622 * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
623 assembler-generated longcall sequences. Describe new --size-opt
625 * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
626 * emultempl/xtensaelf.em (remove_section,
627 replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
628 elf_xtensa_after_open): New.
629 (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
630 OPTION_NO_LITERAL_MOVEMENT): Define.
631 (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
632 (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
633 (PARSE_AND_LIST_OPTIONS): Add --size-opt.
634 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
635 OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
636 (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
637 * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
638 * Makefile.am (eelf32xtensa.c): Update dependencies.
639 * Makefile.in: Regenerate.
641 2004-10-07 Jeff Baker <jbaker@qnx.com>
643 * lexsup.c: Handle --warn-shared-textrel option.
644 (ld_options): Restore alpha sorting of options.
645 * ldmain.c (main): Initialise warn_shared_info field to FALSE.
646 * ld.texinfo: Add documentation for --warn-shared-textrel.
647 * NEWS: Added mention of --warn-shared-textrel option.
649 2004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
651 * emultempl/crxelf.em (disable_relaxation): Add.
652 (crxelf_before_allocation): Enable --relax option by default.
653 (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
654 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
655 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
657 2004-10-04 H.J. Lu <hongjiu.lu@intel.com>
659 * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
660 --sort-section name|alignment.
662 * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
663 --sort-section name|alignment.
665 * ld.h (sort_type): New enum.
666 (wildcard_spec): Change the type of `sorted' to sort_type.
668 * ldgram.y (SORT): Removed.
669 (SORT_BY_NAME): Added.
670 (SORT_BY_ALIGNMENT): Added.
671 (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
673 (input_section_spec_no_keep): Updated `sorted'.
674 (statement): Replace SORT with SORT_BY_NAME.
676 * ldlang.c (compare_section): New function to compare 2
677 sections with different sorting schemes.
678 (wild_sort): Updated. Use compare_section.
679 (update_wild_statements): New function.
680 (lang_process): Call update_wild_statements before
681 map_input_to_output_sections.
683 * ldlex.l (SORT_BY_NAME): New.
684 (SORT_BY_ALIGNMENT): New.
685 (SORT): Return SORT_BY_NAME.
687 * ldmain.c (sort_section): New. Defined.
688 (main): Initialize it to none.
690 * lexsup.c (option_values): Add OPTION_SORT_SECTION.
691 (ld_options): Add an entry for OPTION_SORT_SECTION.
692 (parse_args): Handle OPTION_SORT_SECTION.
694 * mri.c (mri_draw_tree): Updated `sorted'.
696 2004-10-04 Jakub Jelinek <jakub@redhat.com>
698 * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
699 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
701 (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
702 and . as second argument.
703 (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
704 * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
705 (fold_binary): Add it here. Insert padding to make relro_end
706 COMMONPAGESIZE bytes aligned. For DATA_SEGMENT_ALIGN in
707 exp_dataseg_relro_adjust phase just use previously computed
709 * ldlang.c (lang_size_sections): Set exp_data_seg.base for
710 relro_adjust here. Call lang_size_sections_1 once more if there
711 was too big padding at DATA_SEGMENT_RELRO_END.
712 * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
714 2004-10-01 Paul Brook <paul@codesourcery.com>
716 * emulparams/armelf.sh: Add unwinding table sections.
718 2004-09-30 Filip Navara <navaraf@reactos.com>
720 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
721 correct base address for position independant executables.
722 * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
725 2004-09-30 Paul Brook <paul@codesourcery.com>
727 * ld.texinfo: Document --target2=abs.
728 * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
730 2004-09-29 Nick Clifton <nickc@redhat.com>
732 * scripttempl/xstormy16.sc: Only perform the assignments to the
733 ROM region when not performing a relocatable link. The ROM region
734 does not start at address 0, but the sections will.
735 * Makefile.am: Fix linker script dependency for the generation of
737 * Makefile.in: Regenerate.
739 2004-09-18 Filip Navara <navaraf@reactos.com>
741 * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
742 emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
743 emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
745 * scripttempl/pe.sc: Make the virtual address and file offset synced if
746 the alignment is lower than the target page size.
748 2004-09-27 Filip Navara <navaraf@reactos.com>
750 * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
751 def_file_parse to handle pe_def_file if NULL and prevent crash with
754 2004-09-27 Alan Modra <amodra@bigpond.net.au>
756 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
757 --emit-stub-syms automatically when --emit-relocs.
759 2004-09-24 Paul Brook <paul@codeosurcery.com>
761 * scripttempl/elf.sc: Keep .preinit_array, .init_array and
762 .fini_array sections.
764 2004-09-19 Andreas Schwab <schwab@suse.de>
766 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
767 base so that relro end is suitably aligned.
769 2004-09-17 Paul Brook <paul@codesourcery.com>
771 * ld.texinfo: Rename arm-specific section. Document --target*
772 * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
773 * emulparams/armelf_linux.sh: Ditto.
774 * emulparams/armelf_nbsd.sh: Ditto.
775 * emultempl/armelf.em: Set default for TARGET2_TYPE.
776 (target2_type): New variable.
777 (arm_elf_before_allocation): Don't pass target1_type.
778 (arm_elf_create_output_section_statements): New function.
779 (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
780 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
781 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
782 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
783 * emultempl/armelf_oabi.em (_before_allocation): Remove extra
784 argument to bfd_elf32_arm_process_before_allocation.
786 2004-09-17 Alan Modra <amodra@bigpond.net.au>
788 * ldexp.c (fold_name): Update u.undef.next refs.
789 * emultempl/pe.em: Likewise.
790 * emultempl/sunos.em: Likewise.
792 2004-09-17 Alan Modra <amodra@bigpond.net.au>
794 * Makefile.am: Run "make dep-am".
795 * Makefile.in: Regenerate.
796 * config.in: Regenerate.
797 * configure: Regenerate.
798 * aclocal.m4: Regenerate.
799 * po/ld.pot: Regenerate.
801 2004-09-16 Tomer Levi <Tomer.Levi@nsc.com>
803 * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
807 2004-09-16 Alan Modra <amodra@bigpond.net.au>
809 * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
810 to bfd_elf32_arm_process_before_allocation call.
812 2004-09-13 Paul Brook <paul@codesourcery.com>
814 * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
815 * emultempl/armelf.em: Use TARGET1_IS_REL. Add --target1-{rel,abs}.
817 2004-09-07 H.J. Lu <hongjiu.lu@intel.com>
819 * configure: Regenerated with autconfig 2.13.
821 2004-09-07 Andreas Schwab <schwab@suse.de>
823 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
824 alignment before adjusting DATA_SEGMENT_RELRO_END.
826 2004-09-06 Mark Mitchell <mark@codesourcery.com>
828 * emulparams/armsymbian.sh: Use armbpabi script.
829 * scripttempl/armbpabi.sc: New script.
831 2004-09-02 Mark Mitchell <mark@codesourcery.com>
833 * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
834 (earmsymbian.c): New target.
835 * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
836 * Makefile.in: Regenerated.
837 * aclocal.m4: Likewise.
838 * configure: Likewise.
839 * emulparams/armsymbian.sh: New file.
841 2004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
843 * scripttempl/elf32crx.sc: Edit file with comments.
844 (.init): Add new section.
846 (.ctor): Control the linkage order.
849 2004-08-27 Nick Clifton <nickc@redhat.com>
851 * emultempl/pe.em (after_open): Do not assume that either bfd is
854 2004-08-26 Alan Modra <amodra@bigpond.net.au>
856 * ldlang.c (lang_init): Don't compare with TRUE.
858 2004-08-25 Dmitry Diky <diwil@spec.ru>
860 * emulparams/msp430all.sh: Fix RAM sizes for all targets.
861 * scripttempl/elf32msp430.sc: Add .profiler section definition.
863 2004-08-24 H.J. Lu <hongjiu.lu@intel.com>
865 * ldlang.c (wildcardp): Defined as a macro with strpbrk.
867 2004-08-19 Mark Mitchell <mark@codesourcery.com>
869 * configure.tgt (arm*-*-symbianelf*): New target.
870 (arm*-*-eabi*): Likewise.
872 2004-08-19 Jakub Jelinek <jakub@redhat.com>
874 * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
875 (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
876 (OPTION_NON_OVERLAPPING_OPD): Define.
877 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
878 --non-overlapping-opd option.
880 2004-08-18 Alan Modra <amodra@bigpond.net.au>
883 * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
884 was already on the undefs list.
886 2004-08-17 Alan Modra <amodra@bigpond.net.au>
888 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
889 prefix the symbol field too.
891 2004-08-13 Alan Modra <amodra@bigpond.net.au>
893 * ldmain.c (link_callbacks): Remove "error_handler".
894 * ldmisc.c: Include elf-bfd.h.
895 (vfinfo): Sort comment. Handle %A. Use %A instead of
896 bfd_get_section_indent.
897 (error_handler): Delete.
898 * ldmisc.h (error_handler): Delete declaration.
900 2004-08-10 Alan Modra <amodra@bigpond.net.au>
902 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
903 ppc64_elf_restore_symbols.
905 2004-08-09 Alan Modra <amodra@bigpond.net.au>
907 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
908 .toc is too large on relocatable linking.
910 2004-08-09 Alan Modra <amodra@bigpond.net.au>
912 * emultempl/ppc64elf.em (ppc_after_open): Delete.
913 (LDEMUL_AFTER_OPEN): Don't define.
915 2004-08-02 Stephane Carrez <stcarrez@nerim.fr>
917 * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
919 2004-08-01 Stephane Carrez <stcarrez@nerim.fr>
921 * scripttempl/elfm68hc12.sc: Align text, rodata and data section
924 2004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
926 * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
928 2004-07-26 Dmitry Diky <diwil@spec.ru>
930 * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
931 msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
933 * configure.tgt: Likewise.
934 * emulparams/msp430all.sh: Likewise.
935 * Makefile.in: Regenerate.
937 2004-07-23 Nick Clifton <nickc@redhat.com>
939 * emultempl/elf32.em (_place_orphan): Use an already existing
940 section name if that section does not have any flags set.
942 2004-07-21 H.J. Lu <hongjiu.lu@intel.com>
944 * ldlang.c (already_linked_hash_entry): Removed.
945 (already_linked): Likewise.
946 (already_linked_table): Likewise.
947 (section_already_linked): Call bfd_section_already_linked.
948 (lang_process): Replace already_linked_table_init with
949 bfd_section_already_linked_table_init and check return. Replace
950 already_linked_table_free with bfd_section_already_linked_table_free.
952 2004-07-21 Nick Clifton <nickc@redhat.com>
954 * ldlang.c (init_os): Make sure that the newly allocated userdata
955 structure is zeroed out.
957 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
959 * NEWS: Mention the new --add-needed/--no-add-needed and
960 --as-needed/--no-as-needed options.
962 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
964 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
965 check the add_needed field.
966 (dt_needed): New struct.
967 (gld${EMULATION_NAME}_try_needed): Change the first argument
968 to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
969 bit in the file where the DT_NEEDED entry comes from.
970 (gld${EMULATION_NAME}_search_needed): Change the second
971 argument to a pointer to struct dt_needed.
972 (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
973 (gld${EMULATION_NAME}_after_open): Likewise.
975 * ld.texinfo: Add --add-needed document.
976 * ldlang.c (new_afile): Set p->add_needed.
977 * ldlang.h (lang_input_statement_type): Add add_needed field.
978 * ldmain.h (add_needed): Declare.
979 * ldmain.c (add_needed): New global var.
980 * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
981 OPTION_NO_ADD_NEEDED.
982 (ld_options): Likewise.
983 (parse_args): Handle them.
985 2004-07-13 Christof Petig <christof@petig-baender.de>
987 * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
988 for endian-ness of extracted addend.
990 2004-07-13 Danny Smith <dannysmith@usesr.sourceforge.net>
992 * pe-dll.c (auto_export): Filter on just the import prefix,
993 "_imp_", not "_imp__".
995 2004-07-09 Nick Clifton <nickc@redhat.com>
997 * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
999 2004-07-06 Tomer Levi <Tomer.Levi@nsc.com>
1001 * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
1002 (eelf32crx.c): New target.
1003 * Makefile.in: Regenerate.
1004 * configure.tgt: Handle crx-*-elf*.
1005 * emulparams/elf32crx.sh: New file.
1006 * emultempl/crxelf.em: New file.
1007 * scripttempl/elf32crx.sc: New file.
1008 * NEWS: Mention new target.
1010 2004-07-06 Nick Clifton <nickc@redhat.com>
1012 * Makefile.am: Add eshlsymbian.c.
1013 * Makefile.in: Regenerate.
1014 * configure.tgt: Add sh*-symbian-elf target.
1015 * emulparams/shlsymbian.sh: New file. Configure the
1016 sh-symbian-elf linker scripts.
1017 * scripttemp/elf32sh-symbian.sc: New file. Linker script
1018 template for the sh-symbian-elf target.
1020 2004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1022 * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
1023 * emulparams/hppalinux.sh: Likewise.
1024 * scripttempl/elf.sc: Place .plt just before .got when .plt is in
1025 data segment and PLT_BEFORE_GOT is defined.
1027 2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1029 * ld.texinfo (WIN32): Document PE weak symbols.
1031 2004-07-02 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1033 * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
1035 2004-07-01 H.J. Lu <hongjiu.lu@intel.com>
1037 * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
1040 2004-06-29 Alan Modra <amodra@bigpond.net.au>
1042 * ldlang.c (lang_reset_memory_regions): Save last relax pass section
1045 2004-06-24 Alan Modra <amodra@bigpond.net.au>
1047 * ldlang.c (print_output_section_statement): Don't print size before
1049 (IGNORE_SECTION): Remove bfd arg. Update all callers.
1051 * ldexp.c (fold_name): .. See below.
1052 * ldlang.c (section_already_linked, print_output_section_statement,
1053 print_input_section, insert_pad, size_input_section,
1054 lang_check_section_addresses, lang_size_sections_1,
1055 lang_size_sections, lang_do_assignments_1, lang_set_startof,
1056 lang_one_common, lang_reset_memory_regions, lang_process,
1057 lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
1058 * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
1059 * pe-dll.c (process_def_file, generate_reloc): ..
1060 * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
1061 gld${EMULATION_NAME}_before_allocation): ..
1062 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
1063 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
1064 sh64_elf_${EMULATION_NAME}_after_allocation): ..
1065 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
1066 * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
1067 ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
1068 "size" instead of "_raw_size" and "_cooked_size". Expand
1069 bfd_section_size macro invocations.
1071 2004-06-22 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1073 * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
1074 ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
1075 ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
1077 (.tls): Define ___tls_start__ and ___tls_end__.
1079 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
1081 * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
1083 2004-06-18 Adam Nemet <anemet@lnxw.com>
1085 * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
1086 * configure: Regenerate.
1088 2004-06-15 Jakub Jelinek <jakub@redhat.com>
1090 * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
1091 .gcc_except_table output sections lost accidentally with
1094 2004-06-15 Alan Modra <amodra@bigpond.net.au>
1096 * ldwrite.c (build_link_order): Use bfd_get_section_size
1097 instead of bfd_get_section_size_before_reloc or _raw_size.
1098 * pe-dll.c (process_def_file): Likewise.
1100 2004-06-14 Alan Modra <amodra@bigpond.net.au>
1102 From Richard Wirth <r.wirth@wirthware.de>
1103 * ldlang.c (lang_finish): Don't free lang_definedness_table.
1105 2004-05-29 Alan Modra <amodra@bigpond.net.au>
1107 * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
1108 (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
1110 2004-05-28 Andrew Stubbs <andrew.stubbs@superh.com>
1112 * testsuite/ld-sh/arch/arch.exp: New test script.
1113 * testsuite/ld-sh/arch/arch_expected.txt: New file.
1114 * testsuite/ld-sh/arch/sh.s: New file.
1115 * testsuite/ld-sh/arch/sh2.s: New file.
1116 * testsuite/ld-sh/arch/sh-dsp.s: New file.
1117 * testsuite/ld-sh/arch/sh2e.s: New file.
1118 * testsuite/ld-sh/arch/sh3-nommu.s: New file.
1119 * testsuite/ld-sh/arch/sh3.s: New file.
1120 * testsuite/ld-sh/arch/sh3-dsp.s: New file.
1121 * testsuite/ld-sh/arch/sh3e.s: New file.
1122 * testsuite/ld-sh/arch/sh4-nommu-nofpu.s: New file.
1123 * testsuite/ld-sh/arch/sh4-nofpu.s: New file.
1124 * testsuite/ld-sh/arch/sh4.s: New file.
1125 * testsuite/ld-sh/arch/sh4a-nofpu.s: New file.
1126 * testsuite/ld-sh/arch/sh4al-dsp.s: New file.
1127 * testsuite/ld-sh/arch/sh4a.s: New file.
1129 2004-05-28 Alan Modra <amodra@bigpond.net.au>
1131 * ldlang.c: Formatting. Wrap long lines, expand bfd_get_section_flags
1133 * lexsup.c: Formatting. Wrap long lines.
1134 * ldwrite.c: Update copyright date.
1136 * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
1137 (output_section_callback): Nor SEC_KEEP here.
1138 (gc_section_callback): Twiddle SEC_EXCLUDE here.
1139 (lang_gc_wild): Delete. Fold into..
1140 (lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage
1142 (lang_process): Always call lang_gc_sections.
1143 (lang_place_orphans): Handle SEC_EXCLUDE sections.
1144 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
1147 2004-05-26 H.J. Lu <hongjiu.lu@intel.com>
1149 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
1150 SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
1151 * ldlang.c (lang_add_section): Likewise.
1153 2004-05-26 Alan Modra <amodra@bigpond.net.au>
1155 * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
1156 sections when doing a final link. Clear SEC_EXCLUDE when doing
1157 a relocable link, except for SEC_DEBUGGING sections.
1158 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
1159 same condition here to drop SEC_EXCLUDE orphan sections.
1161 2004-05-25 Alan Modra <amodra@bigpond.net.au>
1163 * ldlang.c (lang_process): Call bfd_merge_sections later, and
1164 only when not a relocatable link.
1165 (print_input_section): Handle SEC_EXCLUDE sections.
1166 (size_input_section): Don't update dot on SEC_EXCLUDE sections.
1167 (lang_do_assignments_1): Likewise.
1168 * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
1169 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
1170 * emultempl/hppaelf.em (build_section_lists): Likewise.
1171 * emultempl/ppc64elf.em (build_toc_list): Likewise.
1172 (build_section_lists): Likewise.
1174 2004-05-23 Andreas Schwab <schwab@suse.de>
1176 * ld.texinfo (Options): Fix typo in last change.
1178 2004-05-21 Andy Chittenden <achittenden@bluearc.com>
1180 * ld.h (ld_config_type): Add new field: hash_table_size.
1181 * ldmain.c: Initialise the new field to zero. If it is non-zero
1182 after parsing the linker's command line call
1183 bfd_hash_set_default_size.
1184 * lexsup.c (option_values): Add OPTION_HASH_SIZE.
1185 (ld_options): Add hash-size.
1186 (parse_args): Parse --hash-size option. Allow
1187 --reduce-memory-overheads to set the default hash table size as
1189 * ld.texinfo: Document the new switch. Also mention that
1190 --reduce-memory-overheads can affect the hash table size.
1191 * NEWS: Mention the new feature.
1193 2004-05-19 J"orn Rennecke <joern.rennecke@superh.com>
1195 * NEWS: Mention new linker map file generation and the
1196 --reduce-memory-overheads option.
1197 * ld.texinfo: Document --reduce-memory-overheads option.
1198 * ld.h (map_symbol_def): New struct.
1199 (struct user_section_struct, section_userdata_type): Rename to:
1200 (struct lean_user_section_struct, lean_section_userdata_type).
1201 (struct fat_user_section_struct, fat_section_userdata_type): New.
1202 (SECTION_USERDATA_SIZE): Define.
1203 (args_type): New member reduce_memory_overheads.
1204 * ldlang.c (map_obstack): New static variable.
1205 (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
1206 (lang_map): Unless command_line.reduce_memory_overheads is set,
1207 initialize lists of defined symbols for each section.
1208 (print_input_section): Unless command_line.reduce_memory_overheads
1209 is set, use print_all_symbols.
1210 (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
1211 * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
1212 * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
1213 (ld_options): Add entry for --reduce-memory-overheads.
1214 (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
1216 2004-05-19 Jakub Jelinek <jakub@redhat.com>
1218 * ldgram.y (sect_constraint): New.
1219 (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1220 (section): Add sect_constraint. Pass additional argument
1221 to lang_enter_output_section_statement.
1222 * mri.c (mri_draw_tree): Pass additional argument to
1223 lang_enter_output_section_statement.
1224 * emultempl/pe.em (place_orphan): Likewise.
1225 (output_prev_sec_find): Disregard output section statements with
1227 * emultempl/mmo.em (output_prev_sec_find): Likewise.
1228 (mmo_place_orphan): Pass additional argument to
1229 lang_enter_output_section_statement.
1230 * emultempl/elf32.em (output_prev_sec_find): Disregard output section
1231 statements with constraint == -1.
1232 (place_orphan): Pass additional argument to
1233 lang_enter_output_section_statement.
1234 * ldlang.c (lang_enter_overlay_section): Likewise.
1235 (lang_output_section_find_1): New.
1236 (lang_output_section_find): Use it.
1237 (lang_output_section_statement_lookup_1): New.
1238 (lang_output_section_statement_lookup): Use it.
1239 (check_section_callback, check_input_sections): New.
1240 (map_input_to_output_sections): Check if all input sections
1241 are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
1242 (strip_excluded_output_sections): Disregard output section statements
1243 with constraint == -1.
1244 (lang_record_phdrs): Likewise.
1245 (lang_enter_output_section_statement): Add constraint argument.
1246 Use lang_output_section_statement_lookup_1.
1247 * ldlang.h (lang_output_section_statement_type): Add constraint
1248 and all_input_readonly fields.
1249 (lang_enter_output_section_statement): Adjust prototype.
1250 * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1251 * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
1252 segment if all input sections are readonly.
1254 2004-05-19 Adam Nemet <anemet@lnxw.com>
1256 * scripttempl/i386lynx.sc: Remove file.
1258 2004-05-17 Bob Wilson <bob.wilson@acm.org>
1260 * ld.texinfo (Output Section Address): Correct subsection name.
1262 2004-05-17 Adam Nemet <anemet@lnxw.com>
1264 * configure.tgt (powerpc-*-lynxos* case): New case.
1265 * configure.host (i[3-7]86-*-lynxos* case): Remove case.
1266 * emulparams/ppclynx.sh: New file.
1267 * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
1268 * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
1269 (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
1270 (eppclynx.c): New rule.
1271 * Makefile.in: Regenerate.
1273 2004-05-13 Joel Sherrill <joel@oarcorp.com>
1275 * configure.tgt (or32-*-rtems*): Switch to elf and
1276 support versioned targets.
1278 2004-05-13 Nick Clifton <nickc@redhat.com>
1280 * po/fr.po: Updated French translation.
1282 2004-05-11 Jakub Jelinek <jakub@redhat.com>
1284 * genscripts.sh: Generate -z combreloc -z now -z relro scripts
1285 for binaries, -shared and -pie.
1286 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
1287 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
1288 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
1289 (OTHER_RELRO_SECTIONS): ... this.
1290 * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
1291 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
1292 -z relro and -z norelro.
1293 (gld${EMULATION_NAME}_list_options): Add it to usage.
1294 (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
1295 -z relro scripts when appropriate.
1296 * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
1297 Create separate .got.plt section if SEPARATE_GOTPLT.
1298 Move sections which are only written during relocation handling
1299 to the beginning of RW segment. If NO_SMALL_DATA, move .got
1300 before .data. Add DATA_SEGMENT_RELRO_END directive.
1301 Include OTHER_RELRO_SECTIONS.
1302 * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
1303 * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
1304 (fold_unary): Likewise.
1305 (fold_binary): Handle -z relro.
1306 * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
1307 exp_dataseg_relro_adjust phases. Add relro_end field.
1308 * ldmain.c (main): Initialize link_info.relro to FALSE.
1309 * ldlang.c (lang_size_sections): Handle -z relro.
1311 2004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
1313 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
1315 2004-05-07 J"orn Rennecke <joern.rennecke@superh.com>
1317 * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
1318 before printing it with %W.
1320 2004-05-07 Brian Ford <ford@vss.fsi.com>
1321 DJ Delorie <dj@redhat.com>
1323 * emultempl/pe.em (real_flags): New static.
1324 (OPTION_LARGE_ADDRESS_AWARE): New define.
1325 (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
1326 (gld_${EMULATION_NAME}_list_options): Likewise.
1327 (gld${EMULATION_NAME}_handle_option): Likewise.
1328 (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
1329 * ld.texinfo: Document it.
1332 2004-05-07 Brian Ford <ford@vss.fsi.com>
1334 * NEWS: Mention DWARF 2 support for i386pe.
1336 2004-05-05 Alexandre Oliva <aoliva@redhat.com>
1338 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
1341 2004-04-30 Alan Modra <amodra@bigpond.net.au>
1343 * ldlang.c (unique_section_p): Pass section parm, return true on
1345 (output_section_callback): Adjust.
1346 * ldlang.h (unique_section_p): Update prototype.
1347 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
1349 2004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
1351 * ld.texinfo (--gc-sections): Remove restriction for
1354 2004-04-29 Brian Ford <ford@vss.fsi.com>
1356 * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
1357 for DWARF 2/3. Update stab section's syntax.
1359 2004-04-29 Alan Modra <amodra@bigpond.net.au>
1361 * pe-dll.c: Revert changes accidentally committed 2004-03-08.
1362 (fill_edata): Correct pointer arithmetic.
1364 2004-04-21 Chris Demetriou <cgd@broadcom.com>
1366 * ld.texinfo: Remove MIPS --embedded-relocs documentation.
1367 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
1368 * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
1369 (EXTRA_EM_FILE): Use mipsecoff.em
1370 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
1371 (EXTRA_EM_FILE): Use mipsecoff.em
1372 * emultempl/mipsecoff.em: Restructure to be included as an
1373 extra emulation file.
1374 (check_sections, gld${EMULATION_NAME}_after_open)
1375 (gld${EMULATION_NAME}_after_allocation)
1376 (gld${EMULATION_NAME}_get_script)
1377 (ld_${EMULATION_NAME}_emulation): Remove
1378 (gld${EMULATION_NAME}_before_parse): Rename to...
1379 (mipsecoff_before_parse): This.
1380 (LDEMUL_BEFORE_PARSE): Define.
1381 * emultempl/mipself.em: Remove file.
1382 * scripttempl/mips.sc (.rel.sdata): Do not include in output.
1383 (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
1385 * Makefile.am: Remove dependencies on emultempl/mipself.em.
1386 * Makefile.in: Regenerate.
1388 2004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
1390 * ld.texinfo (synthesizing on H8/300): Information about linker
1391 relaxation support for bit manipulation instructions and system
1392 control instructions is added.
1394 2004-04-21 Hans-Peter Nilsson <hp@axis.com>
1396 * NEWS: Mention change in DEFINED semantics.
1398 2004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
1400 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
1401 (.data): Add KEEP for .gnu.linkonce.d.*personality*.
1402 (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
1404 2004-04-21 Ben Elliston <bje@au.ibm.com>
1406 * ld.texinfo (Simple Example): Add missing punctuation.
1408 2004-04-20 Chris Demetriou <cgd@broadcom.com>
1410 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
1412 2004-04-19 Jakub Jelinek <jakub@redhat.com>
1414 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
1417 2004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
1419 * scriptempl/pe.sc: Put numbered .ctors.* after .ctors
1420 with default priority. Likewise for dtors.
1422 2004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1424 * configure.host: Remove mips*-dec-bsd* target.
1425 * configure.tgt: Likewise.
1427 2004-04-08 Richard Sandiford <rsandifo@redhat.com>
1429 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
1430 * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
1431 * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
1432 * emultempl/irix.em: New file.
1433 * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
1435 * Makefile.in: Regenerate.
1437 2004-04-01 Paul Brook <paul@codesourcery.com>
1439 * emultempl/armelf.em (byteswap_code): Add.
1440 (arm_elf_before_allocation): Pass extra parameter.
1441 (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
1442 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
1443 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
1444 * emultempl/armelf_oabi.em: Pass extra parameter.
1445 * ld.texinfo: Document --be8.
1447 2004-03-30 Stan Shebs <shebs@apple.com>
1449 Remove long-obsolete MPW support.
1450 * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
1451 * Makefile.am (mpw): Remove file-presynthesizing actions.
1452 * Makefile.in: Likewise.
1453 * ldfile.c (slash): Remove MPW case.
1454 * ldlex.l [MPW]: Remove unused definition.
1456 2004-03-30 Galit Heller <Galit.Heller@nsc.com>
1458 * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
1459 (eelf32cr16c.c): New target.
1460 * Makefile.in: Regenerate.
1461 * configure.tgt: Handle cr16c-*-elf*.
1462 * emulparams/elf32cr16c.sh: New file.
1463 * scripttempl/elfcr16c.sc: Likewise
1464 * NEWS: Mention support for new target.
1466 2004-03-30 Nick Clifton <nickc@redhat.com>
1468 * po/sv.po: Updated Swedish translation.
1470 2004-03-27 Alan Modra <amodra@bigpond.net.au>
1472 * emultempl/elf32.em: Update new bfd_elf_discard_info name.
1473 * emultempl/hppaelf.em: Likewise.
1474 * emultempl/ppc64elf.em: Likewise.
1475 * emultempl/sh64elf.em: Likewise.
1477 2004-03-25 Alan Modra <amodra@bigpond.net.au>
1479 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
1480 size_dynamic_sections call.
1482 2004-03-23 Alan Modra <amodra@bigpond.net.au>
1485 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
1486 link_info.wrap_char.
1488 2004-03-20 H.J. Lu <hongjiu.lu@intel.com>
1490 * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
1491 or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
1493 2004-03-20 Alexandre Oliva <aoliva@redhat.com>
1495 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
1497 2004-03-19 Alan Modra <amodra@bigpond.net.au>
1499 * config.in: Regenerate.
1500 * po/ld.pot: Regenerate.
1502 2004-03-18 Alan Modra <amodra@bigpond.net.au>
1504 * ld.texinfo: Add --as-needed doco.
1505 * ldmain.c (as_needed): New global var.
1506 * ldmain.h (as_needed): Declare.
1507 * lexsup.c (option_values): Add OPTION_AS_NEEDED and
1508 OPTION_NO_AS_NEEDED.
1509 (ld_options): Likewise.
1510 (parse_args): Handle them.
1511 * ldlang.h (lang_input_statement_type): Add as_needed field.
1512 * ldlang.c (new_afile): Set p->as_needed.
1513 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
1514 (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
1515 (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
1517 * ldlang.c (open_input_bfds): Remove useless cast.
1518 (lang_do_assignments_1): Likewise.
1519 (lang_for_each_input_section): Delete.
1521 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1523 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
1525 2004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
1527 * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
1528 private when building implib.
1530 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
1532 * ldlang.c (lang_add_section): Don't force SEC_LOAD on
1534 (IGNORE_SECTION): Ignore .tbss sections too.
1535 (lang_size_sections_1): .tbss sections do not advance dot.
1537 2004-03-01 Andreas Schwab <schwab@suse.de>
1539 * ld.texinfo (Options): Fix example for --wrap.
1541 2004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
1543 * pe-dll.c (fill_edata): Check that exported_symbol_sections is
1546 2004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
1548 * ldlang.c (lang_check): Use %P, not %E, in error message.
1550 2004-02-23 Nathan Sidwell <nathan@codesourcery.com>
1552 * ldlang.h (struct lang_output_section_state): Change processed
1554 * ldexp.c (check, invalid): Remove.
1555 (fold_name): Move valid_p assignments. Create undefined symbol
1556 when needed. Directly exampine section's processd flag.
1557 * ldlang.c (lang_output_section_statement_lookup): Adjust
1558 processed field init.
1559 (lang_size_sections_1): Allow LOADADDR when determining section's
1560 VMA. Adjust error message. Fold data statement's expr.
1561 (lang_size_sections): Correctly increment lang_statement_iteration.
1563 2004-02-23 Alan Modra <amodra@bigpond.net.au>
1565 * ldexp.c (fold_tree): Follow indirect symbols.
1567 2004-02-20 Nathan Sidwell <nathan@codesourcery.com>
1569 * ldgram.y (exp): Add two operand ALIGN.
1570 * ldexp.c (fold_binary): Add ALIGN_K case.
1571 * ld.texinfo (ALIGN): Document two operand version.
1573 2004-02-19 Nathan Sidwell <nathan@codesourcery.com>
1575 * ldlang.c (map_input_to_output_sections): Initialize sections
1576 mentioned in a data statement expression.
1577 (lang_do_assignments_1): Add data statement's expression's
1580 2004-02-18 Nathan Sidwell <nathan@codesourcery.com>
1582 * ldgram.y (statement_anywhere): Add assert rule.
1583 * ldlang.c (exp_init_os): Add assert case.
1585 2004-02-14 Andrew Cagney <cagney@redhat.com>
1587 * ldmain.c (remove_output): Call bfd_cache_close.
1589 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
1591 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
1592 .MIPS.content* and .MIPS.events* sections.
1594 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
1596 * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
1597 .note.gnu.arm.ident to after allocated sections. Mark its
1600 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
1602 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
1603 * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
1604 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
1605 * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
1606 * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
1608 2004-02-05 Nick Clifton <nickc@redhat.com>
1610 * emultempl/pe.em (_after_open): Fix typo in previous delta.
1612 2004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
1614 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
1616 2004-01-28 Alan Modra <amodra@bigpond.net.au>
1618 * genscripts.sh: Fix typo.
1620 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
1622 2004-01-24 Jakub Jelinek <jakub@redhat.com>
1624 * emulparams/elf64_ia64.sh: Put .rela.opd into
1625 OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
1627 2004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
1629 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
1630 * ld.texinfo (--omagic): Note that writable text section
1631 does not conform to published PE-COFF specs.
1632 (--enable-auto-import): Likewise.
1634 2004-01-15 Alan Modra <amodra@bigpond.net.au>
1636 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
1638 2004-01-13 Nick Clifton <nickc@redhat.com>
1640 * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
1641 which if true will prevent the LMA region being used as a
1642 replacement for a default VMA region.
1643 (lang_leave_output_section_statement): Pass extra parameter.
1644 (lang_leave_overlay): Likewise.
1645 * ld.texinfo (Output Section LMA): Document that the LMA
1646 region can be set to the VMA region if no VMA has been set.
1647 * ldlang.h (struct lang_output_section_phdr_list): Create a
1648 typedef for this type. Minor formatting fixes.
1650 2004-01-13 Nick Clifton <nickc@redhat.com>
1652 * ldlang.c (lang_size_sections_1): If dot is advanced, then
1653 assume that the section should be allocated.
1655 2004-01-13 Alan Modra <amodra@bigpond.net.au>
1657 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
1658 sections. Do ignore SEC_NEVER_LOAD sections.
1659 (lang_size_sections_1): Remove test made redundant with the above.
1661 2004-01-09 Alan Modra <amodra@bigpond.net.au>
1663 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
1664 program_header_size.
1666 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
1668 2003-11-28 Alexandre Oliva <aoliva@redhat.com>
1669 * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
1670 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
1671 * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
1672 (MAXPAGESIZE): Set to 64Kb.
1673 (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
1674 __ROFIXUP_END__. Don't map .rofixup.got any more.
1675 * emulparams/elf32frv.sh (NOP): Set.
1676 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
1677 * configure.tgt: Add frv-*-*linux*.
1678 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
1679 * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
1680 (eelf32frvfd.c): New.
1681 * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
1682 * emulparams/elf32frv.sh: Reverted previous two patches.
1683 * emulparams/elf32frvfd.sh: New.
1684 * Makefile.in: Rebuilt.
1685 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
1686 * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
1687 .rofixup.got to .rofixup.
1688 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
1689 * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
1690 (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
1692 2004-01-05 Jakub Jelinek <jakub@redhat.com>
1694 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
1695 * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
1697 2004-01-03 Alan Modra <amodra@bigpond.net.au>
1699 * ldexp.c (align_n): Make static.
1700 * ldexp.h (align_n): Delete declaration.
1701 * ldlang.h (lang_enter_output_section_statement): Remove
1703 * ldlang.c (lang_enter_output_section_statement): Likewise.
1704 (TO_ADDR, TO_SIZE): Define.
1705 (opb_shift): New var.
1706 (init_opb): New function.
1707 (print_input_section): Call init_opb and use TO_ADDR.
1708 (print_data_statement, print_reloc_statement): Likewise.
1709 (print_padding_statement): Likewise.
1710 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
1711 (lang_check_section_addresses): Likewise.
1712 (lang_size_sections_1): Likewise.
1713 (lang_do_assignments_1): Likewise.
1714 (lang_set_startof): Likewise.
1715 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
1716 (lang_process): Call init_opb.
1717 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
1718 (lang_enter_overlay_section): Adjust
1719 lang_enter_output_section_statement call.
1720 * ldgram.y: Likewise.
1721 * mri.c (mri_draw_tree): Likewise.
1722 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1723 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1724 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1726 * ldfile.c (ldfile_set_output_arch): Add defarch param.
1727 * ldfile.h (ldfile_set_output_arch): Ditto.
1728 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
1729 ldfile_set_output_arch.
1730 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1731 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
1732 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
1733 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1734 * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
1735 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1736 * ldgram.y: Adjust ldfile_set_output_arch call.
1737 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1738 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
1739 * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
1740 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
1741 * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
1742 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1743 * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1745 2004-01-02 Bernardo Innocenti <bernie@develer.com>
1747 * configure.tgt: Add m68k-uClinux target.
1749 For older changes see ChangeLog-0203
1755 version-control: never