1 2005-02-01 Alan Modra <amodra@bigpond.net.au>
3 * ld.texinfo: Clarify --as-needed operation.
5 2005-01-31 Andrew Cagney <cagney@gnu.org>
7 * configure: Regenerate to track ../gettext.m4.
9 2005-01-31 Nick Clifton <nickc@redhat.com>
11 * ldver.c (ldversion): Bump reported copyright date to 2005.
13 2005-01-31 Nick Clifton <nickc@redhat.com>
15 * configure.tgt: Remove obsolete targets m68k-lynxos and
18 2005-01-28 Julian Brown <julian@codesourcery.com>
20 * emultempl/armelf.em (fix_v4bx): New variable.
21 (arm_elf_create_output_section_statements): Communicate fix_v4bx flag
23 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_FIX_V4BX.
24 (PARSE_AND_LIST_LONGOPTS): Add option --fix-v4bx.
25 (PARSE_AND_LIST_OPTIONS): Add option --fix-v4bx.
26 (PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX.
27 * NEWS: Mention --fix-v4bx.
28 * ld.texinfo: Document --fix-v4bx.
30 2005-01-25 Mark Mitchell <mark@codesourcery.com>
32 * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Define, so
33 as to include .ARM.exidx$${Base,Limit}.
34 * ld/scripttempl/armbpabi.sc: Move .plt to end of text segment.
35 Define IMAGE$$ER_RO$${Base,Limit} and SHT$$INIT_ARRAY$${Base,Limit}.
36 Put .init_array, .fini_array, etc. into the read-only data
39 2005-01-25 Alan Modra <amodra@bigpond.net.au>
41 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Formatting.
42 (gld${EMULATION_NAME}_after_open): Ignore needed libs if they were
43 only needed by an as-needed lib that didn't get linked.
45 2005-01-23 Alan Modra <amodra@bigpond.net.au>
47 * ld.texinfo (Output Section Keywords <CONSTRUCTORS>): Correct
48 __DTOR_LIST__ description.
50 2005-01-23 Alan Modra <amodra@bigpond.net.au>
52 * ld.texinfo (Location Counter <dot outside sections>): Document
53 effects of orphan section placement, and ". = ." workaround.
54 * Makefile.in: Regenerate.
56 2005-01-22 Richard Sandiford <rsandifo@redhat.com>
58 * emulparams/elf32bmip.sh (OTHER_GOT_SECTIONS): Add ". = .;".
59 * emulparams/elf32bmipn32-defs.sh (OTHER_GOT_SECTIONS): Likewise.
61 2005-01-21 Jakub Jelinek <jakub@redhat.com>
63 * ldgram.y (AS_NEEDED): New token.
64 (input_list): Handle AS_NEEDED ( input_list ).
65 * ldlex.l (AS_NEEDED): Add.
66 * ld.texinfo: Document AS_NEEDED ().
67 * NEWS: Mention AS_NEEDED ().
69 2005-01-21 Ben Elliston <bje@au.ibm.com>
71 * ldlang.c (lang_reasonable_defaults): Remove.
72 (lang_process): Don't call lang_reasonable_defaults.
74 * ldexp.c (exp_assop): Remove #if 0'd code.
75 (exp_print_tree): Likewise.
76 * ldlang.c (lang_memory_region_lookup): Likewise.
77 (open_output): Likewise.
78 (lang_do_assignments_1): Likewise.
79 (lang_place_orphans): Likewise.
80 (lang_enter_output_section_statement): Likewise.
81 (lang_reasonable_defaults): Likewise.
82 * ldlang.h (struct lang_input_statement_struct): Likewise.
83 * mri.c (mri_draw_tree): Likewise.
85 * pe-dll.c (generate_reloc): Likewise.
86 (make_import_fixup_entry): Likewise.
88 * emultempl/beos.em (set_pe_subsystem): Likewise.
89 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
90 * emultempl/pe.em: Likewise.
91 * emultempl/xtensaelf.em (xtensa_colocate_literals): Likewise.
93 2005-01-20 Daniel Jacobowitz <dan@codesourcery.com>
95 * Makefile.am (ALL_EMULATIONS): Add earmelfb_linux_eabi.o.
96 (earmelfb_linux_eabi.c): New target.
97 * Makefile.in: Regenerated.
98 * configure.tgt (arm*b-*-linux-gnueabi): New target.
99 * emulparams/armelfb_linux_eabi.sh: New file.
101 2005-01-20 Nick Hudson <skrll@netbsd.org>
104 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
105 Handle bfd_elf32_hppa_nbsd_vec.
107 2005-01-19 Richard Sandiford <rsandifo@redhat.com>
109 * ldmain.h (ld_sysroot): Change type to a constant string.
110 * ldmain.c (ld_sysroot): Likewise.
111 (get_relative_sysroot, get_sysroot): New functions, adding command-line
112 support for changing the sysroot.
113 (main): Call the new functions.
114 * lexsup.c (OPTION_SYSROOT): New.
115 (ld_options): Add --sysroot.
116 (parse_args): Add a dummy handler for it.
117 * ld.texinfo (--sysroot): Document.
118 * NEWS: Mention the new --sysroot option.
120 2005-01-18 Alan Modra <amodra@bigpond.net.au>
122 * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
123 (lang_place_orphans): Don't abort on just_syms_flag, instead call
126 2005-01-16 Danny Smith <dannysmith@users.sourceforge.net>
128 * defilep.y (def_name, def_library): Combine into...
129 (def_image_name): New function. Strip name to basename,
132 2005-01-12 Mark Kettenis <kettenis@gnu.org>
134 * configure.in: Be sure to invoke config.sub using the shell.
135 * configure: Regenerate.
137 2005-01-11 Alan Modra <amodra@bigpond.net.au>
139 * configure.host: Correct sed patterns for last change.
141 2005-01-10 Nick Clifton <nickc@redhat.com>
144 * ldmisc.c (vfinfo): Add an extra argument: is_warning. Use this
145 to determine whether config.make_executable should be set to FALSE in
146 conjunction with config.fatal_warnings.
147 (info_msg, minfo, lfinof): Pass FALSE as the extra argument.
148 (einfo): Pass TRUE as the extra argument.
150 2005-01-10 Greg Schaffer <gschafer@zip.com.au>
152 * configure.host (linux targets): Use "${CC} -dumpspecs" instead
153 of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0.
154 (ia64-*-aix): Delete - this target is obsolete, and would be
155 broken by this patch.
157 2005-01-06 Eric Botcazou <ebotcazou@libertysurf.fr>
159 * configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*.
160 (sparc64-sun-solaris2*): New host.
162 2005-01-06 Paul Brook <paul@codesourcery.com>
164 * Makefie.am: Add earmelf_vxworks.
165 * Makefile.in: Regenerate.
166 * configure.tgt: Make arm-*-vxworks a separate case.
167 * emulparams/armelf_vxworks.sh: New function.
169 2005-01-06 Alan Modra <amodra@bigpond.net.au>
171 * emultempl/ppc64elf.em (no_multi_toc): New var.
172 (gld${EMULATION_NAME}_finish): Pass to ppc64_elf_setup_section_lists.
173 (OPTION_NO_MULTI_TOC): Define.
174 (PARSE_AND_LIST_LONGOPTS): Add --no-multi-toc support.
175 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
177 2005-01-05 Nick Clifton <nickc@redhat.com>
180 * ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
181 Standard's specification for parsable error messages.
183 2005-01-04 Paul Brook <paul@codesourcery.com>
185 * Makefile.am: Correct dependency for earmsymbian.c.
186 * Makefile.in: Regenerate.
188 2004-12-28 Danny Smith <dannysmith@users.sourceforge.net>
190 * emultempl/pe.em (set_pe_subsystem): Change second arg to
191 lang_add_entry to FALSE.
193 2004-12-23 Nick Clifton <nickc@redhat.com>
196 * emulparams/shelf.sh (.stack): Increase stack start address to
199 2004-12-20 Nick Clifton <nickc@redhat.com>
201 * ldmain.c (main): Issue an error message if -static and -shared
204 2004-12-17 Jakub Jelinek <jakub@redhat.com>
206 * ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
207 * ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
208 * ldlang.c (lang_size_sections): Use them to avoid wasting virtual
209 address space at DATA_SEGMENT_ALIGN. Fix computation of expected
210 PT_GNU_RELRO segment end.
212 2004-12-14 P.J. Darcy <darcypj@us.ibm.com>
214 * configure.tgt: Add s390x-ibm-tpf support.
216 2004-12-16 Martin Kögler <mkoegler@auto.tuwien.ac.at>
218 * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
221 2004-12-07 Ben Elliston <bje@gnu.org>
223 * ldemul.h: Forward declare struct option.
225 2004-12-01 Danny Smith <dannysmith@users.sourceforge.net>
227 * scripttempl/pe.sc (.data): Add .jcr subsection.
229 2004-11-30 Paul Brook <paul@codesourcery.com>
231 * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
233 2004-11-30 Tero Niemela <tero_niemela@yahoo.com>
235 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
236 * Makefile.in: Regenerate.
238 2004-11-26 Melissa Mears <asterisk@graces.dricas.com>
240 * emultempl/pe.em: Add --subsystem:xbox as well as
242 * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
243 and numeric subsystems.
245 2004-11-24 Alan Modra <amodra@bigpond.net.au>
247 * ldexp.c (fold_name): Correct PR 338 fix.
249 2004-11-19 Mark Mitchell <mark@codesourcery.com>
251 * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
252 (earmelf_linux_eabi.c): New target.
253 * configure.tgt (arm*-*-linux-gnueabi): Handle it.
254 * emulparams/armelf_linux_eabi.sh: New file.
255 * Makefile.in: Regenerated.
257 2004-11-19 Nick Clifton <nickc@redhat.com>
260 * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
261 LENGTH fields in the MEMORY command, to explicitly state that
262 symbols cannot be used in their expressions.
264 2004-11-19 Jon Beniston <jon@beniston.com>
266 * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
267 * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
268 * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
269 which return the length and origin of a memory.
270 * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
271 * NEWS: Mention support for ORIGIN and LENGTH operators.
273 2004-11-17 Daniel Jacobowitz <dan@codesourcery.com>
275 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
276 a dynamic object for stubs.
278 2004-11-04 Paul Brook <paul@codesourcery.com>
280 * ld.texinfo: Document --default-imported-symver.
281 * ldmain.c (main): Set link_info.default_imported_symver.
282 * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
283 (ld_options): Add --default-imported-symver.
284 (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
286 2004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
287 Vineet Sharma <vineets@noida.hcltech.com>
289 * Makefile.am: Add entries for new maxq-coff target.
290 * Makefile.in: Regenerate.
291 * configure.tgt: Add support for maxq.
292 * emulparams/maxqcoff.sh: New File.
293 * scripttempl/maxqcoff.sc: New linker script for target maxq.
294 * NEWS: Mention the new target.
296 2004-11-08 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
298 * testsuite/ld-scripts/weak.exp: Enable test on PE,
300 * testsuite/ld-undefined/weak-undef.exp: Enable test on PE,
302 * testsuite/lib/ld-lib.exp (is_pecoff_format): New.
304 2004-11-04 Daniel Jacobowitz <dan@debian.org>
306 * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
307 (earmelf_oabi.c): Remove rule.
308 * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
309 * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
310 * Makefile.in: Regenerated.
312 2004-11-04 Hans-Peter Nilsson <hp@axis.com>
314 * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
315 * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
317 (INIT_END): Remove emitted "jump [sp+]".
320 2004-11-04 Alan Modra <amodra@bigpond.net.au>
322 * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
323 (no_opd_opt, no_toc_opt): New static vars.
324 (ppc_before_allocation): Don't edit opt if no_opd_opt. Call
326 (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
327 (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
328 (PARSE_AND_LIST_OPTIONS): Describe new options.
329 (PARSE_AND_LIST_ARGS_CASES): Handle them.
331 2004-10-27 Nick Clifton <nickc@redhat.com>
333 * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
334 parameter to invocation of lang_section_start.
335 * emultempl/aix.em (_handle_option): Likewise.
337 * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
338 eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
339 * Makefile.in: Regenerate.
341 2004-10-26 Mark Mitchell <mark@codesourcery.com>
343 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
344 __exidx_{start,end} when not relocating.
346 2004-10-25 Mark Mitchell <mark@codesourcery.com>
348 * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
349 * ldexp.h (segment_type): New type.
350 (segments): New variable.
351 * ldexp.c (segments): New variable.
352 (exp_print_token): Handle SEGMENT_START.
353 (fold_binary): Likewise.
354 * ldgram.y (SEGMENT_START): Declare it as a token.
355 (exp): Handle SEGMENT_START.
356 * ldlang.h (lang_address_statement_type): Add segment field.
357 (lang_section_start): Change prototype.
358 * ldlang.c (map_input_to_output_sections): Do not process section
359 assignments if a corresponding SEGMENT_START has already been
361 (lang_section_start): Add segment parameter.
362 * ldlex.l (SEGMENT_START): Add it.
363 * lexsup.c (seg_segment_start): New function.
364 (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
365 * ld.texinfo (SEGMENT_START): Document it.
366 * emulparams/armsymbian.sh (EMBEDDED): Set it.
367 * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
368 base addresses. Do not map relocations.
369 * NEWS: Mention SEGMENT_START.
371 2004-10-26 Paul Brook <paul@codesourcery.com>
373 * ld.texinfo: Document --default-symver.
374 * ldmain.c (main): Set link_info.create_default_symver.
375 * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
376 (ld_options): Add default-symver.
377 (parse_args): Handle OPTION_DEFAULT_SYMVER.
379 2004-10-24 Danny Smith <dannysmith@users.sourceforge.net>
381 * pe-dll.c (process_def_file): Don't export all symbols by default if
382 building a position-independent executable.
384 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
387 * ldmain.c (reloc_overflow): Accept a pointer to struct
388 bfd_link_hash_entry. Report symbol location for relocation
391 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
393 * genscripts.sh (libpath.exp): Really generate for first
396 2004-10-19 Danny Smith <dannysmith@users.sourceforge.net>
398 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
399 comparison and replacement of filenames.
401 2004-10-19 H.J. Lu <hongjiu.lu@intel.com>
404 * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
405 option on linker script as the one for linker script.
407 2004-10-16 Daniel Jacobowitz <dan@debian.org>
409 * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
410 (check_excluded_libs): New.
411 (load_symbols): Call check_excluded_libs.
412 * ldlang.h (add_excluded_libs): New prototype.
413 * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
414 (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
415 (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
416 * ld.texinfo (Command Line Variables): Document --exclude-libs.
417 (Options Specific to i386 PE Targets): Remove --exclude-libs.
419 2004-10-15 Alan Modra <amodra@bigpond.net.au>
421 * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
422 failing link script assert.
424 * ldctor.c (ldctor_add_set_entry): Fix comment typo.
426 2004-10-14 H.J. Lu <hongjiu.lu@intel.com>
429 * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
430 (SMALL_DATA_DTOR): Set.
431 * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
432 (SMALL_DATA_DTOR): Unset.
433 * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
434 after .data. If SMALL_DATA_DTOR is set, move .dtors after
437 2004-10-14 Alan Modra <amodra@bigpond.net.au>
440 * ldlang.h (lang_output_section_statement_type): Make "next" a
441 struct lang_output_section_statement_struct *.
442 (struct orphan_save): Move from elf32.em. Add "name" and "flags".
443 (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
444 * ldlang.c (lang_output_section_find_1): Adjust for changed
445 output_section_statement "next".
446 (strip_excluded_output_sections): Likewise.
447 (lang_record_phdrs): Likewise.
448 (lang_output_section_find_by_flags): New function.
449 (output_prev_sec_find): Move from pe.em. Adjust iterator.
450 (lang_insert_orphan): New function. Tail end of elf32.em's
451 place_orphan merged with that from pe.em. Allow bfd_section to
452 be placed first. New heuristic for placing new output section
453 statement in existing script, and accompanying split of __start
454 symbol alignment into a separate assignment to dot.
455 (lang_add_section): Consistently use output->bfd_section rather than
456 an alias, section->output_section.
457 (map_input_to_output_sections): Rename overly long arg. Move
458 initialization of data_statement output section to here..
459 (lang_check_section_addresses): ..from here.
460 (print_assignment): Correct printing of etree_assert.
461 (print_all_symbols): Don't bomb if userdata is NULL.
462 (IGNORE_SECTION): Rearrange.
463 * emultempl/elf32.em (output_rel_find): Adjust interator.
464 (output_prev_sec_find): Delete.
465 (struct orphan_save): Delete.
466 (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
467 flags without creating a duplicate output section statement.
468 Revise code holding history of various orphan section placements.
469 Allow orphan sections to place before script specified output
470 sections. Call lang_output_section_find_by_flags when placement
471 by name fails. Use lang_insert_orphan.
472 * emultempl/mmo.em (output_prev_sec_find): Delete.
473 (struct orphan_save): Delete.
474 (mmo_place_orphan): Revise code holding history of orphan placement.
475 Allow orphans to place before existing output sections. Use
477 * emultempl/pe.em (output_prev_sec_find): Delete.
478 (struct orphan_save): Delete.
479 (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
482 2004-10-13 Mark Mitchell <mark@codesourcery.com>
484 * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
487 2004-10-13 Alan Modra <amodra@bigpond.net.au>
490 * ldcref.c (check_section_sym_xref): Delete.
491 (check_local_sym_xref): New function.
492 (check_nocrossrefs): Adjust call.
493 * emultempl/pe.em (struct orphan_save): Add os_tail.
494 (place_orphan): Backport assorted fixes from elf32.em.
496 2004-10-12 Bob Wilson <bob.wilson@acm.org>
498 * emultempl/xtensaelf.em: Use ISO C90 formatting.
500 2004-10-11 Jakub Jelinek <jakub@redhat.com>
502 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
503 getline for portability.
505 * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
506 (gld${EMULATION_NAME}_parse_ld_so_conf,
507 gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
508 (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
510 2004-10-11 Alan Modra <amodra@bigpond.net.au>
513 * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
514 rejected when linking statically.
516 2004-10-08 Daniel Jacobowitz <dan@debian.org>
518 * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
520 2004-10-07 Bob Wilson <bob.wilson@acm.org>
522 * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
523 assembler-generated longcall sequences. Describe new --size-opt
525 * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
526 * emultempl/xtensaelf.em (remove_section,
527 replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
528 elf_xtensa_after_open): New.
529 (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
530 OPTION_NO_LITERAL_MOVEMENT): Define.
531 (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
532 (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
533 (PARSE_AND_LIST_OPTIONS): Add --size-opt.
534 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
535 OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
536 (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
537 * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
538 * Makefile.am (eelf32xtensa.c): Update dependencies.
539 * Makefile.in: Regenerate.
541 2004-10-07 Jeff Baker <jbaker@qnx.com>
543 * lexsup.c: Handle --warn-shared-textrel option.
544 (ld_options): Restore alpha sorting of options.
545 * ldmain.c (main): Initialise warn_shared_info field to FALSE.
546 * ld.texinfo: Add documentation for --warn-shared-textrel.
547 * NEWS: Added mention of --warn-shared-textrel option.
549 2004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
551 * emultempl/crxelf.em (disable_relaxation): Add.
552 (crxelf_before_allocation): Enable --relax option by default.
553 (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
554 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
555 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
557 2004-10-04 H.J. Lu <hongjiu.lu@intel.com>
559 * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
560 --sort-section name|alignment.
562 * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
563 --sort-section name|alignment.
565 * ld.h (sort_type): New enum.
566 (wildcard_spec): Change the type of `sorted' to sort_type.
568 * ldgram.y (SORT): Removed.
569 (SORT_BY_NAME): Added.
570 (SORT_BY_ALIGNMENT): Added.
571 (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
573 (input_section_spec_no_keep): Updated `sorted'.
574 (statement): Replace SORT with SORT_BY_NAME.
576 * ldlang.c (compare_section): New function to compare 2
577 sections with different sorting schemes.
578 (wild_sort): Updated. Use compare_section.
579 (update_wild_statements): New function.
580 (lang_process): Call update_wild_statements before
581 map_input_to_output_sections.
583 * ldlex.l (SORT_BY_NAME): New.
584 (SORT_BY_ALIGNMENT): New.
585 (SORT): Return SORT_BY_NAME.
587 * ldmain.c (sort_section): New. Defined.
588 (main): Initialize it to none.
590 * lexsup.c (option_values): Add OPTION_SORT_SECTION.
591 (ld_options): Add an entry for OPTION_SORT_SECTION.
592 (parse_args): Handle OPTION_SORT_SECTION.
594 * mri.c (mri_draw_tree): Updated `sorted'.
596 2004-10-04 Jakub Jelinek <jakub@redhat.com>
598 * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
599 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
601 (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
602 and . as second argument.
603 (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
604 * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
605 (fold_binary): Add it here. Insert padding to make relro_end
606 COMMONPAGESIZE bytes aligned. For DATA_SEGMENT_ALIGN in
607 exp_dataseg_relro_adjust phase just use previously computed
609 * ldlang.c (lang_size_sections): Set exp_data_seg.base for
610 relro_adjust here. Call lang_size_sections_1 once more if there
611 was too big padding at DATA_SEGMENT_RELRO_END.
612 * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
614 2004-10-01 Paul Brook <paul@codesourcery.com>
616 * emulparams/armelf.sh: Add unwinding table sections.
618 2004-09-30 Filip Navara <navaraf@reactos.com>
620 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
621 correct base address for position independant executables.
622 * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
625 2004-09-30 Paul Brook <paul@codesourcery.com>
627 * ld.texinfo: Document --target2=abs.
628 * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
630 2004-09-29 Nick Clifton <nickc@redhat.com>
632 * scripttempl/xstormy16.sc: Only perform the assignments to the
633 ROM region when not performing a relocatable link. The ROM region
634 does not start at address 0, but the sections will.
635 * Makefile.am: Fix linker script dependency for the generation of
637 * Makefile.in: Regenerate.
639 2004-09-18 Filip Navara <navaraf@reactos.com>
641 * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
642 emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
643 emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
645 * scripttempl/pe.sc: Make the virtual address and file offset synced if
646 the alignment is lower than the target page size.
648 2004-09-27 Filip Navara <navaraf@reactos.com>
650 * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
651 def_file_parse to handle pe_def_file if NULL and prevent crash with
654 2004-09-27 Alan Modra <amodra@bigpond.net.au>
656 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
657 --emit-stub-syms automatically when --emit-relocs.
659 2004-09-24 Paul Brook <paul@codeosurcery.com>
661 * scripttempl/elf.sc: Keep .preinit_array, .init_array and
662 .fini_array sections.
664 2004-09-19 Andreas Schwab <schwab@suse.de>
666 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
667 base so that relro end is suitably aligned.
669 2004-09-17 Paul Brook <paul@codesourcery.com>
671 * ld.texinfo: Rename arm-specific section. Document --target*
672 * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
673 * emulparams/armelf_linux.sh: Ditto.
674 * emulparams/armelf_nbsd.sh: Ditto.
675 * emultempl/armelf.em: Set default for TARGET2_TYPE.
676 (target2_type): New variable.
677 (arm_elf_before_allocation): Don't pass target1_type.
678 (arm_elf_create_output_section_statements): New function.
679 (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
680 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
681 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
682 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
683 * emultempl/armelf_oabi.em (_before_allocation): Remove extra
684 argument to bfd_elf32_arm_process_before_allocation.
686 2004-09-17 Alan Modra <amodra@bigpond.net.au>
688 * ldexp.c (fold_name): Update u.undef.next refs.
689 * emultempl/pe.em: Likewise.
690 * emultempl/sunos.em: Likewise.
692 2004-09-17 Alan Modra <amodra@bigpond.net.au>
694 * Makefile.am: Run "make dep-am".
695 * Makefile.in: Regenerate.
696 * config.in: Regenerate.
697 * configure: Regenerate.
698 * aclocal.m4: Regenerate.
699 * po/ld.pot: Regenerate.
701 2004-09-16 Tomer Levi <Tomer.Levi@nsc.com>
703 * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
707 2004-09-16 Alan Modra <amodra@bigpond.net.au>
709 * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
710 to bfd_elf32_arm_process_before_allocation call.
712 2004-09-13 Paul Brook <paul@codesourcery.com>
714 * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
715 * emultempl/armelf.em: Use TARGET1_IS_REL. Add --target1-{rel,abs}.
717 2004-09-07 H.J. Lu <hongjiu.lu@intel.com>
719 * configure: Regenerated with autconfig 2.13.
721 2004-09-07 Andreas Schwab <schwab@suse.de>
723 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
724 alignment before adjusting DATA_SEGMENT_RELRO_END.
726 2004-09-06 Mark Mitchell <mark@codesourcery.com>
728 * emulparams/armsymbian.sh: Use armbpabi script.
729 * scripttempl/armbpabi.sc: New script.
731 2004-09-02 Mark Mitchell <mark@codesourcery.com>
733 * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
734 (earmsymbian.c): New target.
735 * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
736 * Makefile.in: Regenerated.
737 * aclocal.m4: Likewise.
738 * configure: Likewise.
739 * emulparams/armsymbian.sh: New file.
741 2004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
743 * scripttempl/elf32crx.sc: Edit file with comments.
744 (.init): Add new section.
746 (.ctor): Control the linkage order.
749 2004-08-27 Nick Clifton <nickc@redhat.com>
751 * emultempl/pe.em (after_open): Do not assume that either bfd is
754 2004-08-26 Alan Modra <amodra@bigpond.net.au>
756 * ldlang.c (lang_init): Don't compare with TRUE.
758 2004-08-25 Dmitry Diky <diwil@spec.ru>
760 * emulparams/msp430all.sh: Fix RAM sizes for all targets.
761 * scripttempl/elf32msp430.sc: Add .profiler section definition.
763 2004-08-24 H.J. Lu <hongjiu.lu@intel.com>
765 * ldlang.c (wildcardp): Defined as a macro with strpbrk.
767 2004-08-19 Mark Mitchell <mark@codesourcery.com>
769 * configure.tgt (arm*-*-symbianelf*): New target.
770 (arm*-*-eabi*): Likewise.
772 2004-08-19 Jakub Jelinek <jakub@redhat.com>
774 * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
775 (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
776 (OPTION_NON_OVERLAPPING_OPD): Define.
777 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
778 --non-overlapping-opd option.
780 2004-08-18 Alan Modra <amodra@bigpond.net.au>
783 * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
784 was already on the undefs list.
786 2004-08-17 Alan Modra <amodra@bigpond.net.au>
788 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
789 prefix the symbol field too.
791 2004-08-13 Alan Modra <amodra@bigpond.net.au>
793 * ldmain.c (link_callbacks): Remove "error_handler".
794 * ldmisc.c: Include elf-bfd.h.
795 (vfinfo): Sort comment. Handle %A. Use %A instead of
796 bfd_get_section_indent.
797 (error_handler): Delete.
798 * ldmisc.h (error_handler): Delete declaration.
800 2004-08-10 Alan Modra <amodra@bigpond.net.au>
802 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
803 ppc64_elf_restore_symbols.
805 2004-08-09 Alan Modra <amodra@bigpond.net.au>
807 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
808 .toc is too large on relocatable linking.
810 2004-08-09 Alan Modra <amodra@bigpond.net.au>
812 * emultempl/ppc64elf.em (ppc_after_open): Delete.
813 (LDEMUL_AFTER_OPEN): Don't define.
815 2004-08-02 Stephane Carrez <stcarrez@nerim.fr>
817 * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
819 2004-08-01 Stephane Carrez <stcarrez@nerim.fr>
821 * scripttempl/elfm68hc12.sc: Align text, rodata and data section
824 2004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
826 * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
828 2004-07-26 Dmitry Diky <diwil@spec.ru>
830 * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
831 msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
833 * configure.tgt: Likewise.
834 * emulparams/msp430all.sh: Likewise.
835 * Makefile.in: Regenerate.
837 2004-07-23 Nick Clifton <nickc@redhat.com>
839 * emultempl/elf32.em (_place_orphan): Use an already existing
840 section name if that section does not have any flags set.
842 2004-07-21 H.J. Lu <hongjiu.lu@intel.com>
844 * ldlang.c (already_linked_hash_entry): Removed.
845 (already_linked): Likewise.
846 (already_linked_table): Likewise.
847 (section_already_linked): Call bfd_section_already_linked.
848 (lang_process): Replace already_linked_table_init with
849 bfd_section_already_linked_table_init and check return. Replace
850 already_linked_table_free with bfd_section_already_linked_table_free.
852 2004-07-21 Nick Clifton <nickc@redhat.com>
854 * ldlang.c (init_os): Make sure that the newly allocated userdata
855 structure is zeroed out.
857 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
859 * NEWS: Mention the new --add-needed/--no-add-needed and
860 --as-needed/--no-as-needed options.
862 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
864 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
865 check the add_needed field.
866 (dt_needed): New struct.
867 (gld${EMULATION_NAME}_try_needed): Change the first argument
868 to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
869 bit in the file where the DT_NEEDED entry comes from.
870 (gld${EMULATION_NAME}_search_needed): Change the second
871 argument to a pointer to struct dt_needed.
872 (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
873 (gld${EMULATION_NAME}_after_open): Likewise.
875 * ld.texinfo: Add --add-needed document.
876 * ldlang.c (new_afile): Set p->add_needed.
877 * ldlang.h (lang_input_statement_type): Add add_needed field.
878 * ldmain.h (add_needed): Declare.
879 * ldmain.c (add_needed): New global var.
880 * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
881 OPTION_NO_ADD_NEEDED.
882 (ld_options): Likewise.
883 (parse_args): Handle them.
885 2004-07-13 Christof Petig <christof@petig-baender.de>
887 * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
888 for endian-ness of extracted addend.
890 2004-07-13 Danny Smith <dannysmith@usesr.sourceforge.net>
892 * pe-dll.c (auto_export): Filter on just the import prefix,
893 "_imp_", not "_imp__".
895 2004-07-09 Nick Clifton <nickc@redhat.com>
897 * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
899 2004-07-06 Tomer Levi <Tomer.Levi@nsc.com>
901 * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
902 (eelf32crx.c): New target.
903 * Makefile.in: Regenerate.
904 * configure.tgt: Handle crx-*-elf*.
905 * emulparams/elf32crx.sh: New file.
906 * emultempl/crxelf.em: New file.
907 * scripttempl/elf32crx.sc: New file.
908 * NEWS: Mention new target.
910 2004-07-06 Nick Clifton <nickc@redhat.com>
912 * Makefile.am: Add eshlsymbian.c.
913 * Makefile.in: Regenerate.
914 * configure.tgt: Add sh*-symbian-elf target.
915 * emulparams/shlsymbian.sh: New file. Configure the
916 sh-symbian-elf linker scripts.
917 * scripttemp/elf32sh-symbian.sc: New file. Linker script
918 template for the sh-symbian-elf target.
920 2004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
922 * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
923 * emulparams/hppalinux.sh: Likewise.
924 * scripttempl/elf.sc: Place .plt just before .got when .plt is in
925 data segment and PLT_BEFORE_GOT is defined.
927 2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
929 * ld.texinfo (WIN32): Document PE weak symbols.
931 2004-07-02 Kaz Kojima <kkojima@rr.iij4u.or.jp>
933 * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
935 2004-07-01 H.J. Lu <hongjiu.lu@intel.com>
937 * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
940 2004-06-29 Alan Modra <amodra@bigpond.net.au>
942 * ldlang.c (lang_reset_memory_regions): Save last relax pass section
945 2004-06-24 Alan Modra <amodra@bigpond.net.au>
947 * ldlang.c (print_output_section_statement): Don't print size before
949 (IGNORE_SECTION): Remove bfd arg. Update all callers.
951 * ldexp.c (fold_name): .. See below.
952 * ldlang.c (section_already_linked, print_output_section_statement,
953 print_input_section, insert_pad, size_input_section,
954 lang_check_section_addresses, lang_size_sections_1,
955 lang_size_sections, lang_do_assignments_1, lang_set_startof,
956 lang_one_common, lang_reset_memory_regions, lang_process,
957 lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
958 * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
959 * pe-dll.c (process_def_file, generate_reloc): ..
960 * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
961 gld${EMULATION_NAME}_before_allocation): ..
962 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
963 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
964 sh64_elf_${EMULATION_NAME}_after_allocation): ..
965 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
966 * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
967 ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
968 "size" instead of "_raw_size" and "_cooked_size". Expand
969 bfd_section_size macro invocations.
971 2004-06-22 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
973 * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
974 ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
975 ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
977 (.tls): Define ___tls_start__ and ___tls_end__.
979 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
981 * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
983 2004-06-18 Adam Nemet <anemet@lnxw.com>
985 * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
986 * configure: Regenerate.
988 2004-06-15 Jakub Jelinek <jakub@redhat.com>
990 * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
991 .gcc_except_table output sections lost accidentally with
994 2004-06-15 Alan Modra <amodra@bigpond.net.au>
996 * ldwrite.c (build_link_order): Use bfd_get_section_size
997 instead of bfd_get_section_size_before_reloc or _raw_size.
998 * pe-dll.c (process_def_file): Likewise.
1000 2004-06-14 Alan Modra <amodra@bigpond.net.au>
1002 From Richard Wirth <r.wirth@wirthware.de>
1003 * ldlang.c (lang_finish): Don't free lang_definedness_table.
1005 2004-05-29 Alan Modra <amodra@bigpond.net.au>
1007 * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
1008 (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
1010 2004-05-28 Andrew Stubbs <andrew.stubbs@superh.com>
1012 * testsuite/ld-sh/arch/arch.exp: New test script.
1013 * testsuite/ld-sh/arch/arch_expected.txt: New file.
1014 * testsuite/ld-sh/arch/sh.s: New file.
1015 * testsuite/ld-sh/arch/sh2.s: New file.
1016 * testsuite/ld-sh/arch/sh-dsp.s: New file.
1017 * testsuite/ld-sh/arch/sh2e.s: New file.
1018 * testsuite/ld-sh/arch/sh3-nommu.s: New file.
1019 * testsuite/ld-sh/arch/sh3.s: New file.
1020 * testsuite/ld-sh/arch/sh3-dsp.s: New file.
1021 * testsuite/ld-sh/arch/sh3e.s: New file.
1022 * testsuite/ld-sh/arch/sh4-nommu-nofpu.s: New file.
1023 * testsuite/ld-sh/arch/sh4-nofpu.s: New file.
1024 * testsuite/ld-sh/arch/sh4.s: New file.
1025 * testsuite/ld-sh/arch/sh4a-nofpu.s: New file.
1026 * testsuite/ld-sh/arch/sh4al-dsp.s: New file.
1027 * testsuite/ld-sh/arch/sh4a.s: New file.
1029 2004-05-28 Alan Modra <amodra@bigpond.net.au>
1031 * ldlang.c: Formatting. Wrap long lines, expand bfd_get_section_flags
1033 * lexsup.c: Formatting. Wrap long lines.
1034 * ldwrite.c: Update copyright date.
1036 * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
1037 (output_section_callback): Nor SEC_KEEP here.
1038 (gc_section_callback): Twiddle SEC_EXCLUDE here.
1039 (lang_gc_wild): Delete. Fold into..
1040 (lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage
1042 (lang_process): Always call lang_gc_sections.
1043 (lang_place_orphans): Handle SEC_EXCLUDE sections.
1044 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
1047 2004-05-26 H.J. Lu <hongjiu.lu@intel.com>
1049 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
1050 SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
1051 * ldlang.c (lang_add_section): Likewise.
1053 2004-05-26 Alan Modra <amodra@bigpond.net.au>
1055 * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
1056 sections when doing a final link. Clear SEC_EXCLUDE when doing
1057 a relocable link, except for SEC_DEBUGGING sections.
1058 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
1059 same condition here to drop SEC_EXCLUDE orphan sections.
1061 2004-05-25 Alan Modra <amodra@bigpond.net.au>
1063 * ldlang.c (lang_process): Call bfd_merge_sections later, and
1064 only when not a relocatable link.
1065 (print_input_section): Handle SEC_EXCLUDE sections.
1066 (size_input_section): Don't update dot on SEC_EXCLUDE sections.
1067 (lang_do_assignments_1): Likewise.
1068 * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
1069 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
1070 * emultempl/hppaelf.em (build_section_lists): Likewise.
1071 * emultempl/ppc64elf.em (build_toc_list): Likewise.
1072 (build_section_lists): Likewise.
1074 2004-05-23 Andreas Schwab <schwab@suse.de>
1076 * ld.texinfo (Options): Fix typo in last change.
1078 2004-05-21 Andy Chittenden <achittenden@bluearc.com>
1080 * ld.h (ld_config_type): Add new field: hash_table_size.
1081 * ldmain.c: Initialise the new field to zero. If it is non-zero
1082 after parsing the linker's command line call
1083 bfd_hash_set_default_size.
1084 * lexsup.c (option_values): Add OPTION_HASH_SIZE.
1085 (ld_options): Add hash-size.
1086 (parse_args): Parse --hash-size option. Allow
1087 --reduce-memory-overheads to set the default hash table size as
1089 * ld.texinfo: Document the new switch. Also mention that
1090 --reduce-memory-overheads can affect the hash table size.
1091 * NEWS: Mention the new feature.
1093 2004-05-19 J"orn Rennecke <joern.rennecke@superh.com>
1095 * NEWS: Mention new linker map file generation and the
1096 --reduce-memory-overheads option.
1097 * ld.texinfo: Document --reduce-memory-overheads option.
1098 * ld.h (map_symbol_def): New struct.
1099 (struct user_section_struct, section_userdata_type): Rename to:
1100 (struct lean_user_section_struct, lean_section_userdata_type).
1101 (struct fat_user_section_struct, fat_section_userdata_type): New.
1102 (SECTION_USERDATA_SIZE): Define.
1103 (args_type): New member reduce_memory_overheads.
1104 * ldlang.c (map_obstack): New static variable.
1105 (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
1106 (lang_map): Unless command_line.reduce_memory_overheads is set,
1107 initialize lists of defined symbols for each section.
1108 (print_input_section): Unless command_line.reduce_memory_overheads
1109 is set, use print_all_symbols.
1110 (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
1111 * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
1112 * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
1113 (ld_options): Add entry for --reduce-memory-overheads.
1114 (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
1116 2004-05-19 Jakub Jelinek <jakub@redhat.com>
1118 * ldgram.y (sect_constraint): New.
1119 (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1120 (section): Add sect_constraint. Pass additional argument
1121 to lang_enter_output_section_statement.
1122 * mri.c (mri_draw_tree): Pass additional argument to
1123 lang_enter_output_section_statement.
1124 * emultempl/pe.em (place_orphan): Likewise.
1125 (output_prev_sec_find): Disregard output section statements with
1127 * emultempl/mmo.em (output_prev_sec_find): Likewise.
1128 (mmo_place_orphan): Pass additional argument to
1129 lang_enter_output_section_statement.
1130 * emultempl/elf32.em (output_prev_sec_find): Disregard output section
1131 statements with constraint == -1.
1132 (place_orphan): Pass additional argument to
1133 lang_enter_output_section_statement.
1134 * ldlang.c (lang_enter_overlay_section): Likewise.
1135 (lang_output_section_find_1): New.
1136 (lang_output_section_find): Use it.
1137 (lang_output_section_statement_lookup_1): New.
1138 (lang_output_section_statement_lookup): Use it.
1139 (check_section_callback, check_input_sections): New.
1140 (map_input_to_output_sections): Check if all input sections
1141 are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
1142 (strip_excluded_output_sections): Disregard output section statements
1143 with constraint == -1.
1144 (lang_record_phdrs): Likewise.
1145 (lang_enter_output_section_statement): Add constraint argument.
1146 Use lang_output_section_statement_lookup_1.
1147 * ldlang.h (lang_output_section_statement_type): Add constraint
1148 and all_input_readonly fields.
1149 (lang_enter_output_section_statement): Adjust prototype.
1150 * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1151 * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
1152 segment if all input sections are readonly.
1154 2004-05-19 Adam Nemet <anemet@lnxw.com>
1156 * scripttempl/i386lynx.sc: Remove file.
1158 2004-05-17 Bob Wilson <bob.wilson@acm.org>
1160 * ld.texinfo (Output Section Address): Correct subsection name.
1162 2004-05-17 Adam Nemet <anemet@lnxw.com>
1164 * configure.tgt (powerpc-*-lynxos* case): New case.
1165 * configure.host (i[3-7]86-*-lynxos* case): Remove case.
1166 * emulparams/ppclynx.sh: New file.
1167 * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
1168 * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
1169 (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
1170 (eppclynx.c): New rule.
1171 * Makefile.in: Regenerate.
1173 2004-05-13 Joel Sherrill <joel@oarcorp.com>
1175 * configure.tgt (or32-*-rtems*): Switch to elf and
1176 support versioned targets.
1178 2004-05-13 Nick Clifton <nickc@redhat.com>
1180 * po/fr.po: Updated French translation.
1182 2004-05-11 Jakub Jelinek <jakub@redhat.com>
1184 * genscripts.sh: Generate -z combreloc -z now -z relro scripts
1185 for binaries, -shared and -pie.
1186 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
1187 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
1188 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
1189 (OTHER_RELRO_SECTIONS): ... this.
1190 * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
1191 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
1192 -z relro and -z norelro.
1193 (gld${EMULATION_NAME}_list_options): Add it to usage.
1194 (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
1195 -z relro scripts when appropriate.
1196 * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
1197 Create separate .got.plt section if SEPARATE_GOTPLT.
1198 Move sections which are only written during relocation handling
1199 to the beginning of RW segment. If NO_SMALL_DATA, move .got
1200 before .data. Add DATA_SEGMENT_RELRO_END directive.
1201 Include OTHER_RELRO_SECTIONS.
1202 * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
1203 * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
1204 (fold_unary): Likewise.
1205 (fold_binary): Handle -z relro.
1206 * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
1207 exp_dataseg_relro_adjust phases. Add relro_end field.
1208 * ldmain.c (main): Initialize link_info.relro to FALSE.
1209 * ldlang.c (lang_size_sections): Handle -z relro.
1211 2004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
1213 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
1215 2004-05-07 J"orn Rennecke <joern.rennecke@superh.com>
1217 * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
1218 before printing it with %W.
1220 2004-05-07 Brian Ford <ford@vss.fsi.com>
1221 DJ Delorie <dj@redhat.com>
1223 * emultempl/pe.em (real_flags): New static.
1224 (OPTION_LARGE_ADDRESS_AWARE): New define.
1225 (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
1226 (gld_${EMULATION_NAME}_list_options): Likewise.
1227 (gld${EMULATION_NAME}_handle_option): Likewise.
1228 (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
1229 * ld.texinfo: Document it.
1232 2004-05-07 Brian Ford <ford@vss.fsi.com>
1234 * NEWS: Mention DWARF 2 support for i386pe.
1236 2004-05-05 Alexandre Oliva <aoliva@redhat.com>
1238 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
1241 2004-04-30 Alan Modra <amodra@bigpond.net.au>
1243 * ldlang.c (unique_section_p): Pass section parm, return true on
1245 (output_section_callback): Adjust.
1246 * ldlang.h (unique_section_p): Update prototype.
1247 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
1249 2004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
1251 * ld.texinfo (--gc-sections): Remove restriction for
1254 2004-04-29 Brian Ford <ford@vss.fsi.com>
1256 * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
1257 for DWARF 2/3. Update stab section's syntax.
1259 2004-04-29 Alan Modra <amodra@bigpond.net.au>
1261 * pe-dll.c: Revert changes accidentally committed 2004-03-08.
1262 (fill_edata): Correct pointer arithmetic.
1264 2004-04-21 Chris Demetriou <cgd@broadcom.com>
1266 * ld.texinfo: Remove MIPS --embedded-relocs documentation.
1267 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
1268 * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
1269 (EXTRA_EM_FILE): Use mipsecoff.em
1270 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
1271 (EXTRA_EM_FILE): Use mipsecoff.em
1272 * emultempl/mipsecoff.em: Restructure to be included as an
1273 extra emulation file.
1274 (check_sections, gld${EMULATION_NAME}_after_open)
1275 (gld${EMULATION_NAME}_after_allocation)
1276 (gld${EMULATION_NAME}_get_script)
1277 (ld_${EMULATION_NAME}_emulation): Remove
1278 (gld${EMULATION_NAME}_before_parse): Rename to...
1279 (mipsecoff_before_parse): This.
1280 (LDEMUL_BEFORE_PARSE): Define.
1281 * emultempl/mipself.em: Remove file.
1282 * scripttempl/mips.sc (.rel.sdata): Do not include in output.
1283 (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
1285 * Makefile.am: Remove dependencies on emultempl/mipself.em.
1286 * Makefile.in: Regenerate.
1288 2004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
1290 * ld.texinfo (synthesizing on H8/300): Information about linker
1291 relaxation support for bit manipulation instructions and system
1292 control instructions is added.
1294 2004-04-21 Hans-Peter Nilsson <hp@axis.com>
1296 * NEWS: Mention change in DEFINED semantics.
1298 2004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
1300 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
1301 (.data): Add KEEP for .gnu.linkonce.d.*personality*.
1302 (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
1304 2004-04-21 Ben Elliston <bje@au.ibm.com>
1306 * ld.texinfo (Simple Example): Add missing punctuation.
1308 2004-04-20 Chris Demetriou <cgd@broadcom.com>
1310 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
1312 2004-04-19 Jakub Jelinek <jakub@redhat.com>
1314 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
1317 2004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
1319 * scriptempl/pe.sc: Put numbered .ctors.* after .ctors
1320 with default priority. Likewise for dtors.
1322 2004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1324 * configure.host: Remove mips*-dec-bsd* target.
1325 * configure.tgt: Likewise.
1327 2004-04-08 Richard Sandiford <rsandifo@redhat.com>
1329 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
1330 * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
1331 * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
1332 * emultempl/irix.em: New file.
1333 * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
1335 * Makefile.in: Regenerate.
1337 2004-04-01 Paul Brook <paul@codesourcery.com>
1339 * emultempl/armelf.em (byteswap_code): Add.
1340 (arm_elf_before_allocation): Pass extra parameter.
1341 (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
1342 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
1343 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
1344 * emultempl/armelf_oabi.em: Pass extra parameter.
1345 * ld.texinfo: Document --be8.
1347 2004-03-30 Stan Shebs <shebs@apple.com>
1349 Remove long-obsolete MPW support.
1350 * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
1351 * Makefile.am (mpw): Remove file-presynthesizing actions.
1352 * Makefile.in: Likewise.
1353 * ldfile.c (slash): Remove MPW case.
1354 * ldlex.l [MPW]: Remove unused definition.
1356 2004-03-30 Galit Heller <Galit.Heller@nsc.com>
1358 * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
1359 (eelf32cr16c.c): New target.
1360 * Makefile.in: Regenerate.
1361 * configure.tgt: Handle cr16c-*-elf*.
1362 * emulparams/elf32cr16c.sh: New file.
1363 * scripttempl/elfcr16c.sc: Likewise
1364 * NEWS: Mention support for new target.
1366 2004-03-30 Nick Clifton <nickc@redhat.com>
1368 * po/sv.po: Updated Swedish translation.
1370 2004-03-27 Alan Modra <amodra@bigpond.net.au>
1372 * emultempl/elf32.em: Update new bfd_elf_discard_info name.
1373 * emultempl/hppaelf.em: Likewise.
1374 * emultempl/ppc64elf.em: Likewise.
1375 * emultempl/sh64elf.em: Likewise.
1377 2004-03-25 Alan Modra <amodra@bigpond.net.au>
1379 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
1380 size_dynamic_sections call.
1382 2004-03-23 Alan Modra <amodra@bigpond.net.au>
1385 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
1386 link_info.wrap_char.
1388 2004-03-20 H.J. Lu <hongjiu.lu@intel.com>
1390 * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
1391 or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
1393 2004-03-20 Alexandre Oliva <aoliva@redhat.com>
1395 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
1397 2004-03-19 Alan Modra <amodra@bigpond.net.au>
1399 * config.in: Regenerate.
1400 * po/ld.pot: Regenerate.
1402 2004-03-18 Alan Modra <amodra@bigpond.net.au>
1404 * ld.texinfo: Add --as-needed doco.
1405 * ldmain.c (as_needed): New global var.
1406 * ldmain.h (as_needed): Declare.
1407 * lexsup.c (option_values): Add OPTION_AS_NEEDED and
1408 OPTION_NO_AS_NEEDED.
1409 (ld_options): Likewise.
1410 (parse_args): Handle them.
1411 * ldlang.h (lang_input_statement_type): Add as_needed field.
1412 * ldlang.c (new_afile): Set p->as_needed.
1413 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
1414 (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
1415 (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
1417 * ldlang.c (open_input_bfds): Remove useless cast.
1418 (lang_do_assignments_1): Likewise.
1419 (lang_for_each_input_section): Delete.
1421 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1423 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
1425 2004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
1427 * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
1428 private when building implib.
1430 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
1432 * ldlang.c (lang_add_section): Don't force SEC_LOAD on
1434 (IGNORE_SECTION): Ignore .tbss sections too.
1435 (lang_size_sections_1): .tbss sections do not advance dot.
1437 2004-03-01 Andreas Schwab <schwab@suse.de>
1439 * ld.texinfo (Options): Fix example for --wrap.
1441 2004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
1443 * pe-dll.c (fill_edata): Check that exported_symbol_sections is
1446 2004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
1448 * ldlang.c (lang_check): Use %P, not %E, in error message.
1450 2004-02-23 Nathan Sidwell <nathan@codesourcery.com>
1452 * ldlang.h (struct lang_output_section_state): Change processed
1454 * ldexp.c (check, invalid): Remove.
1455 (fold_name): Move valid_p assignments. Create undefined symbol
1456 when needed. Directly exampine section's processd flag.
1457 * ldlang.c (lang_output_section_statement_lookup): Adjust
1458 processed field init.
1459 (lang_size_sections_1): Allow LOADADDR when determining section's
1460 VMA. Adjust error message. Fold data statement's expr.
1461 (lang_size_sections): Correctly increment lang_statement_iteration.
1463 2004-02-23 Alan Modra <amodra@bigpond.net.au>
1465 * ldexp.c (fold_tree): Follow indirect symbols.
1467 2004-02-20 Nathan Sidwell <nathan@codesourcery.com>
1469 * ldgram.y (exp): Add two operand ALIGN.
1470 * ldexp.c (fold_binary): Add ALIGN_K case.
1471 * ld.texinfo (ALIGN): Document two operand version.
1473 2004-02-19 Nathan Sidwell <nathan@codesourcery.com>
1475 * ldlang.c (map_input_to_output_sections): Initialize sections
1476 mentioned in a data statement expression.
1477 (lang_do_assignments_1): Add data statement's expression's
1480 2004-02-18 Nathan Sidwell <nathan@codesourcery.com>
1482 * ldgram.y (statement_anywhere): Add assert rule.
1483 * ldlang.c (exp_init_os): Add assert case.
1485 2004-02-14 Andrew Cagney <cagney@redhat.com>
1487 * ldmain.c (remove_output): Call bfd_cache_close.
1489 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
1491 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
1492 .MIPS.content* and .MIPS.events* sections.
1494 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
1496 * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
1497 .note.gnu.arm.ident to after allocated sections. Mark its
1500 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
1502 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
1503 * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
1504 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
1505 * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
1506 * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
1508 2004-02-05 Nick Clifton <nickc@redhat.com>
1510 * emultempl/pe.em (_after_open): Fix typo in previous delta.
1512 2004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
1514 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
1516 2004-01-28 Alan Modra <amodra@bigpond.net.au>
1518 * genscripts.sh: Fix typo.
1520 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
1522 2004-01-24 Jakub Jelinek <jakub@redhat.com>
1524 * emulparams/elf64_ia64.sh: Put .rela.opd into
1525 OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
1527 2004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
1529 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
1530 * ld.texinfo (--omagic): Note that writable text section
1531 does not conform to published PE-COFF specs.
1532 (--enable-auto-import): Likewise.
1534 2004-01-15 Alan Modra <amodra@bigpond.net.au>
1536 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
1538 2004-01-13 Nick Clifton <nickc@redhat.com>
1540 * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
1541 which if true will prevent the LMA region being used as a
1542 replacement for a default VMA region.
1543 (lang_leave_output_section_statement): Pass extra parameter.
1544 (lang_leave_overlay): Likewise.
1545 * ld.texinfo (Output Section LMA): Document that the LMA
1546 region can be set to the VMA region if no VMA has been set.
1547 * ldlang.h (struct lang_output_section_phdr_list): Create a
1548 typedef for this type. Minor formatting fixes.
1550 2004-01-13 Nick Clifton <nickc@redhat.com>
1552 * ldlang.c (lang_size_sections_1): If dot is advanced, then
1553 assume that the section should be allocated.
1555 2004-01-13 Alan Modra <amodra@bigpond.net.au>
1557 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
1558 sections. Do ignore SEC_NEVER_LOAD sections.
1559 (lang_size_sections_1): Remove test made redundant with the above.
1561 2004-01-09 Alan Modra <amodra@bigpond.net.au>
1563 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
1564 program_header_size.
1566 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
1568 2003-11-28 Alexandre Oliva <aoliva@redhat.com>
1569 * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
1570 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
1571 * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
1572 (MAXPAGESIZE): Set to 64Kb.
1573 (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
1574 __ROFIXUP_END__. Don't map .rofixup.got any more.
1575 * emulparams/elf32frv.sh (NOP): Set.
1576 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
1577 * configure.tgt: Add frv-*-*linux*.
1578 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
1579 * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
1580 (eelf32frvfd.c): New.
1581 * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
1582 * emulparams/elf32frv.sh: Reverted previous two patches.
1583 * emulparams/elf32frvfd.sh: New.
1584 * Makefile.in: Rebuilt.
1585 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
1586 * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
1587 .rofixup.got to .rofixup.
1588 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
1589 * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
1590 (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
1592 2004-01-05 Jakub Jelinek <jakub@redhat.com>
1594 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
1595 * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
1597 2004-01-03 Alan Modra <amodra@bigpond.net.au>
1599 * ldexp.c (align_n): Make static.
1600 * ldexp.h (align_n): Delete declaration.
1601 * ldlang.h (lang_enter_output_section_statement): Remove
1603 * ldlang.c (lang_enter_output_section_statement): Likewise.
1604 (TO_ADDR, TO_SIZE): Define.
1605 (opb_shift): New var.
1606 (init_opb): New function.
1607 (print_input_section): Call init_opb and use TO_ADDR.
1608 (print_data_statement, print_reloc_statement): Likewise.
1609 (print_padding_statement): Likewise.
1610 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
1611 (lang_check_section_addresses): Likewise.
1612 (lang_size_sections_1): Likewise.
1613 (lang_do_assignments_1): Likewise.
1614 (lang_set_startof): Likewise.
1615 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
1616 (lang_process): Call init_opb.
1617 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
1618 (lang_enter_overlay_section): Adjust
1619 lang_enter_output_section_statement call.
1620 * ldgram.y: Likewise.
1621 * mri.c (mri_draw_tree): Likewise.
1622 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1623 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1624 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1626 * ldfile.c (ldfile_set_output_arch): Add defarch param.
1627 * ldfile.h (ldfile_set_output_arch): Ditto.
1628 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
1629 ldfile_set_output_arch.
1630 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1631 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
1632 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
1633 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1634 * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
1635 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1636 * ldgram.y: Adjust ldfile_set_output_arch call.
1637 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1638 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
1639 * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
1640 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
1641 * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
1642 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1643 * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1645 2004-01-02 Bernardo Innocenti <bernie@develer.com>
1647 * configure.tgt: Add m68k-uClinux target.
1649 For older changes see ChangeLog-0203
1655 version-control: never