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