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