2005-05-05 Paul Brook <paul@codesourcery.com>
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
eac338cf
PB
12005-05-05 Paul Brook <paul@codesourcery.com>
2
3 * Makefile.am: Add eelf_i386_vxworks.
4 * Makefile.in: Regenerate.
5 * configure.tgt: Make i?86-*-vxworks use targ_emul=elf_i386_vxworks.
6 * emulparams/elf_i386_vxworks.sh: New file.
7 * emulparams/vxworks.sh: New file.
8 * scripttempl/elf.sc: Add DATA_END_SYMBOLS and ETEXT_NAME.
9
f652615e
L
102005-05-04 H.J. Lu <hongjiu.lu@intel.com>
11
12 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
13 Call _bfd_elf_provide_section_bound_symbols.
14
8423293d
AM
152005-05-04 Alan Modra <amodra@bigpond.net.au>
16
17 * ldemul.c: Include bfdlink.h.
18 (ldemul_before_allocation): Assume before_allocation is non-zero.
19 (before_allocation_default): Call strip_excluded_output_sections.
20 * ldlang.c (stripped_excluded_sections): New variable.
21 (lang_add_section): Build input section list for each output
22 section, attached via map_head and map_tail pointers.
23 (strip_excluded_output_sections): Make global. Traverse the
24 input section lists to find which output sections can go. Clear
25 link_order pointers and set stripped_excluded_sections.
26 (lang_process): Call strip_excluded_output_sections.
27 * ldlang.h (strip_excluded_output_sections): Declare.
28 * ldwrite.c: Update throuhout for link_order_head -> map_head change.
29 * emultempl/aix.em (before_allocation): Call
30 strip_excluded_output_sections.
31 * emultempl/armcoff.em (before_allocation): Likewise.
32 * emultempl/beos.em (before_allocation): Likewise.
33 * emultempl/linux.em (before_allocation): Likewise.
34 * emultempl/pe.em (before_allocation): Likewise.
35 * emultempl/sunos.em (before_allocation): Likewise.
36 * emultempl/elf32.em (before_allocation): Likewise. Call
37 bfd_elf_size_dynsym_hash_dynstr too.
38 * emultempl/lnk960.em (lnk960_before_allocation): Delete.
39 (ld_lnk960): Use before_allocation_default.
40
5daa8fe7
L
412005-05-02 H.J. Lu <hongjiu.lu@intel.com>
42
43 * emultempl/elf32.em (gld${EMULATION_NAME}_strip_empty_section):
44 Updated for bfd_section_list_remove change.
45 * ldlang.c (lang_insert_orphan): Likewise.
46 (strip_excluded_output_sections): Likewise.
47 (sort_sections_by_lma): New.
48 (lang_check_section_addresses): Sort the sections before
49 checking addresses.
50
009b6a7a
DJ
512005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
52
53 * configure.tgt: Add h8300*-*-rtemscoff.
54 Switch h8300*-*-rtems* to elf.
55
279e75dc
BE
562005-04-29 Ben Elliston <bje@au.ibm.com>
57
58 * ldgram.y (lang_memory_region_type): Make static.
59 (ldgram_want_filename): Likewise.
60 * ldemul.c (ld_emulation): Make static.
61 * ldfile.h (ldfile_find_command_file): Remove extern.
62 * ldfile.c (ldfile_find_command_file): Make static.
63 * ldlang.h (unique_section_list): Remove extern declaration.
64 * ldlang.c (unique_section_list): Make static.
65 * mri.h (symbol_truncate): Remove extern declaration.
66 * mri.c (symbol_truncate): Make static.
67 (order, only_load, address, alias): Likewise.
68 (alignment, subalignment): Likewise.
69
4a2afbc1
L
702005-04-27 H.J. Lu <hongjiu.lu@intel.com>
71
72 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
73 Use the first SEC_ALLOC section which isn't SEC_READONLY or the
74 last SEC_ALLOC section if such a section doesn't exist.
75
fd9719b1
MK
762005-04-24 Mark Kettenis <kettenis@gnu.org>
77
78 * configure.host: Add *-*-openbsd support.
79
33bfe774
JB
802005-04-15 Julian Brown <julian@codesourcery.com>
81
82 * ld.texinfo: Document --use-blx.
83 * emultempl/armelf.em (use_blx): New variable.
84 (arm_elf_create_output_section_statements): Communicate value of
85 use_blx to bfd.
86 (PARSE_AND_LIST_PROLOGUE): Add OPTION_USE_BLX.
87 (PARSE_AND_LIST_OPTIONS): Add --use-blx option.
88 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_USE_BLX case.
89
9e9b66a9
AM
902005-04-14 Alan Modra <amodra@bigpond.net.au>
91
92 * Makefile.am (NO_WERROR): Define. Use instead of -Wno-error.
93 * configure.in: Include ../bfd/warning.m4 contents.
94 * Makefile.in: Regenerate.
95 * configure: Regenerate.
96
ceae3e33
AM
972005-04-12 Alan Modra <amodra@bigpond.net.au>
98
99 * Makefile.am: Run "make dep-am".
100 (ldgram.o, ldlex.o, deffilep.o): Add -Wno-error to command.
101 * Makefile.in: Regenerate.
102 * config.in: Regenerate.
103
7cedef86
AM
1042005-04-11 Alan Modra <amodra@bigpond.net.au>
105
106 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Ignore
107 as_needed libs that were not needed.
108 (gld${EMULATION_NAME}_check_needed): Likewise.
109
187ffe95
NC
1102005-04-07 Nick Clifton <nickc@redhat.com>
111
112 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h so that
113 ldfile.h can use the lang_input_statement type.
114
72223188
JJ
1152005-04-06 Jakub Jelinek <jakub@redhat.com>
116
117 * ldlang.c: Formatting.
118 (walk_wild_consider_section): Remember return value from wildcardp.
119 (is_simple_wild): Use strcspn instead of 2 strpbrk calls and strlen.
120 (wild_spec_can_overlap): Use strcspn instead of strpbrk and strlen.
121
1222005-04-06 Robert O'Callahan <rocallahan@novell.com>
123
124 * ld.h (lean_section_userdata_type): Remove.
125 (fat_section_userdata_type): Remove file field.
126 (SECTION_USERDATA_SIZE): Remove.
127 * ldlang.c (init_os): Eliminate initialization of unused
128 lean_section_userdata_type.
129
130 * ldlang.h (callback_t, walk_wild_section_handler_t): New
131 typedefs.
132 (struct lang_wild_statement_struct): Add walk_wild_section_handler
133 and handler_data fields.
134 * ldlang.c (callback_t): Removed.
135 (walk_wild_consider_section, walk_wild_section_general,
136 section_iterator_callback, find_section, is_simple_wild,
137 match_simple_wild, walk_wild_section_specs1_wild0,
138 walk_wild_section_specs1_wild1, walk_wild_section_specs2_wild1,
139 walk_wild_section_specs3_wild2, walk_wild_section_specs4_wild2,
140 wild_spec_can_overlap, analyze_walk_wild_section_handler): New
141 functions.
142 (lang_add_wild): Call analyze_walk_wild_section_handler.
143 (walk_wild_section): Renamed to walk_wild_section_general and
144 created a wrapper function.
145 (section_iterator_callback_data): New typedef.
146
34875e64
NC
1472005-04-04 Nick Clifton <nickc@redhat.com>
148
149 * configure.in: Add a check for <unistd.h> providing a prototype
150 for getopt() which is compatible with the one in
151 include/getopt.h. If so then define HAVE_DECL_GETOPT.
152 * configure: Regenerate.
153 * config.in (HAVE_DECL_GETOPT): Add.
154 * ldemul.c: Include config.h
155 * lexsup.c: Likewise.
156 * emultempl/elf32.sc: Likewise.
157
deb04cdb
AM
1582005-03-29 Alan Modra <amodra@bigpond.net.au>
159
160 * emultempl/elf32.em (gld${EMULATION_NAME}_layout_sections_again):
161 New function, extracted from static void gld${EMULATION_NAME}_finish.
162 (gld${EMULATION_NAME}_strip_empty_sections): Likewise.
163 (gld${EMULATION_NAME}_provide_init_fini_syms): Likewise.
164 * emultempl/ppc64elf.em: Revert last change.
165 (ppc_layout_sections_again): Use
166 gld${EMULATION_NAME}_layout_sections_again.
167 (ppc_finish): Don't call gld${EMULATION_NAME}_finish. Instead call
168 gld${EMULATION_NAME}_strip_empty_sections and
169 gld${EMULATION_NAME}_provide_init_fini_syms.
170 * emultempl/hppaelf.em: Similarly.
171
8b4e5e28
AM
1722005-03-29 Alan Modra <amodra@bigpond.net.au>
173
174 * emultempl/ppc64elf.em (need_laying_out): Delete. Remove all refs.
175 (ppc_finish): Don't call bfd_elf_discard_info.
176 * emultempl/hppaelf.em: Similarly.
177
510a939b
NC
1782005-03-24 Nick Clifton <nickc@redhat.com>
179
180 * po/fr.po: Updated French translation.
181
ed84e695
NC
1822005-03-23 Mike Frysinger <vapier@gentoo.org>
183 Nick Clifton <nickc@redhat.com>
184
185 * configure.host: Accept any C library to accompany a GNU Linux
186 implementation, not just the GNU C library.
187 * configure.tgt: Likewise.
188 * emultempl/elf32.em: Likewise.
deb04cdb 189
81e1b023
L
1902005-03-22 H.J. Lu <hongjiu.lu@intel.com>
191
192 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols): New
193 (gld${EMULATION_NAME}_finish): Call
194 gld${EMULATION_NAME}_provide_bound_symbols to provide
195 __preinit_array_start, __preinit_array_end, __init_array_start,
196 __init_array_end, __fini_array_start and __fini_array_end.
197
198 * scripttempl/elf.sc: Don't provide __preinit_array_start,
199 __preinit_array_end, __init_array_start, __init_array_end,
200 __fini_array_start nor __fini_array_end.
201
11d2f718
AM
2022005-03-23 Alan Modra <amodra@bigpond.net.au>
203
204 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Set
205 SEC_EXCLUDE on .gnu.warning sections.
206
644285ef
AM
2072005-03-22 Alan Modra <amodra@bigpond.net.au>
208
209 * scripttempl/elf.sc (SBSS): Don't provide sbss start and end syms.
210
c9a2f333
AM
2112005-03-21 Alan Modra <amodra@bigpond.net.au>
212
213 * emultempl/ppc32elf.em (gld${EMULATION_NAME}_after_allocation): New
214 function.
215 (LDEMUL_AFTER_ALLOCATION): Define.
216
b1ab9777
AM
2172005-03-21 Alan Modra <amodra@bigpond.net.au>
218
219 * emultempl/ppc64elf.em (ppc_finish): Rename from
220 gld${EMULATION_NAME}_finish. Call gld${EMULATION_NAME}_finish.
221 (LDEMUL_FINISH): Update.
222 * emultempl/hppaelf.em (hppaelf_finish, LDEMUL_FINISH): Likewise.
223 * emultempl/m68hc1xelf.em (m68hc11elf_finish, LDEMUL_FINISH): Likewise.
224
2a2a7c94
JB
2252005-03-18 Julian Brown <julian@codesourcery.com>
226
227 * scripttempl/armbpapi.sc (.rel.dyn): Add .rel.init_array,
228 .rel.fini_array.
229 (.rela.dyn): Add .rela.init_array, .rela.fini_array.
230 (SECTIONS): Add .rel.other, .rela.other, .reli.other after PLT relocs.
231
98720c64
L
2322005-03-18 H.J. Lu <hongjiu.lu@intel.com>
233
234 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Don't set
235 bfd_section when removing unused empty output sections for
236 non-relocatable link.
237
41c7ba7c
AM
2382005-03-19 Alan Modra <amodra@bigpond.net.au>
239
240 * ldlang.c (lang_insert_orphan): Use old section_tail rather than
241 traversing the bfd section list to find pointer to new section.
242
0fb53118
AM
2432005-03-18 Alan Modra <amodra@bigpond.net.au>
244
245 * scripttempl/elf.sc: When CREATE_SHLIB, put .sdata2 and .sbss2
246 input sections into .sdata and .sbss output respectively.
247
de7f8cc8
BW
2482005-03-16 David Heine <dlheine@tensilica.com>
249 Bob Wilson <bob.wilson@acm.org>
250
251 * ldlang.c (IGNORE_SECTION): Remove check for zero size.
252 (lang_check_section_addresses): Ignore zero size sections here.
253
57316bff
L
2542005-03-16 H.J. Lu <hongjiu.lu@intel.com>
255
256 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Remove
257 unused empty output sections for non-relocatable link.
258
259 * ld.h (args_type): Remove gc_sections.
260
261 * ldlang.c (lang_mark_used_section): New.
262 (lang_gc_sections): Use link_info.gc_sections instead of
263 command_line.gc_sections.
264 * ldmain.c (main): Likewise.
265 * lexsup.c (parse_args): Likewise.
266 * ldlang.c (lang_process): Call lang_mark_used_section.
267
268 * ldmain.c (main): Initialize link_info.gc_sections to FALSE.
269
1ad12f97
NC
2702005-03-16 Nick Clifton <nickc@redhat.com>
271 Ben Elliston <bje@au.ibm.com>
272
569acd2c 273 * configure.in (werror): New switch: Add -Werror to the
1ad12f97 274 compiler command line. Enabled by default. Disable via
569acd2c 275 --disable-werror.
1ad12f97
NC
276 * configure: Regenerate.
277
cb2d1ef2
AM
2782005-03-16 Alan Modra <amodra@bigpond.net.au>
279
280 * emulparams/elf32ppclinux.sh (OTHER_READWRITE_SECTION): Delete.
281 (OTHER_RELRO_SECTIONS): Set this instead.
282
957d91c1
NC
2832005-03-15 Nick Clifton <nickc@redhat.com>
284
285 * NEWS: Add cutoff for changes in 2.16 release.
286
34723071
NC
2872005-03-15 Mikkel Krautz <krautz@gmail.com>
288
289 * configure.tgt (x86_64-elf): Add target.
290
729ae8d2
AM
2912005-03-15 Alan Modra <amodra@bigpond.net.au>
292
293 * po/es.po: Commit new Spanish translation.
294
8b3d8fa8
AM
2952005-03-14 Alan Modra <amodra@bigpond.net.au>
296
297 * ldexp.c (exp_fold_tree): Ensure return value is initialized.
298 Tidy etree_assert case.
299
882cb63e
AM
3002005-03-14 Alan Modra <amodra@bigpond.net.au>
301
302 * po/tr.po: Commit new Turkish translation.
303
61c84b48
DJ
3042005-03-11 Daniel Jacobowitz <dan@codesourcery.com>
305
306 * Makefile.am: Remove references to em68klynx.o and esparclynx.o.
307 * Makefile.in: Regenerated.
308 * emulparams/m68klynx.sh, emulparams/sparclynx.sh: Remove.
309
41c9e29d
NC
3102005-03-07 Nick Clifton <nickc@redhat.com>
311
312 * po/fr.po: Updated translation.
313
06647dfd
AM
3142005-03-05 Alan Modra <amodra@bigpond.net.au>
315
316 * po/ld.pot: Regenerate.
317
bb14f524
JB
3182005-03-02 Jan Beulich <jbeulich@novell.com>
319
320 * ldmain.c (remove_output): Use unlink_if_ordinary instead of unlink.
321 * pe-dll.c (pe_dll_generate_implib): Likewise.
322
0ef622cb
BE
3232005-02-24 Ben Elliston <bje@au.ibm.com>
324
325 * ldfile.c: Remove GNU960 conditional code.
326 * emultempl/gld960.em: Likewise.
327 * emultempl/gld960c.em: Likewise.
328 * emultempl/lnk960.em: Likewise.
329
f3f4bcca
NC
3302005-02-24 Nick Clifton <nickc@redhat.com>
331
332 * emultempl/lnk960.em (lnk960_before_parse): Remove redundant
333 empty string from calls to concat.
334
3352005-02-23 Nick Clifton <nickc@redhat.com>
336
337 * emultempl/lnk960.em (lnk960_before_parse): Terminate list of
338 arguments passed to concat() with a NULL.
339
340 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h because they
341 define types needed by ldfile.h
342
47639182
AM
3432005-02-23 Alan Modra <amodra@bigpond.net.au>
344
345 * pe-dll.c: Warning fixes.
346 * emultempl/sunos.em: Likewise.
347
ace66bb2
DJ
3482005-02-22 Daniel Jacobowitz <dan@codesourcery.com>
349
350 * ldlang.c (section_already_linked): Don't call
351 bfd_section_already_linked for dynamic objects.
352
5718918d
AM
3532005-02-22 Alan Modra <amodra@bigpond.net.au>
354
355 * ldexp.c: Warning fixes.
356 * ldwrite.c: Likewise.
357 * emultempl/elf32.em: Likewise.
358
ebe372c1
L
3592005-02-21 H.J. Lu <hongjiu.lu@intel.com>
360
361 * ldlang.c (lang_add_section): Check SEC_TIC54X_BLOCK for TI
362 tic54x input only.
363 (lang_size_sections_1): Check SEC_COFF_SHARED_LIBRARY for COFF
364 and ECOFF output only.
365
0ca2f5d5
AM
3662005-02-21 Alan Modra <amodra@bigpond.net.au>
367
368 * config.in: Regenerate.
369 * configure: Regenerate.
370
fbbb9ac5
ZW
3712005-02-17 Zack Weinberg <zack@codesourcery.com>
372
373 * ldexp.c (assigning_to_dot): New global flag.
374 (fold_name): If assigning_to_dot is true, object immediately to
375 an undefined symbol.
376 (exp_fold_tree): Set and clear assigning_to_dot around the
377 recursive call to exp_fold_tree to process the right-hand side
378 of an assignment to the location counter.
379
c68dac40
PB
3802005-02-17 Paul Brook <paul@codesourcery.com>
381
382 * scripttempl/armbpabi.sc: Add dummy name to version block.
383
20c2cbe3
AM
3842005-02-17 Alan Modra <amodra@bigpond.net.au>
385
386 * ldexp.c (new_abs): Init new.str.
387
0b48acfe
MM
3882005-02-15 Mark Mitchell <mark@codesourcery.com>
389
390 * configure.in (AC_CHECK_FUNCS): Add glob.
391 * configure: Regenerated.
392 * emultempl/elf32.em (<glob.h>): Do not include if HAVE_GLOB is
393 not defined.
394 (gld${EMULATION_NAME}_parse_ld_so_conf_include): Do not use glob
395 if HAVE_GLOB is not defined.
fbbb9ac5 396
ff925e69
KK
3972005-02-16 Kaz Kojima <kkojima@rr.iij4u.or.jp>
398
399 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define
400 lib_path if NATIVE is yes.
401
92b7a70f
AM
4022005-02-16 Alan Modra <amodra@bigpond.net.au>
403
404 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Make
405 an error creating fake bfd fatal.
406 (ppc_before_allocation): Continue on after errors.
407 (gld${EMULATION_NAME}_finish): Likewise.
408
297ba367
NC
4092005-02-15 Nick Clifton <nickc@redhat.com>
410
411 * ldlex.l (YY_NO_UNPUT): Define so that the yy_unput function is
412 not declared. It is not used and its presence causes a compile
413 time warning.
fbbb9ac5 414
9eabd475
ZW
4152005-02-11 Zack Weinberg <zack@codesourcery.com>
416
417 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed):
418 If st.st_ino is zero, do not treat the library as a duplicate.
419
d457dcf6
JJ
4202005-02-10 Jakub Jelinek <jakub@redhat.com>
421
422 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
423 Set BFD_LINKER_CREATED on the stubs bfd.
424 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
425 Likewise.
426
4e5db43b
MM
4272005-02-08 Mark Mitchell <mark@codesourcery.com>
428
429 * scripttempl/armbpabi.sc (VERSION): Make special section symbols
9eabd475 430 local.
4e5db43b
MM
431 (Image$$ER_RO$$Base): Define whenever RELOCATING.
432 (Image$$ER_RO$$Limit): Likewise.
433 (SHT$$INIT_ARRAY$$Base): Likewise.
434 (SHT$$INIT_ARRAY$$Limit): Likeise.
435
4297f9f1
BE
4362005-02-10 Ben Elliston <bje@au.ibm.com>
437
438 * emultempl/beos.em: Remove #if 0 and #if 1 blocks.
439
1c7c5e5b
RS
4402005-02-08 Richard Sandiford <rsandifo@redhat.com>
441
442 * configure.tgt (mips64*el-*-linux-gnu*): Define targ_extra_libpath
443 to include o32 and n64 emulations.
444 (mips64*-*-linux-gnu*): Likewise.
445
300475fe
HPN
4462005-02-08 Hans-Peter Nilsson <hp@axis.com>
447
448 * ldmain.c (warning_callback, warning_find_reloc): Prepend
449 "warning: " to warning messages.
450
4ea42fb7
AM
4512005-02-04 Alan Modra <amodra@bigpond.net.au>
452
453 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't
454 look up symbol for etree_provide here.
455
161f49a3
DJ
4562005-02-02 Daniel Jacobowitz <dan@codesourcery.com>
457
458 * emulparams/elf32bmip.sh (TEXT_DYNAMIC): Always set.
459
73ae6183
NC
4602005-02-01 Edward Welbourne <eddy@opera.com>
461 Nick Clifton <nickc@redhat.com>
462
463 * ld.texinfo (Source Code Reference): New node describing how to
464 access linker script defined variables from source code.
465
77cfaee6
AM
4662005-02-01 Alan Modra <amodra@bigpond.net.au>
467
468 * ld.texinfo: Clarify --as-needed operation.
469
c46f8c51
AC
4702005-01-31 Andrew Cagney <cagney@gnu.org>
471
472 * configure: Regenerate to track ../gettext.m4.
473
d342277e
NC
4742005-01-31 Nick Clifton <nickc@redhat.com>
475
476 * ldver.c (ldversion): Bump reported copyright date to 2005.
477
d6486796
NC
4782005-01-31 Nick Clifton <nickc@redhat.com>
479
480 * configure.tgt: Remove obsolete targets m68k-lynxos and
481 sparc-lynxos.
482
319850b4
JB
4832005-01-28 Julian Brown <julian@codesourcery.com>
484
485 * emultempl/armelf.em (fix_v4bx): New variable.
486 (arm_elf_create_output_section_statements): Communicate fix_v4bx flag
487 value to bfd.
488 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_FIX_V4BX.
489 (PARSE_AND_LIST_LONGOPTS): Add option --fix-v4bx.
490 (PARSE_AND_LIST_OPTIONS): Add option --fix-v4bx.
9eabd475 491 (PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX.
319850b4
JB
492 * NEWS: Mention --fix-v4bx.
493 * ld.texinfo: Document --fix-v4bx.
494
dc4c9c19
MM
4952005-01-25 Mark Mitchell <mark@codesourcery.com>
496
497 * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Define, so
498 as to include .ARM.exidx$${Base,Limit}.
499 * ld/scripttempl/armbpabi.sc: Move .plt to end of text segment.
500 Define IMAGE$$ER_RO$${Base,Limit} and SHT$$INIT_ARRAY$${Base,Limit}.
501 Put .init_array, .fini_array, etc. into the read-only data
9eabd475
ZW
502 segment.
503
7e9f0867
AM
5042005-01-25 Alan Modra <amodra@bigpond.net.au>
505
506 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Formatting.
507 (gld${EMULATION_NAME}_after_open): Ignore needed libs if they were
508 only needed by an as-needed lib that didn't get linked.
509
7e69709c
AM
5102005-01-23 Alan Modra <amodra@bigpond.net.au>
511
512 * ld.texinfo (Output Section Keywords <CONSTRUCTORS>): Correct
513 __DTOR_LIST__ description.
514
b5666f2f
AM
5152005-01-23 Alan Modra <amodra@bigpond.net.au>
516
517 * ld.texinfo (Location Counter <dot outside sections>): Document
518 effects of orphan section placement, and ". = ." workaround.
519 * Makefile.in: Regenerate.
520
4e25343c
RS
5212005-01-22 Richard Sandiford <rsandifo@redhat.com>
522
523 * emulparams/elf32bmip.sh (OTHER_GOT_SECTIONS): Add ". = .;".
524 * emulparams/elf32bmipn32-defs.sh (OTHER_GOT_SECTIONS): Likewise.
525
b717d30e
JJ
5262005-01-21 Jakub Jelinek <jakub@redhat.com>
527
528 * ldgram.y (AS_NEEDED): New token.
529 (input_list): Handle AS_NEEDED ( input_list ).
530 * ldlex.l (AS_NEEDED): Add.
531 * ld.texinfo: Document AS_NEEDED ().
532 * NEWS: Mention AS_NEEDED ().
533
7a64f7b8
BE
5342005-01-21 Ben Elliston <bje@au.ibm.com>
535
536 * ldlang.c (lang_reasonable_defaults): Remove.
537 (lang_process): Don't call lang_reasonable_defaults.
538
539 * ldexp.c (exp_assop): Remove #if 0'd code.
540 (exp_print_tree): Likewise.
541 * ldlang.c (lang_memory_region_lookup): Likewise.
542 (open_output): Likewise.
543 (lang_do_assignments_1): Likewise.
544 (lang_place_orphans): Likewise.
545 (lang_enter_output_section_statement): Likewise.
546 (lang_reasonable_defaults): Likewise.
547 * ldlang.h (struct lang_input_statement_struct): Likewise.
548 * mri.c (mri_draw_tree): Likewise.
549 (mri_load): Likewise.
550 * pe-dll.c (generate_reloc): Likewise.
551 (make_import_fixup_entry): Likewise.
552 (pe_as16): Likewise.
553 * emultempl/beos.em (set_pe_subsystem): Likewise.
554 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
555 * emultempl/pe.em: Likewise.
556 * emultempl/xtensaelf.em (xtensa_colocate_literals): Likewise.
557
a154a8ad
MM
5582005-01-20 Daniel Jacobowitz <dan@codesourcery.com>
559
560 * Makefile.am (ALL_EMULATIONS): Add earmelfb_linux_eabi.o.
561 (earmelfb_linux_eabi.c): New target.
562 * Makefile.in: Regenerated.
563 * configure.tgt (arm*b-*-linux-gnueabi): New target.
564 * emulparams/armelfb_linux_eabi.sh: New file.
565
9c183183
AM
5662005-01-20 Nick Hudson <skrll@netbsd.org>
567
568 PR ld/676
569 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
570 Handle bfd_elf32_hppa_nbsd_vec.
571
e2243057
RS
5722005-01-19 Richard Sandiford <rsandifo@redhat.com>
573
574 * ldmain.h (ld_sysroot): Change type to a constant string.
575 * ldmain.c (ld_sysroot): Likewise.
576 (get_relative_sysroot, get_sysroot): New functions, adding command-line
577 support for changing the sysroot.
578 (main): Call the new functions.
579 * lexsup.c (OPTION_SYSROOT): New.
580 (ld_options): Add --sysroot.
581 (parse_args): Add a dummy handler for it.
582 * ld.texinfo (--sysroot): Document.
583 * NEWS: Mention the new --sysroot option.
584
1449d79b
AM
5852005-01-18 Alan Modra <amodra@bigpond.net.au>
586
587 * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
588 (lang_place_orphans): Don't abort on just_syms_flag, instead call
589 bfd_link_just_syms.
590
a880c748
DS
5912005-01-16 Danny Smith <dannysmith@users.sourceforge.net>
592
593 * defilep.y (def_name, def_library): Combine into...
594 (def_image_name): New function. Strip name to basename,
595 with warning.
596
07baa8ee
MK
5972005-01-12 Mark Kettenis <kettenis@gnu.org>
598
599 * configure.in: Be sure to invoke config.sub using the shell.
600 * configure: Regenerate.
601
e9b181b8
AM
6022005-01-11 Alan Modra <amodra@bigpond.net.au>
603
604 * configure.host: Correct sed patterns for last change.
605
59ef2528
NC
6062005-01-10 Nick Clifton <nickc@redhat.com>
607
608 PR binutils/609
609 * ldmisc.c (vfinfo): Add an extra argument: is_warning. Use this
610 to determine whether config.make_executable should be set to FALSE in
611 conjunction with config.fatal_warnings.
612 (info_msg, minfo, lfinof): Pass FALSE as the extra argument.
613 (einfo): Pass TRUE as the extra argument.
614
71a2d53a
NC
6152005-01-10 Greg Schaffer <gschafer@zip.com.au>
616
617 * configure.host (linux targets): Use "${CC} -dumpspecs" instead
618 of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0.
619 (ia64-*-aix): Delete - this target is obsolete, and would be
620 broken by this patch.
621
d6d0b336
EB
6222005-01-06 Eric Botcazou <ebotcazou@libertysurf.fr>
623
624 * configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*.
625 (sparc64-sun-solaris2*): New host.
626
4e7fd91e
PB
6272005-01-06 Paul Brook <paul@codesourcery.com>
628
629 * Makefie.am: Add earmelf_vxworks.
630 * Makefile.in: Regenerate.
631 * configure.tgt: Make arm-*-vxworks a separate case.
632 * emulparams/armelf_vxworks.sh: New function.
633
4c52953f
AM
6342005-01-06 Alan Modra <amodra@bigpond.net.au>
635
636 * emultempl/ppc64elf.em (no_multi_toc): New var.
637 (gld${EMULATION_NAME}_finish): Pass to ppc64_elf_setup_section_lists.
638 (OPTION_NO_MULTI_TOC): Define.
639 (PARSE_AND_LIST_LONGOPTS): Add --no-multi-toc support.
640 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
641
98d87ee7
NC
6422005-01-05 Nick Clifton <nickc@redhat.com>
643
644 PR binutils/614
645 * ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
4c52953f 646 Standard's specification for parsable error messages.
98d87ee7 647
5f81b918
PB
6482005-01-04 Paul Brook <paul@codesourcery.com>
649
650 * Makefile.am: Correct dependency for earmsymbian.c.
651 * Makefile.in: Regenerate.
652
2af59bab
DS
6532004-12-28 Danny Smith <dannysmith@users.sourceforge.net>
654
655 * emultempl/pe.em (set_pe_subsystem): Change second arg to
656 lang_add_entry to FALSE.
657
c38f024c
NC
6582004-12-23 Nick Clifton <nickc@redhat.com>
659
660 PR 600
661 * emulparams/shelf.sh (.stack): Increase stack start address to
662 0x300000.
663
550bdea6
NC
6642004-12-20 Nick Clifton <nickc@redhat.com>
665
666 * ldmain.c (main): Issue an error message if -static and -shared
667 are used together.
668
e3070fef
JJ
6692004-12-17 Jakub Jelinek <jakub@redhat.com>
670
671 * ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
672 * ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
673 * ldlang.c (lang_size_sections): Use them to avoid wasting virtual
674 address space at DATA_SEGMENT_ALIGN. Fix computation of expected
675 PT_GNU_RELRO segment end.
676
2fbd2a87
NC
6772004-12-14 P.J. Darcy <darcypj@us.ibm.com>
678
679 * configure.tgt: Add s390x-ibm-tpf support.
680
f2763b01
NC
6812004-12-16 Martin Kögler <mkoegler@auto.tuwien.ac.at>
682
683 * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
684 BFD.
685
cb9faf63
BE
6862004-12-07 Ben Elliston <bje@gnu.org>
687
688 * ldemul.h: Forward declare struct option.
689
02f80eef
DS
6902004-12-01 Danny Smith <dannysmith@users.sourceforge.net>
691
692 * scripttempl/pe.sc (.data): Add .jcr subsection.
693
dea514f5
PB
6942004-11-30 Paul Brook <paul@codesourcery.com>
695
696 * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
697
32118081
NC
6982004-11-30 Tero Niemela <tero_niemela@yahoo.com>
699
700 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
701 * Makefile.in: Regenerate.
702
33f362e1
NC
7032004-11-26 Melissa Mears <asterisk@graces.dricas.com>
704
705 * emultempl/pe.em: Add --subsystem:xbox as well as
706 --subsystem:%d.
707 * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
708 and numeric subsystems.
709
3eda52aa
AM
7102004-11-24 Alan Modra <amodra@bigpond.net.au>
711
712 * ldexp.c (fold_name): Correct PR 338 fix.
713
6b3221b4
MM
7142004-11-19 Mark Mitchell <mark@codesourcery.com>
715
716 * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
717 (earmelf_linux_eabi.c): New target.
718 * configure.tgt (arm*-*-linux-gnueabi): Handle it.
719 * emulparams/armelf_linux_eabi.sh: New file.
720 * Makefile.in: Regenerated.
721
9cd6d51a
NC
7222004-11-19 Nick Clifton <nickc@redhat.com>
723
724 PR 518
725 * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
726 LENGTH fields in the MEMORY command, to explicitly state that
727 symbols cannot be used in their expressions.
728
3ec57632
NC
7292004-11-19 Jon Beniston <jon@beniston.com>
730
731 * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
732 * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
4c52953f 733 * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
3ec57632
NC
734 which return the length and origin of a memory.
735 * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
736 * NEWS: Mention support for ORIGIN and LENGTH operators.
737
b7693d02
DJ
7382004-11-17 Daniel Jacobowitz <dan@codesourcery.com>
739
740 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
741 a dynamic object for stubs.
742
fc0e6df6
PB
7432004-11-04 Paul Brook <paul@codesourcery.com>
744
745 * ld.texinfo: Document --default-imported-symver.
746 * ldmain.c (main): Set link_info.default_imported_symver.
747 * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
748 (ld_options): Add --default-imported-symver.
749 (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
750
7499d566
NC
7512004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
752 Vineet Sharma <vineets@noida.hcltech.com>
753
754 * Makefile.am: Add entries for new maxq-coff target.
755 * Makefile.in: Regenerate.
756 * configure.tgt: Add support for maxq.
757 * emulparams/maxqcoff.sh: New File.
758 * scripttempl/maxqcoff.sc: New linker script for target maxq.
759 * NEWS: Mention the new target.
760
977cdf5a
NC
7612004-11-08 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
762
763 * testsuite/ld-scripts/weak.exp: Enable test on PE,
764 XFAIL non-i386 PE.
765 * testsuite/ld-undefined/weak-undef.exp: Enable test on PE,
766 XFAIL non-i386 PE.
767 * testsuite/lib/ld-lib.exp (is_pecoff_format): New.
768
7f266840
DJ
7692004-11-04 Daniel Jacobowitz <dan@debian.org>
770
771 * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
772 (earmelf_oabi.c): Remove rule.
773 * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
774 * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
775 * Makefile.in: Regenerated.
776
a0055007
HPN
7772004-11-04 Hans-Peter Nilsson <hp@axis.com>
778
779 * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
780 * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
781 (FINI_START): Ditto.
782 (INIT_END): Remove emitted "jump [sp+]".
783 (FINI_END): Ditto.
784
c5614fa4
AM
7852004-11-04 Alan Modra <amodra@bigpond.net.au>
786
787 * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
788 (no_opd_opt, no_toc_opt): New static vars.
789 (ppc_before_allocation): Don't edit opt if no_opd_opt. Call
790 ppc64_elf_edit_toc.
791 (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
792 (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
793 (PARSE_AND_LIST_OPTIONS): Describe new options.
794 (PARSE_AND_LIST_ARGS_CASES): Handle them.
795
7a5df8d0
NC
7962004-10-27 Nick Clifton <nickc@redhat.com>
797
798 * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
799 parameter to invocation of lang_section_start.
800 * emultempl/aix.em (_handle_option): Likewise.
c5614fa4 801
7a5df8d0
NC
802 * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
803 eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
804 * Makefile.in: Regenerate.
805
6f372e19
MM
8062004-10-26 Mark Mitchell <mark@codesourcery.com>
807
808 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
809 __exidx_{start,end} when not relocating.
810
ba916c8a
MM
8112004-10-25 Mark Mitchell <mark@codesourcery.com>
812
813 * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
814 * ldexp.h (segment_type): New type.
815 (segments): New variable.
816 * ldexp.c (segments): New variable.
817 (exp_print_token): Handle SEGMENT_START.
818 (fold_binary): Likewise.
819 * ldgram.y (SEGMENT_START): Declare it as a token.
820 (exp): Handle SEGMENT_START.
821 * ldlang.h (lang_address_statement_type): Add segment field.
822 (lang_section_start): Change prototype.
823 * ldlang.c (map_input_to_output_sections): Do not process section
824 assignments if a corresponding SEGMENT_START has already been
825 seen.
826 (lang_section_start): Add segment parameter.
827 * ldlex.l (SEGMENT_START): Add it.
828 * lexsup.c (seg_segment_start): New function.
829 (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
830 * ld.texinfo (SEGMENT_START): Document it.
831 * emulparams/armsymbian.sh (EMBEDDED): Set it.
832 * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
833 base addresses. Do not map relocations.
834 * NEWS: Mention SEGMENT_START.
835
3e3b46e5
PB
8362004-10-26 Paul Brook <paul@codesourcery.com>
837
838 * ld.texinfo: Document --default-symver.
839 * ldmain.c (main): Set link_info.create_default_symver.
840 * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
841 (ld_options): Add default-symver.
842 (parse_args): Handle OPTION_DEFAULT_SYMVER.
843
7b0eaa22
DS
8442004-10-24 Danny Smith <dannysmith@users.sourceforge.net>
845
846 * pe-dll.c (process_def_file): Don't export all symbols by default if
847 building a position-independent executable.
848
dfeffb9f
L
8492004-10-21 H.J. Lu <hongjiu.lu@intel.com>
850
851 PR 463
852 * ldmain.c (reloc_overflow): Accept a pointer to struct
853 bfd_link_hash_entry. Report symbol location for relocation
854 overflow.
855
dc4f76f8
L
8562004-10-21 H.J. Lu <hongjiu.lu@intel.com>
857
858 * genscripts.sh (libpath.exp): Really generate for first
859 emulation only.
860
2a08daf3
DS
8612004-10-19 Danny Smith <dannysmith@users.sourceforge.net>
862
863 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
864 comparison and replacement of filenames.
865
532345f2
L
8662004-10-19 H.J. Lu <hongjiu.lu@intel.com>
867
868 PR 459
869 * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
870 option on linker script as the one for linker script.
871
b58f81ae
DJ
8722004-10-16 Daniel Jacobowitz <dan@debian.org>
873
874 * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
875 (check_excluded_libs): New.
876 (load_symbols): Call check_excluded_libs.
877 * ldlang.h (add_excluded_libs): New prototype.
878 * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
879 (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
880 (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
881 * ld.texinfo (Command Line Variables): Document --exclude-libs.
882 (Options Specific to i386 PE Targets): Remove --exclude-libs.
883
95c148b4
AM
8842004-10-15 Alan Modra <amodra@bigpond.net.au>
885
c468c8bc
AM
886 * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
887 failing link script assert.
888
95c148b4
AM
889 * ldctor.c (ldctor_add_set_entry): Fix comment typo.
890
951e9133
L
8912004-10-14 H.J. Lu <hongjiu.lu@intel.com>
892
893 PR 445
894 * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
895 (SMALL_DATA_DTOR): Set.
896 * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
897 (SMALL_DATA_DTOR): Unset.
898 * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
899 after .data. If SMALL_DATA_DTOR is set, move .dtors after
900 .data.
901
afd7a018
AM
9022004-10-14 Alan Modra <amodra@bigpond.net.au>
903
904 PR 63
905 * ldlang.h (lang_output_section_statement_type): Make "next" a
906 struct lang_output_section_statement_struct *.
907 (struct orphan_save): Move from elf32.em. Add "name" and "flags".
908 (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
909 * ldlang.c (lang_output_section_find_1): Adjust for changed
910 output_section_statement "next".
911 (strip_excluded_output_sections): Likewise.
912 (lang_record_phdrs): Likewise.
913 (lang_output_section_find_by_flags): New function.
914 (output_prev_sec_find): Move from pe.em. Adjust iterator.
915 (lang_insert_orphan): New function. Tail end of elf32.em's
916 place_orphan merged with that from pe.em. Allow bfd_section to
917 be placed first. New heuristic for placing new output section
918 statement in existing script, and accompanying split of __start
919 symbol alignment into a separate assignment to dot.
920 (lang_add_section): Consistently use output->bfd_section rather than
921 an alias, section->output_section.
922 (map_input_to_output_sections): Rename overly long arg. Move
923 initialization of data_statement output section to here..
924 (lang_check_section_addresses): ..from here.
925 (print_assignment): Correct printing of etree_assert.
926 (print_all_symbols): Don't bomb if userdata is NULL.
927 (IGNORE_SECTION): Rearrange.
928 * emultempl/elf32.em (output_rel_find): Adjust interator.
929 (output_prev_sec_find): Delete.
930 (struct orphan_save): Delete.
931 (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
932 flags without creating a duplicate output section statement.
933 Revise code holding history of various orphan section placements.
934 Allow orphan sections to place before script specified output
935 sections. Call lang_output_section_find_by_flags when placement
936 by name fails. Use lang_insert_orphan.
937 * emultempl/mmo.em (output_prev_sec_find): Delete.
938 (struct orphan_save): Delete.
939 (mmo_place_orphan): Revise code holding history of orphan placement.
940 Allow orphans to place before existing output sections. Use
941 lang_insert_orphan.
942 * emultempl/pe.em (output_prev_sec_find): Delete.
943 (struct orphan_save): Delete.
944 (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
945 lang_insert_orphan.
946
c0042f5d
MM
9472004-10-13 Mark Mitchell <mark@codesourcery.com>
948
949 * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
950 loadable segment.
951
1af699f4
AM
9522004-10-13 Alan Modra <amodra@bigpond.net.au>
953
954 PR 44
09c112da
AM
955 * ldcref.c (check_section_sym_xref): Delete.
956 (check_local_sym_xref): New function.
957 (check_nocrossrefs): Adjust call.
1af699f4
AM
958 * emultempl/pe.em (struct orphan_save): Add os_tail.
959 (place_orphan): Backport assorted fixes from elf32.em.
960
7fa3d080
BW
9612004-10-12 Bob Wilson <bob.wilson@acm.org>
962
963 * emultempl/xtensaelf.em: Use ISO C90 formatting.
964
d3989512
JJ
9652004-10-11 Jakub Jelinek <jakub@redhat.com>
966
563f4125
JJ
967 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
968 getline for portability.
969
d3989512
JJ
970 * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
971 (gld${EMULATION_NAME}_parse_ld_so_conf,
972 gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
973 (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
974
6c0c5b1e
AM
9752004-10-11 Alan Modra <amodra@bigpond.net.au>
976
977 PR 423
978 * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
979 rejected when linking statically.
980
d2b2c203
DJ
9812004-10-08 Daniel Jacobowitz <dan@debian.org>
982
983 * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
984
43cd72b9
BW
9852004-10-07 Bob Wilson <bob.wilson@acm.org>
986
987 * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
988 assembler-generated longcall sequences. Describe new --size-opt
989 option.
990 * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
991 * emultempl/xtensaelf.em (remove_section,
992 replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
993 elf_xtensa_after_open): New.
994 (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
995 OPTION_NO_LITERAL_MOVEMENT): Define.
996 (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
997 (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
998 (PARSE_AND_LIST_OPTIONS): Add --size-opt.
999 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
1000 OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
1001 (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
1002 * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
1003 * Makefile.am (eelf32xtensa.c): Update dependencies.
1004 * Makefile.in: Regenerate.
1005
8fdd7217 10062004-10-07 Jeff Baker <jbaker@qnx.com>
6c0c5b1e 1007
8fdd7217
NC
1008 * lexsup.c: Handle --warn-shared-textrel option.
1009 (ld_options): Restore alpha sorting of options.
1010 * ldmain.c (main): Initialise warn_shared_info field to FALSE.
1011 * ld.texinfo: Add documentation for --warn-shared-textrel.
1012 * NEWS: Added mention of --warn-shared-textrel option.
1013
339207f8 10142004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
6c0c5b1e 1015
339207f8 1016 * emultempl/crxelf.em (disable_relaxation): Add.
6c0c5b1e 1017 (crxelf_before_allocation): Enable --relax option by default.
339207f8
TL
1018 (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
1019 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
1020 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
1021
bcaa7b3e
L
10222004-10-04 H.J. Lu <hongjiu.lu@intel.com>
1023
1024 * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
1025 --sort-section name|alignment.
1026
1027 * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
1028 --sort-section name|alignment.
1029
1030 * ld.h (sort_type): New enum.
1031 (wildcard_spec): Change the type of `sorted' to sort_type.
1032
1033 * ldgram.y (SORT): Removed.
1034 (SORT_BY_NAME): Added.
1035 (SORT_BY_ALIGNMENT): Added.
1036 (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
1037 SORT_BY_ALIGNMENT.
1038 (input_section_spec_no_keep): Updated `sorted'.
1039 (statement): Replace SORT with SORT_BY_NAME.
1040
1041 * ldlang.c (compare_section): New function to compare 2
1042 sections with different sorting schemes.
1043 (wild_sort): Updated. Use compare_section.
1044 (update_wild_statements): New function.
1045 (lang_process): Call update_wild_statements before
1046 map_input_to_output_sections.
1047
1048 * ldlex.l (SORT_BY_NAME): New.
1049 (SORT_BY_ALIGNMENT): New.
1050 (SORT): Return SORT_BY_NAME.
1051
1052 * ldmain.c (sort_section): New. Defined.
1053 (main): Initialize it to none.
1054
1055 * lexsup.c (option_values): Add OPTION_SORT_SECTION.
1056 (ld_options): Add an entry for OPTION_SORT_SECTION.
1057 (parse_args): Handle OPTION_SORT_SECTION.
1058
1059 * mri.c (mri_draw_tree): Updated `sorted'.
1060
a4f5ad88
JJ
10612004-10-04 Jakub Jelinek <jakub@redhat.com>
1062
1063 * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
1064 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
1065 argument.
1066 (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
1067 and . as second argument.
1068 (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
1069 * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
1070 (fold_binary): Add it here. Insert padding to make relro_end
1071 COMMONPAGESIZE bytes aligned. For DATA_SEGMENT_ALIGN in
1072 exp_dataseg_relro_adjust phase just use previously computed
1073 exp_data_seg.base.
1074 * ldlang.c (lang_size_sections): Set exp_data_seg.base for
1075 relro_adjust here. Call lang_size_sections_1 once more if there
1076 was too big padding at DATA_SEGMENT_RELRO_END.
1077 * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
1078
40a18ebd
NC
10792004-10-01 Paul Brook <paul@codesourcery.com>
1080
1081 * emulparams/armelf.sh: Add unwinding table sections.
1082
db8acf26
NC
10832004-09-30 Filip Navara <navaraf@reactos.com>
1084
1085 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
1086 correct base address for position independant executables.
1087 * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
1088 executables as DLLs.
1089
eeac373a
PB
10902004-09-30 Paul Brook <paul@codesourcery.com>
1091
1092 * ld.texinfo: Document --target2=abs.
1093 * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
1094
1ee7cf4c
NC
10952004-09-29 Nick Clifton <nickc@redhat.com>
1096
1097 * scripttempl/xstormy16.sc: Only perform the assignments to the
1098 ROM region when not performing a relocatable link. The ROM region
1099 does not start at address 0, but the sections will.
1100 * Makefile.am: Fix linker script dependency for the generation of
1101 eelf32xstormy16.c.
1102 * Makefile.in: Regenerate.
1103
03098a9a
CF
11042004-09-18 Filip Navara <navaraf@reactos.com>
1105
1106 * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
1107 emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
1108 emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
1109 TARGET_PAGE_SIZE.
1110 * scripttempl/pe.sc: Make the virtual address and file offset synced if
1111 the alignment is lower than the target page size.
1112
f2d3750d
CF
11132004-09-27 Filip Navara <navaraf@reactos.com>
1114
1115 * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
1116 def_file_parse to handle pe_def_file if NULL and prevent crash with
1117 invalid .def files.
1118
a23d8409
AM
11192004-09-27 Alan Modra <amodra@bigpond.net.au>
1120
1121 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
1122 --emit-stub-syms automatically when --emit-relocs.
1123
7b89fa29
PB
11242004-09-24 Paul Brook <paul@codeosurcery.com>
1125
1126 * scripttempl/elf.sc: Keep .preinit_array, .init_array and
1127 .fini_array sections.
1128
e2a68bcc
AS
11292004-09-19 Andreas Schwab <schwab@suse.de>
1130
1131 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
1132 base so that relro end is suitably aligned.
1133
3674e28a
PB
11342004-09-17 Paul Brook <paul@codesourcery.com>
1135
1136 * ld.texinfo: Rename arm-specific section. Document --target*
1137 * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
1138 * emulparams/armelf_linux.sh: Ditto.
1139 * emulparams/armelf_nbsd.sh: Ditto.
1140 * emultempl/armelf.em: Set default for TARGET2_TYPE.
1141 (target2_type): New variable.
1142 (arm_elf_before_allocation): Don't pass target1_type.
1143 (arm_elf_create_output_section_statements): New function.
1144 (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
1145 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
1146 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
1147 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
1148 * emultempl/armelf_oabi.em (_before_allocation): Remove extra
1149 argument to bfd_elf32_arm_process_before_allocation.
1150
f6e332e6
AM
11512004-09-17 Alan Modra <amodra@bigpond.net.au>
1152
1153 * ldexp.c (fold_name): Update u.undef.next refs.
1154 * emultempl/pe.em: Likewise.
1155 * emultempl/sunos.em: Likewise.
1156
9c933e04
AM
11572004-09-17 Alan Modra <amodra@bigpond.net.au>
1158
1159 * Makefile.am: Run "make dep-am".
1160 * Makefile.in: Regenerate.
1161 * config.in: Regenerate.
1162 * configure: Regenerate.
1163 * aclocal.m4: Regenerate.
1164 * po/ld.pot: Regenerate.
1165
1fa32646
TL
11662004-09-16 Tomer Levi <Tomer.Levi@nsc.com>
1167
9c933e04
AM
1168 * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
1169 (.fini): Likewise.
1170 (.jcr): Likewise.
1fa32646 1171
b6ee372a
AM
11722004-09-16 Alan Modra <amodra@bigpond.net.au>
1173
1174 * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
1175 to bfd_elf32_arm_process_before_allocation call.
1176
9c504268
PB
11772004-09-13 Paul Brook <paul@codesourcery.com>
1178
1179 * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
1180 * emultempl/armelf.em: Use TARGET1_IS_REL. Add --target1-{rel,abs}.
1181
d15b04bd
L
11822004-09-07 H.J. Lu <hongjiu.lu@intel.com>
1183
1184 * configure: Regenerated with autconfig 2.13.
1185
875c4330
AS
11862004-09-07 Andreas Schwab <schwab@suse.de>
1187
1188 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
1189 alignment before adjusting DATA_SEGMENT_RELRO_END.
1190
229fcec5
MM
11912004-09-06 Mark Mitchell <mark@codesourcery.com>
1192
1193 * emulparams/armsymbian.sh: Use armbpabi script.
1194 * scripttempl/armbpabi.sc: New script.
1195
e5a52504
MM
11962004-09-02 Mark Mitchell <mark@codesourcery.com>
1197
1198 * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
1199 (earmsymbian.c): New target.
1200 * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
1201 * Makefile.in: Regenerated.
1202 * aclocal.m4: Likewise.
1203 * configure: Likewise.
1204 * emulparams/armsymbian.sh: New file.
1205
42851540
NC
12062004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
1207
1208 * scripttempl/elf32crx.sc: Edit file with comments.
1209 (.init): Add new section.
1210 (.fini): Likewise.
1211 (.ctor): Control the linkage order.
1212 (.dtor): Likewise.
1213
c034e3e0
NC
12142004-08-27 Nick Clifton <nickc@redhat.com>
1215
1216 * emultempl/pe.em (after_open): Do not assume that either bfd is
9c933e04 1217 an archive.
c034e3e0 1218
688c58f3
AM
12192004-08-26 Alan Modra <amodra@bigpond.net.au>
1220
1221 * ldlang.c (lang_init): Don't compare with TRUE.
1222
b18c562e
NC
12232004-08-25 Dmitry Diky <diwil@spec.ru>
1224
1225 * emulparams/msp430all.sh: Fix RAM sizes for all targets.
1226 * scripttempl/elf32msp430.sc: Add .profiler section definition.
1227
61f5d054
L
12282004-08-24 H.J. Lu <hongjiu.lu@intel.com>
1229
1230 * ldlang.c (wildcardp): Defined as a macro with strpbrk.
1231
e77d3d77
MM
12322004-08-19 Mark Mitchell <mark@codesourcery.com>
1233
1234 * configure.tgt (arm*-*-symbianelf*): New target.
1235 (arm*-*-eabi*): Likewise.
1236
3f764659
JJ
12372004-08-19 Jakub Jelinek <jakub@redhat.com>
1238
1239 * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
1240 (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
1241 (OPTION_NON_OVERLAPPING_OPD): Define.
1242 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
1243 --non-overlapping-opd option.
1244
a010d60f
AM
12452004-08-18 Alan Modra <amodra@bigpond.net.au>
1246
1247 PR 338
1248 * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
1249 was already on the undefs list.
1250
c4e33880
AM
12512004-08-17 Alan Modra <amodra@bigpond.net.au>
1252
1253 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
1254 prefix the symbol field too.
1255
d003868e
AM
12562004-08-13 Alan Modra <amodra@bigpond.net.au>
1257
1258 * ldmain.c (link_callbacks): Remove "error_handler".
1259 * ldmisc.c: Include elf-bfd.h.
1260 (vfinfo): Sort comment. Handle %A. Use %A instead of
1261 bfd_get_section_indent.
1262 (error_handler): Delete.
1263 * ldmisc.h (error_handler): Delete declaration.
1264
99877b66
AM
12652004-08-10 Alan Modra <amodra@bigpond.net.au>
1266
1267 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
1268 ppc64_elf_restore_symbols.
1269
40e45c8b
AM
12702004-08-09 Alan Modra <amodra@bigpond.net.au>
1271
1272 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
1273 .toc is too large on relocatable linking.
1274
ccfa59ea
AM
12752004-08-09 Alan Modra <amodra@bigpond.net.au>
1276
1277 * emultempl/ppc64elf.em (ppc_after_open): Delete.
1278 (LDEMUL_AFTER_OPEN): Don't define.
1279
93fd0973
SC
12802004-08-02 Stephane Carrez <stcarrez@nerim.fr>
1281
1282 * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
1283
f1b123db
SC
12842004-08-01 Stephane Carrez <stcarrez@nerim.fr>
1285
1286 * scripttempl/elfm68hc12.sc: Align text, rodata and data section
1287 on power of 2.
1288
e7fbc2bf
JT
12892004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
1290
1291 * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
1292
c05e9f04
NC
12932004-07-26 Dmitry Diky <diwil@spec.ru>
1294
1295 * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
1296 msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
1297 msp430xG439.
1298 * configure.tgt: Likewise.
1299 * emulparams/msp430all.sh: Likewise.
1300 * Makefile.in: Regenerate.
1301
9f61903d
NC
13022004-07-23 Nick Clifton <nickc@redhat.com>
1303
1304 * emultempl/elf32.em (_place_orphan): Use an already existing
1305 section name if that section does not have any flags set.
1306
082b7297
L
13072004-07-21 H.J. Lu <hongjiu.lu@intel.com>
1308
1309 * ldlang.c (already_linked_hash_entry): Removed.
1310 (already_linked): Likewise.
1311 (already_linked_table): Likewise.
1312 (section_already_linked): Call bfd_section_already_linked.
1313 (lang_process): Replace already_linked_table_init with
1314 bfd_section_already_linked_table_init and check return. Replace
1315 already_linked_table_free with bfd_section_already_linked_table_free.
1316
76d7af2d
NC
13172004-07-21 Nick Clifton <nickc@redhat.com>
1318
1319 * ldlang.c (init_os): Make sure that the newly allocated userdata
1320 structure is zeroed out.
1321
14b3c463
L
13222004-07-19 H.J. Lu <hongjiu.lu@intel.com>
1323
1324 * NEWS: Mention the new --add-needed/--no-add-needed and
1325 --as-needed/--no-as-needed options.
1326
e56f61be
L
13272004-07-19 H.J. Lu <hongjiu.lu@intel.com>
1328
1329 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
1330 check the add_needed field.
1331 (dt_needed): New struct.
1332 (gld${EMULATION_NAME}_try_needed): Change the first argument
1333 to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
1334 bit in the file where the DT_NEEDED entry comes from.
1335 (gld${EMULATION_NAME}_search_needed): Change the second
1336 argument to a pointer to struct dt_needed.
1337 (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
1338 (gld${EMULATION_NAME}_after_open): Likewise.
1339
1340 * ld.texinfo: Add --add-needed document.
1341 * ldlang.c (new_afile): Set p->add_needed.
1342 * ldlang.h (lang_input_statement_type): Add add_needed field.
1343 * ldmain.h (add_needed): Declare.
1344 * ldmain.c (add_needed): New global var.
1345 * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
1346 OPTION_NO_ADD_NEEDED.
1347 (ld_options): Likewise.
1348 (parse_args): Handle them.
1349
c99b8138
NC
13502004-07-13 Christof Petig <christof@petig-baender.de>
1351
1352 * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
1353 for endian-ness of extracted addend.
1354
13ed4151
NC
13552004-07-13 Danny Smith <dannysmith@usesr.sourceforge.net>
1356
1357 * pe-dll.c (auto_export): Filter on just the import prefix,
1358 "_imp_", not "_imp__".
1359
1a320fbb
NC
13602004-07-09 Nick Clifton <nickc@redhat.com>
1361
1362 * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
1363
1fe1f39c
NC
13642004-07-06 Tomer Levi <Tomer.Levi@nsc.com>
1365
1366 * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
1367 (eelf32crx.c): New target.
1368 * Makefile.in: Regenerate.
1369 * configure.tgt: Handle crx-*-elf*.
1370 * emulparams/elf32crx.sh: New file.
1371 * emultempl/crxelf.em: New file.
1372 * scripttempl/elf32crx.sc: New file.
1373 * NEWS: Mention new target.
1374
85fbca6a
NC
13752004-07-06 Nick Clifton <nickc@redhat.com>
1376
1377 * Makefile.am: Add eshlsymbian.c.
1378 * Makefile.in: Regenerate.
1379 * configure.tgt: Add sh*-symbian-elf target.
1380 * emulparams/shlsymbian.sh: New file. Configure the
1381 sh-symbian-elf linker scripts.
1382 * scripttemp/elf32sh-symbian.sc: New file. Linker script
1383 template for the sh-symbian-elf target.
1384
b71a5181
DA
13852004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1386
1387 * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
1388 * emulparams/hppalinux.sh: Likewise.
1389 * scripttempl/elf.sc: Place .plt just before .got when .plt is in
1390 data segment and PLT_BEFORE_GOT is defined.
1391
c87db184
CF
13922004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1393
1394 * ld.texinfo (WIN32): Document PE weak symbols.
1395
f6a8ae81
KK
13962004-07-02 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1397
1398 * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
1399
b602c853
L
14002004-07-01 H.J. Lu <hongjiu.lu@intel.com>
1401
1402 * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
1403 the section.
1404
1a23a9e6
AM
14052004-06-29 Alan Modra <amodra@bigpond.net.au>
1406
1407 * ldlang.c (lang_reset_memory_regions): Save last relax pass section
1408 size in rawsize.
1409
eea6121a
AM
14102004-06-24 Alan Modra <amodra@bigpond.net.au>
1411
1412 * ldlang.c (print_output_section_statement): Don't print size before
1413 relaxation.
1414 (IGNORE_SECTION): Remove bfd arg. Update all callers.
1415
1416 * ldexp.c (fold_name): .. See below.
1417 * ldlang.c (section_already_linked, print_output_section_statement,
1418 print_input_section, insert_pad, size_input_section,
1419 lang_check_section_addresses, lang_size_sections_1,
1420 lang_size_sections, lang_do_assignments_1, lang_set_startof,
1421 lang_one_common, lang_reset_memory_regions, lang_process,
1422 lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
1423 * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
1424 * pe-dll.c (process_def_file, generate_reloc): ..
1425 * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
1426 gld${EMULATION_NAME}_before_allocation): ..
1427 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
1428 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
1429 sh64_elf_${EMULATION_NAME}_after_allocation): ..
1430 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
1431 * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
1432 ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
1433 "size" instead of "_raw_size" and "_cooked_size". Expand
1434 bfd_section_size macro invocations.
1435
552f8272
CF
14362004-06-22 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1437
1438 * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
1439 ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
1440 ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
1441 ___crt_xt_end__.
1442 (.tls): Define ___tls_start__ and ___tls_end__.
1443
aee6f5b4
AO
14442004-06-21 Alexandre Oliva <aoliva@redhat.com>
1445
1446 * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
1447
eea6121a 14482004-06-18 Adam Nemet <anemet@lnxw.com>
f234d5fe 1449
eea6121a
AM
1450 * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
1451 * configure: Regenerate.
f234d5fe 1452
dfff4fbe
JJ
14532004-06-15 Jakub Jelinek <jakub@redhat.com>
1454
1455 * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
1456 .gcc_except_table output sections lost accidentally with
1457 -z relro patch.
1458
a9e0c0c6
AM
14592004-06-15 Alan Modra <amodra@bigpond.net.au>
1460
1461 * ldwrite.c (build_link_order): Use bfd_get_section_size
1462 instead of bfd_get_section_size_before_reloc or _raw_size.
1463 * pe-dll.c (process_def_file): Likewise.
1464
7115639b
AM
14652004-06-14 Alan Modra <amodra@bigpond.net.au>
1466
1467 From Richard Wirth <r.wirth@wirthware.de>
1468 * ldlang.c (lang_finish): Don't free lang_definedness_table.
1469
9ca57817
AM
14702004-05-29 Alan Modra <amodra@bigpond.net.au>
1471
1472 * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
1473 (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
1474
f6f9408f
JR
14752004-05-28 Andrew Stubbs <andrew.stubbs@superh.com>
1476
1477 * testsuite/ld-sh/arch/arch.exp: New test script.
1478 * testsuite/ld-sh/arch/arch_expected.txt: New file.
1479 * testsuite/ld-sh/arch/sh.s: New file.
1480 * testsuite/ld-sh/arch/sh2.s: New file.
1481 * testsuite/ld-sh/arch/sh-dsp.s: New file.
1482 * testsuite/ld-sh/arch/sh2e.s: New file.
1483 * testsuite/ld-sh/arch/sh3-nommu.s: New file.
1484 * testsuite/ld-sh/arch/sh3.s: New file.
1485 * testsuite/ld-sh/arch/sh3-dsp.s: New file.
1486 * testsuite/ld-sh/arch/sh3e.s: New file.
1487 * testsuite/ld-sh/arch/sh4-nommu-nofpu.s: New file.
1488 * testsuite/ld-sh/arch/sh4-nofpu.s: New file.
1489 * testsuite/ld-sh/arch/sh4.s: New file.
1490 * testsuite/ld-sh/arch/sh4a-nofpu.s: New file.
1491 * testsuite/ld-sh/arch/sh4al-dsp.s: New file.
1492 * testsuite/ld-sh/arch/sh4a.s: New file.
1493
164e712d
AM
14942004-05-28 Alan Modra <amodra@bigpond.net.au>
1495
6feb9908
AM
1496 * ldlang.c: Formatting. Wrap long lines, expand bfd_get_section_flags
1497 throughout file.
1498 * lexsup.c: Formatting. Wrap long lines.
1499 * ldwrite.c: Update copyright date.
1500
164e712d
AM
1501 * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
1502 (output_section_callback): Nor SEC_KEEP here.
1503 (gc_section_callback): Twiddle SEC_EXCLUDE here.
1504 (lang_gc_wild): Delete. Fold into..
1505 (lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage
1506 collecting.
1507 (lang_process): Always call lang_gc_sections.
1508 (lang_place_orphans): Handle SEC_EXCLUDE sections.
1509 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
1510 SEC_EXCLUDE code.
1511
b3096250
L
15122004-05-26 H.J. Lu <hongjiu.lu@intel.com>
1513
1514 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
1515 SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
1516 * ldlang.c (lang_add_section): Likewise.
1517
e49f5022
AM
15182004-05-26 Alan Modra <amodra@bigpond.net.au>
1519
1520 * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
1521 sections when doing a final link. Clear SEC_EXCLUDE when doing
1522 a relocable link, except for SEC_DEBUGGING sections.
1523 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
1524 same condition here to drop SEC_EXCLUDE orphan sections.
1525
57ceae94
AM
15262004-05-25 Alan Modra <amodra@bigpond.net.au>
1527
1528 * ldlang.c (lang_process): Call bfd_merge_sections later, and
1529 only when not a relocatable link.
1530 (print_input_section): Handle SEC_EXCLUDE sections.
1531 (size_input_section): Don't update dot on SEC_EXCLUDE sections.
1532 (lang_do_assignments_1): Likewise.
1533 * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
1534 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
1535 * emultempl/hppaelf.em (build_section_lists): Likewise.
1536 * emultempl/ppc64elf.em (build_toc_list): Likewise.
1537 (build_section_lists): Likewise.
1538
a85785bc
AS
15392004-05-23 Andreas Schwab <schwab@suse.de>
1540
1541 * ld.texinfo (Options): Fix typo in last change.
1542
2d643429
NC
15432004-05-21 Andy Chittenden <achittenden@bluearc.com>
1544
1545 * ld.h (ld_config_type): Add new field: hash_table_size.
1546 * ldmain.c: Initialise the new field to zero. If it is non-zero
1547 after parsing the linker's command line call
1548 bfd_hash_set_default_size.
1549 * lexsup.c (option_values): Add OPTION_HASH_SIZE.
1550 (ld_options): Add hash-size.
1551 (parse_args): Parse --hash-size option. Allow
1552 --reduce-memory-overheads to set the default hash table size as
1553 well.
1554 * ld.texinfo: Document the new switch. Also mention that
1555 --reduce-memory-overheads can affect the hash table size.
1556 * NEWS: Mention the new feature.
1557
35835446
JR
15582004-05-19 J"orn Rennecke <joern.rennecke@superh.com>
1559
1560 * NEWS: Mention new linker map file generation and the
1561 --reduce-memory-overheads option.
1562 * ld.texinfo: Document --reduce-memory-overheads option.
1563 * ld.h (map_symbol_def): New struct.
1564 (struct user_section_struct, section_userdata_type): Rename to:
1565 (struct lean_user_section_struct, lean_section_userdata_type).
1566 (struct fat_user_section_struct, fat_section_userdata_type): New.
1567 (SECTION_USERDATA_SIZE): Define.
1568 (args_type): New member reduce_memory_overheads.
1569 * ldlang.c (map_obstack): New static variable.
1570 (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
1571 (lang_map): Unless command_line.reduce_memory_overheads is set,
1572 initialize lists of defined symbols for each section.
1573 (print_input_section): Unless command_line.reduce_memory_overheads
1574 is set, use print_all_symbols.
1575 (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
1576 * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
1577 * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
1578 (ld_options): Add entry for --reduce-memory-overheads.
1579 (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
1580
0841712e
JJ
15812004-05-19 Jakub Jelinek <jakub@redhat.com>
1582
1583 * ldgram.y (sect_constraint): New.
1584 (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1585 (section): Add sect_constraint. Pass additional argument
1586 to lang_enter_output_section_statement.
1587 * mri.c (mri_draw_tree): Pass additional argument to
1588 lang_enter_output_section_statement.
1589 * emultempl/pe.em (place_orphan): Likewise.
1590 (output_prev_sec_find): Disregard output section statements with
1591 constraint == -1.
1592 * emultempl/mmo.em (output_prev_sec_find): Likewise.
1593 (mmo_place_orphan): Pass additional argument to
1594 lang_enter_output_section_statement.
1595 * emultempl/elf32.em (output_prev_sec_find): Disregard output section
1596 statements with constraint == -1.
1597 (place_orphan): Pass additional argument to
1598 lang_enter_output_section_statement.
1599 * ldlang.c (lang_enter_overlay_section): Likewise.
1600 (lang_output_section_find_1): New.
1601 (lang_output_section_find): Use it.
1602 (lang_output_section_statement_lookup_1): New.
1603 (lang_output_section_statement_lookup): Use it.
1604 (check_section_callback, check_input_sections): New.
1605 (map_input_to_output_sections): Check if all input sections
1606 are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
1607 (strip_excluded_output_sections): Disregard output section statements
1608 with constraint == -1.
1609 (lang_record_phdrs): Likewise.
1610 (lang_enter_output_section_statement): Add constraint argument.
1611 Use lang_output_section_statement_lookup_1.
1612 * ldlang.h (lang_output_section_statement_type): Add constraint
1613 and all_input_readonly fields.
1614 (lang_enter_output_section_statement): Adjust prototype.
1615 * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1616 * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
1617 segment if all input sections are readonly.
1618
eea6121a 16192004-05-19 Adam Nemet <anemet@lnxw.com>
f2c50328
NC
1620
1621 * scripttempl/i386lynx.sc: Remove file.
1622
2a16d82a
BW
16232004-05-17 Bob Wilson <bob.wilson@acm.org>
1624
1625 * ld.texinfo (Output Section Address): Correct subsection name.
1626
eea6121a 16272004-05-17 Adam Nemet <anemet@lnxw.com>
b2d65c0b
NC
1628
1629 * configure.tgt (powerpc-*-lynxos* case): New case.
1630 * configure.host (i[3-7]86-*-lynxos* case): Remove case.
1631 * emulparams/ppclynx.sh: New file.
1632 * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
1633 * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
1634 (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
1635 (eppclynx.c): New rule.
1636 * Makefile.in: Regenerate.
1637
4b363073
NC
16382004-05-13 Joel Sherrill <joel@oarcorp.com>
1639
1640 * configure.tgt (or32-*-rtems*): Switch to elf and
1641 support versioned targets.
1642
9598fbe5
NC
16432004-05-13 Nick Clifton <nickc@redhat.com>
1644
1645 * po/fr.po: Updated French translation.
1646
8c37241b
JJ
16472004-05-11 Jakub Jelinek <jakub@redhat.com>
1648
1649 * genscripts.sh: Generate -z combreloc -z now -z relro scripts
1650 for binaries, -shared and -pie.
1651 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
1652 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
1653 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
1654 (OTHER_RELRO_SECTIONS): ... this.
1655 * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
1656 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
1657 -z relro and -z norelro.
1658 (gld${EMULATION_NAME}_list_options): Add it to usage.
1659 (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
1660 -z relro scripts when appropriate.
1661 * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
1662 Create separate .got.plt section if SEPARATE_GOTPLT.
1663 Move sections which are only written during relocation handling
1664 to the beginning of RW segment. If NO_SMALL_DATA, move .got
1665 before .data. Add DATA_SEGMENT_RELRO_END directive.
1666 Include OTHER_RELRO_SECTIONS.
1667 * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
1668 * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
1669 (fold_unary): Likewise.
1670 (fold_binary): Handle -z relro.
1671 * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
1672 exp_dataseg_relro_adjust phases. Add relro_end field.
1673 * ldmain.c (main): Initialize link_info.relro to FALSE.
1674 * ldlang.c (lang_size_sections): Handle -z relro.
1675
e21059f2
MM
16762004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
1677
1678 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
1679
5f9b8920
JR
16802004-05-07 J"orn Rennecke <joern.rennecke@superh.com>
1681
1682 * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
1683 before printing it with %W.
1684
26d2d8a2 16852004-05-07 Brian Ford <ford@vss.fsi.com>
eea6121a 1686 DJ Delorie <dj@redhat.com>
26d2d8a2
BF
1687
1688 * emultempl/pe.em (real_flags): New static.
1689 (OPTION_LARGE_ADDRESS_AWARE): New define.
1690 (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
1691 (gld_${EMULATION_NAME}_list_options): Likewise.
1692 (gld${EMULATION_NAME}_handle_option): Likewise.
1693 (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
1694 * ld.texinfo: Document it.
1695 * NEWS: Mention it.
1696
1b169501
BF
16972004-05-07 Brian Ford <ford@vss.fsi.com>
1698
1699 * NEWS: Mention DWARF 2 support for i386pe.
1700
41cf0c62
AO
17012004-05-05 Alexandre Oliva <aoliva@redhat.com>
1702
1703 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
1704 elf32-frvfdpic.
1705
d0d6a25b
AM
17062004-04-30 Alan Modra <amodra@bigpond.net.au>
1707
1708 * ldlang.c (unique_section_p): Pass section parm, return true on
1709 group sections.
1710 (output_section_callback): Adjust.
1711 * ldlang.h (unique_section_p): Update prototype.
1712 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
1713
755306be
EB
17142004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
1715
eea6121a 1716 * ld.texinfo (--gc-sections): Remove restriction for
755306be
EB
1717 dynamic linking.
1718
8a7140c3
NC
17192004-04-29 Brian Ford <ford@vss.fsi.com>
1720
1721 * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
1722 for DWARF 2/3. Update stab section's syntax.
1723
2f9636ba
AM
17242004-04-29 Alan Modra <amodra@bigpond.net.au>
1725
1726 * pe-dll.c: Revert changes accidentally committed 2004-03-08.
1727 (fill_edata): Correct pointer arithmetic.
1728
23867d67
CD
17292004-04-21 Chris Demetriou <cgd@broadcom.com>
1730
1731 * ld.texinfo: Remove MIPS --embedded-relocs documentation.
1732 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
1733 * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
1734 (EXTRA_EM_FILE): Use mipsecoff.em
1735 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
1736 (EXTRA_EM_FILE): Use mipsecoff.em
1737 * emultempl/mipsecoff.em: Restructure to be included as an
1738 extra emulation file.
1739 (check_sections, gld${EMULATION_NAME}_after_open)
1740 (gld${EMULATION_NAME}_after_allocation)
1741 (gld${EMULATION_NAME}_get_script)
1742 (ld_${EMULATION_NAME}_emulation): Remove
1743 (gld${EMULATION_NAME}_before_parse): Rename to...
1744 (mipsecoff_before_parse): This.
1745 (LDEMUL_BEFORE_PARSE): Define.
1746 * emultempl/mipself.em: Remove file.
1747 * scripttempl/mips.sc (.rel.sdata): Do not include in output.
1748 (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
1749 these symbols.
1750 * Makefile.am: Remove dependencies on emultempl/mipself.em.
1751 * Makefile.in: Regenerate.
1752
1502569c
NC
17532004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
1754
1755 * ld.texinfo (synthesizing on H8/300): Information about linker
1756 relaxation support for bit manipulation instructions and system
1757 control instructions is added.
1758
c894ddfb
HPN
17592004-04-21 Hans-Peter Nilsson <hp@axis.com>
1760
1761 * NEWS: Mention change in DEFINED semantics.
1762
a85bf78e
EB
17632004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
1764
1765 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
1766 (.data): Add KEEP for .gnu.linkonce.d.*personality*.
1767 (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
1768
58434bc1
BE
17692004-04-21 Ben Elliston <bje@au.ibm.com>
1770
1771 * ld.texinfo (Simple Example): Add missing punctuation.
1772
7a7f4e42
CD
17732004-04-20 Chris Demetriou <cgd@broadcom.com>
1774
1775 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
1776
3737f867
JJ
17772004-04-19 Jakub Jelinek <jakub@redhat.com>
1778
1779 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
1780 specially.
1781
3c17e4f7
DS
17822004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
1783
1784 * scriptempl/pe.sc: Put numbered .ctors.* after .ctors
1785 with default priority. Likewise for dtors.
1786
279500de
TS
17872004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1788
1789 * configure.host: Remove mips*-dec-bsd* target.
1790 * configure.tgt: Likewise.
1791
52f89c0a
RS
17922004-04-08 Richard Sandiford <rsandifo@redhat.com>
1793
1794 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
1795 * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
1796 * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
1797 * emultempl/irix.em: New file.
1798 * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
1799 dependencies.
1800 * Makefile.in: Regenerate.
1801
e489d0ae
PB
18022004-04-01 Paul Brook <paul@codesourcery.com>
1803
1804 * emultempl/armelf.em (byteswap_code): Add.
1805 (arm_elf_before_allocation): Pass extra parameter.
1806 (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
1807 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
1808 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
1809 * emultempl/armelf_oabi.em: Pass extra parameter.
1810 * ld.texinfo: Document --be8.
1811
7cc8057a
SS
18122004-03-30 Stan Shebs <shebs@apple.com>
1813
1814 Remove long-obsolete MPW support.
1815 * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
1816 * Makefile.am (mpw): Remove file-presynthesizing actions.
1817 * Makefile.in: Likewise.
1818 * ldfile.c (slash): Remove MPW case.
1819 * ldlex.l [MPW]: Remove unused definition.
1820
0949843d
NC
18212004-03-30 Galit Heller <Galit.Heller@nsc.com>
1822
1823 * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
1824 (eelf32cr16c.c): New target.
1825 * Makefile.in: Regenerate.
1826 * configure.tgt: Handle cr16c-*-elf*.
1827 * emulparams/elf32cr16c.sh: New file.
1828 * scripttempl/elfcr16c.sc: Likewise
1829 * NEWS: Mention support for new target.
1830
0a159ef8
NC
18312004-03-30 Nick Clifton <nickc@redhat.com>
1832
1833 * po/sv.po: Updated Swedish translation.
1834
7a945db6
AM
18352004-03-27 Alan Modra <amodra@bigpond.net.au>
1836
1837 * emultempl/elf32.em: Update new bfd_elf_discard_info name.
1838 * emultempl/hppaelf.em: Likewise.
1839 * emultempl/ppc64elf.em: Likewise.
1840 * emultempl/sh64elf.em: Likewise.
1841
5a580b3a
AM
18422004-03-25 Alan Modra <amodra@bigpond.net.au>
1843
1844 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
1845 size_dynamic_sections call.
1846
b9cf773d
AM
18472004-03-23 Alan Modra <amodra@bigpond.net.au>
1848
1849 PR 51.
1850 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
1851 link_info.wrap_char.
1852
59c2e50f
L
18532004-03-20 H.J. Lu <hongjiu.lu@intel.com>
1854
1855 * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
1856 or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
1857
44349745
AO
18582004-03-20 Alexandre Oliva <aoliva@redhat.com>
1859
1860 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
1861
81359a70
AM
18622004-03-19 Alan Modra <amodra@bigpond.net.au>
1863
1864 * config.in: Regenerate.
1865 * po/ld.pot: Regenerate.
1866
4a43e768
AM
18672004-03-18 Alan Modra <amodra@bigpond.net.au>
1868
1869 * ld.texinfo: Add --as-needed doco.
1870 * ldmain.c (as_needed): New global var.
1871 * ldmain.h (as_needed): Declare.
1872 * lexsup.c (option_values): Add OPTION_AS_NEEDED and
1873 OPTION_NO_AS_NEEDED.
1874 (ld_options): Likewise.
1875 (parse_args): Handle them.
1876 * ldlang.h (lang_input_statement_type): Add as_needed field.
1877 * ldlang.c (new_afile): Set p->as_needed.
1878 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
1879 (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
1880 (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
1881
1882 * ldlang.c (open_input_bfds): Remove useless cast.
1883 (lang_do_assignments_1): Likewise.
1884 (lang_for_each_input_section): Delete.
1885
9183ed4b
AM
18862004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1887
1888 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
1889
ee31fbd0
NC
18902004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
1891
1892 * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
1893 private when building implib.
1894
e5caec89
NS
18952004-03-05 Nathan Sidwell <nathan@codesourcery.com>
1896
1897 * ldlang.c (lang_add_section): Don't force SEC_LOAD on
1898 SEC_THREAD_LOCAL.
1899 (IGNORE_SECTION): Ignore .tbss sections too.
1900 (lang_size_sections_1): .tbss sections do not advance dot.
1901
cc2f008e
AS
19022004-03-01 Andreas Schwab <schwab@suse.de>
1903
1904 * ld.texinfo (Options): Fix example for --wrap.
1905
f5a95868
DS
19062004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
1907
1908 * pe-dll.c (fill_edata): Check that exported_symbol_sections is
1909 not NULL.
1910
177b729b
ILT
19112004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
1912
1913 * ldlang.c (lang_check): Use %P, not %E, in error message.
1914
1b493742
NS
19152004-02-23 Nathan Sidwell <nathan@codesourcery.com>
1916
1917 * ldlang.h (struct lang_output_section_state): Change processed
1918 field's type.
1919 * ldexp.c (check, invalid): Remove.
1920 (fold_name): Move valid_p assignments. Create undefined symbol
1921 when needed. Directly exampine section's processd flag.
1922 * ldlang.c (lang_output_section_statement_lookup): Adjust
1923 processed field init.
1924 (lang_size_sections_1): Allow LOADADDR when determining section's
1925 VMA. Adjust error message. Fold data statement's expr.
1926 (lang_size_sections): Correctly increment lang_statement_iteration.
1927
19282004-02-23 Alan Modra <amodra@bigpond.net.au>
1929
1930 * ldexp.c (fold_tree): Follow indirect symbols.
b9cf773d 1931
876f4090
NS
19322004-02-20 Nathan Sidwell <nathan@codesourcery.com>
1933
1934 * ldgram.y (exp): Add two operand ALIGN.
1935 * ldexp.c (fold_binary): Add ALIGN_K case.
1936 * ld.texinfo (ALIGN): Document two operand version.
1937
384d938f
NS
19382004-02-19 Nathan Sidwell <nathan@codesourcery.com>
1939
1940 * ldlang.c (map_input_to_output_sections): Initialize sections
1941 mentioned in a data statement expression.
1942 (lang_do_assignments_1): Add data statement's expression's
1943 section's vma.
1944
b6ca8815
NS
19452004-02-18 Nathan Sidwell <nathan@codesourcery.com>
1946
1947 * ldgram.y (statement_anywhere): Add assert rule.
1948 * ldlang.c (exp_init_os): Add assert case.
1949
c92c35e7
AC
19502004-02-14 Andrew Cagney <cagney@redhat.com>
1951
1952 * ldmain.c (remove_output): Call bfd_cache_close.
1953
9bf78c99
RS
19542004-02-14 Richard Sandiford <rsandifo@redhat.com>
1955
1956 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
1957 .MIPS.content* and .MIPS.events* sections.
1958
f3806916
DJ
19592004-02-09 Daniel Jacobowitz <drow@mvista.com>
1960
1961 * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
1962 .note.gnu.arm.ident to after allocated sections. Mark its
1963 address as 0.
1964
4c8e70d7
DJ
19652004-02-09 Daniel Jacobowitz <drow@mvista.com>
1966
1967 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
1968 * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
1969 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
1970 * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
1971 * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
1972
ff71f4f7
NC
19732004-02-05 Nick Clifton <nickc@redhat.com>
1974
1975 * emultempl/pe.em (_after_open): Fix typo in previous delta.
1976
07a68a80
NC
19772004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
1978
1979 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
1980
1dd3bf68
AM
19812004-01-28 Alan Modra <amodra@bigpond.net.au>
1982
586196d5
AM
1983 * genscripts.sh: Fix typo.
1984
1dd3bf68
AM
1985 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
1986
13d9421f
JJ
19872004-01-24 Jakub Jelinek <jakub@redhat.com>
1988
1989 * emulparams/elf64_ia64.sh: Put .rela.opd into
1990 OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
1991
4d8907ac
DS
19922004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
1993
1994 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
1995 * ld.texinfo (--omagic): Note that writable text section
1996 does not conform to published PE-COFF specs.
1997 (--enable-auto-import): Likewise.
1998
e5c60db5
AM
19992004-01-15 Alan Modra <amodra@bigpond.net.au>
2000
2001 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
2002
6bdafbeb
NC
20032004-01-13 Nick Clifton <nickc@redhat.com>
2004
2005 * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
2006 which if true will prevent the LMA region being used as a
2007 replacement for a default VMA region.
586196d5
AM
2008 (lang_leave_output_section_statement): Pass extra parameter.
2009 (lang_leave_overlay): Likewise.
2010 * ld.texinfo (Output Section LMA): Document that the LMA
6bdafbeb
NC
2011 region can be set to the VMA region if no VMA has been set.
2012 * ldlang.h (struct lang_output_section_phdr_list): Create a
2013 typedef for this type. Minor formatting fixes.
586196d5 2014
9dfc8ab2
NC
20152004-01-13 Nick Clifton <nickc@redhat.com>
2016
2017 * ldlang.c (lang_size_sections_1): If dot is advanced, then
2018 assume that the section should be allocated.
2019
8325c4dd
AM
20202004-01-13 Alan Modra <amodra@bigpond.net.au>
2021
2022 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
2023 sections. Do ignore SEC_NEVER_LOAD sections.
2024 (lang_size_sections_1): Remove test made redundant with the above.
2025
83490352
AM
20262004-01-09 Alan Modra <amodra@bigpond.net.au>
2027
2028 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
2029 program_header_size.
2030
005e1118
AO
20312004-01-06 Alexandre Oliva <aoliva@redhat.com>
2032
2033 2003-11-28 Alexandre Oliva <aoliva@redhat.com>
2034 * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
2035 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
2036 * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
2037 (MAXPAGESIZE): Set to 64Kb.
2038 (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
2039 __ROFIXUP_END__. Don't map .rofixup.got any more.
2040 * emulparams/elf32frv.sh (NOP): Set.
2041 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
2042 * configure.tgt: Add frv-*-*linux*.
2043 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
2044 * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
2045 (eelf32frvfd.c): New.
2046 * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
2047 * emulparams/elf32frv.sh: Reverted previous two patches.
2048 * emulparams/elf32frvfd.sh: New.
2049 * Makefile.in: Rebuilt.
2050 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
2051 * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
2052 .rofixup.got to .rofixup.
2053 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
2054 * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
2055 (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
2056
060feee5
JJ
20572004-01-05 Jakub Jelinek <jakub@redhat.com>
2058
2059 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
2060 * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
2061
5e2f1575
AM
20622004-01-03 Alan Modra <amodra@bigpond.net.au>
2063
e5caa5e0
AM
2064 * ldexp.c (align_n): Make static.
2065 * ldexp.h (align_n): Delete declaration.
2066 * ldlang.h (lang_enter_output_section_statement): Remove
2067 block_value param.
2068 * ldlang.c (lang_enter_output_section_statement): Likewise.
2069 (TO_ADDR, TO_SIZE): Define.
c2df3ea5 2070 (opb_shift): New var.
e5caa5e0
AM
2071 (init_opb): New function.
2072 (print_input_section): Call init_opb and use TO_ADDR.
2073 (print_data_statement, print_reloc_statement): Likewise.
2074 (print_padding_statement): Likewise.
c2df3ea5 2075 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
e5caa5e0
AM
2076 (lang_check_section_addresses): Likewise.
2077 (lang_size_sections_1): Likewise.
2078 (lang_do_assignments_1): Likewise.
2079 (lang_set_startof): Likewise.
c2df3ea5 2080 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
e5caa5e0 2081 (lang_process): Call init_opb.
c2df3ea5 2082 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
e5caa5e0
AM
2083 (lang_enter_overlay_section): Adjust
2084 lang_enter_output_section_statement call.
2085 * ldgram.y: Likewise.
2086 * mri.c (mri_draw_tree): Likewise.
2087 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
2088 * emultempl/mmo.em (mmo_place_orphan): Likewise.
2089 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
2090
5e2f1575
AM
2091 * ldfile.c (ldfile_set_output_arch): Add defarch param.
2092 * ldfile.h (ldfile_set_output_arch): Ditto.
2093 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
2094 ldfile_set_output_arch.
2095 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
2096 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
2097 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
2098 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2099 * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
2100 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
2101 * ldgram.y: Adjust ldfile_set_output_arch call.
2102 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2103 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
2104 * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
2105 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
2106 * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
2107 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2108 * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2109
b50c15dc
NC
21102004-01-02 Bernardo Innocenti <bernie@develer.com>
2111
2112 * configure.tgt: Add m68k-uClinux target.
6edf0760 2113
c9e214e5 2114For older changes see ChangeLog-0203
252b5132
RH
2115\f
2116Local Variables:
2117mode: change-log
2118left-margin: 8
2119fill-column: 74
2120version-control: never
2121End:
This page took 0.490599 seconds and 4 git commands to generate.