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