1 2005-01-31 Andrew Cagney <cagney@gnu.org>
3 * configure: Regenerate to track ../gettext.m4.
5 2005-01-31 Nick Clifton <nickc@redhat.com>
7 * ldver.c (ldversion): Bump reported copyright date to 2005.
9 2005-01-31 Nick Clifton <nickc@redhat.com>
11 * configure.tgt: Remove obsolete targets m68k-lynxos and
14 2005-01-28 Julian Brown <julian@codesourcery.com>
16 * emultempl/armelf.em (fix_v4bx): New variable.
17 (arm_elf_create_output_section_statements): Communicate fix_v4bx flag
19 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_FIX_V4BX.
20 (PARSE_AND_LIST_LONGOPTS): Add option --fix-v4bx.
21 (PARSE_AND_LIST_OPTIONS): Add option --fix-v4bx.
22 (PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX.
23 * NEWS: Mention --fix-v4bx.
24 * ld.texinfo: Document --fix-v4bx.
26 2005-01-25 Mark Mitchell <mark@codesourcery.com>
28 * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Define, so
29 as to include .ARM.exidx$${Base,Limit}.
30 * ld/scripttempl/armbpabi.sc: Move .plt to end of text segment.
31 Define IMAGE$$ER_RO$${Base,Limit} and SHT$$INIT_ARRAY$${Base,Limit}.
32 Put .init_array, .fini_array, etc. into the read-only data
35 2005-01-25 Alan Modra <amodra@bigpond.net.au>
37 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Formatting.
38 (gld${EMULATION_NAME}_after_open): Ignore needed libs if they were
39 only needed by an as-needed lib that didn't get linked.
41 2005-01-23 Alan Modra <amodra@bigpond.net.au>
43 * ld.texinfo (Output Section Keywords <CONSTRUCTORS>): Correct
44 __DTOR_LIST__ description.
46 2005-01-23 Alan Modra <amodra@bigpond.net.au>
48 * ld.texinfo (Location Counter <dot outside sections>): Document
49 effects of orphan section placement, and ". = ." workaround.
50 * Makefile.in: Regenerate.
52 2005-01-22 Richard Sandiford <rsandifo@redhat.com>
54 * emulparams/elf32bmip.sh (OTHER_GOT_SECTIONS): Add ". = .;".
55 * emulparams/elf32bmipn32-defs.sh (OTHER_GOT_SECTIONS): Likewise.
57 2005-01-21 Jakub Jelinek <jakub@redhat.com>
59 * ldgram.y (AS_NEEDED): New token.
60 (input_list): Handle AS_NEEDED ( input_list ).
61 * ldlex.l (AS_NEEDED): Add.
62 * ld.texinfo: Document AS_NEEDED ().
63 * NEWS: Mention AS_NEEDED ().
65 2005-01-21 Ben Elliston <bje@au.ibm.com>
67 * ldlang.c (lang_reasonable_defaults): Remove.
68 (lang_process): Don't call lang_reasonable_defaults.
70 * ldexp.c (exp_assop): Remove #if 0'd code.
71 (exp_print_tree): Likewise.
72 * ldlang.c (lang_memory_region_lookup): Likewise.
73 (open_output): Likewise.
74 (lang_do_assignments_1): Likewise.
75 (lang_place_orphans): Likewise.
76 (lang_enter_output_section_statement): Likewise.
77 (lang_reasonable_defaults): Likewise.
78 * ldlang.h (struct lang_input_statement_struct): Likewise.
79 * mri.c (mri_draw_tree): Likewise.
81 * pe-dll.c (generate_reloc): Likewise.
82 (make_import_fixup_entry): Likewise.
84 * emultempl/beos.em (set_pe_subsystem): Likewise.
85 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
86 * emultempl/pe.em: Likewise.
87 * emultempl/xtensaelf.em (xtensa_colocate_literals): Likewise.
89 2005-01-20 Daniel Jacobowitz <dan@codesourcery.com>
91 * Makefile.am (ALL_EMULATIONS): Add earmelfb_linux_eabi.o.
92 (earmelfb_linux_eabi.c): New target.
93 * Makefile.in: Regenerated.
94 * configure.tgt (arm*b-*-linux-gnueabi): New target.
95 * emulparams/armelfb_linux_eabi.sh: New file.
97 2005-01-20 Nick Hudson <skrll@netbsd.org>
100 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
101 Handle bfd_elf32_hppa_nbsd_vec.
103 2005-01-19 Richard Sandiford <rsandifo@redhat.com>
105 * ldmain.h (ld_sysroot): Change type to a constant string.
106 * ldmain.c (ld_sysroot): Likewise.
107 (get_relative_sysroot, get_sysroot): New functions, adding command-line
108 support for changing the sysroot.
109 (main): Call the new functions.
110 * lexsup.c (OPTION_SYSROOT): New.
111 (ld_options): Add --sysroot.
112 (parse_args): Add a dummy handler for it.
113 * ld.texinfo (--sysroot): Document.
114 * NEWS: Mention the new --sysroot option.
116 2005-01-18 Alan Modra <amodra@bigpond.net.au>
118 * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
119 (lang_place_orphans): Don't abort on just_syms_flag, instead call
122 2005-01-16 Danny Smith <dannysmith@users.sourceforge.net>
124 * defilep.y (def_name, def_library): Combine into...
125 (def_image_name): New function. Strip name to basename,
128 2005-01-12 Mark Kettenis <kettenis@gnu.org>
130 * configure.in: Be sure to invoke config.sub using the shell.
131 * configure: Regenerate.
133 2005-01-11 Alan Modra <amodra@bigpond.net.au>
135 * configure.host: Correct sed patterns for last change.
137 2005-01-10 Nick Clifton <nickc@redhat.com>
140 * ldmisc.c (vfinfo): Add an extra argument: is_warning. Use this
141 to determine whether config.make_executable should be set to FALSE in
142 conjunction with config.fatal_warnings.
143 (info_msg, minfo, lfinof): Pass FALSE as the extra argument.
144 (einfo): Pass TRUE as the extra argument.
146 2005-01-10 Greg Schaffer <gschafer@zip.com.au>
148 * configure.host (linux targets): Use "${CC} -dumpspecs" instead
149 of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0.
150 (ia64-*-aix): Delete - this target is obsolete, and would be
151 broken by this patch.
153 2005-01-06 Eric Botcazou <ebotcazou@libertysurf.fr>
155 * configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*.
156 (sparc64-sun-solaris2*): New host.
158 2005-01-06 Paul Brook <paul@codesourcery.com>
160 * Makefie.am: Add earmelf_vxworks.
161 * Makefile.in: Regenerate.
162 * configure.tgt: Make arm-*-vxworks a separate case.
163 * emulparams/armelf_vxworks.sh: New function.
165 2005-01-06 Alan Modra <amodra@bigpond.net.au>
167 * emultempl/ppc64elf.em (no_multi_toc): New var.
168 (gld${EMULATION_NAME}_finish): Pass to ppc64_elf_setup_section_lists.
169 (OPTION_NO_MULTI_TOC): Define.
170 (PARSE_AND_LIST_LONGOPTS): Add --no-multi-toc support.
171 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
173 2005-01-05 Nick Clifton <nickc@redhat.com>
176 * ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
177 Standard's specification for parsable error messages.
179 2005-01-04 Paul Brook <paul@codesourcery.com>
181 * Makefile.am: Correct dependency for earmsymbian.c.
182 * Makefile.in: Regenerate.
184 2004-12-28 Danny Smith <dannysmith@users.sourceforge.net>
186 * emultempl/pe.em (set_pe_subsystem): Change second arg to
187 lang_add_entry to FALSE.
189 2004-12-23 Nick Clifton <nickc@redhat.com>
192 * emulparams/shelf.sh (.stack): Increase stack start address to
195 2004-12-20 Nick Clifton <nickc@redhat.com>
197 * ldmain.c (main): Issue an error message if -static and -shared
200 2004-12-17 Jakub Jelinek <jakub@redhat.com>
202 * ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
203 * ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
204 * ldlang.c (lang_size_sections): Use them to avoid wasting virtual
205 address space at DATA_SEGMENT_ALIGN. Fix computation of expected
206 PT_GNU_RELRO segment end.
208 2004-12-14 P.J. Darcy <darcypj@us.ibm.com>
210 * configure.tgt: Add s390x-ibm-tpf support.
212 2004-12-16 Martin Kögler <mkoegler@auto.tuwien.ac.at>
214 * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
217 2004-12-07 Ben Elliston <bje@gnu.org>
219 * ldemul.h: Forward declare struct option.
221 2004-12-01 Danny Smith <dannysmith@users.sourceforge.net>
223 * scripttempl/pe.sc (.data): Add .jcr subsection.
225 2004-11-30 Paul Brook <paul@codesourcery.com>
227 * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
229 2004-11-30 Tero Niemela <tero_niemela@yahoo.com>
231 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
232 * Makefile.in: Regenerate.
234 2004-11-26 Melissa Mears <asterisk@graces.dricas.com>
236 * emultempl/pe.em: Add --subsystem:xbox as well as
238 * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
239 and numeric subsystems.
241 2004-11-24 Alan Modra <amodra@bigpond.net.au>
243 * ldexp.c (fold_name): Correct PR 338 fix.
245 2004-11-19 Mark Mitchell <mark@codesourcery.com>
247 * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
248 (earmelf_linux_eabi.c): New target.
249 * configure.tgt (arm*-*-linux-gnueabi): Handle it.
250 * emulparams/armelf_linux_eabi.sh: New file.
251 * Makefile.in: Regenerated.
253 2004-11-19 Nick Clifton <nickc@redhat.com>
256 * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
257 LENGTH fields in the MEMORY command, to explicitly state that
258 symbols cannot be used in their expressions.
260 2004-11-19 Jon Beniston <jon@beniston.com>
262 * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
263 * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
264 * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
265 which return the length and origin of a memory.
266 * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
267 * NEWS: Mention support for ORIGIN and LENGTH operators.
269 2004-11-17 Daniel Jacobowitz <dan@codesourcery.com>
271 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
272 a dynamic object for stubs.
274 2004-11-04 Paul Brook <paul@codesourcery.com>
276 * ld.texinfo: Document --default-imported-symver.
277 * ldmain.c (main): Set link_info.default_imported_symver.
278 * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
279 (ld_options): Add --default-imported-symver.
280 (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
282 2004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
283 Vineet Sharma <vineets@noida.hcltech.com>
285 * Makefile.am: Add entries for new maxq-coff target.
286 * Makefile.in: Regenerate.
287 * configure.tgt: Add support for maxq.
288 * emulparams/maxqcoff.sh: New File.
289 * scripttempl/maxqcoff.sc: New linker script for target maxq.
290 * NEWS: Mention the new target.
292 2004-11-08 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
294 * testsuite/ld-scripts/weak.exp: Enable test on PE,
296 * testsuite/ld-undefined/weak-undef.exp: Enable test on PE,
298 * testsuite/lib/ld-lib.exp (is_pecoff_format): New.
300 2004-11-04 Daniel Jacobowitz <dan@debian.org>
302 * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
303 (earmelf_oabi.c): Remove rule.
304 * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
305 * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
306 * Makefile.in: Regenerated.
308 2004-11-04 Hans-Peter Nilsson <hp@axis.com>
310 * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
311 * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
313 (INIT_END): Remove emitted "jump [sp+]".
316 2004-11-04 Alan Modra <amodra@bigpond.net.au>
318 * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
319 (no_opd_opt, no_toc_opt): New static vars.
320 (ppc_before_allocation): Don't edit opt if no_opd_opt. Call
322 (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
323 (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
324 (PARSE_AND_LIST_OPTIONS): Describe new options.
325 (PARSE_AND_LIST_ARGS_CASES): Handle them.
327 2004-10-27 Nick Clifton <nickc@redhat.com>
329 * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
330 parameter to invocation of lang_section_start.
331 * emultempl/aix.em (_handle_option): Likewise.
333 * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
334 eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
335 * Makefile.in: Regenerate.
337 2004-10-26 Mark Mitchell <mark@codesourcery.com>
339 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
340 __exidx_{start,end} when not relocating.
342 2004-10-25 Mark Mitchell <mark@codesourcery.com>
344 * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
345 * ldexp.h (segment_type): New type.
346 (segments): New variable.
347 * ldexp.c (segments): New variable.
348 (exp_print_token): Handle SEGMENT_START.
349 (fold_binary): Likewise.
350 * ldgram.y (SEGMENT_START): Declare it as a token.
351 (exp): Handle SEGMENT_START.
352 * ldlang.h (lang_address_statement_type): Add segment field.
353 (lang_section_start): Change prototype.
354 * ldlang.c (map_input_to_output_sections): Do not process section
355 assignments if a corresponding SEGMENT_START has already been
357 (lang_section_start): Add segment parameter.
358 * ldlex.l (SEGMENT_START): Add it.
359 * lexsup.c (seg_segment_start): New function.
360 (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
361 * ld.texinfo (SEGMENT_START): Document it.
362 * emulparams/armsymbian.sh (EMBEDDED): Set it.
363 * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
364 base addresses. Do not map relocations.
365 * NEWS: Mention SEGMENT_START.
367 2004-10-26 Paul Brook <paul@codesourcery.com>
369 * ld.texinfo: Document --default-symver.
370 * ldmain.c (main): Set link_info.create_default_symver.
371 * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
372 (ld_options): Add default-symver.
373 (parse_args): Handle OPTION_DEFAULT_SYMVER.
375 2004-10-24 Danny Smith <dannysmith@users.sourceforge.net>
377 * pe-dll.c (process_def_file): Don't export all symbols by default if
378 building a position-independent executable.
380 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
383 * ldmain.c (reloc_overflow): Accept a pointer to struct
384 bfd_link_hash_entry. Report symbol location for relocation
387 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
389 * genscripts.sh (libpath.exp): Really generate for first
392 2004-10-19 Danny Smith <dannysmith@users.sourceforge.net>
394 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
395 comparison and replacement of filenames.
397 2004-10-19 H.J. Lu <hongjiu.lu@intel.com>
400 * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
401 option on linker script as the one for linker script.
403 2004-10-16 Daniel Jacobowitz <dan@debian.org>
405 * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
406 (check_excluded_libs): New.
407 (load_symbols): Call check_excluded_libs.
408 * ldlang.h (add_excluded_libs): New prototype.
409 * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
410 (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
411 (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
412 * ld.texinfo (Command Line Variables): Document --exclude-libs.
413 (Options Specific to i386 PE Targets): Remove --exclude-libs.
415 2004-10-15 Alan Modra <amodra@bigpond.net.au>
417 * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
418 failing link script assert.
420 * ldctor.c (ldctor_add_set_entry): Fix comment typo.
422 2004-10-14 H.J. Lu <hongjiu.lu@intel.com>
425 * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
426 (SMALL_DATA_DTOR): Set.
427 * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
428 (SMALL_DATA_DTOR): Unset.
429 * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
430 after .data. If SMALL_DATA_DTOR is set, move .dtors after
433 2004-10-14 Alan Modra <amodra@bigpond.net.au>
436 * ldlang.h (lang_output_section_statement_type): Make "next" a
437 struct lang_output_section_statement_struct *.
438 (struct orphan_save): Move from elf32.em. Add "name" and "flags".
439 (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
440 * ldlang.c (lang_output_section_find_1): Adjust for changed
441 output_section_statement "next".
442 (strip_excluded_output_sections): Likewise.
443 (lang_record_phdrs): Likewise.
444 (lang_output_section_find_by_flags): New function.
445 (output_prev_sec_find): Move from pe.em. Adjust iterator.
446 (lang_insert_orphan): New function. Tail end of elf32.em's
447 place_orphan merged with that from pe.em. Allow bfd_section to
448 be placed first. New heuristic for placing new output section
449 statement in existing script, and accompanying split of __start
450 symbol alignment into a separate assignment to dot.
451 (lang_add_section): Consistently use output->bfd_section rather than
452 an alias, section->output_section.
453 (map_input_to_output_sections): Rename overly long arg. Move
454 initialization of data_statement output section to here..
455 (lang_check_section_addresses): ..from here.
456 (print_assignment): Correct printing of etree_assert.
457 (print_all_symbols): Don't bomb if userdata is NULL.
458 (IGNORE_SECTION): Rearrange.
459 * emultempl/elf32.em (output_rel_find): Adjust interator.
460 (output_prev_sec_find): Delete.
461 (struct orphan_save): Delete.
462 (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
463 flags without creating a duplicate output section statement.
464 Revise code holding history of various orphan section placements.
465 Allow orphan sections to place before script specified output
466 sections. Call lang_output_section_find_by_flags when placement
467 by name fails. Use lang_insert_orphan.
468 * emultempl/mmo.em (output_prev_sec_find): Delete.
469 (struct orphan_save): Delete.
470 (mmo_place_orphan): Revise code holding history of orphan placement.
471 Allow orphans to place before existing output sections. Use
473 * emultempl/pe.em (output_prev_sec_find): Delete.
474 (struct orphan_save): Delete.
475 (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
478 2004-10-13 Mark Mitchell <mark@codesourcery.com>
480 * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
483 2004-10-13 Alan Modra <amodra@bigpond.net.au>
486 * ldcref.c (check_section_sym_xref): Delete.
487 (check_local_sym_xref): New function.
488 (check_nocrossrefs): Adjust call.
489 * emultempl/pe.em (struct orphan_save): Add os_tail.
490 (place_orphan): Backport assorted fixes from elf32.em.
492 2004-10-12 Bob Wilson <bob.wilson@acm.org>
494 * emultempl/xtensaelf.em: Use ISO C90 formatting.
496 2004-10-11 Jakub Jelinek <jakub@redhat.com>
498 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
499 getline for portability.
501 * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
502 (gld${EMULATION_NAME}_parse_ld_so_conf,
503 gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
504 (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
506 2004-10-11 Alan Modra <amodra@bigpond.net.au>
509 * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
510 rejected when linking statically.
512 2004-10-08 Daniel Jacobowitz <dan@debian.org>
514 * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
516 2004-10-07 Bob Wilson <bob.wilson@acm.org>
518 * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
519 assembler-generated longcall sequences. Describe new --size-opt
521 * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
522 * emultempl/xtensaelf.em (remove_section,
523 replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
524 elf_xtensa_after_open): New.
525 (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
526 OPTION_NO_LITERAL_MOVEMENT): Define.
527 (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
528 (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
529 (PARSE_AND_LIST_OPTIONS): Add --size-opt.
530 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
531 OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
532 (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
533 * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
534 * Makefile.am (eelf32xtensa.c): Update dependencies.
535 * Makefile.in: Regenerate.
537 2004-10-07 Jeff Baker <jbaker@qnx.com>
539 * lexsup.c: Handle --warn-shared-textrel option.
540 (ld_options): Restore alpha sorting of options.
541 * ldmain.c (main): Initialise warn_shared_info field to FALSE.
542 * ld.texinfo: Add documentation for --warn-shared-textrel.
543 * NEWS: Added mention of --warn-shared-textrel option.
545 2004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
547 * emultempl/crxelf.em (disable_relaxation): Add.
548 (crxelf_before_allocation): Enable --relax option by default.
549 (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
550 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
551 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
553 2004-10-04 H.J. Lu <hongjiu.lu@intel.com>
555 * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
556 --sort-section name|alignment.
558 * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
559 --sort-section name|alignment.
561 * ld.h (sort_type): New enum.
562 (wildcard_spec): Change the type of `sorted' to sort_type.
564 * ldgram.y (SORT): Removed.
565 (SORT_BY_NAME): Added.
566 (SORT_BY_ALIGNMENT): Added.
567 (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
569 (input_section_spec_no_keep): Updated `sorted'.
570 (statement): Replace SORT with SORT_BY_NAME.
572 * ldlang.c (compare_section): New function to compare 2
573 sections with different sorting schemes.
574 (wild_sort): Updated. Use compare_section.
575 (update_wild_statements): New function.
576 (lang_process): Call update_wild_statements before
577 map_input_to_output_sections.
579 * ldlex.l (SORT_BY_NAME): New.
580 (SORT_BY_ALIGNMENT): New.
581 (SORT): Return SORT_BY_NAME.
583 * ldmain.c (sort_section): New. Defined.
584 (main): Initialize it to none.
586 * lexsup.c (option_values): Add OPTION_SORT_SECTION.
587 (ld_options): Add an entry for OPTION_SORT_SECTION.
588 (parse_args): Handle OPTION_SORT_SECTION.
590 * mri.c (mri_draw_tree): Updated `sorted'.
592 2004-10-04 Jakub Jelinek <jakub@redhat.com>
594 * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
595 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
597 (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
598 and . as second argument.
599 (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
600 * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
601 (fold_binary): Add it here. Insert padding to make relro_end
602 COMMONPAGESIZE bytes aligned. For DATA_SEGMENT_ALIGN in
603 exp_dataseg_relro_adjust phase just use previously computed
605 * ldlang.c (lang_size_sections): Set exp_data_seg.base for
606 relro_adjust here. Call lang_size_sections_1 once more if there
607 was too big padding at DATA_SEGMENT_RELRO_END.
608 * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
610 2004-10-01 Paul Brook <paul@codesourcery.com>
612 * emulparams/armelf.sh: Add unwinding table sections.
614 2004-09-30 Filip Navara <navaraf@reactos.com>
616 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
617 correct base address for position independant executables.
618 * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
621 2004-09-30 Paul Brook <paul@codesourcery.com>
623 * ld.texinfo: Document --target2=abs.
624 * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
626 2004-09-29 Nick Clifton <nickc@redhat.com>
628 * scripttempl/xstormy16.sc: Only perform the assignments to the
629 ROM region when not performing a relocatable link. The ROM region
630 does not start at address 0, but the sections will.
631 * Makefile.am: Fix linker script dependency for the generation of
633 * Makefile.in: Regenerate.
635 2004-09-18 Filip Navara <navaraf@reactos.com>
637 * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
638 emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
639 emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
641 * scripttempl/pe.sc: Make the virtual address and file offset synced if
642 the alignment is lower than the target page size.
644 2004-09-27 Filip Navara <navaraf@reactos.com>
646 * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
647 def_file_parse to handle pe_def_file if NULL and prevent crash with
650 2004-09-27 Alan Modra <amodra@bigpond.net.au>
652 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
653 --emit-stub-syms automatically when --emit-relocs.
655 2004-09-24 Paul Brook <paul@codeosurcery.com>
657 * scripttempl/elf.sc: Keep .preinit_array, .init_array and
658 .fini_array sections.
660 2004-09-19 Andreas Schwab <schwab@suse.de>
662 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
663 base so that relro end is suitably aligned.
665 2004-09-17 Paul Brook <paul@codesourcery.com>
667 * ld.texinfo: Rename arm-specific section. Document --target*
668 * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
669 * emulparams/armelf_linux.sh: Ditto.
670 * emulparams/armelf_nbsd.sh: Ditto.
671 * emultempl/armelf.em: Set default for TARGET2_TYPE.
672 (target2_type): New variable.
673 (arm_elf_before_allocation): Don't pass target1_type.
674 (arm_elf_create_output_section_statements): New function.
675 (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
676 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
677 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
678 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
679 * emultempl/armelf_oabi.em (_before_allocation): Remove extra
680 argument to bfd_elf32_arm_process_before_allocation.
682 2004-09-17 Alan Modra <amodra@bigpond.net.au>
684 * ldexp.c (fold_name): Update u.undef.next refs.
685 * emultempl/pe.em: Likewise.
686 * emultempl/sunos.em: Likewise.
688 2004-09-17 Alan Modra <amodra@bigpond.net.au>
690 * Makefile.am: Run "make dep-am".
691 * Makefile.in: Regenerate.
692 * config.in: Regenerate.
693 * configure: Regenerate.
694 * aclocal.m4: Regenerate.
695 * po/ld.pot: Regenerate.
697 2004-09-16 Tomer Levi <Tomer.Levi@nsc.com>
699 * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
703 2004-09-16 Alan Modra <amodra@bigpond.net.au>
705 * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
706 to bfd_elf32_arm_process_before_allocation call.
708 2004-09-13 Paul Brook <paul@codesourcery.com>
710 * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
711 * emultempl/armelf.em: Use TARGET1_IS_REL. Add --target1-{rel,abs}.
713 2004-09-07 H.J. Lu <hongjiu.lu@intel.com>
715 * configure: Regenerated with autconfig 2.13.
717 2004-09-07 Andreas Schwab <schwab@suse.de>
719 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
720 alignment before adjusting DATA_SEGMENT_RELRO_END.
722 2004-09-06 Mark Mitchell <mark@codesourcery.com>
724 * emulparams/armsymbian.sh: Use armbpabi script.
725 * scripttempl/armbpabi.sc: New script.
727 2004-09-02 Mark Mitchell <mark@codesourcery.com>
729 * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
730 (earmsymbian.c): New target.
731 * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
732 * Makefile.in: Regenerated.
733 * aclocal.m4: Likewise.
734 * configure: Likewise.
735 * emulparams/armsymbian.sh: New file.
737 2004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
739 * scripttempl/elf32crx.sc: Edit file with comments.
740 (.init): Add new section.
742 (.ctor): Control the linkage order.
745 2004-08-27 Nick Clifton <nickc@redhat.com>
747 * emultempl/pe.em (after_open): Do not assume that either bfd is
750 2004-08-26 Alan Modra <amodra@bigpond.net.au>
752 * ldlang.c (lang_init): Don't compare with TRUE.
754 2004-08-25 Dmitry Diky <diwil@spec.ru>
756 * emulparams/msp430all.sh: Fix RAM sizes for all targets.
757 * scripttempl/elf32msp430.sc: Add .profiler section definition.
759 2004-08-24 H.J. Lu <hongjiu.lu@intel.com>
761 * ldlang.c (wildcardp): Defined as a macro with strpbrk.
763 2004-08-19 Mark Mitchell <mark@codesourcery.com>
765 * configure.tgt (arm*-*-symbianelf*): New target.
766 (arm*-*-eabi*): Likewise.
768 2004-08-19 Jakub Jelinek <jakub@redhat.com>
770 * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
771 (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
772 (OPTION_NON_OVERLAPPING_OPD): Define.
773 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
774 --non-overlapping-opd option.
776 2004-08-18 Alan Modra <amodra@bigpond.net.au>
779 * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
780 was already on the undefs list.
782 2004-08-17 Alan Modra <amodra@bigpond.net.au>
784 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
785 prefix the symbol field too.
787 2004-08-13 Alan Modra <amodra@bigpond.net.au>
789 * ldmain.c (link_callbacks): Remove "error_handler".
790 * ldmisc.c: Include elf-bfd.h.
791 (vfinfo): Sort comment. Handle %A. Use %A instead of
792 bfd_get_section_indent.
793 (error_handler): Delete.
794 * ldmisc.h (error_handler): Delete declaration.
796 2004-08-10 Alan Modra <amodra@bigpond.net.au>
798 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
799 ppc64_elf_restore_symbols.
801 2004-08-09 Alan Modra <amodra@bigpond.net.au>
803 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
804 .toc is too large on relocatable linking.
806 2004-08-09 Alan Modra <amodra@bigpond.net.au>
808 * emultempl/ppc64elf.em (ppc_after_open): Delete.
809 (LDEMUL_AFTER_OPEN): Don't define.
811 2004-08-02 Stephane Carrez <stcarrez@nerim.fr>
813 * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
815 2004-08-01 Stephane Carrez <stcarrez@nerim.fr>
817 * scripttempl/elfm68hc12.sc: Align text, rodata and data section
820 2004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
822 * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
824 2004-07-26 Dmitry Diky <diwil@spec.ru>
826 * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
827 msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
829 * configure.tgt: Likewise.
830 * emulparams/msp430all.sh: Likewise.
831 * Makefile.in: Regenerate.
833 2004-07-23 Nick Clifton <nickc@redhat.com>
835 * emultempl/elf32.em (_place_orphan): Use an already existing
836 section name if that section does not have any flags set.
838 2004-07-21 H.J. Lu <hongjiu.lu@intel.com>
840 * ldlang.c (already_linked_hash_entry): Removed.
841 (already_linked): Likewise.
842 (already_linked_table): Likewise.
843 (section_already_linked): Call bfd_section_already_linked.
844 (lang_process): Replace already_linked_table_init with
845 bfd_section_already_linked_table_init and check return. Replace
846 already_linked_table_free with bfd_section_already_linked_table_free.
848 2004-07-21 Nick Clifton <nickc@redhat.com>
850 * ldlang.c (init_os): Make sure that the newly allocated userdata
851 structure is zeroed out.
853 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
855 * NEWS: Mention the new --add-needed/--no-add-needed and
856 --as-needed/--no-as-needed options.
858 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
860 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
861 check the add_needed field.
862 (dt_needed): New struct.
863 (gld${EMULATION_NAME}_try_needed): Change the first argument
864 to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
865 bit in the file where the DT_NEEDED entry comes from.
866 (gld${EMULATION_NAME}_search_needed): Change the second
867 argument to a pointer to struct dt_needed.
868 (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
869 (gld${EMULATION_NAME}_after_open): Likewise.
871 * ld.texinfo: Add --add-needed document.
872 * ldlang.c (new_afile): Set p->add_needed.
873 * ldlang.h (lang_input_statement_type): Add add_needed field.
874 * ldmain.h (add_needed): Declare.
875 * ldmain.c (add_needed): New global var.
876 * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
877 OPTION_NO_ADD_NEEDED.
878 (ld_options): Likewise.
879 (parse_args): Handle them.
881 2004-07-13 Christof Petig <christof@petig-baender.de>
883 * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
884 for endian-ness of extracted addend.
886 2004-07-13 Danny Smith <dannysmith@usesr.sourceforge.net>
888 * pe-dll.c (auto_export): Filter on just the import prefix,
889 "_imp_", not "_imp__".
891 2004-07-09 Nick Clifton <nickc@redhat.com>
893 * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
895 2004-07-06 Tomer Levi <Tomer.Levi@nsc.com>
897 * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
898 (eelf32crx.c): New target.
899 * Makefile.in: Regenerate.
900 * configure.tgt: Handle crx-*-elf*.
901 * emulparams/elf32crx.sh: New file.
902 * emultempl/crxelf.em: New file.
903 * scripttempl/elf32crx.sc: New file.
904 * NEWS: Mention new target.
906 2004-07-06 Nick Clifton <nickc@redhat.com>
908 * Makefile.am: Add eshlsymbian.c.
909 * Makefile.in: Regenerate.
910 * configure.tgt: Add sh*-symbian-elf target.
911 * emulparams/shlsymbian.sh: New file. Configure the
912 sh-symbian-elf linker scripts.
913 * scripttemp/elf32sh-symbian.sc: New file. Linker script
914 template for the sh-symbian-elf target.
916 2004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
918 * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
919 * emulparams/hppalinux.sh: Likewise.
920 * scripttempl/elf.sc: Place .plt just before .got when .plt is in
921 data segment and PLT_BEFORE_GOT is defined.
923 2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
925 * ld.texinfo (WIN32): Document PE weak symbols.
927 2004-07-02 Kaz Kojima <kkojima@rr.iij4u.or.jp>
929 * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
931 2004-07-01 H.J. Lu <hongjiu.lu@intel.com>
933 * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
936 2004-06-29 Alan Modra <amodra@bigpond.net.au>
938 * ldlang.c (lang_reset_memory_regions): Save last relax pass section
941 2004-06-24 Alan Modra <amodra@bigpond.net.au>
943 * ldlang.c (print_output_section_statement): Don't print size before
945 (IGNORE_SECTION): Remove bfd arg. Update all callers.
947 * ldexp.c (fold_name): .. See below.
948 * ldlang.c (section_already_linked, print_output_section_statement,
949 print_input_section, insert_pad, size_input_section,
950 lang_check_section_addresses, lang_size_sections_1,
951 lang_size_sections, lang_do_assignments_1, lang_set_startof,
952 lang_one_common, lang_reset_memory_regions, lang_process,
953 lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
954 * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
955 * pe-dll.c (process_def_file, generate_reloc): ..
956 * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
957 gld${EMULATION_NAME}_before_allocation): ..
958 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
959 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
960 sh64_elf_${EMULATION_NAME}_after_allocation): ..
961 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
962 * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
963 ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
964 "size" instead of "_raw_size" and "_cooked_size". Expand
965 bfd_section_size macro invocations.
967 2004-06-22 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
969 * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
970 ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
971 ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
973 (.tls): Define ___tls_start__ and ___tls_end__.
975 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
977 * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
979 2004-06-18 Adam Nemet <anemet@lnxw.com>
981 * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
982 * configure: Regenerate.
984 2004-06-15 Jakub Jelinek <jakub@redhat.com>
986 * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
987 .gcc_except_table output sections lost accidentally with
990 2004-06-15 Alan Modra <amodra@bigpond.net.au>
992 * ldwrite.c (build_link_order): Use bfd_get_section_size
993 instead of bfd_get_section_size_before_reloc or _raw_size.
994 * pe-dll.c (process_def_file): Likewise.
996 2004-06-14 Alan Modra <amodra@bigpond.net.au>
998 From Richard Wirth <r.wirth@wirthware.de>
999 * ldlang.c (lang_finish): Don't free lang_definedness_table.
1001 2004-05-29 Alan Modra <amodra@bigpond.net.au>
1003 * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
1004 (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
1006 2004-05-28 Andrew Stubbs <andrew.stubbs@superh.com>
1008 * testsuite/ld-sh/arch/arch.exp: New test script.
1009 * testsuite/ld-sh/arch/arch_expected.txt: New file.
1010 * testsuite/ld-sh/arch/sh.s: New file.
1011 * testsuite/ld-sh/arch/sh2.s: New file.
1012 * testsuite/ld-sh/arch/sh-dsp.s: New file.
1013 * testsuite/ld-sh/arch/sh2e.s: New file.
1014 * testsuite/ld-sh/arch/sh3-nommu.s: New file.
1015 * testsuite/ld-sh/arch/sh3.s: New file.
1016 * testsuite/ld-sh/arch/sh3-dsp.s: New file.
1017 * testsuite/ld-sh/arch/sh3e.s: New file.
1018 * testsuite/ld-sh/arch/sh4-nommu-nofpu.s: New file.
1019 * testsuite/ld-sh/arch/sh4-nofpu.s: New file.
1020 * testsuite/ld-sh/arch/sh4.s: New file.
1021 * testsuite/ld-sh/arch/sh4a-nofpu.s: New file.
1022 * testsuite/ld-sh/arch/sh4al-dsp.s: New file.
1023 * testsuite/ld-sh/arch/sh4a.s: New file.
1025 2004-05-28 Alan Modra <amodra@bigpond.net.au>
1027 * ldlang.c: Formatting. Wrap long lines, expand bfd_get_section_flags
1029 * lexsup.c: Formatting. Wrap long lines.
1030 * ldwrite.c: Update copyright date.
1032 * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
1033 (output_section_callback): Nor SEC_KEEP here.
1034 (gc_section_callback): Twiddle SEC_EXCLUDE here.
1035 (lang_gc_wild): Delete. Fold into..
1036 (lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage
1038 (lang_process): Always call lang_gc_sections.
1039 (lang_place_orphans): Handle SEC_EXCLUDE sections.
1040 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
1043 2004-05-26 H.J. Lu <hongjiu.lu@intel.com>
1045 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
1046 SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
1047 * ldlang.c (lang_add_section): Likewise.
1049 2004-05-26 Alan Modra <amodra@bigpond.net.au>
1051 * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
1052 sections when doing a final link. Clear SEC_EXCLUDE when doing
1053 a relocable link, except for SEC_DEBUGGING sections.
1054 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
1055 same condition here to drop SEC_EXCLUDE orphan sections.
1057 2004-05-25 Alan Modra <amodra@bigpond.net.au>
1059 * ldlang.c (lang_process): Call bfd_merge_sections later, and
1060 only when not a relocatable link.
1061 (print_input_section): Handle SEC_EXCLUDE sections.
1062 (size_input_section): Don't update dot on SEC_EXCLUDE sections.
1063 (lang_do_assignments_1): Likewise.
1064 * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
1065 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
1066 * emultempl/hppaelf.em (build_section_lists): Likewise.
1067 * emultempl/ppc64elf.em (build_toc_list): Likewise.
1068 (build_section_lists): Likewise.
1070 2004-05-23 Andreas Schwab <schwab@suse.de>
1072 * ld.texinfo (Options): Fix typo in last change.
1074 2004-05-21 Andy Chittenden <achittenden@bluearc.com>
1076 * ld.h (ld_config_type): Add new field: hash_table_size.
1077 * ldmain.c: Initialise the new field to zero. If it is non-zero
1078 after parsing the linker's command line call
1079 bfd_hash_set_default_size.
1080 * lexsup.c (option_values): Add OPTION_HASH_SIZE.
1081 (ld_options): Add hash-size.
1082 (parse_args): Parse --hash-size option. Allow
1083 --reduce-memory-overheads to set the default hash table size as
1085 * ld.texinfo: Document the new switch. Also mention that
1086 --reduce-memory-overheads can affect the hash table size.
1087 * NEWS: Mention the new feature.
1089 2004-05-19 J"orn Rennecke <joern.rennecke@superh.com>
1091 * NEWS: Mention new linker map file generation and the
1092 --reduce-memory-overheads option.
1093 * ld.texinfo: Document --reduce-memory-overheads option.
1094 * ld.h (map_symbol_def): New struct.
1095 (struct user_section_struct, section_userdata_type): Rename to:
1096 (struct lean_user_section_struct, lean_section_userdata_type).
1097 (struct fat_user_section_struct, fat_section_userdata_type): New.
1098 (SECTION_USERDATA_SIZE): Define.
1099 (args_type): New member reduce_memory_overheads.
1100 * ldlang.c (map_obstack): New static variable.
1101 (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
1102 (lang_map): Unless command_line.reduce_memory_overheads is set,
1103 initialize lists of defined symbols for each section.
1104 (print_input_section): Unless command_line.reduce_memory_overheads
1105 is set, use print_all_symbols.
1106 (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
1107 * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
1108 * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
1109 (ld_options): Add entry for --reduce-memory-overheads.
1110 (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
1112 2004-05-19 Jakub Jelinek <jakub@redhat.com>
1114 * ldgram.y (sect_constraint): New.
1115 (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1116 (section): Add sect_constraint. Pass additional argument
1117 to lang_enter_output_section_statement.
1118 * mri.c (mri_draw_tree): Pass additional argument to
1119 lang_enter_output_section_statement.
1120 * emultempl/pe.em (place_orphan): Likewise.
1121 (output_prev_sec_find): Disregard output section statements with
1123 * emultempl/mmo.em (output_prev_sec_find): Likewise.
1124 (mmo_place_orphan): Pass additional argument to
1125 lang_enter_output_section_statement.
1126 * emultempl/elf32.em (output_prev_sec_find): Disregard output section
1127 statements with constraint == -1.
1128 (place_orphan): Pass additional argument to
1129 lang_enter_output_section_statement.
1130 * ldlang.c (lang_enter_overlay_section): Likewise.
1131 (lang_output_section_find_1): New.
1132 (lang_output_section_find): Use it.
1133 (lang_output_section_statement_lookup_1): New.
1134 (lang_output_section_statement_lookup): Use it.
1135 (check_section_callback, check_input_sections): New.
1136 (map_input_to_output_sections): Check if all input sections
1137 are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
1138 (strip_excluded_output_sections): Disregard output section statements
1139 with constraint == -1.
1140 (lang_record_phdrs): Likewise.
1141 (lang_enter_output_section_statement): Add constraint argument.
1142 Use lang_output_section_statement_lookup_1.
1143 * ldlang.h (lang_output_section_statement_type): Add constraint
1144 and all_input_readonly fields.
1145 (lang_enter_output_section_statement): Adjust prototype.
1146 * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1147 * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
1148 segment if all input sections are readonly.
1150 2004-05-19 Adam Nemet <anemet@lnxw.com>
1152 * scripttempl/i386lynx.sc: Remove file.
1154 2004-05-17 Bob Wilson <bob.wilson@acm.org>
1156 * ld.texinfo (Output Section Address): Correct subsection name.
1158 2004-05-17 Adam Nemet <anemet@lnxw.com>
1160 * configure.tgt (powerpc-*-lynxos* case): New case.
1161 * configure.host (i[3-7]86-*-lynxos* case): Remove case.
1162 * emulparams/ppclynx.sh: New file.
1163 * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
1164 * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
1165 (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
1166 (eppclynx.c): New rule.
1167 * Makefile.in: Regenerate.
1169 2004-05-13 Joel Sherrill <joel@oarcorp.com>
1171 * configure.tgt (or32-*-rtems*): Switch to elf and
1172 support versioned targets.
1174 2004-05-13 Nick Clifton <nickc@redhat.com>
1176 * po/fr.po: Updated French translation.
1178 2004-05-11 Jakub Jelinek <jakub@redhat.com>
1180 * genscripts.sh: Generate -z combreloc -z now -z relro scripts
1181 for binaries, -shared and -pie.
1182 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
1183 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
1184 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
1185 (OTHER_RELRO_SECTIONS): ... this.
1186 * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
1187 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
1188 -z relro and -z norelro.
1189 (gld${EMULATION_NAME}_list_options): Add it to usage.
1190 (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
1191 -z relro scripts when appropriate.
1192 * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
1193 Create separate .got.plt section if SEPARATE_GOTPLT.
1194 Move sections which are only written during relocation handling
1195 to the beginning of RW segment. If NO_SMALL_DATA, move .got
1196 before .data. Add DATA_SEGMENT_RELRO_END directive.
1197 Include OTHER_RELRO_SECTIONS.
1198 * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
1199 * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
1200 (fold_unary): Likewise.
1201 (fold_binary): Handle -z relro.
1202 * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
1203 exp_dataseg_relro_adjust phases. Add relro_end field.
1204 * ldmain.c (main): Initialize link_info.relro to FALSE.
1205 * ldlang.c (lang_size_sections): Handle -z relro.
1207 2004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
1209 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
1211 2004-05-07 J"orn Rennecke <joern.rennecke@superh.com>
1213 * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
1214 before printing it with %W.
1216 2004-05-07 Brian Ford <ford@vss.fsi.com>
1217 DJ Delorie <dj@redhat.com>
1219 * emultempl/pe.em (real_flags): New static.
1220 (OPTION_LARGE_ADDRESS_AWARE): New define.
1221 (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
1222 (gld_${EMULATION_NAME}_list_options): Likewise.
1223 (gld${EMULATION_NAME}_handle_option): Likewise.
1224 (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
1225 * ld.texinfo: Document it.
1228 2004-05-07 Brian Ford <ford@vss.fsi.com>
1230 * NEWS: Mention DWARF 2 support for i386pe.
1232 2004-05-05 Alexandre Oliva <aoliva@redhat.com>
1234 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
1237 2004-04-30 Alan Modra <amodra@bigpond.net.au>
1239 * ldlang.c (unique_section_p): Pass section parm, return true on
1241 (output_section_callback): Adjust.
1242 * ldlang.h (unique_section_p): Update prototype.
1243 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
1245 2004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
1247 * ld.texinfo (--gc-sections): Remove restriction for
1250 2004-04-29 Brian Ford <ford@vss.fsi.com>
1252 * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
1253 for DWARF 2/3. Update stab section's syntax.
1255 2004-04-29 Alan Modra <amodra@bigpond.net.au>
1257 * pe-dll.c: Revert changes accidentally committed 2004-03-08.
1258 (fill_edata): Correct pointer arithmetic.
1260 2004-04-21 Chris Demetriou <cgd@broadcom.com>
1262 * ld.texinfo: Remove MIPS --embedded-relocs documentation.
1263 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
1264 * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
1265 (EXTRA_EM_FILE): Use mipsecoff.em
1266 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
1267 (EXTRA_EM_FILE): Use mipsecoff.em
1268 * emultempl/mipsecoff.em: Restructure to be included as an
1269 extra emulation file.
1270 (check_sections, gld${EMULATION_NAME}_after_open)
1271 (gld${EMULATION_NAME}_after_allocation)
1272 (gld${EMULATION_NAME}_get_script)
1273 (ld_${EMULATION_NAME}_emulation): Remove
1274 (gld${EMULATION_NAME}_before_parse): Rename to...
1275 (mipsecoff_before_parse): This.
1276 (LDEMUL_BEFORE_PARSE): Define.
1277 * emultempl/mipself.em: Remove file.
1278 * scripttempl/mips.sc (.rel.sdata): Do not include in output.
1279 (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
1281 * Makefile.am: Remove dependencies on emultempl/mipself.em.
1282 * Makefile.in: Regenerate.
1284 2004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
1286 * ld.texinfo (synthesizing on H8/300): Information about linker
1287 relaxation support for bit manipulation instructions and system
1288 control instructions is added.
1290 2004-04-21 Hans-Peter Nilsson <hp@axis.com>
1292 * NEWS: Mention change in DEFINED semantics.
1294 2004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
1296 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
1297 (.data): Add KEEP for .gnu.linkonce.d.*personality*.
1298 (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
1300 2004-04-21 Ben Elliston <bje@au.ibm.com>
1302 * ld.texinfo (Simple Example): Add missing punctuation.
1304 2004-04-20 Chris Demetriou <cgd@broadcom.com>
1306 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
1308 2004-04-19 Jakub Jelinek <jakub@redhat.com>
1310 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
1313 2004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
1315 * scriptempl/pe.sc: Put numbered .ctors.* after .ctors
1316 with default priority. Likewise for dtors.
1318 2004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1320 * configure.host: Remove mips*-dec-bsd* target.
1321 * configure.tgt: Likewise.
1323 2004-04-08 Richard Sandiford <rsandifo@redhat.com>
1325 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
1326 * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
1327 * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
1328 * emultempl/irix.em: New file.
1329 * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
1331 * Makefile.in: Regenerate.
1333 2004-04-01 Paul Brook <paul@codesourcery.com>
1335 * emultempl/armelf.em (byteswap_code): Add.
1336 (arm_elf_before_allocation): Pass extra parameter.
1337 (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
1338 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
1339 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
1340 * emultempl/armelf_oabi.em: Pass extra parameter.
1341 * ld.texinfo: Document --be8.
1343 2004-03-30 Stan Shebs <shebs@apple.com>
1345 Remove long-obsolete MPW support.
1346 * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
1347 * Makefile.am (mpw): Remove file-presynthesizing actions.
1348 * Makefile.in: Likewise.
1349 * ldfile.c (slash): Remove MPW case.
1350 * ldlex.l [MPW]: Remove unused definition.
1352 2004-03-30 Galit Heller <Galit.Heller@nsc.com>
1354 * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
1355 (eelf32cr16c.c): New target.
1356 * Makefile.in: Regenerate.
1357 * configure.tgt: Handle cr16c-*-elf*.
1358 * emulparams/elf32cr16c.sh: New file.
1359 * scripttempl/elfcr16c.sc: Likewise
1360 * NEWS: Mention support for new target.
1362 2004-03-30 Nick Clifton <nickc@redhat.com>
1364 * po/sv.po: Updated Swedish translation.
1366 2004-03-27 Alan Modra <amodra@bigpond.net.au>
1368 * emultempl/elf32.em: Update new bfd_elf_discard_info name.
1369 * emultempl/hppaelf.em: Likewise.
1370 * emultempl/ppc64elf.em: Likewise.
1371 * emultempl/sh64elf.em: Likewise.
1373 2004-03-25 Alan Modra <amodra@bigpond.net.au>
1375 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
1376 size_dynamic_sections call.
1378 2004-03-23 Alan Modra <amodra@bigpond.net.au>
1381 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
1382 link_info.wrap_char.
1384 2004-03-20 H.J. Lu <hongjiu.lu@intel.com>
1386 * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
1387 or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
1389 2004-03-20 Alexandre Oliva <aoliva@redhat.com>
1391 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
1393 2004-03-19 Alan Modra <amodra@bigpond.net.au>
1395 * config.in: Regenerate.
1396 * po/ld.pot: Regenerate.
1398 2004-03-18 Alan Modra <amodra@bigpond.net.au>
1400 * ld.texinfo: Add --as-needed doco.
1401 * ldmain.c (as_needed): New global var.
1402 * ldmain.h (as_needed): Declare.
1403 * lexsup.c (option_values): Add OPTION_AS_NEEDED and
1404 OPTION_NO_AS_NEEDED.
1405 (ld_options): Likewise.
1406 (parse_args): Handle them.
1407 * ldlang.h (lang_input_statement_type): Add as_needed field.
1408 * ldlang.c (new_afile): Set p->as_needed.
1409 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
1410 (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
1411 (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
1413 * ldlang.c (open_input_bfds): Remove useless cast.
1414 (lang_do_assignments_1): Likewise.
1415 (lang_for_each_input_section): Delete.
1417 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1419 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
1421 2004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
1423 * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
1424 private when building implib.
1426 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
1428 * ldlang.c (lang_add_section): Don't force SEC_LOAD on
1430 (IGNORE_SECTION): Ignore .tbss sections too.
1431 (lang_size_sections_1): .tbss sections do not advance dot.
1433 2004-03-01 Andreas Schwab <schwab@suse.de>
1435 * ld.texinfo (Options): Fix example for --wrap.
1437 2004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
1439 * pe-dll.c (fill_edata): Check that exported_symbol_sections is
1442 2004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
1444 * ldlang.c (lang_check): Use %P, not %E, in error message.
1446 2004-02-23 Nathan Sidwell <nathan@codesourcery.com>
1448 * ldlang.h (struct lang_output_section_state): Change processed
1450 * ldexp.c (check, invalid): Remove.
1451 (fold_name): Move valid_p assignments. Create undefined symbol
1452 when needed. Directly exampine section's processd flag.
1453 * ldlang.c (lang_output_section_statement_lookup): Adjust
1454 processed field init.
1455 (lang_size_sections_1): Allow LOADADDR when determining section's
1456 VMA. Adjust error message. Fold data statement's expr.
1457 (lang_size_sections): Correctly increment lang_statement_iteration.
1459 2004-02-23 Alan Modra <amodra@bigpond.net.au>
1461 * ldexp.c (fold_tree): Follow indirect symbols.
1463 2004-02-20 Nathan Sidwell <nathan@codesourcery.com>
1465 * ldgram.y (exp): Add two operand ALIGN.
1466 * ldexp.c (fold_binary): Add ALIGN_K case.
1467 * ld.texinfo (ALIGN): Document two operand version.
1469 2004-02-19 Nathan Sidwell <nathan@codesourcery.com>
1471 * ldlang.c (map_input_to_output_sections): Initialize sections
1472 mentioned in a data statement expression.
1473 (lang_do_assignments_1): Add data statement's expression's
1476 2004-02-18 Nathan Sidwell <nathan@codesourcery.com>
1478 * ldgram.y (statement_anywhere): Add assert rule.
1479 * ldlang.c (exp_init_os): Add assert case.
1481 2004-02-14 Andrew Cagney <cagney@redhat.com>
1483 * ldmain.c (remove_output): Call bfd_cache_close.
1485 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
1487 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
1488 .MIPS.content* and .MIPS.events* sections.
1490 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
1492 * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
1493 .note.gnu.arm.ident to after allocated sections. Mark its
1496 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
1498 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
1499 * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
1500 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
1501 * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
1502 * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
1504 2004-02-05 Nick Clifton <nickc@redhat.com>
1506 * emultempl/pe.em (_after_open): Fix typo in previous delta.
1508 2004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
1510 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
1512 2004-01-28 Alan Modra <amodra@bigpond.net.au>
1514 * genscripts.sh: Fix typo.
1516 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
1518 2004-01-24 Jakub Jelinek <jakub@redhat.com>
1520 * emulparams/elf64_ia64.sh: Put .rela.opd into
1521 OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
1523 2004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
1525 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
1526 * ld.texinfo (--omagic): Note that writable text section
1527 does not conform to published PE-COFF specs.
1528 (--enable-auto-import): Likewise.
1530 2004-01-15 Alan Modra <amodra@bigpond.net.au>
1532 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
1534 2004-01-13 Nick Clifton <nickc@redhat.com>
1536 * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
1537 which if true will prevent the LMA region being used as a
1538 replacement for a default VMA region.
1539 (lang_leave_output_section_statement): Pass extra parameter.
1540 (lang_leave_overlay): Likewise.
1541 * ld.texinfo (Output Section LMA): Document that the LMA
1542 region can be set to the VMA region if no VMA has been set.
1543 * ldlang.h (struct lang_output_section_phdr_list): Create a
1544 typedef for this type. Minor formatting fixes.
1546 2004-01-13 Nick Clifton <nickc@redhat.com>
1548 * ldlang.c (lang_size_sections_1): If dot is advanced, then
1549 assume that the section should be allocated.
1551 2004-01-13 Alan Modra <amodra@bigpond.net.au>
1553 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
1554 sections. Do ignore SEC_NEVER_LOAD sections.
1555 (lang_size_sections_1): Remove test made redundant with the above.
1557 2004-01-09 Alan Modra <amodra@bigpond.net.au>
1559 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
1560 program_header_size.
1562 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
1564 2003-11-28 Alexandre Oliva <aoliva@redhat.com>
1565 * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
1566 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
1567 * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
1568 (MAXPAGESIZE): Set to 64Kb.
1569 (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
1570 __ROFIXUP_END__. Don't map .rofixup.got any more.
1571 * emulparams/elf32frv.sh (NOP): Set.
1572 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
1573 * configure.tgt: Add frv-*-*linux*.
1574 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
1575 * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
1576 (eelf32frvfd.c): New.
1577 * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
1578 * emulparams/elf32frv.sh: Reverted previous two patches.
1579 * emulparams/elf32frvfd.sh: New.
1580 * Makefile.in: Rebuilt.
1581 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
1582 * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
1583 .rofixup.got to .rofixup.
1584 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
1585 * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
1586 (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
1588 2004-01-05 Jakub Jelinek <jakub@redhat.com>
1590 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
1591 * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
1593 2004-01-03 Alan Modra <amodra@bigpond.net.au>
1595 * ldexp.c (align_n): Make static.
1596 * ldexp.h (align_n): Delete declaration.
1597 * ldlang.h (lang_enter_output_section_statement): Remove
1599 * ldlang.c (lang_enter_output_section_statement): Likewise.
1600 (TO_ADDR, TO_SIZE): Define.
1601 (opb_shift): New var.
1602 (init_opb): New function.
1603 (print_input_section): Call init_opb and use TO_ADDR.
1604 (print_data_statement, print_reloc_statement): Likewise.
1605 (print_padding_statement): Likewise.
1606 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
1607 (lang_check_section_addresses): Likewise.
1608 (lang_size_sections_1): Likewise.
1609 (lang_do_assignments_1): Likewise.
1610 (lang_set_startof): Likewise.
1611 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
1612 (lang_process): Call init_opb.
1613 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
1614 (lang_enter_overlay_section): Adjust
1615 lang_enter_output_section_statement call.
1616 * ldgram.y: Likewise.
1617 * mri.c (mri_draw_tree): Likewise.
1618 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1619 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1620 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1622 * ldfile.c (ldfile_set_output_arch): Add defarch param.
1623 * ldfile.h (ldfile_set_output_arch): Ditto.
1624 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
1625 ldfile_set_output_arch.
1626 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1627 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
1628 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
1629 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1630 * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
1631 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1632 * ldgram.y: Adjust ldfile_set_output_arch call.
1633 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1634 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
1635 * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
1636 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
1637 * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
1638 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1639 * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1641 2004-01-02 Bernardo Innocenti <bernie@develer.com>
1643 * configure.tgt: Add m68k-uClinux target.
1645 For older changes see ChangeLog-0203
1651 version-control: never