1 2005-02-22 Alan Modra <amodra@bigpond.net.au>
3 * ldexp.c: Warning fixes.
5 * emultempl/elf32.em: Likewise.
7 2005-02-21 H.J. Lu <hongjiu.lu@intel.com>
9 * ldlang.c (lang_add_section): Check SEC_TIC54X_BLOCK for TI
11 (lang_size_sections_1): Check SEC_COFF_SHARED_LIBRARY for COFF
12 and ECOFF output only.
14 2005-02-21 Alan Modra <amodra@bigpond.net.au>
16 * config.in: Regenerate.
17 * configure: Regenerate.
19 2005-02-17 Zack Weinberg <zack@codesourcery.com>
21 * ldexp.c (assigning_to_dot): New global flag.
22 (fold_name): If assigning_to_dot is true, object immediately to
24 (exp_fold_tree): Set and clear assigning_to_dot around the
25 recursive call to exp_fold_tree to process the right-hand side
26 of an assignment to the location counter.
28 2005-02-17 Paul Brook <paul@codesourcery.com>
30 * scripttempl/armbpabi.sc: Add dummy name to version block.
32 2005-02-17 Alan Modra <amodra@bigpond.net.au>
34 * ldexp.c (new_abs): Init new.str.
36 2005-02-15 Mark Mitchell <mark@codesourcery.com>
38 * configure.in (AC_CHECK_FUNCS): Add glob.
39 * configure: Regenerated.
40 * emultempl/elf32.em (<glob.h>): Do not include if HAVE_GLOB is
42 (gld${EMULATION_NAME}_parse_ld_so_conf_include): Do not use glob
43 if HAVE_GLOB is not defined.
45 2005-02-16 Kaz Kojima <kkojima@rr.iij4u.or.jp>
47 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define
48 lib_path if NATIVE is yes.
50 2005-02-16 Alan Modra <amodra@bigpond.net.au>
52 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Make
53 an error creating fake bfd fatal.
54 (ppc_before_allocation): Continue on after errors.
55 (gld${EMULATION_NAME}_finish): Likewise.
57 2005-02-15 Nick Clifton <nickc@redhat.com>
59 * ldlex.l (YY_NO_UNPUT): Define so that the yy_unput function is
60 not declared. It is not used and its presence causes a compile
63 2005-02-11 Zack Weinberg <zack@codesourcery.com>
65 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed):
66 If st.st_ino is zero, do not treat the library as a duplicate.
68 2005-02-10 Jakub Jelinek <jakub@redhat.com>
70 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
71 Set BFD_LINKER_CREATED on the stubs bfd.
72 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
75 2005-02-08 Mark Mitchell <mark@codesourcery.com>
77 * scripttempl/armbpabi.sc (VERSION): Make special section symbols
79 (Image$$ER_RO$$Base): Define whenever RELOCATING.
80 (Image$$ER_RO$$Limit): Likewise.
81 (SHT$$INIT_ARRAY$$Base): Likewise.
82 (SHT$$INIT_ARRAY$$Limit): Likeise.
84 2005-02-10 Ben Elliston <bje@au.ibm.com>
86 * emultempl/beos.em: Remove #if 0 and #if 1 blocks.
88 2005-02-08 Richard Sandiford <rsandifo@redhat.com>
90 * configure.tgt (mips64*el-*-linux-gnu*): Define targ_extra_libpath
91 to include o32 and n64 emulations.
92 (mips64*-*-linux-gnu*): Likewise.
94 2005-02-08 Hans-Peter Nilsson <hp@axis.com>
96 * ldmain.c (warning_callback, warning_find_reloc): Prepend
97 "warning: " to warning messages.
99 2005-02-04 Alan Modra <amodra@bigpond.net.au>
101 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't
102 look up symbol for etree_provide here.
104 2005-02-02 Daniel Jacobowitz <dan@codesourcery.com>
106 * emulparams/elf32bmip.sh (TEXT_DYNAMIC): Always set.
108 2005-02-01 Edward Welbourne <eddy@opera.com>
109 Nick Clifton <nickc@redhat.com>
111 * ld.texinfo (Source Code Reference): New node describing how to
112 access linker script defined variables from source code.
114 2005-02-01 Alan Modra <amodra@bigpond.net.au>
116 * ld.texinfo: Clarify --as-needed operation.
118 2005-01-31 Andrew Cagney <cagney@gnu.org>
120 * configure: Regenerate to track ../gettext.m4.
122 2005-01-31 Nick Clifton <nickc@redhat.com>
124 * ldver.c (ldversion): Bump reported copyright date to 2005.
126 2005-01-31 Nick Clifton <nickc@redhat.com>
128 * configure.tgt: Remove obsolete targets m68k-lynxos and
131 2005-01-28 Julian Brown <julian@codesourcery.com>
133 * emultempl/armelf.em (fix_v4bx): New variable.
134 (arm_elf_create_output_section_statements): Communicate fix_v4bx flag
136 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_FIX_V4BX.
137 (PARSE_AND_LIST_LONGOPTS): Add option --fix-v4bx.
138 (PARSE_AND_LIST_OPTIONS): Add option --fix-v4bx.
139 (PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX.
140 * NEWS: Mention --fix-v4bx.
141 * ld.texinfo: Document --fix-v4bx.
143 2005-01-25 Mark Mitchell <mark@codesourcery.com>
145 * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Define, so
146 as to include .ARM.exidx$${Base,Limit}.
147 * ld/scripttempl/armbpabi.sc: Move .plt to end of text segment.
148 Define IMAGE$$ER_RO$${Base,Limit} and SHT$$INIT_ARRAY$${Base,Limit}.
149 Put .init_array, .fini_array, etc. into the read-only data
152 2005-01-25 Alan Modra <amodra@bigpond.net.au>
154 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Formatting.
155 (gld${EMULATION_NAME}_after_open): Ignore needed libs if they were
156 only needed by an as-needed lib that didn't get linked.
158 2005-01-23 Alan Modra <amodra@bigpond.net.au>
160 * ld.texinfo (Output Section Keywords <CONSTRUCTORS>): Correct
161 __DTOR_LIST__ description.
163 2005-01-23 Alan Modra <amodra@bigpond.net.au>
165 * ld.texinfo (Location Counter <dot outside sections>): Document
166 effects of orphan section placement, and ". = ." workaround.
167 * Makefile.in: Regenerate.
169 2005-01-22 Richard Sandiford <rsandifo@redhat.com>
171 * emulparams/elf32bmip.sh (OTHER_GOT_SECTIONS): Add ". = .;".
172 * emulparams/elf32bmipn32-defs.sh (OTHER_GOT_SECTIONS): Likewise.
174 2005-01-21 Jakub Jelinek <jakub@redhat.com>
176 * ldgram.y (AS_NEEDED): New token.
177 (input_list): Handle AS_NEEDED ( input_list ).
178 * ldlex.l (AS_NEEDED): Add.
179 * ld.texinfo: Document AS_NEEDED ().
180 * NEWS: Mention AS_NEEDED ().
182 2005-01-21 Ben Elliston <bje@au.ibm.com>
184 * ldlang.c (lang_reasonable_defaults): Remove.
185 (lang_process): Don't call lang_reasonable_defaults.
187 * ldexp.c (exp_assop): Remove #if 0'd code.
188 (exp_print_tree): Likewise.
189 * ldlang.c (lang_memory_region_lookup): Likewise.
190 (open_output): Likewise.
191 (lang_do_assignments_1): Likewise.
192 (lang_place_orphans): Likewise.
193 (lang_enter_output_section_statement): Likewise.
194 (lang_reasonable_defaults): Likewise.
195 * ldlang.h (struct lang_input_statement_struct): Likewise.
196 * mri.c (mri_draw_tree): Likewise.
197 (mri_load): Likewise.
198 * pe-dll.c (generate_reloc): Likewise.
199 (make_import_fixup_entry): Likewise.
201 * emultempl/beos.em (set_pe_subsystem): Likewise.
202 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
203 * emultempl/pe.em: Likewise.
204 * emultempl/xtensaelf.em (xtensa_colocate_literals): Likewise.
206 2005-01-20 Daniel Jacobowitz <dan@codesourcery.com>
208 * Makefile.am (ALL_EMULATIONS): Add earmelfb_linux_eabi.o.
209 (earmelfb_linux_eabi.c): New target.
210 * Makefile.in: Regenerated.
211 * configure.tgt (arm*b-*-linux-gnueabi): New target.
212 * emulparams/armelfb_linux_eabi.sh: New file.
214 2005-01-20 Nick Hudson <skrll@netbsd.org>
217 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
218 Handle bfd_elf32_hppa_nbsd_vec.
220 2005-01-19 Richard Sandiford <rsandifo@redhat.com>
222 * ldmain.h (ld_sysroot): Change type to a constant string.
223 * ldmain.c (ld_sysroot): Likewise.
224 (get_relative_sysroot, get_sysroot): New functions, adding command-line
225 support for changing the sysroot.
226 (main): Call the new functions.
227 * lexsup.c (OPTION_SYSROOT): New.
228 (ld_options): Add --sysroot.
229 (parse_args): Add a dummy handler for it.
230 * ld.texinfo (--sysroot): Document.
231 * NEWS: Mention the new --sysroot option.
233 2005-01-18 Alan Modra <amodra@bigpond.net.au>
235 * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
236 (lang_place_orphans): Don't abort on just_syms_flag, instead call
239 2005-01-16 Danny Smith <dannysmith@users.sourceforge.net>
241 * defilep.y (def_name, def_library): Combine into...
242 (def_image_name): New function. Strip name to basename,
245 2005-01-12 Mark Kettenis <kettenis@gnu.org>
247 * configure.in: Be sure to invoke config.sub using the shell.
248 * configure: Regenerate.
250 2005-01-11 Alan Modra <amodra@bigpond.net.au>
252 * configure.host: Correct sed patterns for last change.
254 2005-01-10 Nick Clifton <nickc@redhat.com>
257 * ldmisc.c (vfinfo): Add an extra argument: is_warning. Use this
258 to determine whether config.make_executable should be set to FALSE in
259 conjunction with config.fatal_warnings.
260 (info_msg, minfo, lfinof): Pass FALSE as the extra argument.
261 (einfo): Pass TRUE as the extra argument.
263 2005-01-10 Greg Schaffer <gschafer@zip.com.au>
265 * configure.host (linux targets): Use "${CC} -dumpspecs" instead
266 of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0.
267 (ia64-*-aix): Delete - this target is obsolete, and would be
268 broken by this patch.
270 2005-01-06 Eric Botcazou <ebotcazou@libertysurf.fr>
272 * configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*.
273 (sparc64-sun-solaris2*): New host.
275 2005-01-06 Paul Brook <paul@codesourcery.com>
277 * Makefie.am: Add earmelf_vxworks.
278 * Makefile.in: Regenerate.
279 * configure.tgt: Make arm-*-vxworks a separate case.
280 * emulparams/armelf_vxworks.sh: New function.
282 2005-01-06 Alan Modra <amodra@bigpond.net.au>
284 * emultempl/ppc64elf.em (no_multi_toc): New var.
285 (gld${EMULATION_NAME}_finish): Pass to ppc64_elf_setup_section_lists.
286 (OPTION_NO_MULTI_TOC): Define.
287 (PARSE_AND_LIST_LONGOPTS): Add --no-multi-toc support.
288 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
290 2005-01-05 Nick Clifton <nickc@redhat.com>
293 * ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
294 Standard's specification for parsable error messages.
296 2005-01-04 Paul Brook <paul@codesourcery.com>
298 * Makefile.am: Correct dependency for earmsymbian.c.
299 * Makefile.in: Regenerate.
301 2004-12-28 Danny Smith <dannysmith@users.sourceforge.net>
303 * emultempl/pe.em (set_pe_subsystem): Change second arg to
304 lang_add_entry to FALSE.
306 2004-12-23 Nick Clifton <nickc@redhat.com>
309 * emulparams/shelf.sh (.stack): Increase stack start address to
312 2004-12-20 Nick Clifton <nickc@redhat.com>
314 * ldmain.c (main): Issue an error message if -static and -shared
317 2004-12-17 Jakub Jelinek <jakub@redhat.com>
319 * ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
320 * ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
321 * ldlang.c (lang_size_sections): Use them to avoid wasting virtual
322 address space at DATA_SEGMENT_ALIGN. Fix computation of expected
323 PT_GNU_RELRO segment end.
325 2004-12-14 P.J. Darcy <darcypj@us.ibm.com>
327 * configure.tgt: Add s390x-ibm-tpf support.
329 2004-12-16 Martin Kögler <mkoegler@auto.tuwien.ac.at>
331 * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
334 2004-12-07 Ben Elliston <bje@gnu.org>
336 * ldemul.h: Forward declare struct option.
338 2004-12-01 Danny Smith <dannysmith@users.sourceforge.net>
340 * scripttempl/pe.sc (.data): Add .jcr subsection.
342 2004-11-30 Paul Brook <paul@codesourcery.com>
344 * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
346 2004-11-30 Tero Niemela <tero_niemela@yahoo.com>
348 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
349 * Makefile.in: Regenerate.
351 2004-11-26 Melissa Mears <asterisk@graces.dricas.com>
353 * emultempl/pe.em: Add --subsystem:xbox as well as
355 * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
356 and numeric subsystems.
358 2004-11-24 Alan Modra <amodra@bigpond.net.au>
360 * ldexp.c (fold_name): Correct PR 338 fix.
362 2004-11-19 Mark Mitchell <mark@codesourcery.com>
364 * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
365 (earmelf_linux_eabi.c): New target.
366 * configure.tgt (arm*-*-linux-gnueabi): Handle it.
367 * emulparams/armelf_linux_eabi.sh: New file.
368 * Makefile.in: Regenerated.
370 2004-11-19 Nick Clifton <nickc@redhat.com>
373 * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
374 LENGTH fields in the MEMORY command, to explicitly state that
375 symbols cannot be used in their expressions.
377 2004-11-19 Jon Beniston <jon@beniston.com>
379 * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
380 * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
381 * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
382 which return the length and origin of a memory.
383 * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
384 * NEWS: Mention support for ORIGIN and LENGTH operators.
386 2004-11-17 Daniel Jacobowitz <dan@codesourcery.com>
388 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
389 a dynamic object for stubs.
391 2004-11-04 Paul Brook <paul@codesourcery.com>
393 * ld.texinfo: Document --default-imported-symver.
394 * ldmain.c (main): Set link_info.default_imported_symver.
395 * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
396 (ld_options): Add --default-imported-symver.
397 (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
399 2004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
400 Vineet Sharma <vineets@noida.hcltech.com>
402 * Makefile.am: Add entries for new maxq-coff target.
403 * Makefile.in: Regenerate.
404 * configure.tgt: Add support for maxq.
405 * emulparams/maxqcoff.sh: New File.
406 * scripttempl/maxqcoff.sc: New linker script for target maxq.
407 * NEWS: Mention the new target.
409 2004-11-08 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
411 * testsuite/ld-scripts/weak.exp: Enable test on PE,
413 * testsuite/ld-undefined/weak-undef.exp: Enable test on PE,
415 * testsuite/lib/ld-lib.exp (is_pecoff_format): New.
417 2004-11-04 Daniel Jacobowitz <dan@debian.org>
419 * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
420 (earmelf_oabi.c): Remove rule.
421 * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
422 * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
423 * Makefile.in: Regenerated.
425 2004-11-04 Hans-Peter Nilsson <hp@axis.com>
427 * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
428 * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
430 (INIT_END): Remove emitted "jump [sp+]".
433 2004-11-04 Alan Modra <amodra@bigpond.net.au>
435 * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
436 (no_opd_opt, no_toc_opt): New static vars.
437 (ppc_before_allocation): Don't edit opt if no_opd_opt. Call
439 (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
440 (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
441 (PARSE_AND_LIST_OPTIONS): Describe new options.
442 (PARSE_AND_LIST_ARGS_CASES): Handle them.
444 2004-10-27 Nick Clifton <nickc@redhat.com>
446 * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
447 parameter to invocation of lang_section_start.
448 * emultempl/aix.em (_handle_option): Likewise.
450 * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
451 eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
452 * Makefile.in: Regenerate.
454 2004-10-26 Mark Mitchell <mark@codesourcery.com>
456 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
457 __exidx_{start,end} when not relocating.
459 2004-10-25 Mark Mitchell <mark@codesourcery.com>
461 * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
462 * ldexp.h (segment_type): New type.
463 (segments): New variable.
464 * ldexp.c (segments): New variable.
465 (exp_print_token): Handle SEGMENT_START.
466 (fold_binary): Likewise.
467 * ldgram.y (SEGMENT_START): Declare it as a token.
468 (exp): Handle SEGMENT_START.
469 * ldlang.h (lang_address_statement_type): Add segment field.
470 (lang_section_start): Change prototype.
471 * ldlang.c (map_input_to_output_sections): Do not process section
472 assignments if a corresponding SEGMENT_START has already been
474 (lang_section_start): Add segment parameter.
475 * ldlex.l (SEGMENT_START): Add it.
476 * lexsup.c (seg_segment_start): New function.
477 (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
478 * ld.texinfo (SEGMENT_START): Document it.
479 * emulparams/armsymbian.sh (EMBEDDED): Set it.
480 * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
481 base addresses. Do not map relocations.
482 * NEWS: Mention SEGMENT_START.
484 2004-10-26 Paul Brook <paul@codesourcery.com>
486 * ld.texinfo: Document --default-symver.
487 * ldmain.c (main): Set link_info.create_default_symver.
488 * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
489 (ld_options): Add default-symver.
490 (parse_args): Handle OPTION_DEFAULT_SYMVER.
492 2004-10-24 Danny Smith <dannysmith@users.sourceforge.net>
494 * pe-dll.c (process_def_file): Don't export all symbols by default if
495 building a position-independent executable.
497 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
500 * ldmain.c (reloc_overflow): Accept a pointer to struct
501 bfd_link_hash_entry. Report symbol location for relocation
504 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
506 * genscripts.sh (libpath.exp): Really generate for first
509 2004-10-19 Danny Smith <dannysmith@users.sourceforge.net>
511 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
512 comparison and replacement of filenames.
514 2004-10-19 H.J. Lu <hongjiu.lu@intel.com>
517 * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
518 option on linker script as the one for linker script.
520 2004-10-16 Daniel Jacobowitz <dan@debian.org>
522 * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
523 (check_excluded_libs): New.
524 (load_symbols): Call check_excluded_libs.
525 * ldlang.h (add_excluded_libs): New prototype.
526 * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
527 (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
528 (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
529 * ld.texinfo (Command Line Variables): Document --exclude-libs.
530 (Options Specific to i386 PE Targets): Remove --exclude-libs.
532 2004-10-15 Alan Modra <amodra@bigpond.net.au>
534 * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
535 failing link script assert.
537 * ldctor.c (ldctor_add_set_entry): Fix comment typo.
539 2004-10-14 H.J. Lu <hongjiu.lu@intel.com>
542 * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
543 (SMALL_DATA_DTOR): Set.
544 * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
545 (SMALL_DATA_DTOR): Unset.
546 * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
547 after .data. If SMALL_DATA_DTOR is set, move .dtors after
550 2004-10-14 Alan Modra <amodra@bigpond.net.au>
553 * ldlang.h (lang_output_section_statement_type): Make "next" a
554 struct lang_output_section_statement_struct *.
555 (struct orphan_save): Move from elf32.em. Add "name" and "flags".
556 (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
557 * ldlang.c (lang_output_section_find_1): Adjust for changed
558 output_section_statement "next".
559 (strip_excluded_output_sections): Likewise.
560 (lang_record_phdrs): Likewise.
561 (lang_output_section_find_by_flags): New function.
562 (output_prev_sec_find): Move from pe.em. Adjust iterator.
563 (lang_insert_orphan): New function. Tail end of elf32.em's
564 place_orphan merged with that from pe.em. Allow bfd_section to
565 be placed first. New heuristic for placing new output section
566 statement in existing script, and accompanying split of __start
567 symbol alignment into a separate assignment to dot.
568 (lang_add_section): Consistently use output->bfd_section rather than
569 an alias, section->output_section.
570 (map_input_to_output_sections): Rename overly long arg. Move
571 initialization of data_statement output section to here..
572 (lang_check_section_addresses): ..from here.
573 (print_assignment): Correct printing of etree_assert.
574 (print_all_symbols): Don't bomb if userdata is NULL.
575 (IGNORE_SECTION): Rearrange.
576 * emultempl/elf32.em (output_rel_find): Adjust interator.
577 (output_prev_sec_find): Delete.
578 (struct orphan_save): Delete.
579 (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
580 flags without creating a duplicate output section statement.
581 Revise code holding history of various orphan section placements.
582 Allow orphan sections to place before script specified output
583 sections. Call lang_output_section_find_by_flags when placement
584 by name fails. Use lang_insert_orphan.
585 * emultempl/mmo.em (output_prev_sec_find): Delete.
586 (struct orphan_save): Delete.
587 (mmo_place_orphan): Revise code holding history of orphan placement.
588 Allow orphans to place before existing output sections. Use
590 * emultempl/pe.em (output_prev_sec_find): Delete.
591 (struct orphan_save): Delete.
592 (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
595 2004-10-13 Mark Mitchell <mark@codesourcery.com>
597 * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
600 2004-10-13 Alan Modra <amodra@bigpond.net.au>
603 * ldcref.c (check_section_sym_xref): Delete.
604 (check_local_sym_xref): New function.
605 (check_nocrossrefs): Adjust call.
606 * emultempl/pe.em (struct orphan_save): Add os_tail.
607 (place_orphan): Backport assorted fixes from elf32.em.
609 2004-10-12 Bob Wilson <bob.wilson@acm.org>
611 * emultempl/xtensaelf.em: Use ISO C90 formatting.
613 2004-10-11 Jakub Jelinek <jakub@redhat.com>
615 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
616 getline for portability.
618 * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
619 (gld${EMULATION_NAME}_parse_ld_so_conf,
620 gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
621 (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
623 2004-10-11 Alan Modra <amodra@bigpond.net.au>
626 * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
627 rejected when linking statically.
629 2004-10-08 Daniel Jacobowitz <dan@debian.org>
631 * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
633 2004-10-07 Bob Wilson <bob.wilson@acm.org>
635 * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
636 assembler-generated longcall sequences. Describe new --size-opt
638 * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
639 * emultempl/xtensaelf.em (remove_section,
640 replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
641 elf_xtensa_after_open): New.
642 (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
643 OPTION_NO_LITERAL_MOVEMENT): Define.
644 (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
645 (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
646 (PARSE_AND_LIST_OPTIONS): Add --size-opt.
647 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
648 OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
649 (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
650 * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
651 * Makefile.am (eelf32xtensa.c): Update dependencies.
652 * Makefile.in: Regenerate.
654 2004-10-07 Jeff Baker <jbaker@qnx.com>
656 * lexsup.c: Handle --warn-shared-textrel option.
657 (ld_options): Restore alpha sorting of options.
658 * ldmain.c (main): Initialise warn_shared_info field to FALSE.
659 * ld.texinfo: Add documentation for --warn-shared-textrel.
660 * NEWS: Added mention of --warn-shared-textrel option.
662 2004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
664 * emultempl/crxelf.em (disable_relaxation): Add.
665 (crxelf_before_allocation): Enable --relax option by default.
666 (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
667 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
668 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
670 2004-10-04 H.J. Lu <hongjiu.lu@intel.com>
672 * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
673 --sort-section name|alignment.
675 * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
676 --sort-section name|alignment.
678 * ld.h (sort_type): New enum.
679 (wildcard_spec): Change the type of `sorted' to sort_type.
681 * ldgram.y (SORT): Removed.
682 (SORT_BY_NAME): Added.
683 (SORT_BY_ALIGNMENT): Added.
684 (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
686 (input_section_spec_no_keep): Updated `sorted'.
687 (statement): Replace SORT with SORT_BY_NAME.
689 * ldlang.c (compare_section): New function to compare 2
690 sections with different sorting schemes.
691 (wild_sort): Updated. Use compare_section.
692 (update_wild_statements): New function.
693 (lang_process): Call update_wild_statements before
694 map_input_to_output_sections.
696 * ldlex.l (SORT_BY_NAME): New.
697 (SORT_BY_ALIGNMENT): New.
698 (SORT): Return SORT_BY_NAME.
700 * ldmain.c (sort_section): New. Defined.
701 (main): Initialize it to none.
703 * lexsup.c (option_values): Add OPTION_SORT_SECTION.
704 (ld_options): Add an entry for OPTION_SORT_SECTION.
705 (parse_args): Handle OPTION_SORT_SECTION.
707 * mri.c (mri_draw_tree): Updated `sorted'.
709 2004-10-04 Jakub Jelinek <jakub@redhat.com>
711 * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
712 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
714 (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
715 and . as second argument.
716 (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
717 * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
718 (fold_binary): Add it here. Insert padding to make relro_end
719 COMMONPAGESIZE bytes aligned. For DATA_SEGMENT_ALIGN in
720 exp_dataseg_relro_adjust phase just use previously computed
722 * ldlang.c (lang_size_sections): Set exp_data_seg.base for
723 relro_adjust here. Call lang_size_sections_1 once more if there
724 was too big padding at DATA_SEGMENT_RELRO_END.
725 * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
727 2004-10-01 Paul Brook <paul@codesourcery.com>
729 * emulparams/armelf.sh: Add unwinding table sections.
731 2004-09-30 Filip Navara <navaraf@reactos.com>
733 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
734 correct base address for position independant executables.
735 * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
738 2004-09-30 Paul Brook <paul@codesourcery.com>
740 * ld.texinfo: Document --target2=abs.
741 * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
743 2004-09-29 Nick Clifton <nickc@redhat.com>
745 * scripttempl/xstormy16.sc: Only perform the assignments to the
746 ROM region when not performing a relocatable link. The ROM region
747 does not start at address 0, but the sections will.
748 * Makefile.am: Fix linker script dependency for the generation of
750 * Makefile.in: Regenerate.
752 2004-09-18 Filip Navara <navaraf@reactos.com>
754 * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
755 emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
756 emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
758 * scripttempl/pe.sc: Make the virtual address and file offset synced if
759 the alignment is lower than the target page size.
761 2004-09-27 Filip Navara <navaraf@reactos.com>
763 * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
764 def_file_parse to handle pe_def_file if NULL and prevent crash with
767 2004-09-27 Alan Modra <amodra@bigpond.net.au>
769 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
770 --emit-stub-syms automatically when --emit-relocs.
772 2004-09-24 Paul Brook <paul@codeosurcery.com>
774 * scripttempl/elf.sc: Keep .preinit_array, .init_array and
775 .fini_array sections.
777 2004-09-19 Andreas Schwab <schwab@suse.de>
779 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
780 base so that relro end is suitably aligned.
782 2004-09-17 Paul Brook <paul@codesourcery.com>
784 * ld.texinfo: Rename arm-specific section. Document --target*
785 * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
786 * emulparams/armelf_linux.sh: Ditto.
787 * emulparams/armelf_nbsd.sh: Ditto.
788 * emultempl/armelf.em: Set default for TARGET2_TYPE.
789 (target2_type): New variable.
790 (arm_elf_before_allocation): Don't pass target1_type.
791 (arm_elf_create_output_section_statements): New function.
792 (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
793 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
794 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
795 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
796 * emultempl/armelf_oabi.em (_before_allocation): Remove extra
797 argument to bfd_elf32_arm_process_before_allocation.
799 2004-09-17 Alan Modra <amodra@bigpond.net.au>
801 * ldexp.c (fold_name): Update u.undef.next refs.
802 * emultempl/pe.em: Likewise.
803 * emultempl/sunos.em: Likewise.
805 2004-09-17 Alan Modra <amodra@bigpond.net.au>
807 * Makefile.am: Run "make dep-am".
808 * Makefile.in: Regenerate.
809 * config.in: Regenerate.
810 * configure: Regenerate.
811 * aclocal.m4: Regenerate.
812 * po/ld.pot: Regenerate.
814 2004-09-16 Tomer Levi <Tomer.Levi@nsc.com>
816 * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
820 2004-09-16 Alan Modra <amodra@bigpond.net.au>
822 * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
823 to bfd_elf32_arm_process_before_allocation call.
825 2004-09-13 Paul Brook <paul@codesourcery.com>
827 * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
828 * emultempl/armelf.em: Use TARGET1_IS_REL. Add --target1-{rel,abs}.
830 2004-09-07 H.J. Lu <hongjiu.lu@intel.com>
832 * configure: Regenerated with autconfig 2.13.
834 2004-09-07 Andreas Schwab <schwab@suse.de>
836 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
837 alignment before adjusting DATA_SEGMENT_RELRO_END.
839 2004-09-06 Mark Mitchell <mark@codesourcery.com>
841 * emulparams/armsymbian.sh: Use armbpabi script.
842 * scripttempl/armbpabi.sc: New script.
844 2004-09-02 Mark Mitchell <mark@codesourcery.com>
846 * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
847 (earmsymbian.c): New target.
848 * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
849 * Makefile.in: Regenerated.
850 * aclocal.m4: Likewise.
851 * configure: Likewise.
852 * emulparams/armsymbian.sh: New file.
854 2004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
856 * scripttempl/elf32crx.sc: Edit file with comments.
857 (.init): Add new section.
859 (.ctor): Control the linkage order.
862 2004-08-27 Nick Clifton <nickc@redhat.com>
864 * emultempl/pe.em (after_open): Do not assume that either bfd is
867 2004-08-26 Alan Modra <amodra@bigpond.net.au>
869 * ldlang.c (lang_init): Don't compare with TRUE.
871 2004-08-25 Dmitry Diky <diwil@spec.ru>
873 * emulparams/msp430all.sh: Fix RAM sizes for all targets.
874 * scripttempl/elf32msp430.sc: Add .profiler section definition.
876 2004-08-24 H.J. Lu <hongjiu.lu@intel.com>
878 * ldlang.c (wildcardp): Defined as a macro with strpbrk.
880 2004-08-19 Mark Mitchell <mark@codesourcery.com>
882 * configure.tgt (arm*-*-symbianelf*): New target.
883 (arm*-*-eabi*): Likewise.
885 2004-08-19 Jakub Jelinek <jakub@redhat.com>
887 * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
888 (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
889 (OPTION_NON_OVERLAPPING_OPD): Define.
890 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
891 --non-overlapping-opd option.
893 2004-08-18 Alan Modra <amodra@bigpond.net.au>
896 * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
897 was already on the undefs list.
899 2004-08-17 Alan Modra <amodra@bigpond.net.au>
901 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
902 prefix the symbol field too.
904 2004-08-13 Alan Modra <amodra@bigpond.net.au>
906 * ldmain.c (link_callbacks): Remove "error_handler".
907 * ldmisc.c: Include elf-bfd.h.
908 (vfinfo): Sort comment. Handle %A. Use %A instead of
909 bfd_get_section_indent.
910 (error_handler): Delete.
911 * ldmisc.h (error_handler): Delete declaration.
913 2004-08-10 Alan Modra <amodra@bigpond.net.au>
915 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
916 ppc64_elf_restore_symbols.
918 2004-08-09 Alan Modra <amodra@bigpond.net.au>
920 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
921 .toc is too large on relocatable linking.
923 2004-08-09 Alan Modra <amodra@bigpond.net.au>
925 * emultempl/ppc64elf.em (ppc_after_open): Delete.
926 (LDEMUL_AFTER_OPEN): Don't define.
928 2004-08-02 Stephane Carrez <stcarrez@nerim.fr>
930 * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
932 2004-08-01 Stephane Carrez <stcarrez@nerim.fr>
934 * scripttempl/elfm68hc12.sc: Align text, rodata and data section
937 2004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
939 * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
941 2004-07-26 Dmitry Diky <diwil@spec.ru>
943 * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
944 msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
946 * configure.tgt: Likewise.
947 * emulparams/msp430all.sh: Likewise.
948 * Makefile.in: Regenerate.
950 2004-07-23 Nick Clifton <nickc@redhat.com>
952 * emultempl/elf32.em (_place_orphan): Use an already existing
953 section name if that section does not have any flags set.
955 2004-07-21 H.J. Lu <hongjiu.lu@intel.com>
957 * ldlang.c (already_linked_hash_entry): Removed.
958 (already_linked): Likewise.
959 (already_linked_table): Likewise.
960 (section_already_linked): Call bfd_section_already_linked.
961 (lang_process): Replace already_linked_table_init with
962 bfd_section_already_linked_table_init and check return. Replace
963 already_linked_table_free with bfd_section_already_linked_table_free.
965 2004-07-21 Nick Clifton <nickc@redhat.com>
967 * ldlang.c (init_os): Make sure that the newly allocated userdata
968 structure is zeroed out.
970 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
972 * NEWS: Mention the new --add-needed/--no-add-needed and
973 --as-needed/--no-as-needed options.
975 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
977 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
978 check the add_needed field.
979 (dt_needed): New struct.
980 (gld${EMULATION_NAME}_try_needed): Change the first argument
981 to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
982 bit in the file where the DT_NEEDED entry comes from.
983 (gld${EMULATION_NAME}_search_needed): Change the second
984 argument to a pointer to struct dt_needed.
985 (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
986 (gld${EMULATION_NAME}_after_open): Likewise.
988 * ld.texinfo: Add --add-needed document.
989 * ldlang.c (new_afile): Set p->add_needed.
990 * ldlang.h (lang_input_statement_type): Add add_needed field.
991 * ldmain.h (add_needed): Declare.
992 * ldmain.c (add_needed): New global var.
993 * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
994 OPTION_NO_ADD_NEEDED.
995 (ld_options): Likewise.
996 (parse_args): Handle them.
998 2004-07-13 Christof Petig <christof@petig-baender.de>
1000 * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
1001 for endian-ness of extracted addend.
1003 2004-07-13 Danny Smith <dannysmith@usesr.sourceforge.net>
1005 * pe-dll.c (auto_export): Filter on just the import prefix,
1006 "_imp_", not "_imp__".
1008 2004-07-09 Nick Clifton <nickc@redhat.com>
1010 * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
1012 2004-07-06 Tomer Levi <Tomer.Levi@nsc.com>
1014 * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
1015 (eelf32crx.c): New target.
1016 * Makefile.in: Regenerate.
1017 * configure.tgt: Handle crx-*-elf*.
1018 * emulparams/elf32crx.sh: New file.
1019 * emultempl/crxelf.em: New file.
1020 * scripttempl/elf32crx.sc: New file.
1021 * NEWS: Mention new target.
1023 2004-07-06 Nick Clifton <nickc@redhat.com>
1025 * Makefile.am: Add eshlsymbian.c.
1026 * Makefile.in: Regenerate.
1027 * configure.tgt: Add sh*-symbian-elf target.
1028 * emulparams/shlsymbian.sh: New file. Configure the
1029 sh-symbian-elf linker scripts.
1030 * scripttemp/elf32sh-symbian.sc: New file. Linker script
1031 template for the sh-symbian-elf target.
1033 2004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1035 * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
1036 * emulparams/hppalinux.sh: Likewise.
1037 * scripttempl/elf.sc: Place .plt just before .got when .plt is in
1038 data segment and PLT_BEFORE_GOT is defined.
1040 2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1042 * ld.texinfo (WIN32): Document PE weak symbols.
1044 2004-07-02 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1046 * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
1048 2004-07-01 H.J. Lu <hongjiu.lu@intel.com>
1050 * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
1053 2004-06-29 Alan Modra <amodra@bigpond.net.au>
1055 * ldlang.c (lang_reset_memory_regions): Save last relax pass section
1058 2004-06-24 Alan Modra <amodra@bigpond.net.au>
1060 * ldlang.c (print_output_section_statement): Don't print size before
1062 (IGNORE_SECTION): Remove bfd arg. Update all callers.
1064 * ldexp.c (fold_name): .. See below.
1065 * ldlang.c (section_already_linked, print_output_section_statement,
1066 print_input_section, insert_pad, size_input_section,
1067 lang_check_section_addresses, lang_size_sections_1,
1068 lang_size_sections, lang_do_assignments_1, lang_set_startof,
1069 lang_one_common, lang_reset_memory_regions, lang_process,
1070 lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
1071 * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
1072 * pe-dll.c (process_def_file, generate_reloc): ..
1073 * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
1074 gld${EMULATION_NAME}_before_allocation): ..
1075 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
1076 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
1077 sh64_elf_${EMULATION_NAME}_after_allocation): ..
1078 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
1079 * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
1080 ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
1081 "size" instead of "_raw_size" and "_cooked_size". Expand
1082 bfd_section_size macro invocations.
1084 2004-06-22 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1086 * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
1087 ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
1088 ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
1090 (.tls): Define ___tls_start__ and ___tls_end__.
1092 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
1094 * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
1096 2004-06-18 Adam Nemet <anemet@lnxw.com>
1098 * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
1099 * configure: Regenerate.
1101 2004-06-15 Jakub Jelinek <jakub@redhat.com>
1103 * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
1104 .gcc_except_table output sections lost accidentally with
1107 2004-06-15 Alan Modra <amodra@bigpond.net.au>
1109 * ldwrite.c (build_link_order): Use bfd_get_section_size
1110 instead of bfd_get_section_size_before_reloc or _raw_size.
1111 * pe-dll.c (process_def_file): Likewise.
1113 2004-06-14 Alan Modra <amodra@bigpond.net.au>
1115 From Richard Wirth <r.wirth@wirthware.de>
1116 * ldlang.c (lang_finish): Don't free lang_definedness_table.
1118 2004-05-29 Alan Modra <amodra@bigpond.net.au>
1120 * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
1121 (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
1123 2004-05-28 Andrew Stubbs <andrew.stubbs@superh.com>
1125 * testsuite/ld-sh/arch/arch.exp: New test script.
1126 * testsuite/ld-sh/arch/arch_expected.txt: New file.
1127 * testsuite/ld-sh/arch/sh.s: New file.
1128 * testsuite/ld-sh/arch/sh2.s: New file.
1129 * testsuite/ld-sh/arch/sh-dsp.s: New file.
1130 * testsuite/ld-sh/arch/sh2e.s: New file.
1131 * testsuite/ld-sh/arch/sh3-nommu.s: New file.
1132 * testsuite/ld-sh/arch/sh3.s: New file.
1133 * testsuite/ld-sh/arch/sh3-dsp.s: New file.
1134 * testsuite/ld-sh/arch/sh3e.s: New file.
1135 * testsuite/ld-sh/arch/sh4-nommu-nofpu.s: New file.
1136 * testsuite/ld-sh/arch/sh4-nofpu.s: New file.
1137 * testsuite/ld-sh/arch/sh4.s: New file.
1138 * testsuite/ld-sh/arch/sh4a-nofpu.s: New file.
1139 * testsuite/ld-sh/arch/sh4al-dsp.s: New file.
1140 * testsuite/ld-sh/arch/sh4a.s: New file.
1142 2004-05-28 Alan Modra <amodra@bigpond.net.au>
1144 * ldlang.c: Formatting. Wrap long lines, expand bfd_get_section_flags
1146 * lexsup.c: Formatting. Wrap long lines.
1147 * ldwrite.c: Update copyright date.
1149 * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
1150 (output_section_callback): Nor SEC_KEEP here.
1151 (gc_section_callback): Twiddle SEC_EXCLUDE here.
1152 (lang_gc_wild): Delete. Fold into..
1153 (lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage
1155 (lang_process): Always call lang_gc_sections.
1156 (lang_place_orphans): Handle SEC_EXCLUDE sections.
1157 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
1160 2004-05-26 H.J. Lu <hongjiu.lu@intel.com>
1162 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
1163 SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
1164 * ldlang.c (lang_add_section): Likewise.
1166 2004-05-26 Alan Modra <amodra@bigpond.net.au>
1168 * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
1169 sections when doing a final link. Clear SEC_EXCLUDE when doing
1170 a relocable link, except for SEC_DEBUGGING sections.
1171 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
1172 same condition here to drop SEC_EXCLUDE orphan sections.
1174 2004-05-25 Alan Modra <amodra@bigpond.net.au>
1176 * ldlang.c (lang_process): Call bfd_merge_sections later, and
1177 only when not a relocatable link.
1178 (print_input_section): Handle SEC_EXCLUDE sections.
1179 (size_input_section): Don't update dot on SEC_EXCLUDE sections.
1180 (lang_do_assignments_1): Likewise.
1181 * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
1182 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
1183 * emultempl/hppaelf.em (build_section_lists): Likewise.
1184 * emultempl/ppc64elf.em (build_toc_list): Likewise.
1185 (build_section_lists): Likewise.
1187 2004-05-23 Andreas Schwab <schwab@suse.de>
1189 * ld.texinfo (Options): Fix typo in last change.
1191 2004-05-21 Andy Chittenden <achittenden@bluearc.com>
1193 * ld.h (ld_config_type): Add new field: hash_table_size.
1194 * ldmain.c: Initialise the new field to zero. If it is non-zero
1195 after parsing the linker's command line call
1196 bfd_hash_set_default_size.
1197 * lexsup.c (option_values): Add OPTION_HASH_SIZE.
1198 (ld_options): Add hash-size.
1199 (parse_args): Parse --hash-size option. Allow
1200 --reduce-memory-overheads to set the default hash table size as
1202 * ld.texinfo: Document the new switch. Also mention that
1203 --reduce-memory-overheads can affect the hash table size.
1204 * NEWS: Mention the new feature.
1206 2004-05-19 J"orn Rennecke <joern.rennecke@superh.com>
1208 * NEWS: Mention new linker map file generation and the
1209 --reduce-memory-overheads option.
1210 * ld.texinfo: Document --reduce-memory-overheads option.
1211 * ld.h (map_symbol_def): New struct.
1212 (struct user_section_struct, section_userdata_type): Rename to:
1213 (struct lean_user_section_struct, lean_section_userdata_type).
1214 (struct fat_user_section_struct, fat_section_userdata_type): New.
1215 (SECTION_USERDATA_SIZE): Define.
1216 (args_type): New member reduce_memory_overheads.
1217 * ldlang.c (map_obstack): New static variable.
1218 (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
1219 (lang_map): Unless command_line.reduce_memory_overheads is set,
1220 initialize lists of defined symbols for each section.
1221 (print_input_section): Unless command_line.reduce_memory_overheads
1222 is set, use print_all_symbols.
1223 (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
1224 * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
1225 * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
1226 (ld_options): Add entry for --reduce-memory-overheads.
1227 (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
1229 2004-05-19 Jakub Jelinek <jakub@redhat.com>
1231 * ldgram.y (sect_constraint): New.
1232 (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1233 (section): Add sect_constraint. Pass additional argument
1234 to lang_enter_output_section_statement.
1235 * mri.c (mri_draw_tree): Pass additional argument to
1236 lang_enter_output_section_statement.
1237 * emultempl/pe.em (place_orphan): Likewise.
1238 (output_prev_sec_find): Disregard output section statements with
1240 * emultempl/mmo.em (output_prev_sec_find): Likewise.
1241 (mmo_place_orphan): Pass additional argument to
1242 lang_enter_output_section_statement.
1243 * emultempl/elf32.em (output_prev_sec_find): Disregard output section
1244 statements with constraint == -1.
1245 (place_orphan): Pass additional argument to
1246 lang_enter_output_section_statement.
1247 * ldlang.c (lang_enter_overlay_section): Likewise.
1248 (lang_output_section_find_1): New.
1249 (lang_output_section_find): Use it.
1250 (lang_output_section_statement_lookup_1): New.
1251 (lang_output_section_statement_lookup): Use it.
1252 (check_section_callback, check_input_sections): New.
1253 (map_input_to_output_sections): Check if all input sections
1254 are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
1255 (strip_excluded_output_sections): Disregard output section statements
1256 with constraint == -1.
1257 (lang_record_phdrs): Likewise.
1258 (lang_enter_output_section_statement): Add constraint argument.
1259 Use lang_output_section_statement_lookup_1.
1260 * ldlang.h (lang_output_section_statement_type): Add constraint
1261 and all_input_readonly fields.
1262 (lang_enter_output_section_statement): Adjust prototype.
1263 * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1264 * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
1265 segment if all input sections are readonly.
1267 2004-05-19 Adam Nemet <anemet@lnxw.com>
1269 * scripttempl/i386lynx.sc: Remove file.
1271 2004-05-17 Bob Wilson <bob.wilson@acm.org>
1273 * ld.texinfo (Output Section Address): Correct subsection name.
1275 2004-05-17 Adam Nemet <anemet@lnxw.com>
1277 * configure.tgt (powerpc-*-lynxos* case): New case.
1278 * configure.host (i[3-7]86-*-lynxos* case): Remove case.
1279 * emulparams/ppclynx.sh: New file.
1280 * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
1281 * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
1282 (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
1283 (eppclynx.c): New rule.
1284 * Makefile.in: Regenerate.
1286 2004-05-13 Joel Sherrill <joel@oarcorp.com>
1288 * configure.tgt (or32-*-rtems*): Switch to elf and
1289 support versioned targets.
1291 2004-05-13 Nick Clifton <nickc@redhat.com>
1293 * po/fr.po: Updated French translation.
1295 2004-05-11 Jakub Jelinek <jakub@redhat.com>
1297 * genscripts.sh: Generate -z combreloc -z now -z relro scripts
1298 for binaries, -shared and -pie.
1299 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
1300 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
1301 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
1302 (OTHER_RELRO_SECTIONS): ... this.
1303 * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
1304 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
1305 -z relro and -z norelro.
1306 (gld${EMULATION_NAME}_list_options): Add it to usage.
1307 (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
1308 -z relro scripts when appropriate.
1309 * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
1310 Create separate .got.plt section if SEPARATE_GOTPLT.
1311 Move sections which are only written during relocation handling
1312 to the beginning of RW segment. If NO_SMALL_DATA, move .got
1313 before .data. Add DATA_SEGMENT_RELRO_END directive.
1314 Include OTHER_RELRO_SECTIONS.
1315 * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
1316 * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
1317 (fold_unary): Likewise.
1318 (fold_binary): Handle -z relro.
1319 * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
1320 exp_dataseg_relro_adjust phases. Add relro_end field.
1321 * ldmain.c (main): Initialize link_info.relro to FALSE.
1322 * ldlang.c (lang_size_sections): Handle -z relro.
1324 2004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
1326 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
1328 2004-05-07 J"orn Rennecke <joern.rennecke@superh.com>
1330 * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
1331 before printing it with %W.
1333 2004-05-07 Brian Ford <ford@vss.fsi.com>
1334 DJ Delorie <dj@redhat.com>
1336 * emultempl/pe.em (real_flags): New static.
1337 (OPTION_LARGE_ADDRESS_AWARE): New define.
1338 (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
1339 (gld_${EMULATION_NAME}_list_options): Likewise.
1340 (gld${EMULATION_NAME}_handle_option): Likewise.
1341 (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
1342 * ld.texinfo: Document it.
1345 2004-05-07 Brian Ford <ford@vss.fsi.com>
1347 * NEWS: Mention DWARF 2 support for i386pe.
1349 2004-05-05 Alexandre Oliva <aoliva@redhat.com>
1351 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
1354 2004-04-30 Alan Modra <amodra@bigpond.net.au>
1356 * ldlang.c (unique_section_p): Pass section parm, return true on
1358 (output_section_callback): Adjust.
1359 * ldlang.h (unique_section_p): Update prototype.
1360 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
1362 2004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
1364 * ld.texinfo (--gc-sections): Remove restriction for
1367 2004-04-29 Brian Ford <ford@vss.fsi.com>
1369 * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
1370 for DWARF 2/3. Update stab section's syntax.
1372 2004-04-29 Alan Modra <amodra@bigpond.net.au>
1374 * pe-dll.c: Revert changes accidentally committed 2004-03-08.
1375 (fill_edata): Correct pointer arithmetic.
1377 2004-04-21 Chris Demetriou <cgd@broadcom.com>
1379 * ld.texinfo: Remove MIPS --embedded-relocs documentation.
1380 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
1381 * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
1382 (EXTRA_EM_FILE): Use mipsecoff.em
1383 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
1384 (EXTRA_EM_FILE): Use mipsecoff.em
1385 * emultempl/mipsecoff.em: Restructure to be included as an
1386 extra emulation file.
1387 (check_sections, gld${EMULATION_NAME}_after_open)
1388 (gld${EMULATION_NAME}_after_allocation)
1389 (gld${EMULATION_NAME}_get_script)
1390 (ld_${EMULATION_NAME}_emulation): Remove
1391 (gld${EMULATION_NAME}_before_parse): Rename to...
1392 (mipsecoff_before_parse): This.
1393 (LDEMUL_BEFORE_PARSE): Define.
1394 * emultempl/mipself.em: Remove file.
1395 * scripttempl/mips.sc (.rel.sdata): Do not include in output.
1396 (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
1398 * Makefile.am: Remove dependencies on emultempl/mipself.em.
1399 * Makefile.in: Regenerate.
1401 2004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
1403 * ld.texinfo (synthesizing on H8/300): Information about linker
1404 relaxation support for bit manipulation instructions and system
1405 control instructions is added.
1407 2004-04-21 Hans-Peter Nilsson <hp@axis.com>
1409 * NEWS: Mention change in DEFINED semantics.
1411 2004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
1413 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
1414 (.data): Add KEEP for .gnu.linkonce.d.*personality*.
1415 (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
1417 2004-04-21 Ben Elliston <bje@au.ibm.com>
1419 * ld.texinfo (Simple Example): Add missing punctuation.
1421 2004-04-20 Chris Demetriou <cgd@broadcom.com>
1423 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
1425 2004-04-19 Jakub Jelinek <jakub@redhat.com>
1427 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
1430 2004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
1432 * scriptempl/pe.sc: Put numbered .ctors.* after .ctors
1433 with default priority. Likewise for dtors.
1435 2004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1437 * configure.host: Remove mips*-dec-bsd* target.
1438 * configure.tgt: Likewise.
1440 2004-04-08 Richard Sandiford <rsandifo@redhat.com>
1442 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
1443 * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
1444 * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
1445 * emultempl/irix.em: New file.
1446 * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
1448 * Makefile.in: Regenerate.
1450 2004-04-01 Paul Brook <paul@codesourcery.com>
1452 * emultempl/armelf.em (byteswap_code): Add.
1453 (arm_elf_before_allocation): Pass extra parameter.
1454 (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
1455 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
1456 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
1457 * emultempl/armelf_oabi.em: Pass extra parameter.
1458 * ld.texinfo: Document --be8.
1460 2004-03-30 Stan Shebs <shebs@apple.com>
1462 Remove long-obsolete MPW support.
1463 * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
1464 * Makefile.am (mpw): Remove file-presynthesizing actions.
1465 * Makefile.in: Likewise.
1466 * ldfile.c (slash): Remove MPW case.
1467 * ldlex.l [MPW]: Remove unused definition.
1469 2004-03-30 Galit Heller <Galit.Heller@nsc.com>
1471 * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
1472 (eelf32cr16c.c): New target.
1473 * Makefile.in: Regenerate.
1474 * configure.tgt: Handle cr16c-*-elf*.
1475 * emulparams/elf32cr16c.sh: New file.
1476 * scripttempl/elfcr16c.sc: Likewise
1477 * NEWS: Mention support for new target.
1479 2004-03-30 Nick Clifton <nickc@redhat.com>
1481 * po/sv.po: Updated Swedish translation.
1483 2004-03-27 Alan Modra <amodra@bigpond.net.au>
1485 * emultempl/elf32.em: Update new bfd_elf_discard_info name.
1486 * emultempl/hppaelf.em: Likewise.
1487 * emultempl/ppc64elf.em: Likewise.
1488 * emultempl/sh64elf.em: Likewise.
1490 2004-03-25 Alan Modra <amodra@bigpond.net.au>
1492 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
1493 size_dynamic_sections call.
1495 2004-03-23 Alan Modra <amodra@bigpond.net.au>
1498 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
1499 link_info.wrap_char.
1501 2004-03-20 H.J. Lu <hongjiu.lu@intel.com>
1503 * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
1504 or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
1506 2004-03-20 Alexandre Oliva <aoliva@redhat.com>
1508 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
1510 2004-03-19 Alan Modra <amodra@bigpond.net.au>
1512 * config.in: Regenerate.
1513 * po/ld.pot: Regenerate.
1515 2004-03-18 Alan Modra <amodra@bigpond.net.au>
1517 * ld.texinfo: Add --as-needed doco.
1518 * ldmain.c (as_needed): New global var.
1519 * ldmain.h (as_needed): Declare.
1520 * lexsup.c (option_values): Add OPTION_AS_NEEDED and
1521 OPTION_NO_AS_NEEDED.
1522 (ld_options): Likewise.
1523 (parse_args): Handle them.
1524 * ldlang.h (lang_input_statement_type): Add as_needed field.
1525 * ldlang.c (new_afile): Set p->as_needed.
1526 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
1527 (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
1528 (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
1530 * ldlang.c (open_input_bfds): Remove useless cast.
1531 (lang_do_assignments_1): Likewise.
1532 (lang_for_each_input_section): Delete.
1534 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1536 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
1538 2004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
1540 * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
1541 private when building implib.
1543 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
1545 * ldlang.c (lang_add_section): Don't force SEC_LOAD on
1547 (IGNORE_SECTION): Ignore .tbss sections too.
1548 (lang_size_sections_1): .tbss sections do not advance dot.
1550 2004-03-01 Andreas Schwab <schwab@suse.de>
1552 * ld.texinfo (Options): Fix example for --wrap.
1554 2004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
1556 * pe-dll.c (fill_edata): Check that exported_symbol_sections is
1559 2004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
1561 * ldlang.c (lang_check): Use %P, not %E, in error message.
1563 2004-02-23 Nathan Sidwell <nathan@codesourcery.com>
1565 * ldlang.h (struct lang_output_section_state): Change processed
1567 * ldexp.c (check, invalid): Remove.
1568 (fold_name): Move valid_p assignments. Create undefined symbol
1569 when needed. Directly exampine section's processd flag.
1570 * ldlang.c (lang_output_section_statement_lookup): Adjust
1571 processed field init.
1572 (lang_size_sections_1): Allow LOADADDR when determining section's
1573 VMA. Adjust error message. Fold data statement's expr.
1574 (lang_size_sections): Correctly increment lang_statement_iteration.
1576 2004-02-23 Alan Modra <amodra@bigpond.net.au>
1578 * ldexp.c (fold_tree): Follow indirect symbols.
1580 2004-02-20 Nathan Sidwell <nathan@codesourcery.com>
1582 * ldgram.y (exp): Add two operand ALIGN.
1583 * ldexp.c (fold_binary): Add ALIGN_K case.
1584 * ld.texinfo (ALIGN): Document two operand version.
1586 2004-02-19 Nathan Sidwell <nathan@codesourcery.com>
1588 * ldlang.c (map_input_to_output_sections): Initialize sections
1589 mentioned in a data statement expression.
1590 (lang_do_assignments_1): Add data statement's expression's
1593 2004-02-18 Nathan Sidwell <nathan@codesourcery.com>
1595 * ldgram.y (statement_anywhere): Add assert rule.
1596 * ldlang.c (exp_init_os): Add assert case.
1598 2004-02-14 Andrew Cagney <cagney@redhat.com>
1600 * ldmain.c (remove_output): Call bfd_cache_close.
1602 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
1604 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
1605 .MIPS.content* and .MIPS.events* sections.
1607 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
1609 * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
1610 .note.gnu.arm.ident to after allocated sections. Mark its
1613 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
1615 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
1616 * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
1617 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
1618 * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
1619 * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
1621 2004-02-05 Nick Clifton <nickc@redhat.com>
1623 * emultempl/pe.em (_after_open): Fix typo in previous delta.
1625 2004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
1627 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
1629 2004-01-28 Alan Modra <amodra@bigpond.net.au>
1631 * genscripts.sh: Fix typo.
1633 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
1635 2004-01-24 Jakub Jelinek <jakub@redhat.com>
1637 * emulparams/elf64_ia64.sh: Put .rela.opd into
1638 OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
1640 2004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
1642 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
1643 * ld.texinfo (--omagic): Note that writable text section
1644 does not conform to published PE-COFF specs.
1645 (--enable-auto-import): Likewise.
1647 2004-01-15 Alan Modra <amodra@bigpond.net.au>
1649 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
1651 2004-01-13 Nick Clifton <nickc@redhat.com>
1653 * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
1654 which if true will prevent the LMA region being used as a
1655 replacement for a default VMA region.
1656 (lang_leave_output_section_statement): Pass extra parameter.
1657 (lang_leave_overlay): Likewise.
1658 * ld.texinfo (Output Section LMA): Document that the LMA
1659 region can be set to the VMA region if no VMA has been set.
1660 * ldlang.h (struct lang_output_section_phdr_list): Create a
1661 typedef for this type. Minor formatting fixes.
1663 2004-01-13 Nick Clifton <nickc@redhat.com>
1665 * ldlang.c (lang_size_sections_1): If dot is advanced, then
1666 assume that the section should be allocated.
1668 2004-01-13 Alan Modra <amodra@bigpond.net.au>
1670 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
1671 sections. Do ignore SEC_NEVER_LOAD sections.
1672 (lang_size_sections_1): Remove test made redundant with the above.
1674 2004-01-09 Alan Modra <amodra@bigpond.net.au>
1676 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
1677 program_header_size.
1679 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
1681 2003-11-28 Alexandre Oliva <aoliva@redhat.com>
1682 * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
1683 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
1684 * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
1685 (MAXPAGESIZE): Set to 64Kb.
1686 (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
1687 __ROFIXUP_END__. Don't map .rofixup.got any more.
1688 * emulparams/elf32frv.sh (NOP): Set.
1689 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
1690 * configure.tgt: Add frv-*-*linux*.
1691 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
1692 * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
1693 (eelf32frvfd.c): New.
1694 * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
1695 * emulparams/elf32frv.sh: Reverted previous two patches.
1696 * emulparams/elf32frvfd.sh: New.
1697 * Makefile.in: Rebuilt.
1698 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
1699 * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
1700 .rofixup.got to .rofixup.
1701 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
1702 * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
1703 (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
1705 2004-01-05 Jakub Jelinek <jakub@redhat.com>
1707 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
1708 * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
1710 2004-01-03 Alan Modra <amodra@bigpond.net.au>
1712 * ldexp.c (align_n): Make static.
1713 * ldexp.h (align_n): Delete declaration.
1714 * ldlang.h (lang_enter_output_section_statement): Remove
1716 * ldlang.c (lang_enter_output_section_statement): Likewise.
1717 (TO_ADDR, TO_SIZE): Define.
1718 (opb_shift): New var.
1719 (init_opb): New function.
1720 (print_input_section): Call init_opb and use TO_ADDR.
1721 (print_data_statement, print_reloc_statement): Likewise.
1722 (print_padding_statement): Likewise.
1723 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
1724 (lang_check_section_addresses): Likewise.
1725 (lang_size_sections_1): Likewise.
1726 (lang_do_assignments_1): Likewise.
1727 (lang_set_startof): Likewise.
1728 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
1729 (lang_process): Call init_opb.
1730 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
1731 (lang_enter_overlay_section): Adjust
1732 lang_enter_output_section_statement call.
1733 * ldgram.y: Likewise.
1734 * mri.c (mri_draw_tree): Likewise.
1735 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1736 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1737 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1739 * ldfile.c (ldfile_set_output_arch): Add defarch param.
1740 * ldfile.h (ldfile_set_output_arch): Ditto.
1741 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
1742 ldfile_set_output_arch.
1743 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1744 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
1745 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
1746 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1747 * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
1748 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1749 * ldgram.y: Adjust ldfile_set_output_arch call.
1750 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1751 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
1752 * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
1753 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
1754 * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
1755 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1756 * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1758 2004-01-02 Bernardo Innocenti <bernie@develer.com>
1760 * configure.tgt: Add m68k-uClinux target.
1762 For older changes see ChangeLog-0203
1768 version-control: never