1 2005-02-10 Jakub Jelinek <jakub@redhat.com>
3 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
4 Set BFD_LINKER_CREATED on the stubs bfd.
5 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
8 2005-02-08 Mark Mitchell <mark@codesourcery.com>
10 * scripttempl/armbpabi.sc (VERSION): Make special section symbols
12 (Image$$ER_RO$$Base): Define whenever RELOCATING.
13 (Image$$ER_RO$$Limit): Likewise.
14 (SHT$$INIT_ARRAY$$Base): Likewise.
15 (SHT$$INIT_ARRAY$$Limit): Likeise.
17 2005-02-10 Ben Elliston <bje@au.ibm.com>
19 * emultempl/beos.em: Remove #if 0 and #if 1 blocks.
21 2005-02-08 Richard Sandiford <rsandifo@redhat.com>
23 * configure.tgt (mips64*el-*-linux-gnu*): Define targ_extra_libpath
24 to include o32 and n64 emulations.
25 (mips64*-*-linux-gnu*): Likewise.
27 2005-02-08 Hans-Peter Nilsson <hp@axis.com>
29 * ldmain.c (warning_callback, warning_find_reloc): Prepend
30 "warning: " to warning messages.
32 2005-02-04 Alan Modra <amodra@bigpond.net.au>
34 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't
35 look up symbol for etree_provide here.
37 2005-02-02 Daniel Jacobowitz <dan@codesourcery.com>
39 * emulparams/elf32bmip.sh (TEXT_DYNAMIC): Always set.
41 2005-02-01 Edward Welbourne <eddy@opera.com>
42 Nick Clifton <nickc@redhat.com>
44 * ld.texinfo (Source Code Reference): New node describing how to
45 access linker script defined variables from source code.
47 2005-02-01 Alan Modra <amodra@bigpond.net.au>
49 * ld.texinfo: Clarify --as-needed operation.
51 2005-01-31 Andrew Cagney <cagney@gnu.org>
53 * configure: Regenerate to track ../gettext.m4.
55 2005-01-31 Nick Clifton <nickc@redhat.com>
57 * ldver.c (ldversion): Bump reported copyright date to 2005.
59 2005-01-31 Nick Clifton <nickc@redhat.com>
61 * configure.tgt: Remove obsolete targets m68k-lynxos and
64 2005-01-28 Julian Brown <julian@codesourcery.com>
66 * emultempl/armelf.em (fix_v4bx): New variable.
67 (arm_elf_create_output_section_statements): Communicate fix_v4bx flag
69 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_FIX_V4BX.
70 (PARSE_AND_LIST_LONGOPTS): Add option --fix-v4bx.
71 (PARSE_AND_LIST_OPTIONS): Add option --fix-v4bx.
72 (PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX.
73 * NEWS: Mention --fix-v4bx.
74 * ld.texinfo: Document --fix-v4bx.
76 2005-01-25 Mark Mitchell <mark@codesourcery.com>
78 * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Define, so
79 as to include .ARM.exidx$${Base,Limit}.
80 * ld/scripttempl/armbpabi.sc: Move .plt to end of text segment.
81 Define IMAGE$$ER_RO$${Base,Limit} and SHT$$INIT_ARRAY$${Base,Limit}.
82 Put .init_array, .fini_array, etc. into the read-only data
85 2005-01-25 Alan Modra <amodra@bigpond.net.au>
87 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Formatting.
88 (gld${EMULATION_NAME}_after_open): Ignore needed libs if they were
89 only needed by an as-needed lib that didn't get linked.
91 2005-01-23 Alan Modra <amodra@bigpond.net.au>
93 * ld.texinfo (Output Section Keywords <CONSTRUCTORS>): Correct
94 __DTOR_LIST__ description.
96 2005-01-23 Alan Modra <amodra@bigpond.net.au>
98 * ld.texinfo (Location Counter <dot outside sections>): Document
99 effects of orphan section placement, and ". = ." workaround.
100 * Makefile.in: Regenerate.
102 2005-01-22 Richard Sandiford <rsandifo@redhat.com>
104 * emulparams/elf32bmip.sh (OTHER_GOT_SECTIONS): Add ". = .;".
105 * emulparams/elf32bmipn32-defs.sh (OTHER_GOT_SECTIONS): Likewise.
107 2005-01-21 Jakub Jelinek <jakub@redhat.com>
109 * ldgram.y (AS_NEEDED): New token.
110 (input_list): Handle AS_NEEDED ( input_list ).
111 * ldlex.l (AS_NEEDED): Add.
112 * ld.texinfo: Document AS_NEEDED ().
113 * NEWS: Mention AS_NEEDED ().
115 2005-01-21 Ben Elliston <bje@au.ibm.com>
117 * ldlang.c (lang_reasonable_defaults): Remove.
118 (lang_process): Don't call lang_reasonable_defaults.
120 * ldexp.c (exp_assop): Remove #if 0'd code.
121 (exp_print_tree): Likewise.
122 * ldlang.c (lang_memory_region_lookup): Likewise.
123 (open_output): Likewise.
124 (lang_do_assignments_1): Likewise.
125 (lang_place_orphans): Likewise.
126 (lang_enter_output_section_statement): Likewise.
127 (lang_reasonable_defaults): Likewise.
128 * ldlang.h (struct lang_input_statement_struct): Likewise.
129 * mri.c (mri_draw_tree): Likewise.
130 (mri_load): Likewise.
131 * pe-dll.c (generate_reloc): Likewise.
132 (make_import_fixup_entry): Likewise.
134 * emultempl/beos.em (set_pe_subsystem): Likewise.
135 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
136 * emultempl/pe.em: Likewise.
137 * emultempl/xtensaelf.em (xtensa_colocate_literals): Likewise.
139 2005-01-20 Daniel Jacobowitz <dan@codesourcery.com>
141 * Makefile.am (ALL_EMULATIONS): Add earmelfb_linux_eabi.o.
142 (earmelfb_linux_eabi.c): New target.
143 * Makefile.in: Regenerated.
144 * configure.tgt (arm*b-*-linux-gnueabi): New target.
145 * emulparams/armelfb_linux_eabi.sh: New file.
147 2005-01-20 Nick Hudson <skrll@netbsd.org>
150 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
151 Handle bfd_elf32_hppa_nbsd_vec.
153 2005-01-19 Richard Sandiford <rsandifo@redhat.com>
155 * ldmain.h (ld_sysroot): Change type to a constant string.
156 * ldmain.c (ld_sysroot): Likewise.
157 (get_relative_sysroot, get_sysroot): New functions, adding command-line
158 support for changing the sysroot.
159 (main): Call the new functions.
160 * lexsup.c (OPTION_SYSROOT): New.
161 (ld_options): Add --sysroot.
162 (parse_args): Add a dummy handler for it.
163 * ld.texinfo (--sysroot): Document.
164 * NEWS: Mention the new --sysroot option.
166 2005-01-18 Alan Modra <amodra@bigpond.net.au>
168 * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
169 (lang_place_orphans): Don't abort on just_syms_flag, instead call
172 2005-01-16 Danny Smith <dannysmith@users.sourceforge.net>
174 * defilep.y (def_name, def_library): Combine into...
175 (def_image_name): New function. Strip name to basename,
178 2005-01-12 Mark Kettenis <kettenis@gnu.org>
180 * configure.in: Be sure to invoke config.sub using the shell.
181 * configure: Regenerate.
183 2005-01-11 Alan Modra <amodra@bigpond.net.au>
185 * configure.host: Correct sed patterns for last change.
187 2005-01-10 Nick Clifton <nickc@redhat.com>
190 * ldmisc.c (vfinfo): Add an extra argument: is_warning. Use this
191 to determine whether config.make_executable should be set to FALSE in
192 conjunction with config.fatal_warnings.
193 (info_msg, minfo, lfinof): Pass FALSE as the extra argument.
194 (einfo): Pass TRUE as the extra argument.
196 2005-01-10 Greg Schaffer <gschafer@zip.com.au>
198 * configure.host (linux targets): Use "${CC} -dumpspecs" instead
199 of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0.
200 (ia64-*-aix): Delete - this target is obsolete, and would be
201 broken by this patch.
203 2005-01-06 Eric Botcazou <ebotcazou@libertysurf.fr>
205 * configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*.
206 (sparc64-sun-solaris2*): New host.
208 2005-01-06 Paul Brook <paul@codesourcery.com>
210 * Makefie.am: Add earmelf_vxworks.
211 * Makefile.in: Regenerate.
212 * configure.tgt: Make arm-*-vxworks a separate case.
213 * emulparams/armelf_vxworks.sh: New function.
215 2005-01-06 Alan Modra <amodra@bigpond.net.au>
217 * emultempl/ppc64elf.em (no_multi_toc): New var.
218 (gld${EMULATION_NAME}_finish): Pass to ppc64_elf_setup_section_lists.
219 (OPTION_NO_MULTI_TOC): Define.
220 (PARSE_AND_LIST_LONGOPTS): Add --no-multi-toc support.
221 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
223 2005-01-05 Nick Clifton <nickc@redhat.com>
226 * ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
227 Standard's specification for parsable error messages.
229 2005-01-04 Paul Brook <paul@codesourcery.com>
231 * Makefile.am: Correct dependency for earmsymbian.c.
232 * Makefile.in: Regenerate.
234 2004-12-28 Danny Smith <dannysmith@users.sourceforge.net>
236 * emultempl/pe.em (set_pe_subsystem): Change second arg to
237 lang_add_entry to FALSE.
239 2004-12-23 Nick Clifton <nickc@redhat.com>
242 * emulparams/shelf.sh (.stack): Increase stack start address to
245 2004-12-20 Nick Clifton <nickc@redhat.com>
247 * ldmain.c (main): Issue an error message if -static and -shared
250 2004-12-17 Jakub Jelinek <jakub@redhat.com>
252 * ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
253 * ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
254 * ldlang.c (lang_size_sections): Use them to avoid wasting virtual
255 address space at DATA_SEGMENT_ALIGN. Fix computation of expected
256 PT_GNU_RELRO segment end.
258 2004-12-14 P.J. Darcy <darcypj@us.ibm.com>
260 * configure.tgt: Add s390x-ibm-tpf support.
262 2004-12-16 Martin Kögler <mkoegler@auto.tuwien.ac.at>
264 * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
267 2004-12-07 Ben Elliston <bje@gnu.org>
269 * ldemul.h: Forward declare struct option.
271 2004-12-01 Danny Smith <dannysmith@users.sourceforge.net>
273 * scripttempl/pe.sc (.data): Add .jcr subsection.
275 2004-11-30 Paul Brook <paul@codesourcery.com>
277 * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
279 2004-11-30 Tero Niemela <tero_niemela@yahoo.com>
281 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
282 * Makefile.in: Regenerate.
284 2004-11-26 Melissa Mears <asterisk@graces.dricas.com>
286 * emultempl/pe.em: Add --subsystem:xbox as well as
288 * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
289 and numeric subsystems.
291 2004-11-24 Alan Modra <amodra@bigpond.net.au>
293 * ldexp.c (fold_name): Correct PR 338 fix.
295 2004-11-19 Mark Mitchell <mark@codesourcery.com>
297 * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
298 (earmelf_linux_eabi.c): New target.
299 * configure.tgt (arm*-*-linux-gnueabi): Handle it.
300 * emulparams/armelf_linux_eabi.sh: New file.
301 * Makefile.in: Regenerated.
303 2004-11-19 Nick Clifton <nickc@redhat.com>
306 * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
307 LENGTH fields in the MEMORY command, to explicitly state that
308 symbols cannot be used in their expressions.
310 2004-11-19 Jon Beniston <jon@beniston.com>
312 * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
313 * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
314 * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
315 which return the length and origin of a memory.
316 * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
317 * NEWS: Mention support for ORIGIN and LENGTH operators.
319 2004-11-17 Daniel Jacobowitz <dan@codesourcery.com>
321 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
322 a dynamic object for stubs.
324 2004-11-04 Paul Brook <paul@codesourcery.com>
326 * ld.texinfo: Document --default-imported-symver.
327 * ldmain.c (main): Set link_info.default_imported_symver.
328 * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
329 (ld_options): Add --default-imported-symver.
330 (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
332 2004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
333 Vineet Sharma <vineets@noida.hcltech.com>
335 * Makefile.am: Add entries for new maxq-coff target.
336 * Makefile.in: Regenerate.
337 * configure.tgt: Add support for maxq.
338 * emulparams/maxqcoff.sh: New File.
339 * scripttempl/maxqcoff.sc: New linker script for target maxq.
340 * NEWS: Mention the new target.
342 2004-11-08 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
344 * testsuite/ld-scripts/weak.exp: Enable test on PE,
346 * testsuite/ld-undefined/weak-undef.exp: Enable test on PE,
348 * testsuite/lib/ld-lib.exp (is_pecoff_format): New.
350 2004-11-04 Daniel Jacobowitz <dan@debian.org>
352 * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
353 (earmelf_oabi.c): Remove rule.
354 * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
355 * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
356 * Makefile.in: Regenerated.
358 2004-11-04 Hans-Peter Nilsson <hp@axis.com>
360 * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
361 * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
363 (INIT_END): Remove emitted "jump [sp+]".
366 2004-11-04 Alan Modra <amodra@bigpond.net.au>
368 * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
369 (no_opd_opt, no_toc_opt): New static vars.
370 (ppc_before_allocation): Don't edit opt if no_opd_opt. Call
372 (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
373 (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
374 (PARSE_AND_LIST_OPTIONS): Describe new options.
375 (PARSE_AND_LIST_ARGS_CASES): Handle them.
377 2004-10-27 Nick Clifton <nickc@redhat.com>
379 * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
380 parameter to invocation of lang_section_start.
381 * emultempl/aix.em (_handle_option): Likewise.
383 * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
384 eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
385 * Makefile.in: Regenerate.
387 2004-10-26 Mark Mitchell <mark@codesourcery.com>
389 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
390 __exidx_{start,end} when not relocating.
392 2004-10-25 Mark Mitchell <mark@codesourcery.com>
394 * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
395 * ldexp.h (segment_type): New type.
396 (segments): New variable.
397 * ldexp.c (segments): New variable.
398 (exp_print_token): Handle SEGMENT_START.
399 (fold_binary): Likewise.
400 * ldgram.y (SEGMENT_START): Declare it as a token.
401 (exp): Handle SEGMENT_START.
402 * ldlang.h (lang_address_statement_type): Add segment field.
403 (lang_section_start): Change prototype.
404 * ldlang.c (map_input_to_output_sections): Do not process section
405 assignments if a corresponding SEGMENT_START has already been
407 (lang_section_start): Add segment parameter.
408 * ldlex.l (SEGMENT_START): Add it.
409 * lexsup.c (seg_segment_start): New function.
410 (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
411 * ld.texinfo (SEGMENT_START): Document it.
412 * emulparams/armsymbian.sh (EMBEDDED): Set it.
413 * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
414 base addresses. Do not map relocations.
415 * NEWS: Mention SEGMENT_START.
417 2004-10-26 Paul Brook <paul@codesourcery.com>
419 * ld.texinfo: Document --default-symver.
420 * ldmain.c (main): Set link_info.create_default_symver.
421 * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
422 (ld_options): Add default-symver.
423 (parse_args): Handle OPTION_DEFAULT_SYMVER.
425 2004-10-24 Danny Smith <dannysmith@users.sourceforge.net>
427 * pe-dll.c (process_def_file): Don't export all symbols by default if
428 building a position-independent executable.
430 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
433 * ldmain.c (reloc_overflow): Accept a pointer to struct
434 bfd_link_hash_entry. Report symbol location for relocation
437 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
439 * genscripts.sh (libpath.exp): Really generate for first
442 2004-10-19 Danny Smith <dannysmith@users.sourceforge.net>
444 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
445 comparison and replacement of filenames.
447 2004-10-19 H.J. Lu <hongjiu.lu@intel.com>
450 * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
451 option on linker script as the one for linker script.
453 2004-10-16 Daniel Jacobowitz <dan@debian.org>
455 * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
456 (check_excluded_libs): New.
457 (load_symbols): Call check_excluded_libs.
458 * ldlang.h (add_excluded_libs): New prototype.
459 * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
460 (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
461 (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
462 * ld.texinfo (Command Line Variables): Document --exclude-libs.
463 (Options Specific to i386 PE Targets): Remove --exclude-libs.
465 2004-10-15 Alan Modra <amodra@bigpond.net.au>
467 * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
468 failing link script assert.
470 * ldctor.c (ldctor_add_set_entry): Fix comment typo.
472 2004-10-14 H.J. Lu <hongjiu.lu@intel.com>
475 * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
476 (SMALL_DATA_DTOR): Set.
477 * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
478 (SMALL_DATA_DTOR): Unset.
479 * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
480 after .data. If SMALL_DATA_DTOR is set, move .dtors after
483 2004-10-14 Alan Modra <amodra@bigpond.net.au>
486 * ldlang.h (lang_output_section_statement_type): Make "next" a
487 struct lang_output_section_statement_struct *.
488 (struct orphan_save): Move from elf32.em. Add "name" and "flags".
489 (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
490 * ldlang.c (lang_output_section_find_1): Adjust for changed
491 output_section_statement "next".
492 (strip_excluded_output_sections): Likewise.
493 (lang_record_phdrs): Likewise.
494 (lang_output_section_find_by_flags): New function.
495 (output_prev_sec_find): Move from pe.em. Adjust iterator.
496 (lang_insert_orphan): New function. Tail end of elf32.em's
497 place_orphan merged with that from pe.em. Allow bfd_section to
498 be placed first. New heuristic for placing new output section
499 statement in existing script, and accompanying split of __start
500 symbol alignment into a separate assignment to dot.
501 (lang_add_section): Consistently use output->bfd_section rather than
502 an alias, section->output_section.
503 (map_input_to_output_sections): Rename overly long arg. Move
504 initialization of data_statement output section to here..
505 (lang_check_section_addresses): ..from here.
506 (print_assignment): Correct printing of etree_assert.
507 (print_all_symbols): Don't bomb if userdata is NULL.
508 (IGNORE_SECTION): Rearrange.
509 * emultempl/elf32.em (output_rel_find): Adjust interator.
510 (output_prev_sec_find): Delete.
511 (struct orphan_save): Delete.
512 (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
513 flags without creating a duplicate output section statement.
514 Revise code holding history of various orphan section placements.
515 Allow orphan sections to place before script specified output
516 sections. Call lang_output_section_find_by_flags when placement
517 by name fails. Use lang_insert_orphan.
518 * emultempl/mmo.em (output_prev_sec_find): Delete.
519 (struct orphan_save): Delete.
520 (mmo_place_orphan): Revise code holding history of orphan placement.
521 Allow orphans to place before existing output sections. Use
523 * emultempl/pe.em (output_prev_sec_find): Delete.
524 (struct orphan_save): Delete.
525 (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
528 2004-10-13 Mark Mitchell <mark@codesourcery.com>
530 * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
533 2004-10-13 Alan Modra <amodra@bigpond.net.au>
536 * ldcref.c (check_section_sym_xref): Delete.
537 (check_local_sym_xref): New function.
538 (check_nocrossrefs): Adjust call.
539 * emultempl/pe.em (struct orphan_save): Add os_tail.
540 (place_orphan): Backport assorted fixes from elf32.em.
542 2004-10-12 Bob Wilson <bob.wilson@acm.org>
544 * emultempl/xtensaelf.em: Use ISO C90 formatting.
546 2004-10-11 Jakub Jelinek <jakub@redhat.com>
548 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
549 getline for portability.
551 * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
552 (gld${EMULATION_NAME}_parse_ld_so_conf,
553 gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
554 (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
556 2004-10-11 Alan Modra <amodra@bigpond.net.au>
559 * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
560 rejected when linking statically.
562 2004-10-08 Daniel Jacobowitz <dan@debian.org>
564 * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
566 2004-10-07 Bob Wilson <bob.wilson@acm.org>
568 * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
569 assembler-generated longcall sequences. Describe new --size-opt
571 * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
572 * emultempl/xtensaelf.em (remove_section,
573 replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
574 elf_xtensa_after_open): New.
575 (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
576 OPTION_NO_LITERAL_MOVEMENT): Define.
577 (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
578 (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
579 (PARSE_AND_LIST_OPTIONS): Add --size-opt.
580 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
581 OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
582 (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
583 * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
584 * Makefile.am (eelf32xtensa.c): Update dependencies.
585 * Makefile.in: Regenerate.
587 2004-10-07 Jeff Baker <jbaker@qnx.com>
589 * lexsup.c: Handle --warn-shared-textrel option.
590 (ld_options): Restore alpha sorting of options.
591 * ldmain.c (main): Initialise warn_shared_info field to FALSE.
592 * ld.texinfo: Add documentation for --warn-shared-textrel.
593 * NEWS: Added mention of --warn-shared-textrel option.
595 2004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
597 * emultempl/crxelf.em (disable_relaxation): Add.
598 (crxelf_before_allocation): Enable --relax option by default.
599 (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
600 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
601 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
603 2004-10-04 H.J. Lu <hongjiu.lu@intel.com>
605 * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
606 --sort-section name|alignment.
608 * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
609 --sort-section name|alignment.
611 * ld.h (sort_type): New enum.
612 (wildcard_spec): Change the type of `sorted' to sort_type.
614 * ldgram.y (SORT): Removed.
615 (SORT_BY_NAME): Added.
616 (SORT_BY_ALIGNMENT): Added.
617 (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
619 (input_section_spec_no_keep): Updated `sorted'.
620 (statement): Replace SORT with SORT_BY_NAME.
622 * ldlang.c (compare_section): New function to compare 2
623 sections with different sorting schemes.
624 (wild_sort): Updated. Use compare_section.
625 (update_wild_statements): New function.
626 (lang_process): Call update_wild_statements before
627 map_input_to_output_sections.
629 * ldlex.l (SORT_BY_NAME): New.
630 (SORT_BY_ALIGNMENT): New.
631 (SORT): Return SORT_BY_NAME.
633 * ldmain.c (sort_section): New. Defined.
634 (main): Initialize it to none.
636 * lexsup.c (option_values): Add OPTION_SORT_SECTION.
637 (ld_options): Add an entry for OPTION_SORT_SECTION.
638 (parse_args): Handle OPTION_SORT_SECTION.
640 * mri.c (mri_draw_tree): Updated `sorted'.
642 2004-10-04 Jakub Jelinek <jakub@redhat.com>
644 * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
645 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
647 (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
648 and . as second argument.
649 (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
650 * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
651 (fold_binary): Add it here. Insert padding to make relro_end
652 COMMONPAGESIZE bytes aligned. For DATA_SEGMENT_ALIGN in
653 exp_dataseg_relro_adjust phase just use previously computed
655 * ldlang.c (lang_size_sections): Set exp_data_seg.base for
656 relro_adjust here. Call lang_size_sections_1 once more if there
657 was too big padding at DATA_SEGMENT_RELRO_END.
658 * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
660 2004-10-01 Paul Brook <paul@codesourcery.com>
662 * emulparams/armelf.sh: Add unwinding table sections.
664 2004-09-30 Filip Navara <navaraf@reactos.com>
666 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
667 correct base address for position independant executables.
668 * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
671 2004-09-30 Paul Brook <paul@codesourcery.com>
673 * ld.texinfo: Document --target2=abs.
674 * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
676 2004-09-29 Nick Clifton <nickc@redhat.com>
678 * scripttempl/xstormy16.sc: Only perform the assignments to the
679 ROM region when not performing a relocatable link. The ROM region
680 does not start at address 0, but the sections will.
681 * Makefile.am: Fix linker script dependency for the generation of
683 * Makefile.in: Regenerate.
685 2004-09-18 Filip Navara <navaraf@reactos.com>
687 * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
688 emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
689 emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
691 * scripttempl/pe.sc: Make the virtual address and file offset synced if
692 the alignment is lower than the target page size.
694 2004-09-27 Filip Navara <navaraf@reactos.com>
696 * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
697 def_file_parse to handle pe_def_file if NULL and prevent crash with
700 2004-09-27 Alan Modra <amodra@bigpond.net.au>
702 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
703 --emit-stub-syms automatically when --emit-relocs.
705 2004-09-24 Paul Brook <paul@codeosurcery.com>
707 * scripttempl/elf.sc: Keep .preinit_array, .init_array and
708 .fini_array sections.
710 2004-09-19 Andreas Schwab <schwab@suse.de>
712 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
713 base so that relro end is suitably aligned.
715 2004-09-17 Paul Brook <paul@codesourcery.com>
717 * ld.texinfo: Rename arm-specific section. Document --target*
718 * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
719 * emulparams/armelf_linux.sh: Ditto.
720 * emulparams/armelf_nbsd.sh: Ditto.
721 * emultempl/armelf.em: Set default for TARGET2_TYPE.
722 (target2_type): New variable.
723 (arm_elf_before_allocation): Don't pass target1_type.
724 (arm_elf_create_output_section_statements): New function.
725 (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
726 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
727 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
728 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
729 * emultempl/armelf_oabi.em (_before_allocation): Remove extra
730 argument to bfd_elf32_arm_process_before_allocation.
732 2004-09-17 Alan Modra <amodra@bigpond.net.au>
734 * ldexp.c (fold_name): Update u.undef.next refs.
735 * emultempl/pe.em: Likewise.
736 * emultempl/sunos.em: Likewise.
738 2004-09-17 Alan Modra <amodra@bigpond.net.au>
740 * Makefile.am: Run "make dep-am".
741 * Makefile.in: Regenerate.
742 * config.in: Regenerate.
743 * configure: Regenerate.
744 * aclocal.m4: Regenerate.
745 * po/ld.pot: Regenerate.
747 2004-09-16 Tomer Levi <Tomer.Levi@nsc.com>
749 * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
753 2004-09-16 Alan Modra <amodra@bigpond.net.au>
755 * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
756 to bfd_elf32_arm_process_before_allocation call.
758 2004-09-13 Paul Brook <paul@codesourcery.com>
760 * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
761 * emultempl/armelf.em: Use TARGET1_IS_REL. Add --target1-{rel,abs}.
763 2004-09-07 H.J. Lu <hongjiu.lu@intel.com>
765 * configure: Regenerated with autconfig 2.13.
767 2004-09-07 Andreas Schwab <schwab@suse.de>
769 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
770 alignment before adjusting DATA_SEGMENT_RELRO_END.
772 2004-09-06 Mark Mitchell <mark@codesourcery.com>
774 * emulparams/armsymbian.sh: Use armbpabi script.
775 * scripttempl/armbpabi.sc: New script.
777 2004-09-02 Mark Mitchell <mark@codesourcery.com>
779 * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
780 (earmsymbian.c): New target.
781 * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
782 * Makefile.in: Regenerated.
783 * aclocal.m4: Likewise.
784 * configure: Likewise.
785 * emulparams/armsymbian.sh: New file.
787 2004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
789 * scripttempl/elf32crx.sc: Edit file with comments.
790 (.init): Add new section.
792 (.ctor): Control the linkage order.
795 2004-08-27 Nick Clifton <nickc@redhat.com>
797 * emultempl/pe.em (after_open): Do not assume that either bfd is
800 2004-08-26 Alan Modra <amodra@bigpond.net.au>
802 * ldlang.c (lang_init): Don't compare with TRUE.
804 2004-08-25 Dmitry Diky <diwil@spec.ru>
806 * emulparams/msp430all.sh: Fix RAM sizes for all targets.
807 * scripttempl/elf32msp430.sc: Add .profiler section definition.
809 2004-08-24 H.J. Lu <hongjiu.lu@intel.com>
811 * ldlang.c (wildcardp): Defined as a macro with strpbrk.
813 2004-08-19 Mark Mitchell <mark@codesourcery.com>
815 * configure.tgt (arm*-*-symbianelf*): New target.
816 (arm*-*-eabi*): Likewise.
818 2004-08-19 Jakub Jelinek <jakub@redhat.com>
820 * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
821 (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
822 (OPTION_NON_OVERLAPPING_OPD): Define.
823 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
824 --non-overlapping-opd option.
826 2004-08-18 Alan Modra <amodra@bigpond.net.au>
829 * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
830 was already on the undefs list.
832 2004-08-17 Alan Modra <amodra@bigpond.net.au>
834 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
835 prefix the symbol field too.
837 2004-08-13 Alan Modra <amodra@bigpond.net.au>
839 * ldmain.c (link_callbacks): Remove "error_handler".
840 * ldmisc.c: Include elf-bfd.h.
841 (vfinfo): Sort comment. Handle %A. Use %A instead of
842 bfd_get_section_indent.
843 (error_handler): Delete.
844 * ldmisc.h (error_handler): Delete declaration.
846 2004-08-10 Alan Modra <amodra@bigpond.net.au>
848 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
849 ppc64_elf_restore_symbols.
851 2004-08-09 Alan Modra <amodra@bigpond.net.au>
853 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
854 .toc is too large on relocatable linking.
856 2004-08-09 Alan Modra <amodra@bigpond.net.au>
858 * emultempl/ppc64elf.em (ppc_after_open): Delete.
859 (LDEMUL_AFTER_OPEN): Don't define.
861 2004-08-02 Stephane Carrez <stcarrez@nerim.fr>
863 * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
865 2004-08-01 Stephane Carrez <stcarrez@nerim.fr>
867 * scripttempl/elfm68hc12.sc: Align text, rodata and data section
870 2004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
872 * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
874 2004-07-26 Dmitry Diky <diwil@spec.ru>
876 * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
877 msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
879 * configure.tgt: Likewise.
880 * emulparams/msp430all.sh: Likewise.
881 * Makefile.in: Regenerate.
883 2004-07-23 Nick Clifton <nickc@redhat.com>
885 * emultempl/elf32.em (_place_orphan): Use an already existing
886 section name if that section does not have any flags set.
888 2004-07-21 H.J. Lu <hongjiu.lu@intel.com>
890 * ldlang.c (already_linked_hash_entry): Removed.
891 (already_linked): Likewise.
892 (already_linked_table): Likewise.
893 (section_already_linked): Call bfd_section_already_linked.
894 (lang_process): Replace already_linked_table_init with
895 bfd_section_already_linked_table_init and check return. Replace
896 already_linked_table_free with bfd_section_already_linked_table_free.
898 2004-07-21 Nick Clifton <nickc@redhat.com>
900 * ldlang.c (init_os): Make sure that the newly allocated userdata
901 structure is zeroed out.
903 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
905 * NEWS: Mention the new --add-needed/--no-add-needed and
906 --as-needed/--no-as-needed options.
908 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
910 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
911 check the add_needed field.
912 (dt_needed): New struct.
913 (gld${EMULATION_NAME}_try_needed): Change the first argument
914 to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
915 bit in the file where the DT_NEEDED entry comes from.
916 (gld${EMULATION_NAME}_search_needed): Change the second
917 argument to a pointer to struct dt_needed.
918 (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
919 (gld${EMULATION_NAME}_after_open): Likewise.
921 * ld.texinfo: Add --add-needed document.
922 * ldlang.c (new_afile): Set p->add_needed.
923 * ldlang.h (lang_input_statement_type): Add add_needed field.
924 * ldmain.h (add_needed): Declare.
925 * ldmain.c (add_needed): New global var.
926 * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
927 OPTION_NO_ADD_NEEDED.
928 (ld_options): Likewise.
929 (parse_args): Handle them.
931 2004-07-13 Christof Petig <christof@petig-baender.de>
933 * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
934 for endian-ness of extracted addend.
936 2004-07-13 Danny Smith <dannysmith@usesr.sourceforge.net>
938 * pe-dll.c (auto_export): Filter on just the import prefix,
939 "_imp_", not "_imp__".
941 2004-07-09 Nick Clifton <nickc@redhat.com>
943 * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
945 2004-07-06 Tomer Levi <Tomer.Levi@nsc.com>
947 * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
948 (eelf32crx.c): New target.
949 * Makefile.in: Regenerate.
950 * configure.tgt: Handle crx-*-elf*.
951 * emulparams/elf32crx.sh: New file.
952 * emultempl/crxelf.em: New file.
953 * scripttempl/elf32crx.sc: New file.
954 * NEWS: Mention new target.
956 2004-07-06 Nick Clifton <nickc@redhat.com>
958 * Makefile.am: Add eshlsymbian.c.
959 * Makefile.in: Regenerate.
960 * configure.tgt: Add sh*-symbian-elf target.
961 * emulparams/shlsymbian.sh: New file. Configure the
962 sh-symbian-elf linker scripts.
963 * scripttemp/elf32sh-symbian.sc: New file. Linker script
964 template for the sh-symbian-elf target.
966 2004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
968 * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
969 * emulparams/hppalinux.sh: Likewise.
970 * scripttempl/elf.sc: Place .plt just before .got when .plt is in
971 data segment and PLT_BEFORE_GOT is defined.
973 2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
975 * ld.texinfo (WIN32): Document PE weak symbols.
977 2004-07-02 Kaz Kojima <kkojima@rr.iij4u.or.jp>
979 * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
981 2004-07-01 H.J. Lu <hongjiu.lu@intel.com>
983 * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
986 2004-06-29 Alan Modra <amodra@bigpond.net.au>
988 * ldlang.c (lang_reset_memory_regions): Save last relax pass section
991 2004-06-24 Alan Modra <amodra@bigpond.net.au>
993 * ldlang.c (print_output_section_statement): Don't print size before
995 (IGNORE_SECTION): Remove bfd arg. Update all callers.
997 * ldexp.c (fold_name): .. See below.
998 * ldlang.c (section_already_linked, print_output_section_statement,
999 print_input_section, insert_pad, size_input_section,
1000 lang_check_section_addresses, lang_size_sections_1,
1001 lang_size_sections, lang_do_assignments_1, lang_set_startof,
1002 lang_one_common, lang_reset_memory_regions, lang_process,
1003 lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
1004 * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
1005 * pe-dll.c (process_def_file, generate_reloc): ..
1006 * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
1007 gld${EMULATION_NAME}_before_allocation): ..
1008 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
1009 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
1010 sh64_elf_${EMULATION_NAME}_after_allocation): ..
1011 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
1012 * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
1013 ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
1014 "size" instead of "_raw_size" and "_cooked_size". Expand
1015 bfd_section_size macro invocations.
1017 2004-06-22 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1019 * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
1020 ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
1021 ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
1023 (.tls): Define ___tls_start__ and ___tls_end__.
1025 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
1027 * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
1029 2004-06-18 Adam Nemet <anemet@lnxw.com>
1031 * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
1032 * configure: Regenerate.
1034 2004-06-15 Jakub Jelinek <jakub@redhat.com>
1036 * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
1037 .gcc_except_table output sections lost accidentally with
1040 2004-06-15 Alan Modra <amodra@bigpond.net.au>
1042 * ldwrite.c (build_link_order): Use bfd_get_section_size
1043 instead of bfd_get_section_size_before_reloc or _raw_size.
1044 * pe-dll.c (process_def_file): Likewise.
1046 2004-06-14 Alan Modra <amodra@bigpond.net.au>
1048 From Richard Wirth <r.wirth@wirthware.de>
1049 * ldlang.c (lang_finish): Don't free lang_definedness_table.
1051 2004-05-29 Alan Modra <amodra@bigpond.net.au>
1053 * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
1054 (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
1056 2004-05-28 Andrew Stubbs <andrew.stubbs@superh.com>
1058 * testsuite/ld-sh/arch/arch.exp: New test script.
1059 * testsuite/ld-sh/arch/arch_expected.txt: New file.
1060 * testsuite/ld-sh/arch/sh.s: New file.
1061 * testsuite/ld-sh/arch/sh2.s: New file.
1062 * testsuite/ld-sh/arch/sh-dsp.s: New file.
1063 * testsuite/ld-sh/arch/sh2e.s: New file.
1064 * testsuite/ld-sh/arch/sh3-nommu.s: New file.
1065 * testsuite/ld-sh/arch/sh3.s: New file.
1066 * testsuite/ld-sh/arch/sh3-dsp.s: New file.
1067 * testsuite/ld-sh/arch/sh3e.s: New file.
1068 * testsuite/ld-sh/arch/sh4-nommu-nofpu.s: New file.
1069 * testsuite/ld-sh/arch/sh4-nofpu.s: New file.
1070 * testsuite/ld-sh/arch/sh4.s: New file.
1071 * testsuite/ld-sh/arch/sh4a-nofpu.s: New file.
1072 * testsuite/ld-sh/arch/sh4al-dsp.s: New file.
1073 * testsuite/ld-sh/arch/sh4a.s: New file.
1075 2004-05-28 Alan Modra <amodra@bigpond.net.au>
1077 * ldlang.c: Formatting. Wrap long lines, expand bfd_get_section_flags
1079 * lexsup.c: Formatting. Wrap long lines.
1080 * ldwrite.c: Update copyright date.
1082 * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
1083 (output_section_callback): Nor SEC_KEEP here.
1084 (gc_section_callback): Twiddle SEC_EXCLUDE here.
1085 (lang_gc_wild): Delete. Fold into..
1086 (lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage
1088 (lang_process): Always call lang_gc_sections.
1089 (lang_place_orphans): Handle SEC_EXCLUDE sections.
1090 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
1093 2004-05-26 H.J. Lu <hongjiu.lu@intel.com>
1095 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
1096 SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
1097 * ldlang.c (lang_add_section): Likewise.
1099 2004-05-26 Alan Modra <amodra@bigpond.net.au>
1101 * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
1102 sections when doing a final link. Clear SEC_EXCLUDE when doing
1103 a relocable link, except for SEC_DEBUGGING sections.
1104 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
1105 same condition here to drop SEC_EXCLUDE orphan sections.
1107 2004-05-25 Alan Modra <amodra@bigpond.net.au>
1109 * ldlang.c (lang_process): Call bfd_merge_sections later, and
1110 only when not a relocatable link.
1111 (print_input_section): Handle SEC_EXCLUDE sections.
1112 (size_input_section): Don't update dot on SEC_EXCLUDE sections.
1113 (lang_do_assignments_1): Likewise.
1114 * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
1115 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
1116 * emultempl/hppaelf.em (build_section_lists): Likewise.
1117 * emultempl/ppc64elf.em (build_toc_list): Likewise.
1118 (build_section_lists): Likewise.
1120 2004-05-23 Andreas Schwab <schwab@suse.de>
1122 * ld.texinfo (Options): Fix typo in last change.
1124 2004-05-21 Andy Chittenden <achittenden@bluearc.com>
1126 * ld.h (ld_config_type): Add new field: hash_table_size.
1127 * ldmain.c: Initialise the new field to zero. If it is non-zero
1128 after parsing the linker's command line call
1129 bfd_hash_set_default_size.
1130 * lexsup.c (option_values): Add OPTION_HASH_SIZE.
1131 (ld_options): Add hash-size.
1132 (parse_args): Parse --hash-size option. Allow
1133 --reduce-memory-overheads to set the default hash table size as
1135 * ld.texinfo: Document the new switch. Also mention that
1136 --reduce-memory-overheads can affect the hash table size.
1137 * NEWS: Mention the new feature.
1139 2004-05-19 J"orn Rennecke <joern.rennecke@superh.com>
1141 * NEWS: Mention new linker map file generation and the
1142 --reduce-memory-overheads option.
1143 * ld.texinfo: Document --reduce-memory-overheads option.
1144 * ld.h (map_symbol_def): New struct.
1145 (struct user_section_struct, section_userdata_type): Rename to:
1146 (struct lean_user_section_struct, lean_section_userdata_type).
1147 (struct fat_user_section_struct, fat_section_userdata_type): New.
1148 (SECTION_USERDATA_SIZE): Define.
1149 (args_type): New member reduce_memory_overheads.
1150 * ldlang.c (map_obstack): New static variable.
1151 (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
1152 (lang_map): Unless command_line.reduce_memory_overheads is set,
1153 initialize lists of defined symbols for each section.
1154 (print_input_section): Unless command_line.reduce_memory_overheads
1155 is set, use print_all_symbols.
1156 (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
1157 * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
1158 * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
1159 (ld_options): Add entry for --reduce-memory-overheads.
1160 (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
1162 2004-05-19 Jakub Jelinek <jakub@redhat.com>
1164 * ldgram.y (sect_constraint): New.
1165 (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1166 (section): Add sect_constraint. Pass additional argument
1167 to lang_enter_output_section_statement.
1168 * mri.c (mri_draw_tree): Pass additional argument to
1169 lang_enter_output_section_statement.
1170 * emultempl/pe.em (place_orphan): Likewise.
1171 (output_prev_sec_find): Disregard output section statements with
1173 * emultempl/mmo.em (output_prev_sec_find): Likewise.
1174 (mmo_place_orphan): Pass additional argument to
1175 lang_enter_output_section_statement.
1176 * emultempl/elf32.em (output_prev_sec_find): Disregard output section
1177 statements with constraint == -1.
1178 (place_orphan): Pass additional argument to
1179 lang_enter_output_section_statement.
1180 * ldlang.c (lang_enter_overlay_section): Likewise.
1181 (lang_output_section_find_1): New.
1182 (lang_output_section_find): Use it.
1183 (lang_output_section_statement_lookup_1): New.
1184 (lang_output_section_statement_lookup): Use it.
1185 (check_section_callback, check_input_sections): New.
1186 (map_input_to_output_sections): Check if all input sections
1187 are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
1188 (strip_excluded_output_sections): Disregard output section statements
1189 with constraint == -1.
1190 (lang_record_phdrs): Likewise.
1191 (lang_enter_output_section_statement): Add constraint argument.
1192 Use lang_output_section_statement_lookup_1.
1193 * ldlang.h (lang_output_section_statement_type): Add constraint
1194 and all_input_readonly fields.
1195 (lang_enter_output_section_statement): Adjust prototype.
1196 * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1197 * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
1198 segment if all input sections are readonly.
1200 2004-05-19 Adam Nemet <anemet@lnxw.com>
1202 * scripttempl/i386lynx.sc: Remove file.
1204 2004-05-17 Bob Wilson <bob.wilson@acm.org>
1206 * ld.texinfo (Output Section Address): Correct subsection name.
1208 2004-05-17 Adam Nemet <anemet@lnxw.com>
1210 * configure.tgt (powerpc-*-lynxos* case): New case.
1211 * configure.host (i[3-7]86-*-lynxos* case): Remove case.
1212 * emulparams/ppclynx.sh: New file.
1213 * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
1214 * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
1215 (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
1216 (eppclynx.c): New rule.
1217 * Makefile.in: Regenerate.
1219 2004-05-13 Joel Sherrill <joel@oarcorp.com>
1221 * configure.tgt (or32-*-rtems*): Switch to elf and
1222 support versioned targets.
1224 2004-05-13 Nick Clifton <nickc@redhat.com>
1226 * po/fr.po: Updated French translation.
1228 2004-05-11 Jakub Jelinek <jakub@redhat.com>
1230 * genscripts.sh: Generate -z combreloc -z now -z relro scripts
1231 for binaries, -shared and -pie.
1232 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
1233 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
1234 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
1235 (OTHER_RELRO_SECTIONS): ... this.
1236 * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
1237 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
1238 -z relro and -z norelro.
1239 (gld${EMULATION_NAME}_list_options): Add it to usage.
1240 (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
1241 -z relro scripts when appropriate.
1242 * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
1243 Create separate .got.plt section if SEPARATE_GOTPLT.
1244 Move sections which are only written during relocation handling
1245 to the beginning of RW segment. If NO_SMALL_DATA, move .got
1246 before .data. Add DATA_SEGMENT_RELRO_END directive.
1247 Include OTHER_RELRO_SECTIONS.
1248 * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
1249 * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
1250 (fold_unary): Likewise.
1251 (fold_binary): Handle -z relro.
1252 * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
1253 exp_dataseg_relro_adjust phases. Add relro_end field.
1254 * ldmain.c (main): Initialize link_info.relro to FALSE.
1255 * ldlang.c (lang_size_sections): Handle -z relro.
1257 2004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
1259 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
1261 2004-05-07 J"orn Rennecke <joern.rennecke@superh.com>
1263 * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
1264 before printing it with %W.
1266 2004-05-07 Brian Ford <ford@vss.fsi.com>
1267 DJ Delorie <dj@redhat.com>
1269 * emultempl/pe.em (real_flags): New static.
1270 (OPTION_LARGE_ADDRESS_AWARE): New define.
1271 (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
1272 (gld_${EMULATION_NAME}_list_options): Likewise.
1273 (gld${EMULATION_NAME}_handle_option): Likewise.
1274 (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
1275 * ld.texinfo: Document it.
1278 2004-05-07 Brian Ford <ford@vss.fsi.com>
1280 * NEWS: Mention DWARF 2 support for i386pe.
1282 2004-05-05 Alexandre Oliva <aoliva@redhat.com>
1284 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
1287 2004-04-30 Alan Modra <amodra@bigpond.net.au>
1289 * ldlang.c (unique_section_p): Pass section parm, return true on
1291 (output_section_callback): Adjust.
1292 * ldlang.h (unique_section_p): Update prototype.
1293 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
1295 2004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
1297 * ld.texinfo (--gc-sections): Remove restriction for
1300 2004-04-29 Brian Ford <ford@vss.fsi.com>
1302 * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
1303 for DWARF 2/3. Update stab section's syntax.
1305 2004-04-29 Alan Modra <amodra@bigpond.net.au>
1307 * pe-dll.c: Revert changes accidentally committed 2004-03-08.
1308 (fill_edata): Correct pointer arithmetic.
1310 2004-04-21 Chris Demetriou <cgd@broadcom.com>
1312 * ld.texinfo: Remove MIPS --embedded-relocs documentation.
1313 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
1314 * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
1315 (EXTRA_EM_FILE): Use mipsecoff.em
1316 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
1317 (EXTRA_EM_FILE): Use mipsecoff.em
1318 * emultempl/mipsecoff.em: Restructure to be included as an
1319 extra emulation file.
1320 (check_sections, gld${EMULATION_NAME}_after_open)
1321 (gld${EMULATION_NAME}_after_allocation)
1322 (gld${EMULATION_NAME}_get_script)
1323 (ld_${EMULATION_NAME}_emulation): Remove
1324 (gld${EMULATION_NAME}_before_parse): Rename to...
1325 (mipsecoff_before_parse): This.
1326 (LDEMUL_BEFORE_PARSE): Define.
1327 * emultempl/mipself.em: Remove file.
1328 * scripttempl/mips.sc (.rel.sdata): Do not include in output.
1329 (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
1331 * Makefile.am: Remove dependencies on emultempl/mipself.em.
1332 * Makefile.in: Regenerate.
1334 2004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
1336 * ld.texinfo (synthesizing on H8/300): Information about linker
1337 relaxation support for bit manipulation instructions and system
1338 control instructions is added.
1340 2004-04-21 Hans-Peter Nilsson <hp@axis.com>
1342 * NEWS: Mention change in DEFINED semantics.
1344 2004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
1346 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
1347 (.data): Add KEEP for .gnu.linkonce.d.*personality*.
1348 (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
1350 2004-04-21 Ben Elliston <bje@au.ibm.com>
1352 * ld.texinfo (Simple Example): Add missing punctuation.
1354 2004-04-20 Chris Demetriou <cgd@broadcom.com>
1356 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
1358 2004-04-19 Jakub Jelinek <jakub@redhat.com>
1360 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
1363 2004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
1365 * scriptempl/pe.sc: Put numbered .ctors.* after .ctors
1366 with default priority. Likewise for dtors.
1368 2004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1370 * configure.host: Remove mips*-dec-bsd* target.
1371 * configure.tgt: Likewise.
1373 2004-04-08 Richard Sandiford <rsandifo@redhat.com>
1375 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
1376 * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
1377 * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
1378 * emultempl/irix.em: New file.
1379 * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
1381 * Makefile.in: Regenerate.
1383 2004-04-01 Paul Brook <paul@codesourcery.com>
1385 * emultempl/armelf.em (byteswap_code): Add.
1386 (arm_elf_before_allocation): Pass extra parameter.
1387 (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
1388 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
1389 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
1390 * emultempl/armelf_oabi.em: Pass extra parameter.
1391 * ld.texinfo: Document --be8.
1393 2004-03-30 Stan Shebs <shebs@apple.com>
1395 Remove long-obsolete MPW support.
1396 * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
1397 * Makefile.am (mpw): Remove file-presynthesizing actions.
1398 * Makefile.in: Likewise.
1399 * ldfile.c (slash): Remove MPW case.
1400 * ldlex.l [MPW]: Remove unused definition.
1402 2004-03-30 Galit Heller <Galit.Heller@nsc.com>
1404 * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
1405 (eelf32cr16c.c): New target.
1406 * Makefile.in: Regenerate.
1407 * configure.tgt: Handle cr16c-*-elf*.
1408 * emulparams/elf32cr16c.sh: New file.
1409 * scripttempl/elfcr16c.sc: Likewise
1410 * NEWS: Mention support for new target.
1412 2004-03-30 Nick Clifton <nickc@redhat.com>
1414 * po/sv.po: Updated Swedish translation.
1416 2004-03-27 Alan Modra <amodra@bigpond.net.au>
1418 * emultempl/elf32.em: Update new bfd_elf_discard_info name.
1419 * emultempl/hppaelf.em: Likewise.
1420 * emultempl/ppc64elf.em: Likewise.
1421 * emultempl/sh64elf.em: Likewise.
1423 2004-03-25 Alan Modra <amodra@bigpond.net.au>
1425 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
1426 size_dynamic_sections call.
1428 2004-03-23 Alan Modra <amodra@bigpond.net.au>
1431 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
1432 link_info.wrap_char.
1434 2004-03-20 H.J. Lu <hongjiu.lu@intel.com>
1436 * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
1437 or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
1439 2004-03-20 Alexandre Oliva <aoliva@redhat.com>
1441 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
1443 2004-03-19 Alan Modra <amodra@bigpond.net.au>
1445 * config.in: Regenerate.
1446 * po/ld.pot: Regenerate.
1448 2004-03-18 Alan Modra <amodra@bigpond.net.au>
1450 * ld.texinfo: Add --as-needed doco.
1451 * ldmain.c (as_needed): New global var.
1452 * ldmain.h (as_needed): Declare.
1453 * lexsup.c (option_values): Add OPTION_AS_NEEDED and
1454 OPTION_NO_AS_NEEDED.
1455 (ld_options): Likewise.
1456 (parse_args): Handle them.
1457 * ldlang.h (lang_input_statement_type): Add as_needed field.
1458 * ldlang.c (new_afile): Set p->as_needed.
1459 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
1460 (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
1461 (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
1463 * ldlang.c (open_input_bfds): Remove useless cast.
1464 (lang_do_assignments_1): Likewise.
1465 (lang_for_each_input_section): Delete.
1467 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1469 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
1471 2004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
1473 * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
1474 private when building implib.
1476 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
1478 * ldlang.c (lang_add_section): Don't force SEC_LOAD on
1480 (IGNORE_SECTION): Ignore .tbss sections too.
1481 (lang_size_sections_1): .tbss sections do not advance dot.
1483 2004-03-01 Andreas Schwab <schwab@suse.de>
1485 * ld.texinfo (Options): Fix example for --wrap.
1487 2004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
1489 * pe-dll.c (fill_edata): Check that exported_symbol_sections is
1492 2004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
1494 * ldlang.c (lang_check): Use %P, not %E, in error message.
1496 2004-02-23 Nathan Sidwell <nathan@codesourcery.com>
1498 * ldlang.h (struct lang_output_section_state): Change processed
1500 * ldexp.c (check, invalid): Remove.
1501 (fold_name): Move valid_p assignments. Create undefined symbol
1502 when needed. Directly exampine section's processd flag.
1503 * ldlang.c (lang_output_section_statement_lookup): Adjust
1504 processed field init.
1505 (lang_size_sections_1): Allow LOADADDR when determining section's
1506 VMA. Adjust error message. Fold data statement's expr.
1507 (lang_size_sections): Correctly increment lang_statement_iteration.
1509 2004-02-23 Alan Modra <amodra@bigpond.net.au>
1511 * ldexp.c (fold_tree): Follow indirect symbols.
1513 2004-02-20 Nathan Sidwell <nathan@codesourcery.com>
1515 * ldgram.y (exp): Add two operand ALIGN.
1516 * ldexp.c (fold_binary): Add ALIGN_K case.
1517 * ld.texinfo (ALIGN): Document two operand version.
1519 2004-02-19 Nathan Sidwell <nathan@codesourcery.com>
1521 * ldlang.c (map_input_to_output_sections): Initialize sections
1522 mentioned in a data statement expression.
1523 (lang_do_assignments_1): Add data statement's expression's
1526 2004-02-18 Nathan Sidwell <nathan@codesourcery.com>
1528 * ldgram.y (statement_anywhere): Add assert rule.
1529 * ldlang.c (exp_init_os): Add assert case.
1531 2004-02-14 Andrew Cagney <cagney@redhat.com>
1533 * ldmain.c (remove_output): Call bfd_cache_close.
1535 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
1537 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
1538 .MIPS.content* and .MIPS.events* sections.
1540 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
1542 * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
1543 .note.gnu.arm.ident to after allocated sections. Mark its
1546 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
1548 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
1549 * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
1550 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
1551 * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
1552 * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
1554 2004-02-05 Nick Clifton <nickc@redhat.com>
1556 * emultempl/pe.em (_after_open): Fix typo in previous delta.
1558 2004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
1560 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
1562 2004-01-28 Alan Modra <amodra@bigpond.net.au>
1564 * genscripts.sh: Fix typo.
1566 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
1568 2004-01-24 Jakub Jelinek <jakub@redhat.com>
1570 * emulparams/elf64_ia64.sh: Put .rela.opd into
1571 OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
1573 2004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
1575 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
1576 * ld.texinfo (--omagic): Note that writable text section
1577 does not conform to published PE-COFF specs.
1578 (--enable-auto-import): Likewise.
1580 2004-01-15 Alan Modra <amodra@bigpond.net.au>
1582 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
1584 2004-01-13 Nick Clifton <nickc@redhat.com>
1586 * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
1587 which if true will prevent the LMA region being used as a
1588 replacement for a default VMA region.
1589 (lang_leave_output_section_statement): Pass extra parameter.
1590 (lang_leave_overlay): Likewise.
1591 * ld.texinfo (Output Section LMA): Document that the LMA
1592 region can be set to the VMA region if no VMA has been set.
1593 * ldlang.h (struct lang_output_section_phdr_list): Create a
1594 typedef for this type. Minor formatting fixes.
1596 2004-01-13 Nick Clifton <nickc@redhat.com>
1598 * ldlang.c (lang_size_sections_1): If dot is advanced, then
1599 assume that the section should be allocated.
1601 2004-01-13 Alan Modra <amodra@bigpond.net.au>
1603 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
1604 sections. Do ignore SEC_NEVER_LOAD sections.
1605 (lang_size_sections_1): Remove test made redundant with the above.
1607 2004-01-09 Alan Modra <amodra@bigpond.net.au>
1609 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
1610 program_header_size.
1612 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
1614 2003-11-28 Alexandre Oliva <aoliva@redhat.com>
1615 * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
1616 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
1617 * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
1618 (MAXPAGESIZE): Set to 64Kb.
1619 (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
1620 __ROFIXUP_END__. Don't map .rofixup.got any more.
1621 * emulparams/elf32frv.sh (NOP): Set.
1622 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
1623 * configure.tgt: Add frv-*-*linux*.
1624 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
1625 * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
1626 (eelf32frvfd.c): New.
1627 * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
1628 * emulparams/elf32frv.sh: Reverted previous two patches.
1629 * emulparams/elf32frvfd.sh: New.
1630 * Makefile.in: Rebuilt.
1631 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
1632 * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
1633 .rofixup.got to .rofixup.
1634 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
1635 * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
1636 (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
1638 2004-01-05 Jakub Jelinek <jakub@redhat.com>
1640 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
1641 * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
1643 2004-01-03 Alan Modra <amodra@bigpond.net.au>
1645 * ldexp.c (align_n): Make static.
1646 * ldexp.h (align_n): Delete declaration.
1647 * ldlang.h (lang_enter_output_section_statement): Remove
1649 * ldlang.c (lang_enter_output_section_statement): Likewise.
1650 (TO_ADDR, TO_SIZE): Define.
1651 (opb_shift): New var.
1652 (init_opb): New function.
1653 (print_input_section): Call init_opb and use TO_ADDR.
1654 (print_data_statement, print_reloc_statement): Likewise.
1655 (print_padding_statement): Likewise.
1656 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
1657 (lang_check_section_addresses): Likewise.
1658 (lang_size_sections_1): Likewise.
1659 (lang_do_assignments_1): Likewise.
1660 (lang_set_startof): Likewise.
1661 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
1662 (lang_process): Call init_opb.
1663 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
1664 (lang_enter_overlay_section): Adjust
1665 lang_enter_output_section_statement call.
1666 * ldgram.y: Likewise.
1667 * mri.c (mri_draw_tree): Likewise.
1668 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1669 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1670 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1672 * ldfile.c (ldfile_set_output_arch): Add defarch param.
1673 * ldfile.h (ldfile_set_output_arch): Ditto.
1674 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
1675 ldfile_set_output_arch.
1676 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1677 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
1678 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
1679 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1680 * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
1681 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1682 * ldgram.y: Adjust ldfile_set_output_arch call.
1683 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1684 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
1685 * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
1686 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
1687 * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
1688 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1689 * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1691 2004-01-02 Bernardo Innocenti <bernie@develer.com>
1693 * configure.tgt: Add m68k-uClinux target.
1695 For older changes see ChangeLog-0203
1701 version-control: never