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