* configure.ac: Add igen to v850 build.
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
42ecbf5e
DJ
12005-05-15 Daniel Jacobowitz <dan@codesourcery.com>
2
3 * Makefile.am (AM_MAKEINFOFLAGS): Define.
4 (TEXI2DVI): Define.
5 (ldver.texi): Depend on distributed files instead of built files.
6 (ld.info): Include $(srcdir) in the rule target. Remove actions.
7 (ld.dvi): Remove actions.
8 (MAINTAINERCLEANFILES): Add configdoc.texi.
9 (CONFIG_STATUS_DEPENDENCIES): Add bfd/configure.in.
10 (install-data-local): Renamed from install.
11 (Makefile): Remove explicit dependency.
12 * acinclude.m4: Remove obsolete code.
13 * configure.in: Update AC_PREREQ. Remove extra $CONFIG_SHELL.
14 * Makefile.in, aclocal.m4, config.in, configure: Regenerated.
15
be2c2e39
BW
162005-05-11 Bob Wilson <bob.wilson@acm.org>
17
18 * scripttempl/elfxtensa.sc: Sync up with elf.sc.
19 * emulparams/elf32xtensa.sh (PLT, GOT): Define.
20
0cf7d72c
AM
212005-05-11 Alan Modra <amodra@bigpond.net.au>
22
23 * ldgram.y: Add SPECIAL token.
24 (sect_constraint): Handle SPECIAL.
25 * ldlang.c (lang_output_section_find_1): Don't match SPECIAL.
26 (map_input_to_output_sections): Likewise.
27 * ldlex.l (SPECIAL): Define.
28 * emulparams/elf32ppc.sh (DATA_GOT, SDATA_GOT, SEPARATE_GOTPLT,
29 GOT, PLT, GOTPLT): Define.
30 * emultempl/ppc32elf.em (old_plt, old_got): New static vars.
31 (ppc_after_open): New function.
32 (PARSE_AND_LIST_PROLOGUE): Define OPTION_OLD_LPT and OPTION_OLD_GOT.
33 (PARSE_AND_LIST_LONGOPTS): Add "bss-plt" and "sdata-got".
34 (PARSE_AND_LIST_OPTIONS): Document them.
35 (PARSE_AND_LIST_ARGS_CASES): Handle them.
36 (LDEMUL_AFTER_OPEN): Define.
37 * scripttempl/elf.sc (PLT): Don't override existing define.
38 (DATA_GOT, SDATA_GOT): Define and use to enable alternate got
39 placement rather than using NO_SMALL_DATA. Emit GOTPLT for RELRO_NOW.
40
4ca02259
AM
412005-05-10 Alan Modra <amodra@bigpond.net.au>
42
43 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_GOTPLT_END): Delete.
44 (DATA_SEGMENT_RELRO_END): Use SEPARATE_GOTPLT value.
45 (GOTPLT): Remove DATA_SEGMENT_RELRO_GOTPLT_END. Place after
46 DATA_SEGMENT_RELRO_END in script.
47
baf6e97f
L
482005-05-09 H.J. Lu <hongjiu.lu@intel.com>
49
50 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
51 Don't use a removed section.
52
a6e1b90f
L
532005-05-09 H.J. Lu <hongjiu.lu@intel.com>
54
55 * ldmain.c (reloc_overflow): Use output_bfd if the symbol
56 is defined in the ABS section.
57
c18bae34
L
582005-05-06 H.J. Lu <hongjiu.lu@intel.com>
59
60 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
61 Put back !link_info.relocatable.
62
4ef24a2e
L
632005-05-06 H.J. Lu <hongjiu.lu@intel.com>
64
3f693ed5 65 PR 878
4ef24a2e
L
66 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
67 Just check link_info.executable.
68
e06fb9c3
NC
692005-05-06 Nick Clifton <nickc@redhat.com>
70
71 * Update the address and phone number of the FSF organization in
72 the GPL notices in the following files:
73 aclocal.m4, deffile.h, deffilep.y, fdl.texi, ld.h, ldcref.c,
74 ldctor.c, ldctor.h, ldemul.c, ldexp.c, ldexp.h, ldfile.c,
75 ldfile.h, 20ldgram.y, ldint.texinfo, ldlang.c, ldlang.h, ldlex.h,
76 ldlex.l, ldmain.c, ldmain.h, ldmisc.c, ldmisc.h, ldver.c, ldver.h,
77 ldwrite.c, ldwrite.h, lexsup.c, mri.c, mri.h, pe-dll.c, pe-dll.h,
78 sysdep.h, emultempl/aix.em, emultempl/alphaelf.em,
79 emultempl/armcoff.em, emultempl/armelf.em, emultempl/beos.em,
80 emultempl/crxelf.em, emultempl/elf32.em, emultempl/generic.em,
81 emultempl/gld960.em, emultempl/gld960c.em, emultempl/hppaelf.em,
82 emultempl/ia64elf.em, emultempl/irix.em, emultempl/linux.em,
83 emultempl/lnk960.em, emultempl/m68hc1xelf.em,
84 emultempl/m68kcoff.em, emultempl/m68kelf.em,
85 emultempl/mipsecoff.em, emultempl/mmix-elfnmmo.em,
86 emultempl/mmixelf.em, emultempl/mmo.em, emultempl/needrelax.em,
87 emultempl/pe.em, emultempl/ppc32elf.em, emultempl/ppc64elf.em,
88 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em,
89 emultempl/vanilla.em, emultempl/xtensaelf.em
90
01d9ad14
L
912005-05-05 H.J. Lu <hongjiu.lu@intel.com>
92
93 * scripttempl/elf.sc: Document the usage of __bss_start.
94
eac338cf
PB
952005-05-05 Paul Brook <paul@codesourcery.com>
96
97 * Makefile.am: Add eelf_i386_vxworks.
98 * Makefile.in: Regenerate.
99 * configure.tgt: Make i?86-*-vxworks use targ_emul=elf_i386_vxworks.
100 * emulparams/elf_i386_vxworks.sh: New file.
101 * emulparams/vxworks.sh: New file.
102 * scripttempl/elf.sc: Add DATA_END_SYMBOLS and ETEXT_NAME.
103
f652615e
L
1042005-05-04 H.J. Lu <hongjiu.lu@intel.com>
105
106 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
107 Call _bfd_elf_provide_section_bound_symbols.
108
8423293d
AM
1092005-05-04 Alan Modra <amodra@bigpond.net.au>
110
111 * ldemul.c: Include bfdlink.h.
112 (ldemul_before_allocation): Assume before_allocation is non-zero.
113 (before_allocation_default): Call strip_excluded_output_sections.
114 * ldlang.c (stripped_excluded_sections): New variable.
115 (lang_add_section): Build input section list for each output
116 section, attached via map_head and map_tail pointers.
117 (strip_excluded_output_sections): Make global. Traverse the
118 input section lists to find which output sections can go. Clear
119 link_order pointers and set stripped_excluded_sections.
120 (lang_process): Call strip_excluded_output_sections.
121 * ldlang.h (strip_excluded_output_sections): Declare.
122 * ldwrite.c: Update throuhout for link_order_head -> map_head change.
123 * emultempl/aix.em (before_allocation): Call
124 strip_excluded_output_sections.
125 * emultempl/armcoff.em (before_allocation): Likewise.
126 * emultempl/beos.em (before_allocation): Likewise.
127 * emultempl/linux.em (before_allocation): Likewise.
128 * emultempl/pe.em (before_allocation): Likewise.
129 * emultempl/sunos.em (before_allocation): Likewise.
130 * emultempl/elf32.em (before_allocation): Likewise. Call
131 bfd_elf_size_dynsym_hash_dynstr too.
132 * emultempl/lnk960.em (lnk960_before_allocation): Delete.
133 (ld_lnk960): Use before_allocation_default.
134
5daa8fe7
L
1352005-05-02 H.J. Lu <hongjiu.lu@intel.com>
136
137 * emultempl/elf32.em (gld${EMULATION_NAME}_strip_empty_section):
138 Updated for bfd_section_list_remove change.
139 * ldlang.c (lang_insert_orphan): Likewise.
140 (strip_excluded_output_sections): Likewise.
141 (sort_sections_by_lma): New.
142 (lang_check_section_addresses): Sort the sections before
143 checking addresses.
144
009b6a7a
DJ
1452005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
146
147 * configure.tgt: Add h8300*-*-rtemscoff.
148 Switch h8300*-*-rtems* to elf.
149
279e75dc
BE
1502005-04-29 Ben Elliston <bje@au.ibm.com>
151
152 * ldgram.y (lang_memory_region_type): Make static.
153 (ldgram_want_filename): Likewise.
154 * ldemul.c (ld_emulation): Make static.
155 * ldfile.h (ldfile_find_command_file): Remove extern.
156 * ldfile.c (ldfile_find_command_file): Make static.
157 * ldlang.h (unique_section_list): Remove extern declaration.
158 * ldlang.c (unique_section_list): Make static.
159 * mri.h (symbol_truncate): Remove extern declaration.
160 * mri.c (symbol_truncate): Make static.
161 (order, only_load, address, alias): Likewise.
162 (alignment, subalignment): Likewise.
163
4a2afbc1
L
1642005-04-27 H.J. Lu <hongjiu.lu@intel.com>
165
166 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
167 Use the first SEC_ALLOC section which isn't SEC_READONLY or the
168 last SEC_ALLOC section if such a section doesn't exist.
169
fd9719b1
MK
1702005-04-24 Mark Kettenis <kettenis@gnu.org>
171
172 * configure.host: Add *-*-openbsd support.
173
33bfe774
JB
1742005-04-15 Julian Brown <julian@codesourcery.com>
175
176 * ld.texinfo: Document --use-blx.
177 * emultempl/armelf.em (use_blx): New variable.
178 (arm_elf_create_output_section_statements): Communicate value of
179 use_blx to bfd.
180 (PARSE_AND_LIST_PROLOGUE): Add OPTION_USE_BLX.
181 (PARSE_AND_LIST_OPTIONS): Add --use-blx option.
182 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_USE_BLX case.
183
9e9b66a9
AM
1842005-04-14 Alan Modra <amodra@bigpond.net.au>
185
186 * Makefile.am (NO_WERROR): Define. Use instead of -Wno-error.
187 * configure.in: Include ../bfd/warning.m4 contents.
188 * Makefile.in: Regenerate.
189 * configure: Regenerate.
190
ceae3e33
AM
1912005-04-12 Alan Modra <amodra@bigpond.net.au>
192
193 * Makefile.am: Run "make dep-am".
194 (ldgram.o, ldlex.o, deffilep.o): Add -Wno-error to command.
195 * Makefile.in: Regenerate.
196 * config.in: Regenerate.
197
7cedef86
AM
1982005-04-11 Alan Modra <amodra@bigpond.net.au>
199
200 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Ignore
201 as_needed libs that were not needed.
202 (gld${EMULATION_NAME}_check_needed): Likewise.
203
187ffe95
NC
2042005-04-07 Nick Clifton <nickc@redhat.com>
205
206 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h so that
0cf7d72c 207 ldfile.h can use the lang_input_statement type.
187ffe95 208
72223188
JJ
2092005-04-06 Jakub Jelinek <jakub@redhat.com>
210
211 * ldlang.c: Formatting.
212 (walk_wild_consider_section): Remember return value from wildcardp.
213 (is_simple_wild): Use strcspn instead of 2 strpbrk calls and strlen.
214 (wild_spec_can_overlap): Use strcspn instead of strpbrk and strlen.
215
2162005-04-06 Robert O'Callahan <rocallahan@novell.com>
217
218 * ld.h (lean_section_userdata_type): Remove.
219 (fat_section_userdata_type): Remove file field.
220 (SECTION_USERDATA_SIZE): Remove.
221 * ldlang.c (init_os): Eliminate initialization of unused
222 lean_section_userdata_type.
223
224 * ldlang.h (callback_t, walk_wild_section_handler_t): New
225 typedefs.
226 (struct lang_wild_statement_struct): Add walk_wild_section_handler
227 and handler_data fields.
228 * ldlang.c (callback_t): Removed.
229 (walk_wild_consider_section, walk_wild_section_general,
230 section_iterator_callback, find_section, is_simple_wild,
231 match_simple_wild, walk_wild_section_specs1_wild0,
232 walk_wild_section_specs1_wild1, walk_wild_section_specs2_wild1,
233 walk_wild_section_specs3_wild2, walk_wild_section_specs4_wild2,
234 wild_spec_can_overlap, analyze_walk_wild_section_handler): New
235 functions.
236 (lang_add_wild): Call analyze_walk_wild_section_handler.
237 (walk_wild_section): Renamed to walk_wild_section_general and
238 created a wrapper function.
239 (section_iterator_callback_data): New typedef.
240
34875e64
NC
2412005-04-04 Nick Clifton <nickc@redhat.com>
242
243 * configure.in: Add a check for <unistd.h> providing a prototype
244 for getopt() which is compatible with the one in
245 include/getopt.h. If so then define HAVE_DECL_GETOPT.
246 * configure: Regenerate.
247 * config.in (HAVE_DECL_GETOPT): Add.
248 * ldemul.c: Include config.h
249 * lexsup.c: Likewise.
250 * emultempl/elf32.sc: Likewise.
251
deb04cdb
AM
2522005-03-29 Alan Modra <amodra@bigpond.net.au>
253
254 * emultempl/elf32.em (gld${EMULATION_NAME}_layout_sections_again):
255 New function, extracted from static void gld${EMULATION_NAME}_finish.
256 (gld${EMULATION_NAME}_strip_empty_sections): Likewise.
257 (gld${EMULATION_NAME}_provide_init_fini_syms): Likewise.
258 * emultempl/ppc64elf.em: Revert last change.
259 (ppc_layout_sections_again): Use
260 gld${EMULATION_NAME}_layout_sections_again.
261 (ppc_finish): Don't call gld${EMULATION_NAME}_finish. Instead call
262 gld${EMULATION_NAME}_strip_empty_sections and
263 gld${EMULATION_NAME}_provide_init_fini_syms.
264 * emultempl/hppaelf.em: Similarly.
265
8b4e5e28
AM
2662005-03-29 Alan Modra <amodra@bigpond.net.au>
267
268 * emultempl/ppc64elf.em (need_laying_out): Delete. Remove all refs.
269 (ppc_finish): Don't call bfd_elf_discard_info.
270 * emultempl/hppaelf.em: Similarly.
271
510a939b
NC
2722005-03-24 Nick Clifton <nickc@redhat.com>
273
274 * po/fr.po: Updated French translation.
275
ed84e695
NC
2762005-03-23 Mike Frysinger <vapier@gentoo.org>
277 Nick Clifton <nickc@redhat.com>
278
279 * configure.host: Accept any C library to accompany a GNU Linux
280 implementation, not just the GNU C library.
281 * configure.tgt: Likewise.
282 * emultempl/elf32.em: Likewise.
deb04cdb 283
81e1b023
L
2842005-03-22 H.J. Lu <hongjiu.lu@intel.com>
285
286 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols): New
287 (gld${EMULATION_NAME}_finish): Call
288 gld${EMULATION_NAME}_provide_bound_symbols to provide
289 __preinit_array_start, __preinit_array_end, __init_array_start,
290 __init_array_end, __fini_array_start and __fini_array_end.
291
292 * scripttempl/elf.sc: Don't provide __preinit_array_start,
293 __preinit_array_end, __init_array_start, __init_array_end,
294 __fini_array_start nor __fini_array_end.
295
11d2f718
AM
2962005-03-23 Alan Modra <amodra@bigpond.net.au>
297
298 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Set
299 SEC_EXCLUDE on .gnu.warning sections.
300
644285ef
AM
3012005-03-22 Alan Modra <amodra@bigpond.net.au>
302
303 * scripttempl/elf.sc (SBSS): Don't provide sbss start and end syms.
304
c9a2f333
AM
3052005-03-21 Alan Modra <amodra@bigpond.net.au>
306
307 * emultempl/ppc32elf.em (gld${EMULATION_NAME}_after_allocation): New
308 function.
309 (LDEMUL_AFTER_ALLOCATION): Define.
310
b1ab9777
AM
3112005-03-21 Alan Modra <amodra@bigpond.net.au>
312
313 * emultempl/ppc64elf.em (ppc_finish): Rename from
314 gld${EMULATION_NAME}_finish. Call gld${EMULATION_NAME}_finish.
315 (LDEMUL_FINISH): Update.
316 * emultempl/hppaelf.em (hppaelf_finish, LDEMUL_FINISH): Likewise.
317 * emultempl/m68hc1xelf.em (m68hc11elf_finish, LDEMUL_FINISH): Likewise.
318
2a2a7c94
JB
3192005-03-18 Julian Brown <julian@codesourcery.com>
320
321 * scripttempl/armbpapi.sc (.rel.dyn): Add .rel.init_array,
322 .rel.fini_array.
323 (.rela.dyn): Add .rela.init_array, .rela.fini_array.
324 (SECTIONS): Add .rel.other, .rela.other, .reli.other after PLT relocs.
325
98720c64
L
3262005-03-18 H.J. Lu <hongjiu.lu@intel.com>
327
328 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Don't set
329 bfd_section when removing unused empty output sections for
330 non-relocatable link.
331
41c7ba7c
AM
3322005-03-19 Alan Modra <amodra@bigpond.net.au>
333
334 * ldlang.c (lang_insert_orphan): Use old section_tail rather than
335 traversing the bfd section list to find pointer to new section.
336
0fb53118
AM
3372005-03-18 Alan Modra <amodra@bigpond.net.au>
338
339 * scripttempl/elf.sc: When CREATE_SHLIB, put .sdata2 and .sbss2
340 input sections into .sdata and .sbss output respectively.
341
de7f8cc8
BW
3422005-03-16 David Heine <dlheine@tensilica.com>
343 Bob Wilson <bob.wilson@acm.org>
344
345 * ldlang.c (IGNORE_SECTION): Remove check for zero size.
346 (lang_check_section_addresses): Ignore zero size sections here.
347
57316bff
L
3482005-03-16 H.J. Lu <hongjiu.lu@intel.com>
349
350 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Remove
351 unused empty output sections for non-relocatable link.
352
353 * ld.h (args_type): Remove gc_sections.
354
355 * ldlang.c (lang_mark_used_section): New.
356 (lang_gc_sections): Use link_info.gc_sections instead of
357 command_line.gc_sections.
358 * ldmain.c (main): Likewise.
359 * lexsup.c (parse_args): Likewise.
360 * ldlang.c (lang_process): Call lang_mark_used_section.
361
362 * ldmain.c (main): Initialize link_info.gc_sections to FALSE.
363
1ad12f97
NC
3642005-03-16 Nick Clifton <nickc@redhat.com>
365 Ben Elliston <bje@au.ibm.com>
366
569acd2c 367 * configure.in (werror): New switch: Add -Werror to the
1ad12f97 368 compiler command line. Enabled by default. Disable via
569acd2c 369 --disable-werror.
1ad12f97
NC
370 * configure: Regenerate.
371
cb2d1ef2
AM
3722005-03-16 Alan Modra <amodra@bigpond.net.au>
373
374 * emulparams/elf32ppclinux.sh (OTHER_READWRITE_SECTION): Delete.
375 (OTHER_RELRO_SECTIONS): Set this instead.
376
957d91c1
NC
3772005-03-15 Nick Clifton <nickc@redhat.com>
378
379 * NEWS: Add cutoff for changes in 2.16 release.
380
34723071
NC
3812005-03-15 Mikkel Krautz <krautz@gmail.com>
382
383 * configure.tgt (x86_64-elf): Add target.
384
729ae8d2
AM
3852005-03-15 Alan Modra <amodra@bigpond.net.au>
386
387 * po/es.po: Commit new Spanish translation.
388
8b3d8fa8
AM
3892005-03-14 Alan Modra <amodra@bigpond.net.au>
390
391 * ldexp.c (exp_fold_tree): Ensure return value is initialized.
392 Tidy etree_assert case.
393
882cb63e
AM
3942005-03-14 Alan Modra <amodra@bigpond.net.au>
395
396 * po/tr.po: Commit new Turkish translation.
397
61c84b48
DJ
3982005-03-11 Daniel Jacobowitz <dan@codesourcery.com>
399
400 * Makefile.am: Remove references to em68klynx.o and esparclynx.o.
401 * Makefile.in: Regenerated.
402 * emulparams/m68klynx.sh, emulparams/sparclynx.sh: Remove.
403
41c9e29d
NC
4042005-03-07 Nick Clifton <nickc@redhat.com>
405
406 * po/fr.po: Updated translation.
407
06647dfd
AM
4082005-03-05 Alan Modra <amodra@bigpond.net.au>
409
410 * po/ld.pot: Regenerate.
411
bb14f524
JB
4122005-03-02 Jan Beulich <jbeulich@novell.com>
413
414 * ldmain.c (remove_output): Use unlink_if_ordinary instead of unlink.
415 * pe-dll.c (pe_dll_generate_implib): Likewise.
416
0ef622cb
BE
4172005-02-24 Ben Elliston <bje@au.ibm.com>
418
419 * ldfile.c: Remove GNU960 conditional code.
420 * emultempl/gld960.em: Likewise.
421 * emultempl/gld960c.em: Likewise.
422 * emultempl/lnk960.em: Likewise.
423
f3f4bcca
NC
4242005-02-24 Nick Clifton <nickc@redhat.com>
425
426 * emultempl/lnk960.em (lnk960_before_parse): Remove redundant
427 empty string from calls to concat.
428
4292005-02-23 Nick Clifton <nickc@redhat.com>
430
431 * emultempl/lnk960.em (lnk960_before_parse): Terminate list of
432 arguments passed to concat() with a NULL.
433
434 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h because they
435 define types needed by ldfile.h
436
47639182
AM
4372005-02-23 Alan Modra <amodra@bigpond.net.au>
438
439 * pe-dll.c: Warning fixes.
440 * emultempl/sunos.em: Likewise.
441
ace66bb2
DJ
4422005-02-22 Daniel Jacobowitz <dan@codesourcery.com>
443
444 * ldlang.c (section_already_linked): Don't call
445 bfd_section_already_linked for dynamic objects.
446
5718918d
AM
4472005-02-22 Alan Modra <amodra@bigpond.net.au>
448
449 * ldexp.c: Warning fixes.
450 * ldwrite.c: Likewise.
451 * emultempl/elf32.em: Likewise.
452
ebe372c1
L
4532005-02-21 H.J. Lu <hongjiu.lu@intel.com>
454
455 * ldlang.c (lang_add_section): Check SEC_TIC54X_BLOCK for TI
456 tic54x input only.
457 (lang_size_sections_1): Check SEC_COFF_SHARED_LIBRARY for COFF
458 and ECOFF output only.
459
0ca2f5d5
AM
4602005-02-21 Alan Modra <amodra@bigpond.net.au>
461
462 * config.in: Regenerate.
463 * configure: Regenerate.
464
fbbb9ac5
ZW
4652005-02-17 Zack Weinberg <zack@codesourcery.com>
466
467 * ldexp.c (assigning_to_dot): New global flag.
468 (fold_name): If assigning_to_dot is true, object immediately to
469 an undefined symbol.
470 (exp_fold_tree): Set and clear assigning_to_dot around the
471 recursive call to exp_fold_tree to process the right-hand side
472 of an assignment to the location counter.
473
c68dac40
PB
4742005-02-17 Paul Brook <paul@codesourcery.com>
475
476 * scripttempl/armbpabi.sc: Add dummy name to version block.
477
20c2cbe3
AM
4782005-02-17 Alan Modra <amodra@bigpond.net.au>
479
480 * ldexp.c (new_abs): Init new.str.
481
0b48acfe
MM
4822005-02-15 Mark Mitchell <mark@codesourcery.com>
483
484 * configure.in (AC_CHECK_FUNCS): Add glob.
485 * configure: Regenerated.
486 * emultempl/elf32.em (<glob.h>): Do not include if HAVE_GLOB is
487 not defined.
488 (gld${EMULATION_NAME}_parse_ld_so_conf_include): Do not use glob
489 if HAVE_GLOB is not defined.
fbbb9ac5 490
ff925e69
KK
4912005-02-16 Kaz Kojima <kkojima@rr.iij4u.or.jp>
492
493 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define
494 lib_path if NATIVE is yes.
495
92b7a70f
AM
4962005-02-16 Alan Modra <amodra@bigpond.net.au>
497
498 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Make
499 an error creating fake bfd fatal.
500 (ppc_before_allocation): Continue on after errors.
501 (gld${EMULATION_NAME}_finish): Likewise.
502
297ba367
NC
5032005-02-15 Nick Clifton <nickc@redhat.com>
504
505 * ldlex.l (YY_NO_UNPUT): Define so that the yy_unput function is
506 not declared. It is not used and its presence causes a compile
507 time warning.
fbbb9ac5 508
9eabd475
ZW
5092005-02-11 Zack Weinberg <zack@codesourcery.com>
510
511 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed):
512 If st.st_ino is zero, do not treat the library as a duplicate.
513
d457dcf6
JJ
5142005-02-10 Jakub Jelinek <jakub@redhat.com>
515
516 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
517 Set BFD_LINKER_CREATED on the stubs bfd.
518 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
519 Likewise.
520
4e5db43b
MM
5212005-02-08 Mark Mitchell <mark@codesourcery.com>
522
523 * scripttempl/armbpabi.sc (VERSION): Make special section symbols
9eabd475 524 local.
4e5db43b
MM
525 (Image$$ER_RO$$Base): Define whenever RELOCATING.
526 (Image$$ER_RO$$Limit): Likewise.
527 (SHT$$INIT_ARRAY$$Base): Likewise.
528 (SHT$$INIT_ARRAY$$Limit): Likeise.
529
4297f9f1
BE
5302005-02-10 Ben Elliston <bje@au.ibm.com>
531
532 * emultempl/beos.em: Remove #if 0 and #if 1 blocks.
533
1c7c5e5b
RS
5342005-02-08 Richard Sandiford <rsandifo@redhat.com>
535
536 * configure.tgt (mips64*el-*-linux-gnu*): Define targ_extra_libpath
537 to include o32 and n64 emulations.
538 (mips64*-*-linux-gnu*): Likewise.
539
300475fe
HPN
5402005-02-08 Hans-Peter Nilsson <hp@axis.com>
541
542 * ldmain.c (warning_callback, warning_find_reloc): Prepend
543 "warning: " to warning messages.
544
4ea42fb7
AM
5452005-02-04 Alan Modra <amodra@bigpond.net.au>
546
547 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't
548 look up symbol for etree_provide here.
549
161f49a3
DJ
5502005-02-02 Daniel Jacobowitz <dan@codesourcery.com>
551
552 * emulparams/elf32bmip.sh (TEXT_DYNAMIC): Always set.
553
73ae6183
NC
5542005-02-01 Edward Welbourne <eddy@opera.com>
555 Nick Clifton <nickc@redhat.com>
556
557 * ld.texinfo (Source Code Reference): New node describing how to
558 access linker script defined variables from source code.
559
77cfaee6
AM
5602005-02-01 Alan Modra <amodra@bigpond.net.au>
561
562 * ld.texinfo: Clarify --as-needed operation.
563
c46f8c51
AC
5642005-01-31 Andrew Cagney <cagney@gnu.org>
565
566 * configure: Regenerate to track ../gettext.m4.
567
d342277e
NC
5682005-01-31 Nick Clifton <nickc@redhat.com>
569
570 * ldver.c (ldversion): Bump reported copyright date to 2005.
571
d6486796
NC
5722005-01-31 Nick Clifton <nickc@redhat.com>
573
574 * configure.tgt: Remove obsolete targets m68k-lynxos and
575 sparc-lynxos.
576
319850b4
JB
5772005-01-28 Julian Brown <julian@codesourcery.com>
578
579 * emultempl/armelf.em (fix_v4bx): New variable.
580 (arm_elf_create_output_section_statements): Communicate fix_v4bx flag
581 value to bfd.
582 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_FIX_V4BX.
583 (PARSE_AND_LIST_LONGOPTS): Add option --fix-v4bx.
584 (PARSE_AND_LIST_OPTIONS): Add option --fix-v4bx.
9eabd475 585 (PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX.
319850b4
JB
586 * NEWS: Mention --fix-v4bx.
587 * ld.texinfo: Document --fix-v4bx.
588
dc4c9c19
MM
5892005-01-25 Mark Mitchell <mark@codesourcery.com>
590
591 * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Define, so
592 as to include .ARM.exidx$${Base,Limit}.
593 * ld/scripttempl/armbpabi.sc: Move .plt to end of text segment.
594 Define IMAGE$$ER_RO$${Base,Limit} and SHT$$INIT_ARRAY$${Base,Limit}.
595 Put .init_array, .fini_array, etc. into the read-only data
9eabd475
ZW
596 segment.
597
7e9f0867
AM
5982005-01-25 Alan Modra <amodra@bigpond.net.au>
599
600 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Formatting.
601 (gld${EMULATION_NAME}_after_open): Ignore needed libs if they were
602 only needed by an as-needed lib that didn't get linked.
603
7e69709c
AM
6042005-01-23 Alan Modra <amodra@bigpond.net.au>
605
606 * ld.texinfo (Output Section Keywords <CONSTRUCTORS>): Correct
607 __DTOR_LIST__ description.
608
b5666f2f
AM
6092005-01-23 Alan Modra <amodra@bigpond.net.au>
610
611 * ld.texinfo (Location Counter <dot outside sections>): Document
612 effects of orphan section placement, and ". = ." workaround.
613 * Makefile.in: Regenerate.
614
4e25343c
RS
6152005-01-22 Richard Sandiford <rsandifo@redhat.com>
616
617 * emulparams/elf32bmip.sh (OTHER_GOT_SECTIONS): Add ". = .;".
618 * emulparams/elf32bmipn32-defs.sh (OTHER_GOT_SECTIONS): Likewise.
619
b717d30e
JJ
6202005-01-21 Jakub Jelinek <jakub@redhat.com>
621
622 * ldgram.y (AS_NEEDED): New token.
623 (input_list): Handle AS_NEEDED ( input_list ).
624 * ldlex.l (AS_NEEDED): Add.
625 * ld.texinfo: Document AS_NEEDED ().
626 * NEWS: Mention AS_NEEDED ().
627
7a64f7b8
BE
6282005-01-21 Ben Elliston <bje@au.ibm.com>
629
630 * ldlang.c (lang_reasonable_defaults): Remove.
631 (lang_process): Don't call lang_reasonable_defaults.
632
633 * ldexp.c (exp_assop): Remove #if 0'd code.
634 (exp_print_tree): Likewise.
635 * ldlang.c (lang_memory_region_lookup): Likewise.
636 (open_output): Likewise.
637 (lang_do_assignments_1): Likewise.
638 (lang_place_orphans): Likewise.
639 (lang_enter_output_section_statement): Likewise.
640 (lang_reasonable_defaults): Likewise.
641 * ldlang.h (struct lang_input_statement_struct): Likewise.
642 * mri.c (mri_draw_tree): Likewise.
643 (mri_load): Likewise.
644 * pe-dll.c (generate_reloc): Likewise.
645 (make_import_fixup_entry): Likewise.
646 (pe_as16): Likewise.
647 * emultempl/beos.em (set_pe_subsystem): Likewise.
648 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
649 * emultempl/pe.em: Likewise.
650 * emultempl/xtensaelf.em (xtensa_colocate_literals): Likewise.
651
a154a8ad
MM
6522005-01-20 Daniel Jacobowitz <dan@codesourcery.com>
653
654 * Makefile.am (ALL_EMULATIONS): Add earmelfb_linux_eabi.o.
655 (earmelfb_linux_eabi.c): New target.
656 * Makefile.in: Regenerated.
657 * configure.tgt (arm*b-*-linux-gnueabi): New target.
658 * emulparams/armelfb_linux_eabi.sh: New file.
659
9c183183
AM
6602005-01-20 Nick Hudson <skrll@netbsd.org>
661
662 PR ld/676
663 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
664 Handle bfd_elf32_hppa_nbsd_vec.
665
e2243057
RS
6662005-01-19 Richard Sandiford <rsandifo@redhat.com>
667
668 * ldmain.h (ld_sysroot): Change type to a constant string.
669 * ldmain.c (ld_sysroot): Likewise.
670 (get_relative_sysroot, get_sysroot): New functions, adding command-line
671 support for changing the sysroot.
672 (main): Call the new functions.
673 * lexsup.c (OPTION_SYSROOT): New.
674 (ld_options): Add --sysroot.
675 (parse_args): Add a dummy handler for it.
676 * ld.texinfo (--sysroot): Document.
677 * NEWS: Mention the new --sysroot option.
678
1449d79b
AM
6792005-01-18 Alan Modra <amodra@bigpond.net.au>
680
681 * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
682 (lang_place_orphans): Don't abort on just_syms_flag, instead call
683 bfd_link_just_syms.
684
a880c748
DS
6852005-01-16 Danny Smith <dannysmith@users.sourceforge.net>
686
687 * defilep.y (def_name, def_library): Combine into...
688 (def_image_name): New function. Strip name to basename,
689 with warning.
690
07baa8ee
MK
6912005-01-12 Mark Kettenis <kettenis@gnu.org>
692
693 * configure.in: Be sure to invoke config.sub using the shell.
694 * configure: Regenerate.
695
e9b181b8
AM
6962005-01-11 Alan Modra <amodra@bigpond.net.au>
697
698 * configure.host: Correct sed patterns for last change.
699
59ef2528
NC
7002005-01-10 Nick Clifton <nickc@redhat.com>
701
702 PR binutils/609
703 * ldmisc.c (vfinfo): Add an extra argument: is_warning. Use this
704 to determine whether config.make_executable should be set to FALSE in
705 conjunction with config.fatal_warnings.
706 (info_msg, minfo, lfinof): Pass FALSE as the extra argument.
707 (einfo): Pass TRUE as the extra argument.
708
71a2d53a
NC
7092005-01-10 Greg Schaffer <gschafer@zip.com.au>
710
711 * configure.host (linux targets): Use "${CC} -dumpspecs" instead
712 of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0.
713 (ia64-*-aix): Delete - this target is obsolete, and would be
714 broken by this patch.
715
d6d0b336
EB
7162005-01-06 Eric Botcazou <ebotcazou@libertysurf.fr>
717
718 * configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*.
719 (sparc64-sun-solaris2*): New host.
720
4e7fd91e
PB
7212005-01-06 Paul Brook <paul@codesourcery.com>
722
723 * Makefie.am: Add earmelf_vxworks.
724 * Makefile.in: Regenerate.
725 * configure.tgt: Make arm-*-vxworks a separate case.
726 * emulparams/armelf_vxworks.sh: New function.
727
4c52953f
AM
7282005-01-06 Alan Modra <amodra@bigpond.net.au>
729
730 * emultempl/ppc64elf.em (no_multi_toc): New var.
731 (gld${EMULATION_NAME}_finish): Pass to ppc64_elf_setup_section_lists.
732 (OPTION_NO_MULTI_TOC): Define.
733 (PARSE_AND_LIST_LONGOPTS): Add --no-multi-toc support.
734 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
735
98d87ee7
NC
7362005-01-05 Nick Clifton <nickc@redhat.com>
737
738 PR binutils/614
739 * ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
4c52953f 740 Standard's specification for parsable error messages.
98d87ee7 741
5f81b918
PB
7422005-01-04 Paul Brook <paul@codesourcery.com>
743
744 * Makefile.am: Correct dependency for earmsymbian.c.
745 * Makefile.in: Regenerate.
746
2af59bab
DS
7472004-12-28 Danny Smith <dannysmith@users.sourceforge.net>
748
749 * emultempl/pe.em (set_pe_subsystem): Change second arg to
750 lang_add_entry to FALSE.
751
c38f024c
NC
7522004-12-23 Nick Clifton <nickc@redhat.com>
753
754 PR 600
755 * emulparams/shelf.sh (.stack): Increase stack start address to
756 0x300000.
757
550bdea6
NC
7582004-12-20 Nick Clifton <nickc@redhat.com>
759
760 * ldmain.c (main): Issue an error message if -static and -shared
761 are used together.
762
e3070fef
JJ
7632004-12-17 Jakub Jelinek <jakub@redhat.com>
764
765 * ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
766 * ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
767 * ldlang.c (lang_size_sections): Use them to avoid wasting virtual
768 address space at DATA_SEGMENT_ALIGN. Fix computation of expected
769 PT_GNU_RELRO segment end.
770
2fbd2a87
NC
7712004-12-14 P.J. Darcy <darcypj@us.ibm.com>
772
773 * configure.tgt: Add s390x-ibm-tpf support.
774
f2763b01
NC
7752004-12-16 Martin Kögler <mkoegler@auto.tuwien.ac.at>
776
777 * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
778 BFD.
779
cb9faf63
BE
7802004-12-07 Ben Elliston <bje@gnu.org>
781
782 * ldemul.h: Forward declare struct option.
783
02f80eef
DS
7842004-12-01 Danny Smith <dannysmith@users.sourceforge.net>
785
786 * scripttempl/pe.sc (.data): Add .jcr subsection.
787
dea514f5
PB
7882004-11-30 Paul Brook <paul@codesourcery.com>
789
790 * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
791
32118081
NC
7922004-11-30 Tero Niemela <tero_niemela@yahoo.com>
793
794 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
795 * Makefile.in: Regenerate.
796
33f362e1
NC
7972004-11-26 Melissa Mears <asterisk@graces.dricas.com>
798
799 * emultempl/pe.em: Add --subsystem:xbox as well as
800 --subsystem:%d.
801 * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
802 and numeric subsystems.
803
3eda52aa
AM
8042004-11-24 Alan Modra <amodra@bigpond.net.au>
805
806 * ldexp.c (fold_name): Correct PR 338 fix.
807
6b3221b4
MM
8082004-11-19 Mark Mitchell <mark@codesourcery.com>
809
810 * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
811 (earmelf_linux_eabi.c): New target.
812 * configure.tgt (arm*-*-linux-gnueabi): Handle it.
813 * emulparams/armelf_linux_eabi.sh: New file.
814 * Makefile.in: Regenerated.
815
9cd6d51a
NC
8162004-11-19 Nick Clifton <nickc@redhat.com>
817
818 PR 518
819 * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
820 LENGTH fields in the MEMORY command, to explicitly state that
821 symbols cannot be used in their expressions.
822
3ec57632
NC
8232004-11-19 Jon Beniston <jon@beniston.com>
824
825 * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
826 * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
4c52953f 827 * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
3ec57632
NC
828 which return the length and origin of a memory.
829 * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
830 * NEWS: Mention support for ORIGIN and LENGTH operators.
831
b7693d02
DJ
8322004-11-17 Daniel Jacobowitz <dan@codesourcery.com>
833
834 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
835 a dynamic object for stubs.
836
fc0e6df6
PB
8372004-11-04 Paul Brook <paul@codesourcery.com>
838
839 * ld.texinfo: Document --default-imported-symver.
840 * ldmain.c (main): Set link_info.default_imported_symver.
841 * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
842 (ld_options): Add --default-imported-symver.
843 (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
844
7499d566
NC
8452004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
846 Vineet Sharma <vineets@noida.hcltech.com>
847
848 * Makefile.am: Add entries for new maxq-coff target.
849 * Makefile.in: Regenerate.
850 * configure.tgt: Add support for maxq.
851 * emulparams/maxqcoff.sh: New File.
852 * scripttempl/maxqcoff.sc: New linker script for target maxq.
853 * NEWS: Mention the new target.
854
7f266840
DJ
8552004-11-04 Daniel Jacobowitz <dan@debian.org>
856
857 * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
858 (earmelf_oabi.c): Remove rule.
859 * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
860 * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
861 * Makefile.in: Regenerated.
862
a0055007
HPN
8632004-11-04 Hans-Peter Nilsson <hp@axis.com>
864
865 * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
866 * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
867 (FINI_START): Ditto.
868 (INIT_END): Remove emitted "jump [sp+]".
869 (FINI_END): Ditto.
870
c5614fa4
AM
8712004-11-04 Alan Modra <amodra@bigpond.net.au>
872
873 * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
874 (no_opd_opt, no_toc_opt): New static vars.
875 (ppc_before_allocation): Don't edit opt if no_opd_opt. Call
876 ppc64_elf_edit_toc.
877 (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
878 (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
879 (PARSE_AND_LIST_OPTIONS): Describe new options.
880 (PARSE_AND_LIST_ARGS_CASES): Handle them.
881
7a5df8d0
NC
8822004-10-27 Nick Clifton <nickc@redhat.com>
883
884 * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
885 parameter to invocation of lang_section_start.
886 * emultempl/aix.em (_handle_option): Likewise.
c5614fa4 887
7a5df8d0
NC
888 * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
889 eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
890 * Makefile.in: Regenerate.
891
6f372e19
MM
8922004-10-26 Mark Mitchell <mark@codesourcery.com>
893
894 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
895 __exidx_{start,end} when not relocating.
896
ba916c8a
MM
8972004-10-25 Mark Mitchell <mark@codesourcery.com>
898
899 * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
900 * ldexp.h (segment_type): New type.
901 (segments): New variable.
902 * ldexp.c (segments): New variable.
903 (exp_print_token): Handle SEGMENT_START.
904 (fold_binary): Likewise.
905 * ldgram.y (SEGMENT_START): Declare it as a token.
906 (exp): Handle SEGMENT_START.
907 * ldlang.h (lang_address_statement_type): Add segment field.
908 (lang_section_start): Change prototype.
909 * ldlang.c (map_input_to_output_sections): Do not process section
910 assignments if a corresponding SEGMENT_START has already been
911 seen.
912 (lang_section_start): Add segment parameter.
913 * ldlex.l (SEGMENT_START): Add it.
914 * lexsup.c (seg_segment_start): New function.
915 (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
916 * ld.texinfo (SEGMENT_START): Document it.
917 * emulparams/armsymbian.sh (EMBEDDED): Set it.
918 * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
919 base addresses. Do not map relocations.
920 * NEWS: Mention SEGMENT_START.
921
3e3b46e5
PB
9222004-10-26 Paul Brook <paul@codesourcery.com>
923
924 * ld.texinfo: Document --default-symver.
925 * ldmain.c (main): Set link_info.create_default_symver.
926 * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
927 (ld_options): Add default-symver.
928 (parse_args): Handle OPTION_DEFAULT_SYMVER.
929
7b0eaa22
DS
9302004-10-24 Danny Smith <dannysmith@users.sourceforge.net>
931
932 * pe-dll.c (process_def_file): Don't export all symbols by default if
933 building a position-independent executable.
934
dfeffb9f
L
9352004-10-21 H.J. Lu <hongjiu.lu@intel.com>
936
937 PR 463
938 * ldmain.c (reloc_overflow): Accept a pointer to struct
939 bfd_link_hash_entry. Report symbol location for relocation
940 overflow.
941
dc4f76f8
L
9422004-10-21 H.J. Lu <hongjiu.lu@intel.com>
943
944 * genscripts.sh (libpath.exp): Really generate for first
945 emulation only.
946
2a08daf3
DS
9472004-10-19 Danny Smith <dannysmith@users.sourceforge.net>
948
949 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
950 comparison and replacement of filenames.
951
532345f2
L
9522004-10-19 H.J. Lu <hongjiu.lu@intel.com>
953
954 PR 459
955 * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
956 option on linker script as the one for linker script.
957
b58f81ae
DJ
9582004-10-16 Daniel Jacobowitz <dan@debian.org>
959
960 * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
961 (check_excluded_libs): New.
962 (load_symbols): Call check_excluded_libs.
963 * ldlang.h (add_excluded_libs): New prototype.
964 * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
965 (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
966 (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
967 * ld.texinfo (Command Line Variables): Document --exclude-libs.
968 (Options Specific to i386 PE Targets): Remove --exclude-libs.
969
95c148b4
AM
9702004-10-15 Alan Modra <amodra@bigpond.net.au>
971
c468c8bc
AM
972 * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
973 failing link script assert.
974
95c148b4
AM
975 * ldctor.c (ldctor_add_set_entry): Fix comment typo.
976
951e9133
L
9772004-10-14 H.J. Lu <hongjiu.lu@intel.com>
978
979 PR 445
980 * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
981 (SMALL_DATA_DTOR): Set.
982 * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
983 (SMALL_DATA_DTOR): Unset.
984 * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
985 after .data. If SMALL_DATA_DTOR is set, move .dtors after
986 .data.
987
afd7a018
AM
9882004-10-14 Alan Modra <amodra@bigpond.net.au>
989
990 PR 63
991 * ldlang.h (lang_output_section_statement_type): Make "next" a
992 struct lang_output_section_statement_struct *.
993 (struct orphan_save): Move from elf32.em. Add "name" and "flags".
994 (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
995 * ldlang.c (lang_output_section_find_1): Adjust for changed
996 output_section_statement "next".
997 (strip_excluded_output_sections): Likewise.
998 (lang_record_phdrs): Likewise.
999 (lang_output_section_find_by_flags): New function.
1000 (output_prev_sec_find): Move from pe.em. Adjust iterator.
1001 (lang_insert_orphan): New function. Tail end of elf32.em's
1002 place_orphan merged with that from pe.em. Allow bfd_section to
1003 be placed first. New heuristic for placing new output section
1004 statement in existing script, and accompanying split of __start
1005 symbol alignment into a separate assignment to dot.
1006 (lang_add_section): Consistently use output->bfd_section rather than
1007 an alias, section->output_section.
1008 (map_input_to_output_sections): Rename overly long arg. Move
1009 initialization of data_statement output section to here..
1010 (lang_check_section_addresses): ..from here.
1011 (print_assignment): Correct printing of etree_assert.
1012 (print_all_symbols): Don't bomb if userdata is NULL.
1013 (IGNORE_SECTION): Rearrange.
1014 * emultempl/elf32.em (output_rel_find): Adjust interator.
1015 (output_prev_sec_find): Delete.
1016 (struct orphan_save): Delete.
1017 (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
1018 flags without creating a duplicate output section statement.
1019 Revise code holding history of various orphan section placements.
1020 Allow orphan sections to place before script specified output
1021 sections. Call lang_output_section_find_by_flags when placement
1022 by name fails. Use lang_insert_orphan.
1023 * emultempl/mmo.em (output_prev_sec_find): Delete.
1024 (struct orphan_save): Delete.
1025 (mmo_place_orphan): Revise code holding history of orphan placement.
1026 Allow orphans to place before existing output sections. Use
1027 lang_insert_orphan.
1028 * emultempl/pe.em (output_prev_sec_find): Delete.
1029 (struct orphan_save): Delete.
1030 (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
1031 lang_insert_orphan.
1032
c0042f5d
MM
10332004-10-13 Mark Mitchell <mark@codesourcery.com>
1034
1035 * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
1036 loadable segment.
1037
1af699f4
AM
10382004-10-13 Alan Modra <amodra@bigpond.net.au>
1039
1040 PR 44
09c112da
AM
1041 * ldcref.c (check_section_sym_xref): Delete.
1042 (check_local_sym_xref): New function.
1043 (check_nocrossrefs): Adjust call.
1af699f4
AM
1044 * emultempl/pe.em (struct orphan_save): Add os_tail.
1045 (place_orphan): Backport assorted fixes from elf32.em.
1046
7fa3d080
BW
10472004-10-12 Bob Wilson <bob.wilson@acm.org>
1048
1049 * emultempl/xtensaelf.em: Use ISO C90 formatting.
1050
d3989512
JJ
10512004-10-11 Jakub Jelinek <jakub@redhat.com>
1052
563f4125
JJ
1053 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
1054 getline for portability.
1055
d3989512
JJ
1056 * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
1057 (gld${EMULATION_NAME}_parse_ld_so_conf,
1058 gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
1059 (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
1060
6c0c5b1e
AM
10612004-10-11 Alan Modra <amodra@bigpond.net.au>
1062
1063 PR 423
1064 * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
1065 rejected when linking statically.
1066
d2b2c203
DJ
10672004-10-08 Daniel Jacobowitz <dan@debian.org>
1068
1069 * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
1070
43cd72b9
BW
10712004-10-07 Bob Wilson <bob.wilson@acm.org>
1072
1073 * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
1074 assembler-generated longcall sequences. Describe new --size-opt
1075 option.
1076 * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
1077 * emultempl/xtensaelf.em (remove_section,
1078 replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
1079 elf_xtensa_after_open): New.
1080 (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
1081 OPTION_NO_LITERAL_MOVEMENT): Define.
1082 (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
1083 (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
1084 (PARSE_AND_LIST_OPTIONS): Add --size-opt.
1085 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
1086 OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
1087 (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
1088 * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
1089 * Makefile.am (eelf32xtensa.c): Update dependencies.
1090 * Makefile.in: Regenerate.
1091
8fdd7217 10922004-10-07 Jeff Baker <jbaker@qnx.com>
6c0c5b1e 1093
8fdd7217
NC
1094 * lexsup.c: Handle --warn-shared-textrel option.
1095 (ld_options): Restore alpha sorting of options.
1096 * ldmain.c (main): Initialise warn_shared_info field to FALSE.
1097 * ld.texinfo: Add documentation for --warn-shared-textrel.
1098 * NEWS: Added mention of --warn-shared-textrel option.
1099
339207f8 11002004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
6c0c5b1e 1101
339207f8 1102 * emultempl/crxelf.em (disable_relaxation): Add.
6c0c5b1e 1103 (crxelf_before_allocation): Enable --relax option by default.
339207f8
TL
1104 (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
1105 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
1106 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
1107
bcaa7b3e
L
11082004-10-04 H.J. Lu <hongjiu.lu@intel.com>
1109
1110 * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
1111 --sort-section name|alignment.
1112
1113 * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
1114 --sort-section name|alignment.
1115
1116 * ld.h (sort_type): New enum.
1117 (wildcard_spec): Change the type of `sorted' to sort_type.
1118
1119 * ldgram.y (SORT): Removed.
1120 (SORT_BY_NAME): Added.
1121 (SORT_BY_ALIGNMENT): Added.
1122 (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
1123 SORT_BY_ALIGNMENT.
1124 (input_section_spec_no_keep): Updated `sorted'.
1125 (statement): Replace SORT with SORT_BY_NAME.
1126
1127 * ldlang.c (compare_section): New function to compare 2
1128 sections with different sorting schemes.
1129 (wild_sort): Updated. Use compare_section.
1130 (update_wild_statements): New function.
1131 (lang_process): Call update_wild_statements before
1132 map_input_to_output_sections.
1133
1134 * ldlex.l (SORT_BY_NAME): New.
1135 (SORT_BY_ALIGNMENT): New.
1136 (SORT): Return SORT_BY_NAME.
1137
1138 * ldmain.c (sort_section): New. Defined.
1139 (main): Initialize it to none.
1140
1141 * lexsup.c (option_values): Add OPTION_SORT_SECTION.
1142 (ld_options): Add an entry for OPTION_SORT_SECTION.
1143 (parse_args): Handle OPTION_SORT_SECTION.
1144
1145 * mri.c (mri_draw_tree): Updated `sorted'.
1146
a4f5ad88
JJ
11472004-10-04 Jakub Jelinek <jakub@redhat.com>
1148
1149 * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
1150 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
1151 argument.
1152 (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
1153 and . as second argument.
1154 (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
1155 * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
1156 (fold_binary): Add it here. Insert padding to make relro_end
1157 COMMONPAGESIZE bytes aligned. For DATA_SEGMENT_ALIGN in
1158 exp_dataseg_relro_adjust phase just use previously computed
1159 exp_data_seg.base.
1160 * ldlang.c (lang_size_sections): Set exp_data_seg.base for
1161 relro_adjust here. Call lang_size_sections_1 once more if there
1162 was too big padding at DATA_SEGMENT_RELRO_END.
1163 * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
1164
40a18ebd
NC
11652004-10-01 Paul Brook <paul@codesourcery.com>
1166
1167 * emulparams/armelf.sh: Add unwinding table sections.
1168
db8acf26
NC
11692004-09-30 Filip Navara <navaraf@reactos.com>
1170
1171 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
1172 correct base address for position independant executables.
1173 * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
1174 executables as DLLs.
1175
eeac373a
PB
11762004-09-30 Paul Brook <paul@codesourcery.com>
1177
1178 * ld.texinfo: Document --target2=abs.
1179 * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
1180
1ee7cf4c
NC
11812004-09-29 Nick Clifton <nickc@redhat.com>
1182
1183 * scripttempl/xstormy16.sc: Only perform the assignments to the
1184 ROM region when not performing a relocatable link. The ROM region
1185 does not start at address 0, but the sections will.
1186 * Makefile.am: Fix linker script dependency for the generation of
1187 eelf32xstormy16.c.
1188 * Makefile.in: Regenerate.
1189
03098a9a
CF
11902004-09-18 Filip Navara <navaraf@reactos.com>
1191
1192 * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
1193 emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
1194 emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
1195 TARGET_PAGE_SIZE.
1196 * scripttempl/pe.sc: Make the virtual address and file offset synced if
1197 the alignment is lower than the target page size.
1198
f2d3750d
CF
11992004-09-27 Filip Navara <navaraf@reactos.com>
1200
1201 * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
1202 def_file_parse to handle pe_def_file if NULL and prevent crash with
1203 invalid .def files.
1204
a23d8409
AM
12052004-09-27 Alan Modra <amodra@bigpond.net.au>
1206
1207 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
1208 --emit-stub-syms automatically when --emit-relocs.
1209
7b89fa29
PB
12102004-09-24 Paul Brook <paul@codeosurcery.com>
1211
1212 * scripttempl/elf.sc: Keep .preinit_array, .init_array and
1213 .fini_array sections.
1214
e2a68bcc
AS
12152004-09-19 Andreas Schwab <schwab@suse.de>
1216
1217 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
1218 base so that relro end is suitably aligned.
1219
3674e28a
PB
12202004-09-17 Paul Brook <paul@codesourcery.com>
1221
1222 * ld.texinfo: Rename arm-specific section. Document --target*
1223 * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
1224 * emulparams/armelf_linux.sh: Ditto.
1225 * emulparams/armelf_nbsd.sh: Ditto.
1226 * emultempl/armelf.em: Set default for TARGET2_TYPE.
1227 (target2_type): New variable.
1228 (arm_elf_before_allocation): Don't pass target1_type.
1229 (arm_elf_create_output_section_statements): New function.
1230 (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
1231 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
1232 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
1233 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
1234 * emultempl/armelf_oabi.em (_before_allocation): Remove extra
1235 argument to bfd_elf32_arm_process_before_allocation.
1236
f6e332e6
AM
12372004-09-17 Alan Modra <amodra@bigpond.net.au>
1238
1239 * ldexp.c (fold_name): Update u.undef.next refs.
1240 * emultempl/pe.em: Likewise.
1241 * emultempl/sunos.em: Likewise.
1242
9c933e04
AM
12432004-09-17 Alan Modra <amodra@bigpond.net.au>
1244
1245 * Makefile.am: Run "make dep-am".
1246 * Makefile.in: Regenerate.
1247 * config.in: Regenerate.
1248 * configure: Regenerate.
1249 * aclocal.m4: Regenerate.
1250 * po/ld.pot: Regenerate.
1251
1fa32646
TL
12522004-09-16 Tomer Levi <Tomer.Levi@nsc.com>
1253
9c933e04
AM
1254 * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
1255 (.fini): Likewise.
1256 (.jcr): Likewise.
1fa32646 1257
b6ee372a
AM
12582004-09-16 Alan Modra <amodra@bigpond.net.au>
1259
1260 * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
1261 to bfd_elf32_arm_process_before_allocation call.
1262
9c504268
PB
12632004-09-13 Paul Brook <paul@codesourcery.com>
1264
1265 * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
1266 * emultempl/armelf.em: Use TARGET1_IS_REL. Add --target1-{rel,abs}.
1267
d15b04bd
L
12682004-09-07 H.J. Lu <hongjiu.lu@intel.com>
1269
1270 * configure: Regenerated with autconfig 2.13.
1271
875c4330
AS
12722004-09-07 Andreas Schwab <schwab@suse.de>
1273
1274 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
1275 alignment before adjusting DATA_SEGMENT_RELRO_END.
1276
229fcec5
MM
12772004-09-06 Mark Mitchell <mark@codesourcery.com>
1278
1279 * emulparams/armsymbian.sh: Use armbpabi script.
1280 * scripttempl/armbpabi.sc: New script.
1281
e5a52504
MM
12822004-09-02 Mark Mitchell <mark@codesourcery.com>
1283
1284 * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
1285 (earmsymbian.c): New target.
1286 * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
1287 * Makefile.in: Regenerated.
1288 * aclocal.m4: Likewise.
1289 * configure: Likewise.
1290 * emulparams/armsymbian.sh: New file.
1291
42851540
NC
12922004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
1293
1294 * scripttempl/elf32crx.sc: Edit file with comments.
1295 (.init): Add new section.
1296 (.fini): Likewise.
1297 (.ctor): Control the linkage order.
1298 (.dtor): Likewise.
1299
c034e3e0
NC
13002004-08-27 Nick Clifton <nickc@redhat.com>
1301
1302 * emultempl/pe.em (after_open): Do not assume that either bfd is
9c933e04 1303 an archive.
c034e3e0 1304
688c58f3
AM
13052004-08-26 Alan Modra <amodra@bigpond.net.au>
1306
1307 * ldlang.c (lang_init): Don't compare with TRUE.
1308
b18c562e
NC
13092004-08-25 Dmitry Diky <diwil@spec.ru>
1310
1311 * emulparams/msp430all.sh: Fix RAM sizes for all targets.
1312 * scripttempl/elf32msp430.sc: Add .profiler section definition.
1313
61f5d054
L
13142004-08-24 H.J. Lu <hongjiu.lu@intel.com>
1315
1316 * ldlang.c (wildcardp): Defined as a macro with strpbrk.
1317
e77d3d77
MM
13182004-08-19 Mark Mitchell <mark@codesourcery.com>
1319
1320 * configure.tgt (arm*-*-symbianelf*): New target.
1321 (arm*-*-eabi*): Likewise.
1322
3f764659
JJ
13232004-08-19 Jakub Jelinek <jakub@redhat.com>
1324
1325 * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
1326 (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
1327 (OPTION_NON_OVERLAPPING_OPD): Define.
1328 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
1329 --non-overlapping-opd option.
1330
a010d60f
AM
13312004-08-18 Alan Modra <amodra@bigpond.net.au>
1332
1333 PR 338
1334 * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
1335 was already on the undefs list.
1336
c4e33880
AM
13372004-08-17 Alan Modra <amodra@bigpond.net.au>
1338
1339 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
1340 prefix the symbol field too.
1341
d003868e
AM
13422004-08-13 Alan Modra <amodra@bigpond.net.au>
1343
1344 * ldmain.c (link_callbacks): Remove "error_handler".
1345 * ldmisc.c: Include elf-bfd.h.
1346 (vfinfo): Sort comment. Handle %A. Use %A instead of
1347 bfd_get_section_indent.
1348 (error_handler): Delete.
1349 * ldmisc.h (error_handler): Delete declaration.
1350
99877b66
AM
13512004-08-10 Alan Modra <amodra@bigpond.net.au>
1352
1353 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
1354 ppc64_elf_restore_symbols.
1355
40e45c8b
AM
13562004-08-09 Alan Modra <amodra@bigpond.net.au>
1357
1358 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
1359 .toc is too large on relocatable linking.
1360
ccfa59ea
AM
13612004-08-09 Alan Modra <amodra@bigpond.net.au>
1362
1363 * emultempl/ppc64elf.em (ppc_after_open): Delete.
1364 (LDEMUL_AFTER_OPEN): Don't define.
1365
93fd0973
SC
13662004-08-02 Stephane Carrez <stcarrez@nerim.fr>
1367
1368 * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
1369
f1b123db
SC
13702004-08-01 Stephane Carrez <stcarrez@nerim.fr>
1371
1372 * scripttempl/elfm68hc12.sc: Align text, rodata and data section
1373 on power of 2.
1374
e7fbc2bf
JT
13752004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
1376
1377 * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
1378
c05e9f04
NC
13792004-07-26 Dmitry Diky <diwil@spec.ru>
1380
1381 * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
1382 msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
1383 msp430xG439.
1384 * configure.tgt: Likewise.
1385 * emulparams/msp430all.sh: Likewise.
1386 * Makefile.in: Regenerate.
1387
9f61903d
NC
13882004-07-23 Nick Clifton <nickc@redhat.com>
1389
1390 * emultempl/elf32.em (_place_orphan): Use an already existing
1391 section name if that section does not have any flags set.
1392
082b7297
L
13932004-07-21 H.J. Lu <hongjiu.lu@intel.com>
1394
1395 * ldlang.c (already_linked_hash_entry): Removed.
1396 (already_linked): Likewise.
1397 (already_linked_table): Likewise.
1398 (section_already_linked): Call bfd_section_already_linked.
1399 (lang_process): Replace already_linked_table_init with
1400 bfd_section_already_linked_table_init and check return. Replace
1401 already_linked_table_free with bfd_section_already_linked_table_free.
1402
76d7af2d
NC
14032004-07-21 Nick Clifton <nickc@redhat.com>
1404
1405 * ldlang.c (init_os): Make sure that the newly allocated userdata
1406 structure is zeroed out.
1407
14b3c463
L
14082004-07-19 H.J. Lu <hongjiu.lu@intel.com>
1409
1410 * NEWS: Mention the new --add-needed/--no-add-needed and
1411 --as-needed/--no-as-needed options.
1412
e56f61be
L
14132004-07-19 H.J. Lu <hongjiu.lu@intel.com>
1414
1415 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
1416 check the add_needed field.
1417 (dt_needed): New struct.
1418 (gld${EMULATION_NAME}_try_needed): Change the first argument
1419 to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
1420 bit in the file where the DT_NEEDED entry comes from.
1421 (gld${EMULATION_NAME}_search_needed): Change the second
1422 argument to a pointer to struct dt_needed.
1423 (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
1424 (gld${EMULATION_NAME}_after_open): Likewise.
1425
1426 * ld.texinfo: Add --add-needed document.
1427 * ldlang.c (new_afile): Set p->add_needed.
1428 * ldlang.h (lang_input_statement_type): Add add_needed field.
1429 * ldmain.h (add_needed): Declare.
1430 * ldmain.c (add_needed): New global var.
1431 * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
1432 OPTION_NO_ADD_NEEDED.
1433 (ld_options): Likewise.
1434 (parse_args): Handle them.
1435
c99b8138
NC
14362004-07-13 Christof Petig <christof@petig-baender.de>
1437
1438 * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
1439 for endian-ness of extracted addend.
1440
13ed4151
NC
14412004-07-13 Danny Smith <dannysmith@usesr.sourceforge.net>
1442
1443 * pe-dll.c (auto_export): Filter on just the import prefix,
1444 "_imp_", not "_imp__".
1445
1a320fbb
NC
14462004-07-09 Nick Clifton <nickc@redhat.com>
1447
1448 * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
1449
1fe1f39c
NC
14502004-07-06 Tomer Levi <Tomer.Levi@nsc.com>
1451
1452 * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
1453 (eelf32crx.c): New target.
1454 * Makefile.in: Regenerate.
1455 * configure.tgt: Handle crx-*-elf*.
1456 * emulparams/elf32crx.sh: New file.
1457 * emultempl/crxelf.em: New file.
1458 * scripttempl/elf32crx.sc: New file.
1459 * NEWS: Mention new target.
1460
85fbca6a
NC
14612004-07-06 Nick Clifton <nickc@redhat.com>
1462
1463 * Makefile.am: Add eshlsymbian.c.
1464 * Makefile.in: Regenerate.
1465 * configure.tgt: Add sh*-symbian-elf target.
1466 * emulparams/shlsymbian.sh: New file. Configure the
1467 sh-symbian-elf linker scripts.
1468 * scripttemp/elf32sh-symbian.sc: New file. Linker script
1469 template for the sh-symbian-elf target.
1470
b71a5181
DA
14712004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1472
1473 * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
1474 * emulparams/hppalinux.sh: Likewise.
1475 * scripttempl/elf.sc: Place .plt just before .got when .plt is in
1476 data segment and PLT_BEFORE_GOT is defined.
1477
c87db184
CF
14782004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1479
1480 * ld.texinfo (WIN32): Document PE weak symbols.
1481
f6a8ae81
KK
14822004-07-02 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1483
1484 * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
1485
b602c853
L
14862004-07-01 H.J. Lu <hongjiu.lu@intel.com>
1487
1488 * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
1489 the section.
1490
1a23a9e6
AM
14912004-06-29 Alan Modra <amodra@bigpond.net.au>
1492
1493 * ldlang.c (lang_reset_memory_regions): Save last relax pass section
1494 size in rawsize.
1495
eea6121a
AM
14962004-06-24 Alan Modra <amodra@bigpond.net.au>
1497
1498 * ldlang.c (print_output_section_statement): Don't print size before
1499 relaxation.
1500 (IGNORE_SECTION): Remove bfd arg. Update all callers.
1501
1502 * ldexp.c (fold_name): .. See below.
1503 * ldlang.c (section_already_linked, print_output_section_statement,
1504 print_input_section, insert_pad, size_input_section,
1505 lang_check_section_addresses, lang_size_sections_1,
1506 lang_size_sections, lang_do_assignments_1, lang_set_startof,
1507 lang_one_common, lang_reset_memory_regions, lang_process,
1508 lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
1509 * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
1510 * pe-dll.c (process_def_file, generate_reloc): ..
1511 * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
1512 gld${EMULATION_NAME}_before_allocation): ..
1513 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
1514 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
1515 sh64_elf_${EMULATION_NAME}_after_allocation): ..
1516 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
1517 * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
1518 ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
1519 "size" instead of "_raw_size" and "_cooked_size". Expand
1520 bfd_section_size macro invocations.
1521
552f8272
CF
15222004-06-22 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1523
1524 * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
1525 ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
1526 ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
1527 ___crt_xt_end__.
1528 (.tls): Define ___tls_start__ and ___tls_end__.
1529
aee6f5b4
AO
15302004-06-21 Alexandre Oliva <aoliva@redhat.com>
1531
1532 * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
1533
eea6121a 15342004-06-18 Adam Nemet <anemet@lnxw.com>
f234d5fe 1535
eea6121a
AM
1536 * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
1537 * configure: Regenerate.
f234d5fe 1538
dfff4fbe
JJ
15392004-06-15 Jakub Jelinek <jakub@redhat.com>
1540
1541 * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
1542 .gcc_except_table output sections lost accidentally with
1543 -z relro patch.
1544
a9e0c0c6
AM
15452004-06-15 Alan Modra <amodra@bigpond.net.au>
1546
1547 * ldwrite.c (build_link_order): Use bfd_get_section_size
1548 instead of bfd_get_section_size_before_reloc or _raw_size.
1549 * pe-dll.c (process_def_file): Likewise.
1550
7115639b
AM
15512004-06-14 Alan Modra <amodra@bigpond.net.au>
1552
1553 From Richard Wirth <r.wirth@wirthware.de>
1554 * ldlang.c (lang_finish): Don't free lang_definedness_table.
1555
9ca57817
AM
15562004-05-29 Alan Modra <amodra@bigpond.net.au>
1557
1558 * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
1559 (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
1560
164e712d
AM
15612004-05-28 Alan Modra <amodra@bigpond.net.au>
1562
6feb9908
AM
1563 * ldlang.c: Formatting. Wrap long lines, expand bfd_get_section_flags
1564 throughout file.
1565 * lexsup.c: Formatting. Wrap long lines.
1566 * ldwrite.c: Update copyright date.
1567
164e712d
AM
1568 * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
1569 (output_section_callback): Nor SEC_KEEP here.
1570 (gc_section_callback): Twiddle SEC_EXCLUDE here.
1571 (lang_gc_wild): Delete. Fold into..
1572 (lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage
1573 collecting.
1574 (lang_process): Always call lang_gc_sections.
1575 (lang_place_orphans): Handle SEC_EXCLUDE sections.
1576 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
1577 SEC_EXCLUDE code.
1578
b3096250
L
15792004-05-26 H.J. Lu <hongjiu.lu@intel.com>
1580
1581 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
1582 SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
1583 * ldlang.c (lang_add_section): Likewise.
1584
e49f5022
AM
15852004-05-26 Alan Modra <amodra@bigpond.net.au>
1586
1587 * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
1588 sections when doing a final link. Clear SEC_EXCLUDE when doing
1589 a relocable link, except for SEC_DEBUGGING sections.
1590 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
1591 same condition here to drop SEC_EXCLUDE orphan sections.
1592
57ceae94
AM
15932004-05-25 Alan Modra <amodra@bigpond.net.au>
1594
1595 * ldlang.c (lang_process): Call bfd_merge_sections later, and
1596 only when not a relocatable link.
1597 (print_input_section): Handle SEC_EXCLUDE sections.
1598 (size_input_section): Don't update dot on SEC_EXCLUDE sections.
1599 (lang_do_assignments_1): Likewise.
1600 * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
1601 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
1602 * emultempl/hppaelf.em (build_section_lists): Likewise.
1603 * emultempl/ppc64elf.em (build_toc_list): Likewise.
1604 (build_section_lists): Likewise.
1605
a85785bc
AS
16062004-05-23 Andreas Schwab <schwab@suse.de>
1607
1608 * ld.texinfo (Options): Fix typo in last change.
1609
2d643429
NC
16102004-05-21 Andy Chittenden <achittenden@bluearc.com>
1611
1612 * ld.h (ld_config_type): Add new field: hash_table_size.
1613 * ldmain.c: Initialise the new field to zero. If it is non-zero
1614 after parsing the linker's command line call
1615 bfd_hash_set_default_size.
1616 * lexsup.c (option_values): Add OPTION_HASH_SIZE.
1617 (ld_options): Add hash-size.
1618 (parse_args): Parse --hash-size option. Allow
1619 --reduce-memory-overheads to set the default hash table size as
1620 well.
1621 * ld.texinfo: Document the new switch. Also mention that
1622 --reduce-memory-overheads can affect the hash table size.
1623 * NEWS: Mention the new feature.
1624
35835446
JR
16252004-05-19 J"orn Rennecke <joern.rennecke@superh.com>
1626
1627 * NEWS: Mention new linker map file generation and the
1628 --reduce-memory-overheads option.
1629 * ld.texinfo: Document --reduce-memory-overheads option.
1630 * ld.h (map_symbol_def): New struct.
1631 (struct user_section_struct, section_userdata_type): Rename to:
1632 (struct lean_user_section_struct, lean_section_userdata_type).
1633 (struct fat_user_section_struct, fat_section_userdata_type): New.
1634 (SECTION_USERDATA_SIZE): Define.
1635 (args_type): New member reduce_memory_overheads.
1636 * ldlang.c (map_obstack): New static variable.
1637 (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
1638 (lang_map): Unless command_line.reduce_memory_overheads is set,
1639 initialize lists of defined symbols for each section.
1640 (print_input_section): Unless command_line.reduce_memory_overheads
1641 is set, use print_all_symbols.
1642 (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
1643 * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
1644 * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
1645 (ld_options): Add entry for --reduce-memory-overheads.
1646 (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
1647
0841712e
JJ
16482004-05-19 Jakub Jelinek <jakub@redhat.com>
1649
1650 * ldgram.y (sect_constraint): New.
1651 (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1652 (section): Add sect_constraint. Pass additional argument
1653 to lang_enter_output_section_statement.
1654 * mri.c (mri_draw_tree): Pass additional argument to
1655 lang_enter_output_section_statement.
1656 * emultempl/pe.em (place_orphan): Likewise.
1657 (output_prev_sec_find): Disregard output section statements with
1658 constraint == -1.
1659 * emultempl/mmo.em (output_prev_sec_find): Likewise.
1660 (mmo_place_orphan): Pass additional argument to
1661 lang_enter_output_section_statement.
1662 * emultempl/elf32.em (output_prev_sec_find): Disregard output section
1663 statements with constraint == -1.
1664 (place_orphan): Pass additional argument to
1665 lang_enter_output_section_statement.
1666 * ldlang.c (lang_enter_overlay_section): Likewise.
1667 (lang_output_section_find_1): New.
1668 (lang_output_section_find): Use it.
1669 (lang_output_section_statement_lookup_1): New.
1670 (lang_output_section_statement_lookup): Use it.
1671 (check_section_callback, check_input_sections): New.
1672 (map_input_to_output_sections): Check if all input sections
1673 are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
1674 (strip_excluded_output_sections): Disregard output section statements
1675 with constraint == -1.
1676 (lang_record_phdrs): Likewise.
1677 (lang_enter_output_section_statement): Add constraint argument.
1678 Use lang_output_section_statement_lookup_1.
1679 * ldlang.h (lang_output_section_statement_type): Add constraint
1680 and all_input_readonly fields.
1681 (lang_enter_output_section_statement): Adjust prototype.
1682 * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1683 * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
1684 segment if all input sections are readonly.
1685
eea6121a 16862004-05-19 Adam Nemet <anemet@lnxw.com>
f2c50328
NC
1687
1688 * scripttempl/i386lynx.sc: Remove file.
1689
2a16d82a
BW
16902004-05-17 Bob Wilson <bob.wilson@acm.org>
1691
1692 * ld.texinfo (Output Section Address): Correct subsection name.
1693
eea6121a 16942004-05-17 Adam Nemet <anemet@lnxw.com>
b2d65c0b
NC
1695
1696 * configure.tgt (powerpc-*-lynxos* case): New case.
1697 * configure.host (i[3-7]86-*-lynxos* case): Remove case.
1698 * emulparams/ppclynx.sh: New file.
1699 * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
1700 * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
1701 (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
1702 (eppclynx.c): New rule.
1703 * Makefile.in: Regenerate.
1704
4b363073
NC
17052004-05-13 Joel Sherrill <joel@oarcorp.com>
1706
1707 * configure.tgt (or32-*-rtems*): Switch to elf and
1708 support versioned targets.
1709
9598fbe5
NC
17102004-05-13 Nick Clifton <nickc@redhat.com>
1711
1712 * po/fr.po: Updated French translation.
1713
8c37241b
JJ
17142004-05-11 Jakub Jelinek <jakub@redhat.com>
1715
1716 * genscripts.sh: Generate -z combreloc -z now -z relro scripts
1717 for binaries, -shared and -pie.
1718 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
1719 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
1720 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
1721 (OTHER_RELRO_SECTIONS): ... this.
1722 * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
1723 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
1724 -z relro and -z norelro.
1725 (gld${EMULATION_NAME}_list_options): Add it to usage.
1726 (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
1727 -z relro scripts when appropriate.
1728 * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
1729 Create separate .got.plt section if SEPARATE_GOTPLT.
1730 Move sections which are only written during relocation handling
1731 to the beginning of RW segment. If NO_SMALL_DATA, move .got
1732 before .data. Add DATA_SEGMENT_RELRO_END directive.
1733 Include OTHER_RELRO_SECTIONS.
1734 * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
1735 * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
1736 (fold_unary): Likewise.
1737 (fold_binary): Handle -z relro.
1738 * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
1739 exp_dataseg_relro_adjust phases. Add relro_end field.
1740 * ldmain.c (main): Initialize link_info.relro to FALSE.
1741 * ldlang.c (lang_size_sections): Handle -z relro.
1742
e21059f2
MM
17432004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
1744
1745 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
1746
5f9b8920
JR
17472004-05-07 J"orn Rennecke <joern.rennecke@superh.com>
1748
1749 * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
1750 before printing it with %W.
1751
26d2d8a2 17522004-05-07 Brian Ford <ford@vss.fsi.com>
eea6121a 1753 DJ Delorie <dj@redhat.com>
26d2d8a2
BF
1754
1755 * emultempl/pe.em (real_flags): New static.
1756 (OPTION_LARGE_ADDRESS_AWARE): New define.
1757 (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
1758 (gld_${EMULATION_NAME}_list_options): Likewise.
1759 (gld${EMULATION_NAME}_handle_option): Likewise.
1760 (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
1761 * ld.texinfo: Document it.
1762 * NEWS: Mention it.
1763
1b169501
BF
17642004-05-07 Brian Ford <ford@vss.fsi.com>
1765
1766 * NEWS: Mention DWARF 2 support for i386pe.
1767
41cf0c62
AO
17682004-05-05 Alexandre Oliva <aoliva@redhat.com>
1769
1770 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
1771 elf32-frvfdpic.
1772
d0d6a25b
AM
17732004-04-30 Alan Modra <amodra@bigpond.net.au>
1774
1775 * ldlang.c (unique_section_p): Pass section parm, return true on
1776 group sections.
1777 (output_section_callback): Adjust.
1778 * ldlang.h (unique_section_p): Update prototype.
1779 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
1780
755306be
EB
17812004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
1782
eea6121a 1783 * ld.texinfo (--gc-sections): Remove restriction for
755306be
EB
1784 dynamic linking.
1785
8a7140c3
NC
17862004-04-29 Brian Ford <ford@vss.fsi.com>
1787
1788 * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
1789 for DWARF 2/3. Update stab section's syntax.
1790
2f9636ba
AM
17912004-04-29 Alan Modra <amodra@bigpond.net.au>
1792
1793 * pe-dll.c: Revert changes accidentally committed 2004-03-08.
1794 (fill_edata): Correct pointer arithmetic.
1795
23867d67
CD
17962004-04-21 Chris Demetriou <cgd@broadcom.com>
1797
1798 * ld.texinfo: Remove MIPS --embedded-relocs documentation.
1799 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
1800 * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
1801 (EXTRA_EM_FILE): Use mipsecoff.em
1802 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
1803 (EXTRA_EM_FILE): Use mipsecoff.em
1804 * emultempl/mipsecoff.em: Restructure to be included as an
1805 extra emulation file.
1806 (check_sections, gld${EMULATION_NAME}_after_open)
1807 (gld${EMULATION_NAME}_after_allocation)
1808 (gld${EMULATION_NAME}_get_script)
1809 (ld_${EMULATION_NAME}_emulation): Remove
1810 (gld${EMULATION_NAME}_before_parse): Rename to...
1811 (mipsecoff_before_parse): This.
1812 (LDEMUL_BEFORE_PARSE): Define.
1813 * emultempl/mipself.em: Remove file.
1814 * scripttempl/mips.sc (.rel.sdata): Do not include in output.
1815 (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
1816 these symbols.
1817 * Makefile.am: Remove dependencies on emultempl/mipself.em.
1818 * Makefile.in: Regenerate.
1819
1502569c
NC
18202004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
1821
1822 * ld.texinfo (synthesizing on H8/300): Information about linker
1823 relaxation support for bit manipulation instructions and system
1824 control instructions is added.
1825
c894ddfb
HPN
18262004-04-21 Hans-Peter Nilsson <hp@axis.com>
1827
1828 * NEWS: Mention change in DEFINED semantics.
1829
a85bf78e
EB
18302004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
1831
1832 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
1833 (.data): Add KEEP for .gnu.linkonce.d.*personality*.
1834 (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
1835
58434bc1
BE
18362004-04-21 Ben Elliston <bje@au.ibm.com>
1837
1838 * ld.texinfo (Simple Example): Add missing punctuation.
1839
7a7f4e42
CD
18402004-04-20 Chris Demetriou <cgd@broadcom.com>
1841
1842 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
1843
3737f867
JJ
18442004-04-19 Jakub Jelinek <jakub@redhat.com>
1845
1846 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
1847 specially.
1848
3c17e4f7
DS
18492004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
1850
1851 * scriptempl/pe.sc: Put numbered .ctors.* after .ctors
1852 with default priority. Likewise for dtors.
1853
279500de
TS
18542004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1855
1856 * configure.host: Remove mips*-dec-bsd* target.
1857 * configure.tgt: Likewise.
1858
52f89c0a
RS
18592004-04-08 Richard Sandiford <rsandifo@redhat.com>
1860
1861 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
1862 * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
1863 * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
1864 * emultempl/irix.em: New file.
1865 * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
1866 dependencies.
1867 * Makefile.in: Regenerate.
1868
e489d0ae
PB
18692004-04-01 Paul Brook <paul@codesourcery.com>
1870
1871 * emultempl/armelf.em (byteswap_code): Add.
1872 (arm_elf_before_allocation): Pass extra parameter.
1873 (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
1874 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
1875 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
1876 * emultempl/armelf_oabi.em: Pass extra parameter.
1877 * ld.texinfo: Document --be8.
1878
7cc8057a
SS
18792004-03-30 Stan Shebs <shebs@apple.com>
1880
1881 Remove long-obsolete MPW support.
1882 * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
1883 * Makefile.am (mpw): Remove file-presynthesizing actions.
1884 * Makefile.in: Likewise.
1885 * ldfile.c (slash): Remove MPW case.
1886 * ldlex.l [MPW]: Remove unused definition.
1887
0949843d
NC
18882004-03-30 Galit Heller <Galit.Heller@nsc.com>
1889
1890 * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
1891 (eelf32cr16c.c): New target.
1892 * Makefile.in: Regenerate.
1893 * configure.tgt: Handle cr16c-*-elf*.
1894 * emulparams/elf32cr16c.sh: New file.
1895 * scripttempl/elfcr16c.sc: Likewise
1896 * NEWS: Mention support for new target.
1897
0a159ef8
NC
18982004-03-30 Nick Clifton <nickc@redhat.com>
1899
1900 * po/sv.po: Updated Swedish translation.
1901
7a945db6
AM
19022004-03-27 Alan Modra <amodra@bigpond.net.au>
1903
1904 * emultempl/elf32.em: Update new bfd_elf_discard_info name.
1905 * emultempl/hppaelf.em: Likewise.
1906 * emultempl/ppc64elf.em: Likewise.
1907 * emultempl/sh64elf.em: Likewise.
1908
5a580b3a
AM
19092004-03-25 Alan Modra <amodra@bigpond.net.au>
1910
1911 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
1912 size_dynamic_sections call.
1913
b9cf773d
AM
19142004-03-23 Alan Modra <amodra@bigpond.net.au>
1915
1916 PR 51.
1917 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
1918 link_info.wrap_char.
1919
59c2e50f
L
19202004-03-20 H.J. Lu <hongjiu.lu@intel.com>
1921
1922 * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
1923 or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
1924
44349745
AO
19252004-03-20 Alexandre Oliva <aoliva@redhat.com>
1926
1927 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
1928
81359a70
AM
19292004-03-19 Alan Modra <amodra@bigpond.net.au>
1930
1931 * config.in: Regenerate.
1932 * po/ld.pot: Regenerate.
1933
4a43e768
AM
19342004-03-18 Alan Modra <amodra@bigpond.net.au>
1935
1936 * ld.texinfo: Add --as-needed doco.
1937 * ldmain.c (as_needed): New global var.
1938 * ldmain.h (as_needed): Declare.
1939 * lexsup.c (option_values): Add OPTION_AS_NEEDED and
1940 OPTION_NO_AS_NEEDED.
1941 (ld_options): Likewise.
1942 (parse_args): Handle them.
1943 * ldlang.h (lang_input_statement_type): Add as_needed field.
1944 * ldlang.c (new_afile): Set p->as_needed.
1945 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
1946 (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
1947 (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
1948
1949 * ldlang.c (open_input_bfds): Remove useless cast.
1950 (lang_do_assignments_1): Likewise.
1951 (lang_for_each_input_section): Delete.
1952
9183ed4b
AM
19532004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1954
1955 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
1956
ee31fbd0
NC
19572004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
1958
1959 * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
1960 private when building implib.
1961
e5caec89
NS
19622004-03-05 Nathan Sidwell <nathan@codesourcery.com>
1963
1964 * ldlang.c (lang_add_section): Don't force SEC_LOAD on
1965 SEC_THREAD_LOCAL.
1966 (IGNORE_SECTION): Ignore .tbss sections too.
1967 (lang_size_sections_1): .tbss sections do not advance dot.
1968
cc2f008e
AS
19692004-03-01 Andreas Schwab <schwab@suse.de>
1970
1971 * ld.texinfo (Options): Fix example for --wrap.
1972
f5a95868
DS
19732004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
1974
1975 * pe-dll.c (fill_edata): Check that exported_symbol_sections is
1976 not NULL.
1977
177b729b
ILT
19782004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
1979
1980 * ldlang.c (lang_check): Use %P, not %E, in error message.
1981
1b493742
NS
19822004-02-23 Nathan Sidwell <nathan@codesourcery.com>
1983
1984 * ldlang.h (struct lang_output_section_state): Change processed
1985 field's type.
1986 * ldexp.c (check, invalid): Remove.
1987 (fold_name): Move valid_p assignments. Create undefined symbol
1988 when needed. Directly exampine section's processd flag.
1989 * ldlang.c (lang_output_section_statement_lookup): Adjust
1990 processed field init.
1991 (lang_size_sections_1): Allow LOADADDR when determining section's
1992 VMA. Adjust error message. Fold data statement's expr.
1993 (lang_size_sections): Correctly increment lang_statement_iteration.
1994
19952004-02-23 Alan Modra <amodra@bigpond.net.au>
1996
1997 * ldexp.c (fold_tree): Follow indirect symbols.
b9cf773d 1998
876f4090
NS
19992004-02-20 Nathan Sidwell <nathan@codesourcery.com>
2000
2001 * ldgram.y (exp): Add two operand ALIGN.
2002 * ldexp.c (fold_binary): Add ALIGN_K case.
2003 * ld.texinfo (ALIGN): Document two operand version.
2004
384d938f
NS
20052004-02-19 Nathan Sidwell <nathan@codesourcery.com>
2006
2007 * ldlang.c (map_input_to_output_sections): Initialize sections
2008 mentioned in a data statement expression.
2009 (lang_do_assignments_1): Add data statement's expression's
2010 section's vma.
2011
b6ca8815
NS
20122004-02-18 Nathan Sidwell <nathan@codesourcery.com>
2013
2014 * ldgram.y (statement_anywhere): Add assert rule.
2015 * ldlang.c (exp_init_os): Add assert case.
2016
c92c35e7
AC
20172004-02-14 Andrew Cagney <cagney@redhat.com>
2018
2019 * ldmain.c (remove_output): Call bfd_cache_close.
2020
9bf78c99
RS
20212004-02-14 Richard Sandiford <rsandifo@redhat.com>
2022
2023 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
2024 .MIPS.content* and .MIPS.events* sections.
2025
f3806916
DJ
20262004-02-09 Daniel Jacobowitz <drow@mvista.com>
2027
2028 * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
2029 .note.gnu.arm.ident to after allocated sections. Mark its
2030 address as 0.
2031
4c8e70d7
DJ
20322004-02-09 Daniel Jacobowitz <drow@mvista.com>
2033
2034 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
2035 * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
2036 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
2037 * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
2038 * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
2039
ff71f4f7
NC
20402004-02-05 Nick Clifton <nickc@redhat.com>
2041
2042 * emultempl/pe.em (_after_open): Fix typo in previous delta.
2043
07a68a80
NC
20442004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
2045
2046 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
2047
1dd3bf68
AM
20482004-01-28 Alan Modra <amodra@bigpond.net.au>
2049
586196d5
AM
2050 * genscripts.sh: Fix typo.
2051
1dd3bf68
AM
2052 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
2053
13d9421f
JJ
20542004-01-24 Jakub Jelinek <jakub@redhat.com>
2055
2056 * emulparams/elf64_ia64.sh: Put .rela.opd into
2057 OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
2058
4d8907ac
DS
20592004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
2060
2061 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
2062 * ld.texinfo (--omagic): Note that writable text section
2063 does not conform to published PE-COFF specs.
2064 (--enable-auto-import): Likewise.
2065
e5c60db5
AM
20662004-01-15 Alan Modra <amodra@bigpond.net.au>
2067
2068 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
2069
6bdafbeb
NC
20702004-01-13 Nick Clifton <nickc@redhat.com>
2071
2072 * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
2073 which if true will prevent the LMA region being used as a
2074 replacement for a default VMA region.
586196d5
AM
2075 (lang_leave_output_section_statement): Pass extra parameter.
2076 (lang_leave_overlay): Likewise.
2077 * ld.texinfo (Output Section LMA): Document that the LMA
6bdafbeb
NC
2078 region can be set to the VMA region if no VMA has been set.
2079 * ldlang.h (struct lang_output_section_phdr_list): Create a
2080 typedef for this type. Minor formatting fixes.
586196d5 2081
9dfc8ab2
NC
20822004-01-13 Nick Clifton <nickc@redhat.com>
2083
2084 * ldlang.c (lang_size_sections_1): If dot is advanced, then
2085 assume that the section should be allocated.
2086
8325c4dd
AM
20872004-01-13 Alan Modra <amodra@bigpond.net.au>
2088
2089 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
2090 sections. Do ignore SEC_NEVER_LOAD sections.
2091 (lang_size_sections_1): Remove test made redundant with the above.
2092
83490352
AM
20932004-01-09 Alan Modra <amodra@bigpond.net.au>
2094
2095 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
2096 program_header_size.
2097
005e1118
AO
20982004-01-06 Alexandre Oliva <aoliva@redhat.com>
2099
2100 2003-11-28 Alexandre Oliva <aoliva@redhat.com>
2101 * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
2102 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
2103 * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
2104 (MAXPAGESIZE): Set to 64Kb.
2105 (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
2106 __ROFIXUP_END__. Don't map .rofixup.got any more.
2107 * emulparams/elf32frv.sh (NOP): Set.
2108 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
2109 * configure.tgt: Add frv-*-*linux*.
2110 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
2111 * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
2112 (eelf32frvfd.c): New.
2113 * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
2114 * emulparams/elf32frv.sh: Reverted previous two patches.
2115 * emulparams/elf32frvfd.sh: New.
2116 * Makefile.in: Rebuilt.
2117 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
2118 * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
2119 .rofixup.got to .rofixup.
2120 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
2121 * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
2122 (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
2123
060feee5
JJ
21242004-01-05 Jakub Jelinek <jakub@redhat.com>
2125
2126 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
2127 * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
2128
5e2f1575
AM
21292004-01-03 Alan Modra <amodra@bigpond.net.au>
2130
e5caa5e0
AM
2131 * ldexp.c (align_n): Make static.
2132 * ldexp.h (align_n): Delete declaration.
2133 * ldlang.h (lang_enter_output_section_statement): Remove
2134 block_value param.
2135 * ldlang.c (lang_enter_output_section_statement): Likewise.
2136 (TO_ADDR, TO_SIZE): Define.
c2df3ea5 2137 (opb_shift): New var.
e5caa5e0
AM
2138 (init_opb): New function.
2139 (print_input_section): Call init_opb and use TO_ADDR.
2140 (print_data_statement, print_reloc_statement): Likewise.
2141 (print_padding_statement): Likewise.
c2df3ea5 2142 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
e5caa5e0
AM
2143 (lang_check_section_addresses): Likewise.
2144 (lang_size_sections_1): Likewise.
2145 (lang_do_assignments_1): Likewise.
2146 (lang_set_startof): Likewise.
c2df3ea5 2147 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
e5caa5e0 2148 (lang_process): Call init_opb.
c2df3ea5 2149 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
e5caa5e0
AM
2150 (lang_enter_overlay_section): Adjust
2151 lang_enter_output_section_statement call.
2152 * ldgram.y: Likewise.
2153 * mri.c (mri_draw_tree): Likewise.
2154 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
2155 * emultempl/mmo.em (mmo_place_orphan): Likewise.
2156 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
2157
5e2f1575
AM
2158 * ldfile.c (ldfile_set_output_arch): Add defarch param.
2159 * ldfile.h (ldfile_set_output_arch): Ditto.
2160 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
2161 ldfile_set_output_arch.
2162 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
2163 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
2164 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
2165 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2166 * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
2167 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
2168 * ldgram.y: Adjust ldfile_set_output_arch call.
2169 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2170 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
2171 * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
2172 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
2173 * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
2174 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2175 * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2176
b50c15dc
NC
21772004-01-02 Bernardo Innocenti <bernie@develer.com>
2178
2179 * configure.tgt: Add m68k-uClinux target.
6edf0760 2180
c9e214e5 2181For older changes see ChangeLog-0203
252b5132
RH
2182\f
2183Local Variables:
2184mode: change-log
2185left-margin: 8
2186fill-column: 74
2187version-control: never
2188End:
This page took 0.412336 seconds and 4 git commands to generate.