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