OSDN Git Service

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