1 2005-02-16 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define
4 lib_path if NATIVE is yes.
6 2005-02-16 Alan Modra <amodra@bigpond.net.au>
8 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Make
9 an error creating fake bfd fatal.
10 (ppc_before_allocation): Continue on after errors.
11 (gld${EMULATION_NAME}_finish): Likewise.
13 2005-02-15 Nick Clifton <nickc@redhat.com>
15 * ldlex.l (YY_NO_UNPUT): Define so that the yy_unput function is
16 not declared. It is not used and its presence causes a compile
19 2005-02-11 Zack Weinberg <zack@codesourcery.com>
21 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed):
22 If st.st_ino is zero, do not treat the library as a duplicate.
24 2005-02-10 Jakub Jelinek <jakub@redhat.com>
26 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
27 Set BFD_LINKER_CREATED on the stubs bfd.
28 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
31 2005-02-08 Mark Mitchell <mark@codesourcery.com>
33 * scripttempl/armbpabi.sc (VERSION): Make special section symbols
35 (Image$$ER_RO$$Base): Define whenever RELOCATING.
36 (Image$$ER_RO$$Limit): Likewise.
37 (SHT$$INIT_ARRAY$$Base): Likewise.
38 (SHT$$INIT_ARRAY$$Limit): Likeise.
40 2005-02-10 Ben Elliston <bje@au.ibm.com>
42 * emultempl/beos.em: Remove #if 0 and #if 1 blocks.
44 2005-02-08 Richard Sandiford <rsandifo@redhat.com>
46 * configure.tgt (mips64*el-*-linux-gnu*): Define targ_extra_libpath
47 to include o32 and n64 emulations.
48 (mips64*-*-linux-gnu*): Likewise.
50 2005-02-08 Hans-Peter Nilsson <hp@axis.com>
52 * ldmain.c (warning_callback, warning_find_reloc): Prepend
53 "warning: " to warning messages.
55 2005-02-04 Alan Modra <amodra@bigpond.net.au>
57 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't
58 look up symbol for etree_provide here.
60 2005-02-02 Daniel Jacobowitz <dan@codesourcery.com>
62 * emulparams/elf32bmip.sh (TEXT_DYNAMIC): Always set.
64 2005-02-01 Edward Welbourne <eddy@opera.com>
65 Nick Clifton <nickc@redhat.com>
67 * ld.texinfo (Source Code Reference): New node describing how to
68 access linker script defined variables from source code.
70 2005-02-01 Alan Modra <amodra@bigpond.net.au>
72 * ld.texinfo: Clarify --as-needed operation.
74 2005-01-31 Andrew Cagney <cagney@gnu.org>
76 * configure: Regenerate to track ../gettext.m4.
78 2005-01-31 Nick Clifton <nickc@redhat.com>
80 * ldver.c (ldversion): Bump reported copyright date to 2005.
82 2005-01-31 Nick Clifton <nickc@redhat.com>
84 * configure.tgt: Remove obsolete targets m68k-lynxos and
87 2005-01-28 Julian Brown <julian@codesourcery.com>
89 * emultempl/armelf.em (fix_v4bx): New variable.
90 (arm_elf_create_output_section_statements): Communicate fix_v4bx flag
92 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_FIX_V4BX.
93 (PARSE_AND_LIST_LONGOPTS): Add option --fix-v4bx.
94 (PARSE_AND_LIST_OPTIONS): Add option --fix-v4bx.
95 (PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX.
96 * NEWS: Mention --fix-v4bx.
97 * ld.texinfo: Document --fix-v4bx.
99 2005-01-25 Mark Mitchell <mark@codesourcery.com>
101 * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Define, so
102 as to include .ARM.exidx$${Base,Limit}.
103 * ld/scripttempl/armbpabi.sc: Move .plt to end of text segment.
104 Define IMAGE$$ER_RO$${Base,Limit} and SHT$$INIT_ARRAY$${Base,Limit}.
105 Put .init_array, .fini_array, etc. into the read-only data
108 2005-01-25 Alan Modra <amodra@bigpond.net.au>
110 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Formatting.
111 (gld${EMULATION_NAME}_after_open): Ignore needed libs if they were
112 only needed by an as-needed lib that didn't get linked.
114 2005-01-23 Alan Modra <amodra@bigpond.net.au>
116 * ld.texinfo (Output Section Keywords <CONSTRUCTORS>): Correct
117 __DTOR_LIST__ description.
119 2005-01-23 Alan Modra <amodra@bigpond.net.au>
121 * ld.texinfo (Location Counter <dot outside sections>): Document
122 effects of orphan section placement, and ". = ." workaround.
123 * Makefile.in: Regenerate.
125 2005-01-22 Richard Sandiford <rsandifo@redhat.com>
127 * emulparams/elf32bmip.sh (OTHER_GOT_SECTIONS): Add ". = .;".
128 * emulparams/elf32bmipn32-defs.sh (OTHER_GOT_SECTIONS): Likewise.
130 2005-01-21 Jakub Jelinek <jakub@redhat.com>
132 * ldgram.y (AS_NEEDED): New token.
133 (input_list): Handle AS_NEEDED ( input_list ).
134 * ldlex.l (AS_NEEDED): Add.
135 * ld.texinfo: Document AS_NEEDED ().
136 * NEWS: Mention AS_NEEDED ().
138 2005-01-21 Ben Elliston <bje@au.ibm.com>
140 * ldlang.c (lang_reasonable_defaults): Remove.
141 (lang_process): Don't call lang_reasonable_defaults.
143 * ldexp.c (exp_assop): Remove #if 0'd code.
144 (exp_print_tree): Likewise.
145 * ldlang.c (lang_memory_region_lookup): Likewise.
146 (open_output): Likewise.
147 (lang_do_assignments_1): Likewise.
148 (lang_place_orphans): Likewise.
149 (lang_enter_output_section_statement): Likewise.
150 (lang_reasonable_defaults): Likewise.
151 * ldlang.h (struct lang_input_statement_struct): Likewise.
152 * mri.c (mri_draw_tree): Likewise.
153 (mri_load): Likewise.
154 * pe-dll.c (generate_reloc): Likewise.
155 (make_import_fixup_entry): Likewise.
157 * emultempl/beos.em (set_pe_subsystem): Likewise.
158 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
159 * emultempl/pe.em: Likewise.
160 * emultempl/xtensaelf.em (xtensa_colocate_literals): Likewise.
162 2005-01-20 Daniel Jacobowitz <dan@codesourcery.com>
164 * Makefile.am (ALL_EMULATIONS): Add earmelfb_linux_eabi.o.
165 (earmelfb_linux_eabi.c): New target.
166 * Makefile.in: Regenerated.
167 * configure.tgt (arm*b-*-linux-gnueabi): New target.
168 * emulparams/armelfb_linux_eabi.sh: New file.
170 2005-01-20 Nick Hudson <skrll@netbsd.org>
173 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
174 Handle bfd_elf32_hppa_nbsd_vec.
176 2005-01-19 Richard Sandiford <rsandifo@redhat.com>
178 * ldmain.h (ld_sysroot): Change type to a constant string.
179 * ldmain.c (ld_sysroot): Likewise.
180 (get_relative_sysroot, get_sysroot): New functions, adding command-line
181 support for changing the sysroot.
182 (main): Call the new functions.
183 * lexsup.c (OPTION_SYSROOT): New.
184 (ld_options): Add --sysroot.
185 (parse_args): Add a dummy handler for it.
186 * ld.texinfo (--sysroot): Document.
187 * NEWS: Mention the new --sysroot option.
189 2005-01-18 Alan Modra <amodra@bigpond.net.au>
191 * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
192 (lang_place_orphans): Don't abort on just_syms_flag, instead call
195 2005-01-16 Danny Smith <dannysmith@users.sourceforge.net>
197 * defilep.y (def_name, def_library): Combine into...
198 (def_image_name): New function. Strip name to basename,
201 2005-01-12 Mark Kettenis <kettenis@gnu.org>
203 * configure.in: Be sure to invoke config.sub using the shell.
204 * configure: Regenerate.
206 2005-01-11 Alan Modra <amodra@bigpond.net.au>
208 * configure.host: Correct sed patterns for last change.
210 2005-01-10 Nick Clifton <nickc@redhat.com>
213 * ldmisc.c (vfinfo): Add an extra argument: is_warning. Use this
214 to determine whether config.make_executable should be set to FALSE in
215 conjunction with config.fatal_warnings.
216 (info_msg, minfo, lfinof): Pass FALSE as the extra argument.
217 (einfo): Pass TRUE as the extra argument.
219 2005-01-10 Greg Schaffer <gschafer@zip.com.au>
221 * configure.host (linux targets): Use "${CC} -dumpspecs" instead
222 of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0.
223 (ia64-*-aix): Delete - this target is obsolete, and would be
224 broken by this patch.
226 2005-01-06 Eric Botcazou <ebotcazou@libertysurf.fr>
228 * configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*.
229 (sparc64-sun-solaris2*): New host.
231 2005-01-06 Paul Brook <paul@codesourcery.com>
233 * Makefie.am: Add earmelf_vxworks.
234 * Makefile.in: Regenerate.
235 * configure.tgt: Make arm-*-vxworks a separate case.
236 * emulparams/armelf_vxworks.sh: New function.
238 2005-01-06 Alan Modra <amodra@bigpond.net.au>
240 * emultempl/ppc64elf.em (no_multi_toc): New var.
241 (gld${EMULATION_NAME}_finish): Pass to ppc64_elf_setup_section_lists.
242 (OPTION_NO_MULTI_TOC): Define.
243 (PARSE_AND_LIST_LONGOPTS): Add --no-multi-toc support.
244 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
246 2005-01-05 Nick Clifton <nickc@redhat.com>
249 * ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
250 Standard's specification for parsable error messages.
252 2005-01-04 Paul Brook <paul@codesourcery.com>
254 * Makefile.am: Correct dependency for earmsymbian.c.
255 * Makefile.in: Regenerate.
257 2004-12-28 Danny Smith <dannysmith@users.sourceforge.net>
259 * emultempl/pe.em (set_pe_subsystem): Change second arg to
260 lang_add_entry to FALSE.
262 2004-12-23 Nick Clifton <nickc@redhat.com>
265 * emulparams/shelf.sh (.stack): Increase stack start address to
268 2004-12-20 Nick Clifton <nickc@redhat.com>
270 * ldmain.c (main): Issue an error message if -static and -shared
273 2004-12-17 Jakub Jelinek <jakub@redhat.com>
275 * ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
276 * ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
277 * ldlang.c (lang_size_sections): Use them to avoid wasting virtual
278 address space at DATA_SEGMENT_ALIGN. Fix computation of expected
279 PT_GNU_RELRO segment end.
281 2004-12-14 P.J. Darcy <darcypj@us.ibm.com>
283 * configure.tgt: Add s390x-ibm-tpf support.
285 2004-12-16 Martin Kögler <mkoegler@auto.tuwien.ac.at>
287 * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
290 2004-12-07 Ben Elliston <bje@gnu.org>
292 * ldemul.h: Forward declare struct option.
294 2004-12-01 Danny Smith <dannysmith@users.sourceforge.net>
296 * scripttempl/pe.sc (.data): Add .jcr subsection.
298 2004-11-30 Paul Brook <paul@codesourcery.com>
300 * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
302 2004-11-30 Tero Niemela <tero_niemela@yahoo.com>
304 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
305 * Makefile.in: Regenerate.
307 2004-11-26 Melissa Mears <asterisk@graces.dricas.com>
309 * emultempl/pe.em: Add --subsystem:xbox as well as
311 * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
312 and numeric subsystems.
314 2004-11-24 Alan Modra <amodra@bigpond.net.au>
316 * ldexp.c (fold_name): Correct PR 338 fix.
318 2004-11-19 Mark Mitchell <mark@codesourcery.com>
320 * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
321 (earmelf_linux_eabi.c): New target.
322 * configure.tgt (arm*-*-linux-gnueabi): Handle it.
323 * emulparams/armelf_linux_eabi.sh: New file.
324 * Makefile.in: Regenerated.
326 2004-11-19 Nick Clifton <nickc@redhat.com>
329 * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
330 LENGTH fields in the MEMORY command, to explicitly state that
331 symbols cannot be used in their expressions.
333 2004-11-19 Jon Beniston <jon@beniston.com>
335 * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
336 * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
337 * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
338 which return the length and origin of a memory.
339 * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
340 * NEWS: Mention support for ORIGIN and LENGTH operators.
342 2004-11-17 Daniel Jacobowitz <dan@codesourcery.com>
344 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
345 a dynamic object for stubs.
347 2004-11-04 Paul Brook <paul@codesourcery.com>
349 * ld.texinfo: Document --default-imported-symver.
350 * ldmain.c (main): Set link_info.default_imported_symver.
351 * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
352 (ld_options): Add --default-imported-symver.
353 (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
355 2004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
356 Vineet Sharma <vineets@noida.hcltech.com>
358 * Makefile.am: Add entries for new maxq-coff target.
359 * Makefile.in: Regenerate.
360 * configure.tgt: Add support for maxq.
361 * emulparams/maxqcoff.sh: New File.
362 * scripttempl/maxqcoff.sc: New linker script for target maxq.
363 * NEWS: Mention the new target.
365 2004-11-08 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
367 * testsuite/ld-scripts/weak.exp: Enable test on PE,
369 * testsuite/ld-undefined/weak-undef.exp: Enable test on PE,
371 * testsuite/lib/ld-lib.exp (is_pecoff_format): New.
373 2004-11-04 Daniel Jacobowitz <dan@debian.org>
375 * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
376 (earmelf_oabi.c): Remove rule.
377 * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
378 * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
379 * Makefile.in: Regenerated.
381 2004-11-04 Hans-Peter Nilsson <hp@axis.com>
383 * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
384 * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
386 (INIT_END): Remove emitted "jump [sp+]".
389 2004-11-04 Alan Modra <amodra@bigpond.net.au>
391 * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
392 (no_opd_opt, no_toc_opt): New static vars.
393 (ppc_before_allocation): Don't edit opt if no_opd_opt. Call
395 (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
396 (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
397 (PARSE_AND_LIST_OPTIONS): Describe new options.
398 (PARSE_AND_LIST_ARGS_CASES): Handle them.
400 2004-10-27 Nick Clifton <nickc@redhat.com>
402 * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
403 parameter to invocation of lang_section_start.
404 * emultempl/aix.em (_handle_option): Likewise.
406 * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
407 eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
408 * Makefile.in: Regenerate.
410 2004-10-26 Mark Mitchell <mark@codesourcery.com>
412 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
413 __exidx_{start,end} when not relocating.
415 2004-10-25 Mark Mitchell <mark@codesourcery.com>
417 * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
418 * ldexp.h (segment_type): New type.
419 (segments): New variable.
420 * ldexp.c (segments): New variable.
421 (exp_print_token): Handle SEGMENT_START.
422 (fold_binary): Likewise.
423 * ldgram.y (SEGMENT_START): Declare it as a token.
424 (exp): Handle SEGMENT_START.
425 * ldlang.h (lang_address_statement_type): Add segment field.
426 (lang_section_start): Change prototype.
427 * ldlang.c (map_input_to_output_sections): Do not process section
428 assignments if a corresponding SEGMENT_START has already been
430 (lang_section_start): Add segment parameter.
431 * ldlex.l (SEGMENT_START): Add it.
432 * lexsup.c (seg_segment_start): New function.
433 (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
434 * ld.texinfo (SEGMENT_START): Document it.
435 * emulparams/armsymbian.sh (EMBEDDED): Set it.
436 * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
437 base addresses. Do not map relocations.
438 * NEWS: Mention SEGMENT_START.
440 2004-10-26 Paul Brook <paul@codesourcery.com>
442 * ld.texinfo: Document --default-symver.
443 * ldmain.c (main): Set link_info.create_default_symver.
444 * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
445 (ld_options): Add default-symver.
446 (parse_args): Handle OPTION_DEFAULT_SYMVER.
448 2004-10-24 Danny Smith <dannysmith@users.sourceforge.net>
450 * pe-dll.c (process_def_file): Don't export all symbols by default if
451 building a position-independent executable.
453 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
456 * ldmain.c (reloc_overflow): Accept a pointer to struct
457 bfd_link_hash_entry. Report symbol location for relocation
460 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
462 * genscripts.sh (libpath.exp): Really generate for first
465 2004-10-19 Danny Smith <dannysmith@users.sourceforge.net>
467 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
468 comparison and replacement of filenames.
470 2004-10-19 H.J. Lu <hongjiu.lu@intel.com>
473 * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
474 option on linker script as the one for linker script.
476 2004-10-16 Daniel Jacobowitz <dan@debian.org>
478 * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
479 (check_excluded_libs): New.
480 (load_symbols): Call check_excluded_libs.
481 * ldlang.h (add_excluded_libs): New prototype.
482 * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
483 (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
484 (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
485 * ld.texinfo (Command Line Variables): Document --exclude-libs.
486 (Options Specific to i386 PE Targets): Remove --exclude-libs.
488 2004-10-15 Alan Modra <amodra@bigpond.net.au>
490 * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
491 failing link script assert.
493 * ldctor.c (ldctor_add_set_entry): Fix comment typo.
495 2004-10-14 H.J. Lu <hongjiu.lu@intel.com>
498 * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
499 (SMALL_DATA_DTOR): Set.
500 * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
501 (SMALL_DATA_DTOR): Unset.
502 * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
503 after .data. If SMALL_DATA_DTOR is set, move .dtors after
506 2004-10-14 Alan Modra <amodra@bigpond.net.au>
509 * ldlang.h (lang_output_section_statement_type): Make "next" a
510 struct lang_output_section_statement_struct *.
511 (struct orphan_save): Move from elf32.em. Add "name" and "flags".
512 (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
513 * ldlang.c (lang_output_section_find_1): Adjust for changed
514 output_section_statement "next".
515 (strip_excluded_output_sections): Likewise.
516 (lang_record_phdrs): Likewise.
517 (lang_output_section_find_by_flags): New function.
518 (output_prev_sec_find): Move from pe.em. Adjust iterator.
519 (lang_insert_orphan): New function. Tail end of elf32.em's
520 place_orphan merged with that from pe.em. Allow bfd_section to
521 be placed first. New heuristic for placing new output section
522 statement in existing script, and accompanying split of __start
523 symbol alignment into a separate assignment to dot.
524 (lang_add_section): Consistently use output->bfd_section rather than
525 an alias, section->output_section.
526 (map_input_to_output_sections): Rename overly long arg. Move
527 initialization of data_statement output section to here..
528 (lang_check_section_addresses): ..from here.
529 (print_assignment): Correct printing of etree_assert.
530 (print_all_symbols): Don't bomb if userdata is NULL.
531 (IGNORE_SECTION): Rearrange.
532 * emultempl/elf32.em (output_rel_find): Adjust interator.
533 (output_prev_sec_find): Delete.
534 (struct orphan_save): Delete.
535 (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
536 flags without creating a duplicate output section statement.
537 Revise code holding history of various orphan section placements.
538 Allow orphan sections to place before script specified output
539 sections. Call lang_output_section_find_by_flags when placement
540 by name fails. Use lang_insert_orphan.
541 * emultempl/mmo.em (output_prev_sec_find): Delete.
542 (struct orphan_save): Delete.
543 (mmo_place_orphan): Revise code holding history of orphan placement.
544 Allow orphans to place before existing output sections. Use
546 * emultempl/pe.em (output_prev_sec_find): Delete.
547 (struct orphan_save): Delete.
548 (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
551 2004-10-13 Mark Mitchell <mark@codesourcery.com>
553 * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
556 2004-10-13 Alan Modra <amodra@bigpond.net.au>
559 * ldcref.c (check_section_sym_xref): Delete.
560 (check_local_sym_xref): New function.
561 (check_nocrossrefs): Adjust call.
562 * emultempl/pe.em (struct orphan_save): Add os_tail.
563 (place_orphan): Backport assorted fixes from elf32.em.
565 2004-10-12 Bob Wilson <bob.wilson@acm.org>
567 * emultempl/xtensaelf.em: Use ISO C90 formatting.
569 2004-10-11 Jakub Jelinek <jakub@redhat.com>
571 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
572 getline for portability.
574 * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
575 (gld${EMULATION_NAME}_parse_ld_so_conf,
576 gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
577 (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
579 2004-10-11 Alan Modra <amodra@bigpond.net.au>
582 * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
583 rejected when linking statically.
585 2004-10-08 Daniel Jacobowitz <dan@debian.org>
587 * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
589 2004-10-07 Bob Wilson <bob.wilson@acm.org>
591 * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
592 assembler-generated longcall sequences. Describe new --size-opt
594 * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
595 * emultempl/xtensaelf.em (remove_section,
596 replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
597 elf_xtensa_after_open): New.
598 (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
599 OPTION_NO_LITERAL_MOVEMENT): Define.
600 (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
601 (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
602 (PARSE_AND_LIST_OPTIONS): Add --size-opt.
603 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
604 OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
605 (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
606 * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
607 * Makefile.am (eelf32xtensa.c): Update dependencies.
608 * Makefile.in: Regenerate.
610 2004-10-07 Jeff Baker <jbaker@qnx.com>
612 * lexsup.c: Handle --warn-shared-textrel option.
613 (ld_options): Restore alpha sorting of options.
614 * ldmain.c (main): Initialise warn_shared_info field to FALSE.
615 * ld.texinfo: Add documentation for --warn-shared-textrel.
616 * NEWS: Added mention of --warn-shared-textrel option.
618 2004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
620 * emultempl/crxelf.em (disable_relaxation): Add.
621 (crxelf_before_allocation): Enable --relax option by default.
622 (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
623 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
624 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
626 2004-10-04 H.J. Lu <hongjiu.lu@intel.com>
628 * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
629 --sort-section name|alignment.
631 * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
632 --sort-section name|alignment.
634 * ld.h (sort_type): New enum.
635 (wildcard_spec): Change the type of `sorted' to sort_type.
637 * ldgram.y (SORT): Removed.
638 (SORT_BY_NAME): Added.
639 (SORT_BY_ALIGNMENT): Added.
640 (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
642 (input_section_spec_no_keep): Updated `sorted'.
643 (statement): Replace SORT with SORT_BY_NAME.
645 * ldlang.c (compare_section): New function to compare 2
646 sections with different sorting schemes.
647 (wild_sort): Updated. Use compare_section.
648 (update_wild_statements): New function.
649 (lang_process): Call update_wild_statements before
650 map_input_to_output_sections.
652 * ldlex.l (SORT_BY_NAME): New.
653 (SORT_BY_ALIGNMENT): New.
654 (SORT): Return SORT_BY_NAME.
656 * ldmain.c (sort_section): New. Defined.
657 (main): Initialize it to none.
659 * lexsup.c (option_values): Add OPTION_SORT_SECTION.
660 (ld_options): Add an entry for OPTION_SORT_SECTION.
661 (parse_args): Handle OPTION_SORT_SECTION.
663 * mri.c (mri_draw_tree): Updated `sorted'.
665 2004-10-04 Jakub Jelinek <jakub@redhat.com>
667 * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
668 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
670 (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
671 and . as second argument.
672 (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
673 * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
674 (fold_binary): Add it here. Insert padding to make relro_end
675 COMMONPAGESIZE bytes aligned. For DATA_SEGMENT_ALIGN in
676 exp_dataseg_relro_adjust phase just use previously computed
678 * ldlang.c (lang_size_sections): Set exp_data_seg.base for
679 relro_adjust here. Call lang_size_sections_1 once more if there
680 was too big padding at DATA_SEGMENT_RELRO_END.
681 * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
683 2004-10-01 Paul Brook <paul@codesourcery.com>
685 * emulparams/armelf.sh: Add unwinding table sections.
687 2004-09-30 Filip Navara <navaraf@reactos.com>
689 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
690 correct base address for position independant executables.
691 * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
694 2004-09-30 Paul Brook <paul@codesourcery.com>
696 * ld.texinfo: Document --target2=abs.
697 * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
699 2004-09-29 Nick Clifton <nickc@redhat.com>
701 * scripttempl/xstormy16.sc: Only perform the assignments to the
702 ROM region when not performing a relocatable link. The ROM region
703 does not start at address 0, but the sections will.
704 * Makefile.am: Fix linker script dependency for the generation of
706 * Makefile.in: Regenerate.
708 2004-09-18 Filip Navara <navaraf@reactos.com>
710 * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
711 emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
712 emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
714 * scripttempl/pe.sc: Make the virtual address and file offset synced if
715 the alignment is lower than the target page size.
717 2004-09-27 Filip Navara <navaraf@reactos.com>
719 * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
720 def_file_parse to handle pe_def_file if NULL and prevent crash with
723 2004-09-27 Alan Modra <amodra@bigpond.net.au>
725 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
726 --emit-stub-syms automatically when --emit-relocs.
728 2004-09-24 Paul Brook <paul@codeosurcery.com>
730 * scripttempl/elf.sc: Keep .preinit_array, .init_array and
731 .fini_array sections.
733 2004-09-19 Andreas Schwab <schwab@suse.de>
735 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
736 base so that relro end is suitably aligned.
738 2004-09-17 Paul Brook <paul@codesourcery.com>
740 * ld.texinfo: Rename arm-specific section. Document --target*
741 * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
742 * emulparams/armelf_linux.sh: Ditto.
743 * emulparams/armelf_nbsd.sh: Ditto.
744 * emultempl/armelf.em: Set default for TARGET2_TYPE.
745 (target2_type): New variable.
746 (arm_elf_before_allocation): Don't pass target1_type.
747 (arm_elf_create_output_section_statements): New function.
748 (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
749 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
750 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
751 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
752 * emultempl/armelf_oabi.em (_before_allocation): Remove extra
753 argument to bfd_elf32_arm_process_before_allocation.
755 2004-09-17 Alan Modra <amodra@bigpond.net.au>
757 * ldexp.c (fold_name): Update u.undef.next refs.
758 * emultempl/pe.em: Likewise.
759 * emultempl/sunos.em: Likewise.
761 2004-09-17 Alan Modra <amodra@bigpond.net.au>
763 * Makefile.am: Run "make dep-am".
764 * Makefile.in: Regenerate.
765 * config.in: Regenerate.
766 * configure: Regenerate.
767 * aclocal.m4: Regenerate.
768 * po/ld.pot: Regenerate.
770 2004-09-16 Tomer Levi <Tomer.Levi@nsc.com>
772 * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
776 2004-09-16 Alan Modra <amodra@bigpond.net.au>
778 * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
779 to bfd_elf32_arm_process_before_allocation call.
781 2004-09-13 Paul Brook <paul@codesourcery.com>
783 * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
784 * emultempl/armelf.em: Use TARGET1_IS_REL. Add --target1-{rel,abs}.
786 2004-09-07 H.J. Lu <hongjiu.lu@intel.com>
788 * configure: Regenerated with autconfig 2.13.
790 2004-09-07 Andreas Schwab <schwab@suse.de>
792 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
793 alignment before adjusting DATA_SEGMENT_RELRO_END.
795 2004-09-06 Mark Mitchell <mark@codesourcery.com>
797 * emulparams/armsymbian.sh: Use armbpabi script.
798 * scripttempl/armbpabi.sc: New script.
800 2004-09-02 Mark Mitchell <mark@codesourcery.com>
802 * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
803 (earmsymbian.c): New target.
804 * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
805 * Makefile.in: Regenerated.
806 * aclocal.m4: Likewise.
807 * configure: Likewise.
808 * emulparams/armsymbian.sh: New file.
810 2004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
812 * scripttempl/elf32crx.sc: Edit file with comments.
813 (.init): Add new section.
815 (.ctor): Control the linkage order.
818 2004-08-27 Nick Clifton <nickc@redhat.com>
820 * emultempl/pe.em (after_open): Do not assume that either bfd is
823 2004-08-26 Alan Modra <amodra@bigpond.net.au>
825 * ldlang.c (lang_init): Don't compare with TRUE.
827 2004-08-25 Dmitry Diky <diwil@spec.ru>
829 * emulparams/msp430all.sh: Fix RAM sizes for all targets.
830 * scripttempl/elf32msp430.sc: Add .profiler section definition.
832 2004-08-24 H.J. Lu <hongjiu.lu@intel.com>
834 * ldlang.c (wildcardp): Defined as a macro with strpbrk.
836 2004-08-19 Mark Mitchell <mark@codesourcery.com>
838 * configure.tgt (arm*-*-symbianelf*): New target.
839 (arm*-*-eabi*): Likewise.
841 2004-08-19 Jakub Jelinek <jakub@redhat.com>
843 * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
844 (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
845 (OPTION_NON_OVERLAPPING_OPD): Define.
846 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
847 --non-overlapping-opd option.
849 2004-08-18 Alan Modra <amodra@bigpond.net.au>
852 * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
853 was already on the undefs list.
855 2004-08-17 Alan Modra <amodra@bigpond.net.au>
857 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
858 prefix the symbol field too.
860 2004-08-13 Alan Modra <amodra@bigpond.net.au>
862 * ldmain.c (link_callbacks): Remove "error_handler".
863 * ldmisc.c: Include elf-bfd.h.
864 (vfinfo): Sort comment. Handle %A. Use %A instead of
865 bfd_get_section_indent.
866 (error_handler): Delete.
867 * ldmisc.h (error_handler): Delete declaration.
869 2004-08-10 Alan Modra <amodra@bigpond.net.au>
871 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
872 ppc64_elf_restore_symbols.
874 2004-08-09 Alan Modra <amodra@bigpond.net.au>
876 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
877 .toc is too large on relocatable linking.
879 2004-08-09 Alan Modra <amodra@bigpond.net.au>
881 * emultempl/ppc64elf.em (ppc_after_open): Delete.
882 (LDEMUL_AFTER_OPEN): Don't define.
884 2004-08-02 Stephane Carrez <stcarrez@nerim.fr>
886 * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
888 2004-08-01 Stephane Carrez <stcarrez@nerim.fr>
890 * scripttempl/elfm68hc12.sc: Align text, rodata and data section
893 2004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
895 * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
897 2004-07-26 Dmitry Diky <diwil@spec.ru>
899 * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
900 msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
902 * configure.tgt: Likewise.
903 * emulparams/msp430all.sh: Likewise.
904 * Makefile.in: Regenerate.
906 2004-07-23 Nick Clifton <nickc@redhat.com>
908 * emultempl/elf32.em (_place_orphan): Use an already existing
909 section name if that section does not have any flags set.
911 2004-07-21 H.J. Lu <hongjiu.lu@intel.com>
913 * ldlang.c (already_linked_hash_entry): Removed.
914 (already_linked): Likewise.
915 (already_linked_table): Likewise.
916 (section_already_linked): Call bfd_section_already_linked.
917 (lang_process): Replace already_linked_table_init with
918 bfd_section_already_linked_table_init and check return. Replace
919 already_linked_table_free with bfd_section_already_linked_table_free.
921 2004-07-21 Nick Clifton <nickc@redhat.com>
923 * ldlang.c (init_os): Make sure that the newly allocated userdata
924 structure is zeroed out.
926 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
928 * NEWS: Mention the new --add-needed/--no-add-needed and
929 --as-needed/--no-as-needed options.
931 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
933 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
934 check the add_needed field.
935 (dt_needed): New struct.
936 (gld${EMULATION_NAME}_try_needed): Change the first argument
937 to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
938 bit in the file where the DT_NEEDED entry comes from.
939 (gld${EMULATION_NAME}_search_needed): Change the second
940 argument to a pointer to struct dt_needed.
941 (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
942 (gld${EMULATION_NAME}_after_open): Likewise.
944 * ld.texinfo: Add --add-needed document.
945 * ldlang.c (new_afile): Set p->add_needed.
946 * ldlang.h (lang_input_statement_type): Add add_needed field.
947 * ldmain.h (add_needed): Declare.
948 * ldmain.c (add_needed): New global var.
949 * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
950 OPTION_NO_ADD_NEEDED.
951 (ld_options): Likewise.
952 (parse_args): Handle them.
954 2004-07-13 Christof Petig <christof@petig-baender.de>
956 * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
957 for endian-ness of extracted addend.
959 2004-07-13 Danny Smith <dannysmith@usesr.sourceforge.net>
961 * pe-dll.c (auto_export): Filter on just the import prefix,
962 "_imp_", not "_imp__".
964 2004-07-09 Nick Clifton <nickc@redhat.com>
966 * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
968 2004-07-06 Tomer Levi <Tomer.Levi@nsc.com>
970 * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
971 (eelf32crx.c): New target.
972 * Makefile.in: Regenerate.
973 * configure.tgt: Handle crx-*-elf*.
974 * emulparams/elf32crx.sh: New file.
975 * emultempl/crxelf.em: New file.
976 * scripttempl/elf32crx.sc: New file.
977 * NEWS: Mention new target.
979 2004-07-06 Nick Clifton <nickc@redhat.com>
981 * Makefile.am: Add eshlsymbian.c.
982 * Makefile.in: Regenerate.
983 * configure.tgt: Add sh*-symbian-elf target.
984 * emulparams/shlsymbian.sh: New file. Configure the
985 sh-symbian-elf linker scripts.
986 * scripttemp/elf32sh-symbian.sc: New file. Linker script
987 template for the sh-symbian-elf target.
989 2004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
991 * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
992 * emulparams/hppalinux.sh: Likewise.
993 * scripttempl/elf.sc: Place .plt just before .got when .plt is in
994 data segment and PLT_BEFORE_GOT is defined.
996 2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
998 * ld.texinfo (WIN32): Document PE weak symbols.
1000 2004-07-02 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1002 * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
1004 2004-07-01 H.J. Lu <hongjiu.lu@intel.com>
1006 * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
1009 2004-06-29 Alan Modra <amodra@bigpond.net.au>
1011 * ldlang.c (lang_reset_memory_regions): Save last relax pass section
1014 2004-06-24 Alan Modra <amodra@bigpond.net.au>
1016 * ldlang.c (print_output_section_statement): Don't print size before
1018 (IGNORE_SECTION): Remove bfd arg. Update all callers.
1020 * ldexp.c (fold_name): .. See below.
1021 * ldlang.c (section_already_linked, print_output_section_statement,
1022 print_input_section, insert_pad, size_input_section,
1023 lang_check_section_addresses, lang_size_sections_1,
1024 lang_size_sections, lang_do_assignments_1, lang_set_startof,
1025 lang_one_common, lang_reset_memory_regions, lang_process,
1026 lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
1027 * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
1028 * pe-dll.c (process_def_file, generate_reloc): ..
1029 * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
1030 gld${EMULATION_NAME}_before_allocation): ..
1031 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
1032 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
1033 sh64_elf_${EMULATION_NAME}_after_allocation): ..
1034 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
1035 * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
1036 ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
1037 "size" instead of "_raw_size" and "_cooked_size". Expand
1038 bfd_section_size macro invocations.
1040 2004-06-22 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1042 * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
1043 ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
1044 ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
1046 (.tls): Define ___tls_start__ and ___tls_end__.
1048 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
1050 * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
1052 2004-06-18 Adam Nemet <anemet@lnxw.com>
1054 * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
1055 * configure: Regenerate.
1057 2004-06-15 Jakub Jelinek <jakub@redhat.com>
1059 * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
1060 .gcc_except_table output sections lost accidentally with
1063 2004-06-15 Alan Modra <amodra@bigpond.net.au>
1065 * ldwrite.c (build_link_order): Use bfd_get_section_size
1066 instead of bfd_get_section_size_before_reloc or _raw_size.
1067 * pe-dll.c (process_def_file): Likewise.
1069 2004-06-14 Alan Modra <amodra@bigpond.net.au>
1071 From Richard Wirth <r.wirth@wirthware.de>
1072 * ldlang.c (lang_finish): Don't free lang_definedness_table.
1074 2004-05-29 Alan Modra <amodra@bigpond.net.au>
1076 * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
1077 (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
1079 2004-05-28 Andrew Stubbs <andrew.stubbs@superh.com>
1081 * testsuite/ld-sh/arch/arch.exp: New test script.
1082 * testsuite/ld-sh/arch/arch_expected.txt: New file.
1083 * testsuite/ld-sh/arch/sh.s: New file.
1084 * testsuite/ld-sh/arch/sh2.s: New file.
1085 * testsuite/ld-sh/arch/sh-dsp.s: New file.
1086 * testsuite/ld-sh/arch/sh2e.s: New file.
1087 * testsuite/ld-sh/arch/sh3-nommu.s: New file.
1088 * testsuite/ld-sh/arch/sh3.s: New file.
1089 * testsuite/ld-sh/arch/sh3-dsp.s: New file.
1090 * testsuite/ld-sh/arch/sh3e.s: New file.
1091 * testsuite/ld-sh/arch/sh4-nommu-nofpu.s: New file.
1092 * testsuite/ld-sh/arch/sh4-nofpu.s: New file.
1093 * testsuite/ld-sh/arch/sh4.s: New file.
1094 * testsuite/ld-sh/arch/sh4a-nofpu.s: New file.
1095 * testsuite/ld-sh/arch/sh4al-dsp.s: New file.
1096 * testsuite/ld-sh/arch/sh4a.s: New file.
1098 2004-05-28 Alan Modra <amodra@bigpond.net.au>
1100 * ldlang.c: Formatting. Wrap long lines, expand bfd_get_section_flags
1102 * lexsup.c: Formatting. Wrap long lines.
1103 * ldwrite.c: Update copyright date.
1105 * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
1106 (output_section_callback): Nor SEC_KEEP here.
1107 (gc_section_callback): Twiddle SEC_EXCLUDE here.
1108 (lang_gc_wild): Delete. Fold into..
1109 (lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage
1111 (lang_process): Always call lang_gc_sections.
1112 (lang_place_orphans): Handle SEC_EXCLUDE sections.
1113 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
1116 2004-05-26 H.J. Lu <hongjiu.lu@intel.com>
1118 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
1119 SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
1120 * ldlang.c (lang_add_section): Likewise.
1122 2004-05-26 Alan Modra <amodra@bigpond.net.au>
1124 * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
1125 sections when doing a final link. Clear SEC_EXCLUDE when doing
1126 a relocable link, except for SEC_DEBUGGING sections.
1127 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
1128 same condition here to drop SEC_EXCLUDE orphan sections.
1130 2004-05-25 Alan Modra <amodra@bigpond.net.au>
1132 * ldlang.c (lang_process): Call bfd_merge_sections later, and
1133 only when not a relocatable link.
1134 (print_input_section): Handle SEC_EXCLUDE sections.
1135 (size_input_section): Don't update dot on SEC_EXCLUDE sections.
1136 (lang_do_assignments_1): Likewise.
1137 * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
1138 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
1139 * emultempl/hppaelf.em (build_section_lists): Likewise.
1140 * emultempl/ppc64elf.em (build_toc_list): Likewise.
1141 (build_section_lists): Likewise.
1143 2004-05-23 Andreas Schwab <schwab@suse.de>
1145 * ld.texinfo (Options): Fix typo in last change.
1147 2004-05-21 Andy Chittenden <achittenden@bluearc.com>
1149 * ld.h (ld_config_type): Add new field: hash_table_size.
1150 * ldmain.c: Initialise the new field to zero. If it is non-zero
1151 after parsing the linker's command line call
1152 bfd_hash_set_default_size.
1153 * lexsup.c (option_values): Add OPTION_HASH_SIZE.
1154 (ld_options): Add hash-size.
1155 (parse_args): Parse --hash-size option. Allow
1156 --reduce-memory-overheads to set the default hash table size as
1158 * ld.texinfo: Document the new switch. Also mention that
1159 --reduce-memory-overheads can affect the hash table size.
1160 * NEWS: Mention the new feature.
1162 2004-05-19 J"orn Rennecke <joern.rennecke@superh.com>
1164 * NEWS: Mention new linker map file generation and the
1165 --reduce-memory-overheads option.
1166 * ld.texinfo: Document --reduce-memory-overheads option.
1167 * ld.h (map_symbol_def): New struct.
1168 (struct user_section_struct, section_userdata_type): Rename to:
1169 (struct lean_user_section_struct, lean_section_userdata_type).
1170 (struct fat_user_section_struct, fat_section_userdata_type): New.
1171 (SECTION_USERDATA_SIZE): Define.
1172 (args_type): New member reduce_memory_overheads.
1173 * ldlang.c (map_obstack): New static variable.
1174 (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
1175 (lang_map): Unless command_line.reduce_memory_overheads is set,
1176 initialize lists of defined symbols for each section.
1177 (print_input_section): Unless command_line.reduce_memory_overheads
1178 is set, use print_all_symbols.
1179 (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
1180 * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
1181 * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
1182 (ld_options): Add entry for --reduce-memory-overheads.
1183 (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
1185 2004-05-19 Jakub Jelinek <jakub@redhat.com>
1187 * ldgram.y (sect_constraint): New.
1188 (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1189 (section): Add sect_constraint. Pass additional argument
1190 to lang_enter_output_section_statement.
1191 * mri.c (mri_draw_tree): Pass additional argument to
1192 lang_enter_output_section_statement.
1193 * emultempl/pe.em (place_orphan): Likewise.
1194 (output_prev_sec_find): Disregard output section statements with
1196 * emultempl/mmo.em (output_prev_sec_find): Likewise.
1197 (mmo_place_orphan): Pass additional argument to
1198 lang_enter_output_section_statement.
1199 * emultempl/elf32.em (output_prev_sec_find): Disregard output section
1200 statements with constraint == -1.
1201 (place_orphan): Pass additional argument to
1202 lang_enter_output_section_statement.
1203 * ldlang.c (lang_enter_overlay_section): Likewise.
1204 (lang_output_section_find_1): New.
1205 (lang_output_section_find): Use it.
1206 (lang_output_section_statement_lookup_1): New.
1207 (lang_output_section_statement_lookup): Use it.
1208 (check_section_callback, check_input_sections): New.
1209 (map_input_to_output_sections): Check if all input sections
1210 are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
1211 (strip_excluded_output_sections): Disregard output section statements
1212 with constraint == -1.
1213 (lang_record_phdrs): Likewise.
1214 (lang_enter_output_section_statement): Add constraint argument.
1215 Use lang_output_section_statement_lookup_1.
1216 * ldlang.h (lang_output_section_statement_type): Add constraint
1217 and all_input_readonly fields.
1218 (lang_enter_output_section_statement): Adjust prototype.
1219 * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1220 * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
1221 segment if all input sections are readonly.
1223 2004-05-19 Adam Nemet <anemet@lnxw.com>
1225 * scripttempl/i386lynx.sc: Remove file.
1227 2004-05-17 Bob Wilson <bob.wilson@acm.org>
1229 * ld.texinfo (Output Section Address): Correct subsection name.
1231 2004-05-17 Adam Nemet <anemet@lnxw.com>
1233 * configure.tgt (powerpc-*-lynxos* case): New case.
1234 * configure.host (i[3-7]86-*-lynxos* case): Remove case.
1235 * emulparams/ppclynx.sh: New file.
1236 * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
1237 * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
1238 (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
1239 (eppclynx.c): New rule.
1240 * Makefile.in: Regenerate.
1242 2004-05-13 Joel Sherrill <joel@oarcorp.com>
1244 * configure.tgt (or32-*-rtems*): Switch to elf and
1245 support versioned targets.
1247 2004-05-13 Nick Clifton <nickc@redhat.com>
1249 * po/fr.po: Updated French translation.
1251 2004-05-11 Jakub Jelinek <jakub@redhat.com>
1253 * genscripts.sh: Generate -z combreloc -z now -z relro scripts
1254 for binaries, -shared and -pie.
1255 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
1256 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
1257 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
1258 (OTHER_RELRO_SECTIONS): ... this.
1259 * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
1260 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
1261 -z relro and -z norelro.
1262 (gld${EMULATION_NAME}_list_options): Add it to usage.
1263 (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
1264 -z relro scripts when appropriate.
1265 * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
1266 Create separate .got.plt section if SEPARATE_GOTPLT.
1267 Move sections which are only written during relocation handling
1268 to the beginning of RW segment. If NO_SMALL_DATA, move .got
1269 before .data. Add DATA_SEGMENT_RELRO_END directive.
1270 Include OTHER_RELRO_SECTIONS.
1271 * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
1272 * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
1273 (fold_unary): Likewise.
1274 (fold_binary): Handle -z relro.
1275 * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
1276 exp_dataseg_relro_adjust phases. Add relro_end field.
1277 * ldmain.c (main): Initialize link_info.relro to FALSE.
1278 * ldlang.c (lang_size_sections): Handle -z relro.
1280 2004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
1282 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
1284 2004-05-07 J"orn Rennecke <joern.rennecke@superh.com>
1286 * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
1287 before printing it with %W.
1289 2004-05-07 Brian Ford <ford@vss.fsi.com>
1290 DJ Delorie <dj@redhat.com>
1292 * emultempl/pe.em (real_flags): New static.
1293 (OPTION_LARGE_ADDRESS_AWARE): New define.
1294 (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
1295 (gld_${EMULATION_NAME}_list_options): Likewise.
1296 (gld${EMULATION_NAME}_handle_option): Likewise.
1297 (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
1298 * ld.texinfo: Document it.
1301 2004-05-07 Brian Ford <ford@vss.fsi.com>
1303 * NEWS: Mention DWARF 2 support for i386pe.
1305 2004-05-05 Alexandre Oliva <aoliva@redhat.com>
1307 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
1310 2004-04-30 Alan Modra <amodra@bigpond.net.au>
1312 * ldlang.c (unique_section_p): Pass section parm, return true on
1314 (output_section_callback): Adjust.
1315 * ldlang.h (unique_section_p): Update prototype.
1316 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
1318 2004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
1320 * ld.texinfo (--gc-sections): Remove restriction for
1323 2004-04-29 Brian Ford <ford@vss.fsi.com>
1325 * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
1326 for DWARF 2/3. Update stab section's syntax.
1328 2004-04-29 Alan Modra <amodra@bigpond.net.au>
1330 * pe-dll.c: Revert changes accidentally committed 2004-03-08.
1331 (fill_edata): Correct pointer arithmetic.
1333 2004-04-21 Chris Demetriou <cgd@broadcom.com>
1335 * ld.texinfo: Remove MIPS --embedded-relocs documentation.
1336 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
1337 * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
1338 (EXTRA_EM_FILE): Use mipsecoff.em
1339 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
1340 (EXTRA_EM_FILE): Use mipsecoff.em
1341 * emultempl/mipsecoff.em: Restructure to be included as an
1342 extra emulation file.
1343 (check_sections, gld${EMULATION_NAME}_after_open)
1344 (gld${EMULATION_NAME}_after_allocation)
1345 (gld${EMULATION_NAME}_get_script)
1346 (ld_${EMULATION_NAME}_emulation): Remove
1347 (gld${EMULATION_NAME}_before_parse): Rename to...
1348 (mipsecoff_before_parse): This.
1349 (LDEMUL_BEFORE_PARSE): Define.
1350 * emultempl/mipself.em: Remove file.
1351 * scripttempl/mips.sc (.rel.sdata): Do not include in output.
1352 (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
1354 * Makefile.am: Remove dependencies on emultempl/mipself.em.
1355 * Makefile.in: Regenerate.
1357 2004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
1359 * ld.texinfo (synthesizing on H8/300): Information about linker
1360 relaxation support for bit manipulation instructions and system
1361 control instructions is added.
1363 2004-04-21 Hans-Peter Nilsson <hp@axis.com>
1365 * NEWS: Mention change in DEFINED semantics.
1367 2004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
1369 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
1370 (.data): Add KEEP for .gnu.linkonce.d.*personality*.
1371 (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
1373 2004-04-21 Ben Elliston <bje@au.ibm.com>
1375 * ld.texinfo (Simple Example): Add missing punctuation.
1377 2004-04-20 Chris Demetriou <cgd@broadcom.com>
1379 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
1381 2004-04-19 Jakub Jelinek <jakub@redhat.com>
1383 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
1386 2004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
1388 * scriptempl/pe.sc: Put numbered .ctors.* after .ctors
1389 with default priority. Likewise for dtors.
1391 2004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1393 * configure.host: Remove mips*-dec-bsd* target.
1394 * configure.tgt: Likewise.
1396 2004-04-08 Richard Sandiford <rsandifo@redhat.com>
1398 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
1399 * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
1400 * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
1401 * emultempl/irix.em: New file.
1402 * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
1404 * Makefile.in: Regenerate.
1406 2004-04-01 Paul Brook <paul@codesourcery.com>
1408 * emultempl/armelf.em (byteswap_code): Add.
1409 (arm_elf_before_allocation): Pass extra parameter.
1410 (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
1411 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
1412 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
1413 * emultempl/armelf_oabi.em: Pass extra parameter.
1414 * ld.texinfo: Document --be8.
1416 2004-03-30 Stan Shebs <shebs@apple.com>
1418 Remove long-obsolete MPW support.
1419 * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
1420 * Makefile.am (mpw): Remove file-presynthesizing actions.
1421 * Makefile.in: Likewise.
1422 * ldfile.c (slash): Remove MPW case.
1423 * ldlex.l [MPW]: Remove unused definition.
1425 2004-03-30 Galit Heller <Galit.Heller@nsc.com>
1427 * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
1428 (eelf32cr16c.c): New target.
1429 * Makefile.in: Regenerate.
1430 * configure.tgt: Handle cr16c-*-elf*.
1431 * emulparams/elf32cr16c.sh: New file.
1432 * scripttempl/elfcr16c.sc: Likewise
1433 * NEWS: Mention support for new target.
1435 2004-03-30 Nick Clifton <nickc@redhat.com>
1437 * po/sv.po: Updated Swedish translation.
1439 2004-03-27 Alan Modra <amodra@bigpond.net.au>
1441 * emultempl/elf32.em: Update new bfd_elf_discard_info name.
1442 * emultempl/hppaelf.em: Likewise.
1443 * emultempl/ppc64elf.em: Likewise.
1444 * emultempl/sh64elf.em: Likewise.
1446 2004-03-25 Alan Modra <amodra@bigpond.net.au>
1448 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
1449 size_dynamic_sections call.
1451 2004-03-23 Alan Modra <amodra@bigpond.net.au>
1454 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
1455 link_info.wrap_char.
1457 2004-03-20 H.J. Lu <hongjiu.lu@intel.com>
1459 * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
1460 or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
1462 2004-03-20 Alexandre Oliva <aoliva@redhat.com>
1464 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
1466 2004-03-19 Alan Modra <amodra@bigpond.net.au>
1468 * config.in: Regenerate.
1469 * po/ld.pot: Regenerate.
1471 2004-03-18 Alan Modra <amodra@bigpond.net.au>
1473 * ld.texinfo: Add --as-needed doco.
1474 * ldmain.c (as_needed): New global var.
1475 * ldmain.h (as_needed): Declare.
1476 * lexsup.c (option_values): Add OPTION_AS_NEEDED and
1477 OPTION_NO_AS_NEEDED.
1478 (ld_options): Likewise.
1479 (parse_args): Handle them.
1480 * ldlang.h (lang_input_statement_type): Add as_needed field.
1481 * ldlang.c (new_afile): Set p->as_needed.
1482 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
1483 (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
1484 (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
1486 * ldlang.c (open_input_bfds): Remove useless cast.
1487 (lang_do_assignments_1): Likewise.
1488 (lang_for_each_input_section): Delete.
1490 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1492 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
1494 2004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
1496 * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
1497 private when building implib.
1499 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
1501 * ldlang.c (lang_add_section): Don't force SEC_LOAD on
1503 (IGNORE_SECTION): Ignore .tbss sections too.
1504 (lang_size_sections_1): .tbss sections do not advance dot.
1506 2004-03-01 Andreas Schwab <schwab@suse.de>
1508 * ld.texinfo (Options): Fix example for --wrap.
1510 2004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
1512 * pe-dll.c (fill_edata): Check that exported_symbol_sections is
1515 2004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
1517 * ldlang.c (lang_check): Use %P, not %E, in error message.
1519 2004-02-23 Nathan Sidwell <nathan@codesourcery.com>
1521 * ldlang.h (struct lang_output_section_state): Change processed
1523 * ldexp.c (check, invalid): Remove.
1524 (fold_name): Move valid_p assignments. Create undefined symbol
1525 when needed. Directly exampine section's processd flag.
1526 * ldlang.c (lang_output_section_statement_lookup): Adjust
1527 processed field init.
1528 (lang_size_sections_1): Allow LOADADDR when determining section's
1529 VMA. Adjust error message. Fold data statement's expr.
1530 (lang_size_sections): Correctly increment lang_statement_iteration.
1532 2004-02-23 Alan Modra <amodra@bigpond.net.au>
1534 * ldexp.c (fold_tree): Follow indirect symbols.
1536 2004-02-20 Nathan Sidwell <nathan@codesourcery.com>
1538 * ldgram.y (exp): Add two operand ALIGN.
1539 * ldexp.c (fold_binary): Add ALIGN_K case.
1540 * ld.texinfo (ALIGN): Document two operand version.
1542 2004-02-19 Nathan Sidwell <nathan@codesourcery.com>
1544 * ldlang.c (map_input_to_output_sections): Initialize sections
1545 mentioned in a data statement expression.
1546 (lang_do_assignments_1): Add data statement's expression's
1549 2004-02-18 Nathan Sidwell <nathan@codesourcery.com>
1551 * ldgram.y (statement_anywhere): Add assert rule.
1552 * ldlang.c (exp_init_os): Add assert case.
1554 2004-02-14 Andrew Cagney <cagney@redhat.com>
1556 * ldmain.c (remove_output): Call bfd_cache_close.
1558 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
1560 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
1561 .MIPS.content* and .MIPS.events* sections.
1563 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
1565 * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
1566 .note.gnu.arm.ident to after allocated sections. Mark its
1569 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
1571 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
1572 * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
1573 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
1574 * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
1575 * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
1577 2004-02-05 Nick Clifton <nickc@redhat.com>
1579 * emultempl/pe.em (_after_open): Fix typo in previous delta.
1581 2004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
1583 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
1585 2004-01-28 Alan Modra <amodra@bigpond.net.au>
1587 * genscripts.sh: Fix typo.
1589 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
1591 2004-01-24 Jakub Jelinek <jakub@redhat.com>
1593 * emulparams/elf64_ia64.sh: Put .rela.opd into
1594 OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
1596 2004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
1598 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
1599 * ld.texinfo (--omagic): Note that writable text section
1600 does not conform to published PE-COFF specs.
1601 (--enable-auto-import): Likewise.
1603 2004-01-15 Alan Modra <amodra@bigpond.net.au>
1605 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
1607 2004-01-13 Nick Clifton <nickc@redhat.com>
1609 * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
1610 which if true will prevent the LMA region being used as a
1611 replacement for a default VMA region.
1612 (lang_leave_output_section_statement): Pass extra parameter.
1613 (lang_leave_overlay): Likewise.
1614 * ld.texinfo (Output Section LMA): Document that the LMA
1615 region can be set to the VMA region if no VMA has been set.
1616 * ldlang.h (struct lang_output_section_phdr_list): Create a
1617 typedef for this type. Minor formatting fixes.
1619 2004-01-13 Nick Clifton <nickc@redhat.com>
1621 * ldlang.c (lang_size_sections_1): If dot is advanced, then
1622 assume that the section should be allocated.
1624 2004-01-13 Alan Modra <amodra@bigpond.net.au>
1626 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
1627 sections. Do ignore SEC_NEVER_LOAD sections.
1628 (lang_size_sections_1): Remove test made redundant with the above.
1630 2004-01-09 Alan Modra <amodra@bigpond.net.au>
1632 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
1633 program_header_size.
1635 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
1637 2003-11-28 Alexandre Oliva <aoliva@redhat.com>
1638 * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
1639 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
1640 * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
1641 (MAXPAGESIZE): Set to 64Kb.
1642 (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
1643 __ROFIXUP_END__. Don't map .rofixup.got any more.
1644 * emulparams/elf32frv.sh (NOP): Set.
1645 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
1646 * configure.tgt: Add frv-*-*linux*.
1647 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
1648 * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
1649 (eelf32frvfd.c): New.
1650 * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
1651 * emulparams/elf32frv.sh: Reverted previous two patches.
1652 * emulparams/elf32frvfd.sh: New.
1653 * Makefile.in: Rebuilt.
1654 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
1655 * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
1656 .rofixup.got to .rofixup.
1657 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
1658 * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
1659 (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
1661 2004-01-05 Jakub Jelinek <jakub@redhat.com>
1663 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
1664 * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
1666 2004-01-03 Alan Modra <amodra@bigpond.net.au>
1668 * ldexp.c (align_n): Make static.
1669 * ldexp.h (align_n): Delete declaration.
1670 * ldlang.h (lang_enter_output_section_statement): Remove
1672 * ldlang.c (lang_enter_output_section_statement): Likewise.
1673 (TO_ADDR, TO_SIZE): Define.
1674 (opb_shift): New var.
1675 (init_opb): New function.
1676 (print_input_section): Call init_opb and use TO_ADDR.
1677 (print_data_statement, print_reloc_statement): Likewise.
1678 (print_padding_statement): Likewise.
1679 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
1680 (lang_check_section_addresses): Likewise.
1681 (lang_size_sections_1): Likewise.
1682 (lang_do_assignments_1): Likewise.
1683 (lang_set_startof): Likewise.
1684 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
1685 (lang_process): Call init_opb.
1686 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
1687 (lang_enter_overlay_section): Adjust
1688 lang_enter_output_section_statement call.
1689 * ldgram.y: Likewise.
1690 * mri.c (mri_draw_tree): Likewise.
1691 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1692 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1693 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1695 * ldfile.c (ldfile_set_output_arch): Add defarch param.
1696 * ldfile.h (ldfile_set_output_arch): Ditto.
1697 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
1698 ldfile_set_output_arch.
1699 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1700 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
1701 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
1702 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1703 * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
1704 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1705 * ldgram.y: Adjust ldfile_set_output_arch call.
1706 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1707 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
1708 * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
1709 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
1710 * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
1711 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1712 * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1714 2004-01-02 Bernardo Innocenti <bernie@develer.com>
1716 * configure.tgt: Add m68k-uClinux target.
1718 For older changes see ChangeLog-0203
1724 version-control: never