* config.bfd: Add h8300*-*-rtemscoff.
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
279e75dc
BE
12005-04-29 Ben Elliston <bje@au.ibm.com>
2
3 * ldgram.y (lang_memory_region_type): Make static.
4 (ldgram_want_filename): Likewise.
5 * ldemul.c (ld_emulation): Make static.
6 * ldfile.h (ldfile_find_command_file): Remove extern.
7 * ldfile.c (ldfile_find_command_file): Make static.
8 * ldlang.h (unique_section_list): Remove extern declaration.
9 * ldlang.c (unique_section_list): Make static.
10 * mri.h (symbol_truncate): Remove extern declaration.
11 * mri.c (symbol_truncate): Make static.
12 (order, only_load, address, alias): Likewise.
13 (alignment, subalignment): Likewise.
14
4a2afbc1
L
152005-04-27 H.J. Lu <hongjiu.lu@intel.com>
16
17 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
18 Use the first SEC_ALLOC section which isn't SEC_READONLY or the
19 last SEC_ALLOC section if such a section doesn't exist.
20
fd9719b1
MK
212005-04-24 Mark Kettenis <kettenis@gnu.org>
22
23 * configure.host: Add *-*-openbsd support.
24
33bfe774
JB
252005-04-15 Julian Brown <julian@codesourcery.com>
26
27 * ld.texinfo: Document --use-blx.
28 * emultempl/armelf.em (use_blx): New variable.
29 (arm_elf_create_output_section_statements): Communicate value of
30 use_blx to bfd.
31 (PARSE_AND_LIST_PROLOGUE): Add OPTION_USE_BLX.
32 (PARSE_AND_LIST_OPTIONS): Add --use-blx option.
33 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_USE_BLX case.
34
9e9b66a9
AM
352005-04-14 Alan Modra <amodra@bigpond.net.au>
36
37 * Makefile.am (NO_WERROR): Define. Use instead of -Wno-error.
38 * configure.in: Include ../bfd/warning.m4 contents.
39 * Makefile.in: Regenerate.
40 * configure: Regenerate.
41
ceae3e33
AM
422005-04-12 Alan Modra <amodra@bigpond.net.au>
43
44 * Makefile.am: Run "make dep-am".
45 (ldgram.o, ldlex.o, deffilep.o): Add -Wno-error to command.
46 * Makefile.in: Regenerate.
47 * config.in: Regenerate.
48
7cedef86
AM
492005-04-11 Alan Modra <amodra@bigpond.net.au>
50
51 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Ignore
52 as_needed libs that were not needed.
53 (gld${EMULATION_NAME}_check_needed): Likewise.
54
187ffe95
NC
552005-04-07 Nick Clifton <nickc@redhat.com>
56
57 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h so that
58 ldfile.h can use the lang_input_statement type.
59
72223188
JJ
602005-04-06 Jakub Jelinek <jakub@redhat.com>
61
62 * ldlang.c: Formatting.
63 (walk_wild_consider_section): Remember return value from wildcardp.
64 (is_simple_wild): Use strcspn instead of 2 strpbrk calls and strlen.
65 (wild_spec_can_overlap): Use strcspn instead of strpbrk and strlen.
66
672005-04-06 Robert O'Callahan <rocallahan@novell.com>
68
69 * ld.h (lean_section_userdata_type): Remove.
70 (fat_section_userdata_type): Remove file field.
71 (SECTION_USERDATA_SIZE): Remove.
72 * ldlang.c (init_os): Eliminate initialization of unused
73 lean_section_userdata_type.
74
75 * ldlang.h (callback_t, walk_wild_section_handler_t): New
76 typedefs.
77 (struct lang_wild_statement_struct): Add walk_wild_section_handler
78 and handler_data fields.
79 * ldlang.c (callback_t): Removed.
80 (walk_wild_consider_section, walk_wild_section_general,
81 section_iterator_callback, find_section, is_simple_wild,
82 match_simple_wild, walk_wild_section_specs1_wild0,
83 walk_wild_section_specs1_wild1, walk_wild_section_specs2_wild1,
84 walk_wild_section_specs3_wild2, walk_wild_section_specs4_wild2,
85 wild_spec_can_overlap, analyze_walk_wild_section_handler): New
86 functions.
87 (lang_add_wild): Call analyze_walk_wild_section_handler.
88 (walk_wild_section): Renamed to walk_wild_section_general and
89 created a wrapper function.
90 (section_iterator_callback_data): New typedef.
91
34875e64
NC
922005-04-04 Nick Clifton <nickc@redhat.com>
93
94 * configure.in: Add a check for <unistd.h> providing a prototype
95 for getopt() which is compatible with the one in
96 include/getopt.h. If so then define HAVE_DECL_GETOPT.
97 * configure: Regenerate.
98 * config.in (HAVE_DECL_GETOPT): Add.
99 * ldemul.c: Include config.h
100 * lexsup.c: Likewise.
101 * emultempl/elf32.sc: Likewise.
102
deb04cdb
AM
1032005-03-29 Alan Modra <amodra@bigpond.net.au>
104
105 * emultempl/elf32.em (gld${EMULATION_NAME}_layout_sections_again):
106 New function, extracted from static void gld${EMULATION_NAME}_finish.
107 (gld${EMULATION_NAME}_strip_empty_sections): Likewise.
108 (gld${EMULATION_NAME}_provide_init_fini_syms): Likewise.
109 * emultempl/ppc64elf.em: Revert last change.
110 (ppc_layout_sections_again): Use
111 gld${EMULATION_NAME}_layout_sections_again.
112 (ppc_finish): Don't call gld${EMULATION_NAME}_finish. Instead call
113 gld${EMULATION_NAME}_strip_empty_sections and
114 gld${EMULATION_NAME}_provide_init_fini_syms.
115 * emultempl/hppaelf.em: Similarly.
116
8b4e5e28
AM
1172005-03-29 Alan Modra <amodra@bigpond.net.au>
118
119 * emultempl/ppc64elf.em (need_laying_out): Delete. Remove all refs.
120 (ppc_finish): Don't call bfd_elf_discard_info.
121 * emultempl/hppaelf.em: Similarly.
122
510a939b
NC
1232005-03-24 Nick Clifton <nickc@redhat.com>
124
125 * po/fr.po: Updated French translation.
126
ed84e695
NC
1272005-03-23 Mike Frysinger <vapier@gentoo.org>
128 Nick Clifton <nickc@redhat.com>
129
130 * configure.host: Accept any C library to accompany a GNU Linux
131 implementation, not just the GNU C library.
132 * configure.tgt: Likewise.
133 * emultempl/elf32.em: Likewise.
deb04cdb 134
81e1b023
L
1352005-03-22 H.J. Lu <hongjiu.lu@intel.com>
136
137 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols): New
138 (gld${EMULATION_NAME}_finish): Call
139 gld${EMULATION_NAME}_provide_bound_symbols to provide
140 __preinit_array_start, __preinit_array_end, __init_array_start,
141 __init_array_end, __fini_array_start and __fini_array_end.
142
143 * scripttempl/elf.sc: Don't provide __preinit_array_start,
144 __preinit_array_end, __init_array_start, __init_array_end,
145 __fini_array_start nor __fini_array_end.
146
11d2f718
AM
1472005-03-23 Alan Modra <amodra@bigpond.net.au>
148
149 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Set
150 SEC_EXCLUDE on .gnu.warning sections.
151
644285ef
AM
1522005-03-22 Alan Modra <amodra@bigpond.net.au>
153
154 * scripttempl/elf.sc (SBSS): Don't provide sbss start and end syms.
155
c9a2f333
AM
1562005-03-21 Alan Modra <amodra@bigpond.net.au>
157
158 * emultempl/ppc32elf.em (gld${EMULATION_NAME}_after_allocation): New
159 function.
160 (LDEMUL_AFTER_ALLOCATION): Define.
161
b1ab9777
AM
1622005-03-21 Alan Modra <amodra@bigpond.net.au>
163
164 * emultempl/ppc64elf.em (ppc_finish): Rename from
165 gld${EMULATION_NAME}_finish. Call gld${EMULATION_NAME}_finish.
166 (LDEMUL_FINISH): Update.
167 * emultempl/hppaelf.em (hppaelf_finish, LDEMUL_FINISH): Likewise.
168 * emultempl/m68hc1xelf.em (m68hc11elf_finish, LDEMUL_FINISH): Likewise.
169
2a2a7c94
JB
1702005-03-18 Julian Brown <julian@codesourcery.com>
171
172 * scripttempl/armbpapi.sc (.rel.dyn): Add .rel.init_array,
173 .rel.fini_array.
174 (.rela.dyn): Add .rela.init_array, .rela.fini_array.
175 (SECTIONS): Add .rel.other, .rela.other, .reli.other after PLT relocs.
176
98720c64
L
1772005-03-18 H.J. Lu <hongjiu.lu@intel.com>
178
179 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Don't set
180 bfd_section when removing unused empty output sections for
181 non-relocatable link.
182
41c7ba7c
AM
1832005-03-19 Alan Modra <amodra@bigpond.net.au>
184
185 * ldlang.c (lang_insert_orphan): Use old section_tail rather than
186 traversing the bfd section list to find pointer to new section.
187
0fb53118
AM
1882005-03-18 Alan Modra <amodra@bigpond.net.au>
189
190 * scripttempl/elf.sc: When CREATE_SHLIB, put .sdata2 and .sbss2
191 input sections into .sdata and .sbss output respectively.
192
de7f8cc8
BW
1932005-03-16 David Heine <dlheine@tensilica.com>
194 Bob Wilson <bob.wilson@acm.org>
195
196 * ldlang.c (IGNORE_SECTION): Remove check for zero size.
197 (lang_check_section_addresses): Ignore zero size sections here.
198
57316bff
L
1992005-03-16 H.J. Lu <hongjiu.lu@intel.com>
200
201 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Remove
202 unused empty output sections for non-relocatable link.
203
204 * ld.h (args_type): Remove gc_sections.
205
206 * ldlang.c (lang_mark_used_section): New.
207 (lang_gc_sections): Use link_info.gc_sections instead of
208 command_line.gc_sections.
209 * ldmain.c (main): Likewise.
210 * lexsup.c (parse_args): Likewise.
211 * ldlang.c (lang_process): Call lang_mark_used_section.
212
213 * ldmain.c (main): Initialize link_info.gc_sections to FALSE.
214
1ad12f97
NC
2152005-03-16 Nick Clifton <nickc@redhat.com>
216 Ben Elliston <bje@au.ibm.com>
217
569acd2c 218 * configure.in (werror): New switch: Add -Werror to the
1ad12f97 219 compiler command line. Enabled by default. Disable via
569acd2c 220 --disable-werror.
1ad12f97
NC
221 * configure: Regenerate.
222
cb2d1ef2
AM
2232005-03-16 Alan Modra <amodra@bigpond.net.au>
224
225 * emulparams/elf32ppclinux.sh (OTHER_READWRITE_SECTION): Delete.
226 (OTHER_RELRO_SECTIONS): Set this instead.
227
957d91c1
NC
2282005-03-15 Nick Clifton <nickc@redhat.com>
229
230 * NEWS: Add cutoff for changes in 2.16 release.
231
34723071
NC
2322005-03-15 Mikkel Krautz <krautz@gmail.com>
233
234 * configure.tgt (x86_64-elf): Add target.
235
729ae8d2
AM
2362005-03-15 Alan Modra <amodra@bigpond.net.au>
237
238 * po/es.po: Commit new Spanish translation.
239
8b3d8fa8
AM
2402005-03-14 Alan Modra <amodra@bigpond.net.au>
241
242 * ldexp.c (exp_fold_tree): Ensure return value is initialized.
243 Tidy etree_assert case.
244
882cb63e
AM
2452005-03-14 Alan Modra <amodra@bigpond.net.au>
246
247 * po/tr.po: Commit new Turkish translation.
248
61c84b48
DJ
2492005-03-11 Daniel Jacobowitz <dan@codesourcery.com>
250
251 * Makefile.am: Remove references to em68klynx.o and esparclynx.o.
252 * Makefile.in: Regenerated.
253 * emulparams/m68klynx.sh, emulparams/sparclynx.sh: Remove.
254
41c9e29d
NC
2552005-03-07 Nick Clifton <nickc@redhat.com>
256
257 * po/fr.po: Updated translation.
258
06647dfd
AM
2592005-03-05 Alan Modra <amodra@bigpond.net.au>
260
261 * po/ld.pot: Regenerate.
262
bb14f524
JB
2632005-03-02 Jan Beulich <jbeulich@novell.com>
264
265 * ldmain.c (remove_output): Use unlink_if_ordinary instead of unlink.
266 * pe-dll.c (pe_dll_generate_implib): Likewise.
267
0ef622cb
BE
2682005-02-24 Ben Elliston <bje@au.ibm.com>
269
270 * ldfile.c: Remove GNU960 conditional code.
271 * emultempl/gld960.em: Likewise.
272 * emultempl/gld960c.em: Likewise.
273 * emultempl/lnk960.em: Likewise.
274
f3f4bcca
NC
2752005-02-24 Nick Clifton <nickc@redhat.com>
276
277 * emultempl/lnk960.em (lnk960_before_parse): Remove redundant
278 empty string from calls to concat.
279
2802005-02-23 Nick Clifton <nickc@redhat.com>
281
282 * emultempl/lnk960.em (lnk960_before_parse): Terminate list of
283 arguments passed to concat() with a NULL.
284
285 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h because they
286 define types needed by ldfile.h
287
47639182
AM
2882005-02-23 Alan Modra <amodra@bigpond.net.au>
289
290 * pe-dll.c: Warning fixes.
291 * emultempl/sunos.em: Likewise.
292
ace66bb2
DJ
2932005-02-22 Daniel Jacobowitz <dan@codesourcery.com>
294
295 * ldlang.c (section_already_linked): Don't call
296 bfd_section_already_linked for dynamic objects.
297
5718918d
AM
2982005-02-22 Alan Modra <amodra@bigpond.net.au>
299
300 * ldexp.c: Warning fixes.
301 * ldwrite.c: Likewise.
302 * emultempl/elf32.em: Likewise.
303
ebe372c1
L
3042005-02-21 H.J. Lu <hongjiu.lu@intel.com>
305
306 * ldlang.c (lang_add_section): Check SEC_TIC54X_BLOCK for TI
307 tic54x input only.
308 (lang_size_sections_1): Check SEC_COFF_SHARED_LIBRARY for COFF
309 and ECOFF output only.
310
0ca2f5d5
AM
3112005-02-21 Alan Modra <amodra@bigpond.net.au>
312
313 * config.in: Regenerate.
314 * configure: Regenerate.
315
fbbb9ac5
ZW
3162005-02-17 Zack Weinberg <zack@codesourcery.com>
317
318 * ldexp.c (assigning_to_dot): New global flag.
319 (fold_name): If assigning_to_dot is true, object immediately to
320 an undefined symbol.
321 (exp_fold_tree): Set and clear assigning_to_dot around the
322 recursive call to exp_fold_tree to process the right-hand side
323 of an assignment to the location counter.
324
c68dac40
PB
3252005-02-17 Paul Brook <paul@codesourcery.com>
326
327 * scripttempl/armbpabi.sc: Add dummy name to version block.
328
20c2cbe3
AM
3292005-02-17 Alan Modra <amodra@bigpond.net.au>
330
331 * ldexp.c (new_abs): Init new.str.
332
0b48acfe
MM
3332005-02-15 Mark Mitchell <mark@codesourcery.com>
334
335 * configure.in (AC_CHECK_FUNCS): Add glob.
336 * configure: Regenerated.
337 * emultempl/elf32.em (<glob.h>): Do not include if HAVE_GLOB is
338 not defined.
339 (gld${EMULATION_NAME}_parse_ld_so_conf_include): Do not use glob
340 if HAVE_GLOB is not defined.
fbbb9ac5 341
ff925e69
KK
3422005-02-16 Kaz Kojima <kkojima@rr.iij4u.or.jp>
343
344 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define
345 lib_path if NATIVE is yes.
346
92b7a70f
AM
3472005-02-16 Alan Modra <amodra@bigpond.net.au>
348
349 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Make
350 an error creating fake bfd fatal.
351 (ppc_before_allocation): Continue on after errors.
352 (gld${EMULATION_NAME}_finish): Likewise.
353
297ba367
NC
3542005-02-15 Nick Clifton <nickc@redhat.com>
355
356 * ldlex.l (YY_NO_UNPUT): Define so that the yy_unput function is
357 not declared. It is not used and its presence causes a compile
358 time warning.
fbbb9ac5 359
9eabd475
ZW
3602005-02-11 Zack Weinberg <zack@codesourcery.com>
361
362 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed):
363 If st.st_ino is zero, do not treat the library as a duplicate.
364
d457dcf6
JJ
3652005-02-10 Jakub Jelinek <jakub@redhat.com>
366
367 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
368 Set BFD_LINKER_CREATED on the stubs bfd.
369 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
370 Likewise.
371
4e5db43b
MM
3722005-02-08 Mark Mitchell <mark@codesourcery.com>
373
374 * scripttempl/armbpabi.sc (VERSION): Make special section symbols
9eabd475 375 local.
4e5db43b
MM
376 (Image$$ER_RO$$Base): Define whenever RELOCATING.
377 (Image$$ER_RO$$Limit): Likewise.
378 (SHT$$INIT_ARRAY$$Base): Likewise.
379 (SHT$$INIT_ARRAY$$Limit): Likeise.
380
4297f9f1
BE
3812005-02-10 Ben Elliston <bje@au.ibm.com>
382
383 * emultempl/beos.em: Remove #if 0 and #if 1 blocks.
384
1c7c5e5b
RS
3852005-02-08 Richard Sandiford <rsandifo@redhat.com>
386
387 * configure.tgt (mips64*el-*-linux-gnu*): Define targ_extra_libpath
388 to include o32 and n64 emulations.
389 (mips64*-*-linux-gnu*): Likewise.
390
300475fe
HPN
3912005-02-08 Hans-Peter Nilsson <hp@axis.com>
392
393 * ldmain.c (warning_callback, warning_find_reloc): Prepend
394 "warning: " to warning messages.
395
4ea42fb7
AM
3962005-02-04 Alan Modra <amodra@bigpond.net.au>
397
398 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't
399 look up symbol for etree_provide here.
400
161f49a3
DJ
4012005-02-02 Daniel Jacobowitz <dan@codesourcery.com>
402
403 * emulparams/elf32bmip.sh (TEXT_DYNAMIC): Always set.
404
73ae6183
NC
4052005-02-01 Edward Welbourne <eddy@opera.com>
406 Nick Clifton <nickc@redhat.com>
407
408 * ld.texinfo (Source Code Reference): New node describing how to
409 access linker script defined variables from source code.
410
77cfaee6
AM
4112005-02-01 Alan Modra <amodra@bigpond.net.au>
412
413 * ld.texinfo: Clarify --as-needed operation.
414
c46f8c51
AC
4152005-01-31 Andrew Cagney <cagney@gnu.org>
416
417 * configure: Regenerate to track ../gettext.m4.
418
d342277e
NC
4192005-01-31 Nick Clifton <nickc@redhat.com>
420
421 * ldver.c (ldversion): Bump reported copyright date to 2005.
422
d6486796
NC
4232005-01-31 Nick Clifton <nickc@redhat.com>
424
425 * configure.tgt: Remove obsolete targets m68k-lynxos and
426 sparc-lynxos.
427
319850b4
JB
4282005-01-28 Julian Brown <julian@codesourcery.com>
429
430 * emultempl/armelf.em (fix_v4bx): New variable.
431 (arm_elf_create_output_section_statements): Communicate fix_v4bx flag
432 value to bfd.
433 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_FIX_V4BX.
434 (PARSE_AND_LIST_LONGOPTS): Add option --fix-v4bx.
435 (PARSE_AND_LIST_OPTIONS): Add option --fix-v4bx.
9eabd475 436 (PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX.
319850b4
JB
437 * NEWS: Mention --fix-v4bx.
438 * ld.texinfo: Document --fix-v4bx.
439
dc4c9c19
MM
4402005-01-25 Mark Mitchell <mark@codesourcery.com>
441
442 * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Define, so
443 as to include .ARM.exidx$${Base,Limit}.
444 * ld/scripttempl/armbpabi.sc: Move .plt to end of text segment.
445 Define IMAGE$$ER_RO$${Base,Limit} and SHT$$INIT_ARRAY$${Base,Limit}.
446 Put .init_array, .fini_array, etc. into the read-only data
9eabd475
ZW
447 segment.
448
7e9f0867
AM
4492005-01-25 Alan Modra <amodra@bigpond.net.au>
450
451 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Formatting.
452 (gld${EMULATION_NAME}_after_open): Ignore needed libs if they were
453 only needed by an as-needed lib that didn't get linked.
454
7e69709c
AM
4552005-01-23 Alan Modra <amodra@bigpond.net.au>
456
457 * ld.texinfo (Output Section Keywords <CONSTRUCTORS>): Correct
458 __DTOR_LIST__ description.
459
b5666f2f
AM
4602005-01-23 Alan Modra <amodra@bigpond.net.au>
461
462 * ld.texinfo (Location Counter <dot outside sections>): Document
463 effects of orphan section placement, and ". = ." workaround.
464 * Makefile.in: Regenerate.
465
4e25343c
RS
4662005-01-22 Richard Sandiford <rsandifo@redhat.com>
467
468 * emulparams/elf32bmip.sh (OTHER_GOT_SECTIONS): Add ". = .;".
469 * emulparams/elf32bmipn32-defs.sh (OTHER_GOT_SECTIONS): Likewise.
470
b717d30e
JJ
4712005-01-21 Jakub Jelinek <jakub@redhat.com>
472
473 * ldgram.y (AS_NEEDED): New token.
474 (input_list): Handle AS_NEEDED ( input_list ).
475 * ldlex.l (AS_NEEDED): Add.
476 * ld.texinfo: Document AS_NEEDED ().
477 * NEWS: Mention AS_NEEDED ().
478
7a64f7b8
BE
4792005-01-21 Ben Elliston <bje@au.ibm.com>
480
481 * ldlang.c (lang_reasonable_defaults): Remove.
482 (lang_process): Don't call lang_reasonable_defaults.
483
484 * ldexp.c (exp_assop): Remove #if 0'd code.
485 (exp_print_tree): Likewise.
486 * ldlang.c (lang_memory_region_lookup): Likewise.
487 (open_output): Likewise.
488 (lang_do_assignments_1): Likewise.
489 (lang_place_orphans): Likewise.
490 (lang_enter_output_section_statement): Likewise.
491 (lang_reasonable_defaults): Likewise.
492 * ldlang.h (struct lang_input_statement_struct): Likewise.
493 * mri.c (mri_draw_tree): Likewise.
494 (mri_load): Likewise.
495 * pe-dll.c (generate_reloc): Likewise.
496 (make_import_fixup_entry): Likewise.
497 (pe_as16): Likewise.
498 * emultempl/beos.em (set_pe_subsystem): Likewise.
499 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
500 * emultempl/pe.em: Likewise.
501 * emultempl/xtensaelf.em (xtensa_colocate_literals): Likewise.
502
a154a8ad
MM
5032005-01-20 Daniel Jacobowitz <dan@codesourcery.com>
504
505 * Makefile.am (ALL_EMULATIONS): Add earmelfb_linux_eabi.o.
506 (earmelfb_linux_eabi.c): New target.
507 * Makefile.in: Regenerated.
508 * configure.tgt (arm*b-*-linux-gnueabi): New target.
509 * emulparams/armelfb_linux_eabi.sh: New file.
510
9c183183
AM
5112005-01-20 Nick Hudson <skrll@netbsd.org>
512
513 PR ld/676
514 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
515 Handle bfd_elf32_hppa_nbsd_vec.
516
e2243057
RS
5172005-01-19 Richard Sandiford <rsandifo@redhat.com>
518
519 * ldmain.h (ld_sysroot): Change type to a constant string.
520 * ldmain.c (ld_sysroot): Likewise.
521 (get_relative_sysroot, get_sysroot): New functions, adding command-line
522 support for changing the sysroot.
523 (main): Call the new functions.
524 * lexsup.c (OPTION_SYSROOT): New.
525 (ld_options): Add --sysroot.
526 (parse_args): Add a dummy handler for it.
527 * ld.texinfo (--sysroot): Document.
528 * NEWS: Mention the new --sysroot option.
529
1449d79b
AM
5302005-01-18 Alan Modra <amodra@bigpond.net.au>
531
532 * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
533 (lang_place_orphans): Don't abort on just_syms_flag, instead call
534 bfd_link_just_syms.
535
a880c748
DS
5362005-01-16 Danny Smith <dannysmith@users.sourceforge.net>
537
538 * defilep.y (def_name, def_library): Combine into...
539 (def_image_name): New function. Strip name to basename,
540 with warning.
541
07baa8ee
MK
5422005-01-12 Mark Kettenis <kettenis@gnu.org>
543
544 * configure.in: Be sure to invoke config.sub using the shell.
545 * configure: Regenerate.
546
e9b181b8
AM
5472005-01-11 Alan Modra <amodra@bigpond.net.au>
548
549 * configure.host: Correct sed patterns for last change.
550
59ef2528
NC
5512005-01-10 Nick Clifton <nickc@redhat.com>
552
553 PR binutils/609
554 * ldmisc.c (vfinfo): Add an extra argument: is_warning. Use this
555 to determine whether config.make_executable should be set to FALSE in
556 conjunction with config.fatal_warnings.
557 (info_msg, minfo, lfinof): Pass FALSE as the extra argument.
558 (einfo): Pass TRUE as the extra argument.
559
71a2d53a
NC
5602005-01-10 Greg Schaffer <gschafer@zip.com.au>
561
562 * configure.host (linux targets): Use "${CC} -dumpspecs" instead
563 of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0.
564 (ia64-*-aix): Delete - this target is obsolete, and would be
565 broken by this patch.
566
d6d0b336
EB
5672005-01-06 Eric Botcazou <ebotcazou@libertysurf.fr>
568
569 * configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*.
570 (sparc64-sun-solaris2*): New host.
571
4e7fd91e
PB
5722005-01-06 Paul Brook <paul@codesourcery.com>
573
574 * Makefie.am: Add earmelf_vxworks.
575 * Makefile.in: Regenerate.
576 * configure.tgt: Make arm-*-vxworks a separate case.
577 * emulparams/armelf_vxworks.sh: New function.
578
4c52953f
AM
5792005-01-06 Alan Modra <amodra@bigpond.net.au>
580
581 * emultempl/ppc64elf.em (no_multi_toc): New var.
582 (gld${EMULATION_NAME}_finish): Pass to ppc64_elf_setup_section_lists.
583 (OPTION_NO_MULTI_TOC): Define.
584 (PARSE_AND_LIST_LONGOPTS): Add --no-multi-toc support.
585 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
586
98d87ee7
NC
5872005-01-05 Nick Clifton <nickc@redhat.com>
588
589 PR binutils/614
590 * ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
4c52953f 591 Standard's specification for parsable error messages.
98d87ee7 592
5f81b918
PB
5932005-01-04 Paul Brook <paul@codesourcery.com>
594
595 * Makefile.am: Correct dependency for earmsymbian.c.
596 * Makefile.in: Regenerate.
597
2af59bab
DS
5982004-12-28 Danny Smith <dannysmith@users.sourceforge.net>
599
600 * emultempl/pe.em (set_pe_subsystem): Change second arg to
601 lang_add_entry to FALSE.
602
c38f024c
NC
6032004-12-23 Nick Clifton <nickc@redhat.com>
604
605 PR 600
606 * emulparams/shelf.sh (.stack): Increase stack start address to
607 0x300000.
608
550bdea6
NC
6092004-12-20 Nick Clifton <nickc@redhat.com>
610
611 * ldmain.c (main): Issue an error message if -static and -shared
612 are used together.
613
e3070fef
JJ
6142004-12-17 Jakub Jelinek <jakub@redhat.com>
615
616 * ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
617 * ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
618 * ldlang.c (lang_size_sections): Use them to avoid wasting virtual
619 address space at DATA_SEGMENT_ALIGN. Fix computation of expected
620 PT_GNU_RELRO segment end.
621
2fbd2a87
NC
6222004-12-14 P.J. Darcy <darcypj@us.ibm.com>
623
624 * configure.tgt: Add s390x-ibm-tpf support.
625
f2763b01
NC
6262004-12-16 Martin Kögler <mkoegler@auto.tuwien.ac.at>
627
628 * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
629 BFD.
630
cb9faf63
BE
6312004-12-07 Ben Elliston <bje@gnu.org>
632
633 * ldemul.h: Forward declare struct option.
634
02f80eef
DS
6352004-12-01 Danny Smith <dannysmith@users.sourceforge.net>
636
637 * scripttempl/pe.sc (.data): Add .jcr subsection.
638
dea514f5
PB
6392004-11-30 Paul Brook <paul@codesourcery.com>
640
641 * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
642
32118081
NC
6432004-11-30 Tero Niemela <tero_niemela@yahoo.com>
644
645 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
646 * Makefile.in: Regenerate.
647
33f362e1
NC
6482004-11-26 Melissa Mears <asterisk@graces.dricas.com>
649
650 * emultempl/pe.em: Add --subsystem:xbox as well as
651 --subsystem:%d.
652 * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
653 and numeric subsystems.
654
3eda52aa
AM
6552004-11-24 Alan Modra <amodra@bigpond.net.au>
656
657 * ldexp.c (fold_name): Correct PR 338 fix.
658
6b3221b4
MM
6592004-11-19 Mark Mitchell <mark@codesourcery.com>
660
661 * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
662 (earmelf_linux_eabi.c): New target.
663 * configure.tgt (arm*-*-linux-gnueabi): Handle it.
664 * emulparams/armelf_linux_eabi.sh: New file.
665 * Makefile.in: Regenerated.
666
9cd6d51a
NC
6672004-11-19 Nick Clifton <nickc@redhat.com>
668
669 PR 518
670 * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
671 LENGTH fields in the MEMORY command, to explicitly state that
672 symbols cannot be used in their expressions.
673
3ec57632
NC
6742004-11-19 Jon Beniston <jon@beniston.com>
675
676 * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
677 * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
4c52953f 678 * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
3ec57632
NC
679 which return the length and origin of a memory.
680 * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
681 * NEWS: Mention support for ORIGIN and LENGTH operators.
682
b7693d02
DJ
6832004-11-17 Daniel Jacobowitz <dan@codesourcery.com>
684
685 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
686 a dynamic object for stubs.
687
fc0e6df6
PB
6882004-11-04 Paul Brook <paul@codesourcery.com>
689
690 * ld.texinfo: Document --default-imported-symver.
691 * ldmain.c (main): Set link_info.default_imported_symver.
692 * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
693 (ld_options): Add --default-imported-symver.
694 (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
695
7499d566
NC
6962004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
697 Vineet Sharma <vineets@noida.hcltech.com>
698
699 * Makefile.am: Add entries for new maxq-coff target.
700 * Makefile.in: Regenerate.
701 * configure.tgt: Add support for maxq.
702 * emulparams/maxqcoff.sh: New File.
703 * scripttempl/maxqcoff.sc: New linker script for target maxq.
704 * NEWS: Mention the new target.
705
977cdf5a
NC
7062004-11-08 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
707
708 * testsuite/ld-scripts/weak.exp: Enable test on PE,
709 XFAIL non-i386 PE.
710 * testsuite/ld-undefined/weak-undef.exp: Enable test on PE,
711 XFAIL non-i386 PE.
712 * testsuite/lib/ld-lib.exp (is_pecoff_format): New.
713
7f266840
DJ
7142004-11-04 Daniel Jacobowitz <dan@debian.org>
715
716 * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
717 (earmelf_oabi.c): Remove rule.
718 * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
719 * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
720 * Makefile.in: Regenerated.
721
a0055007
HPN
7222004-11-04 Hans-Peter Nilsson <hp@axis.com>
723
724 * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
725 * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
726 (FINI_START): Ditto.
727 (INIT_END): Remove emitted "jump [sp+]".
728 (FINI_END): Ditto.
729
c5614fa4
AM
7302004-11-04 Alan Modra <amodra@bigpond.net.au>
731
732 * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
733 (no_opd_opt, no_toc_opt): New static vars.
734 (ppc_before_allocation): Don't edit opt if no_opd_opt. Call
735 ppc64_elf_edit_toc.
736 (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
737 (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
738 (PARSE_AND_LIST_OPTIONS): Describe new options.
739 (PARSE_AND_LIST_ARGS_CASES): Handle them.
740
7a5df8d0
NC
7412004-10-27 Nick Clifton <nickc@redhat.com>
742
743 * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
744 parameter to invocation of lang_section_start.
745 * emultempl/aix.em (_handle_option): Likewise.
c5614fa4 746
7a5df8d0
NC
747 * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
748 eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
749 * Makefile.in: Regenerate.
750
6f372e19
MM
7512004-10-26 Mark Mitchell <mark@codesourcery.com>
752
753 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
754 __exidx_{start,end} when not relocating.
755
ba916c8a
MM
7562004-10-25 Mark Mitchell <mark@codesourcery.com>
757
758 * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
759 * ldexp.h (segment_type): New type.
760 (segments): New variable.
761 * ldexp.c (segments): New variable.
762 (exp_print_token): Handle SEGMENT_START.
763 (fold_binary): Likewise.
764 * ldgram.y (SEGMENT_START): Declare it as a token.
765 (exp): Handle SEGMENT_START.
766 * ldlang.h (lang_address_statement_type): Add segment field.
767 (lang_section_start): Change prototype.
768 * ldlang.c (map_input_to_output_sections): Do not process section
769 assignments if a corresponding SEGMENT_START has already been
770 seen.
771 (lang_section_start): Add segment parameter.
772 * ldlex.l (SEGMENT_START): Add it.
773 * lexsup.c (seg_segment_start): New function.
774 (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
775 * ld.texinfo (SEGMENT_START): Document it.
776 * emulparams/armsymbian.sh (EMBEDDED): Set it.
777 * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
778 base addresses. Do not map relocations.
779 * NEWS: Mention SEGMENT_START.
780
3e3b46e5
PB
7812004-10-26 Paul Brook <paul@codesourcery.com>
782
783 * ld.texinfo: Document --default-symver.
784 * ldmain.c (main): Set link_info.create_default_symver.
785 * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
786 (ld_options): Add default-symver.
787 (parse_args): Handle OPTION_DEFAULT_SYMVER.
788
7b0eaa22
DS
7892004-10-24 Danny Smith <dannysmith@users.sourceforge.net>
790
791 * pe-dll.c (process_def_file): Don't export all symbols by default if
792 building a position-independent executable.
793
dfeffb9f
L
7942004-10-21 H.J. Lu <hongjiu.lu@intel.com>
795
796 PR 463
797 * ldmain.c (reloc_overflow): Accept a pointer to struct
798 bfd_link_hash_entry. Report symbol location for relocation
799 overflow.
800
dc4f76f8
L
8012004-10-21 H.J. Lu <hongjiu.lu@intel.com>
802
803 * genscripts.sh (libpath.exp): Really generate for first
804 emulation only.
805
2a08daf3
DS
8062004-10-19 Danny Smith <dannysmith@users.sourceforge.net>
807
808 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
809 comparison and replacement of filenames.
810
532345f2
L
8112004-10-19 H.J. Lu <hongjiu.lu@intel.com>
812
813 PR 459
814 * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
815 option on linker script as the one for linker script.
816
b58f81ae
DJ
8172004-10-16 Daniel Jacobowitz <dan@debian.org>
818
819 * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
820 (check_excluded_libs): New.
821 (load_symbols): Call check_excluded_libs.
822 * ldlang.h (add_excluded_libs): New prototype.
823 * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
824 (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
825 (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
826 * ld.texinfo (Command Line Variables): Document --exclude-libs.
827 (Options Specific to i386 PE Targets): Remove --exclude-libs.
828
95c148b4
AM
8292004-10-15 Alan Modra <amodra@bigpond.net.au>
830
c468c8bc
AM
831 * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
832 failing link script assert.
833
95c148b4
AM
834 * ldctor.c (ldctor_add_set_entry): Fix comment typo.
835
951e9133
L
8362004-10-14 H.J. Lu <hongjiu.lu@intel.com>
837
838 PR 445
839 * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
840 (SMALL_DATA_DTOR): Set.
841 * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
842 (SMALL_DATA_DTOR): Unset.
843 * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
844 after .data. If SMALL_DATA_DTOR is set, move .dtors after
845 .data.
846
afd7a018
AM
8472004-10-14 Alan Modra <amodra@bigpond.net.au>
848
849 PR 63
850 * ldlang.h (lang_output_section_statement_type): Make "next" a
851 struct lang_output_section_statement_struct *.
852 (struct orphan_save): Move from elf32.em. Add "name" and "flags".
853 (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
854 * ldlang.c (lang_output_section_find_1): Adjust for changed
855 output_section_statement "next".
856 (strip_excluded_output_sections): Likewise.
857 (lang_record_phdrs): Likewise.
858 (lang_output_section_find_by_flags): New function.
859 (output_prev_sec_find): Move from pe.em. Adjust iterator.
860 (lang_insert_orphan): New function. Tail end of elf32.em's
861 place_orphan merged with that from pe.em. Allow bfd_section to
862 be placed first. New heuristic for placing new output section
863 statement in existing script, and accompanying split of __start
864 symbol alignment into a separate assignment to dot.
865 (lang_add_section): Consistently use output->bfd_section rather than
866 an alias, section->output_section.
867 (map_input_to_output_sections): Rename overly long arg. Move
868 initialization of data_statement output section to here..
869 (lang_check_section_addresses): ..from here.
870 (print_assignment): Correct printing of etree_assert.
871 (print_all_symbols): Don't bomb if userdata is NULL.
872 (IGNORE_SECTION): Rearrange.
873 * emultempl/elf32.em (output_rel_find): Adjust interator.
874 (output_prev_sec_find): Delete.
875 (struct orphan_save): Delete.
876 (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
877 flags without creating a duplicate output section statement.
878 Revise code holding history of various orphan section placements.
879 Allow orphan sections to place before script specified output
880 sections. Call lang_output_section_find_by_flags when placement
881 by name fails. Use lang_insert_orphan.
882 * emultempl/mmo.em (output_prev_sec_find): Delete.
883 (struct orphan_save): Delete.
884 (mmo_place_orphan): Revise code holding history of orphan placement.
885 Allow orphans to place before existing output sections. Use
886 lang_insert_orphan.
887 * emultempl/pe.em (output_prev_sec_find): Delete.
888 (struct orphan_save): Delete.
889 (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
890 lang_insert_orphan.
891
c0042f5d
MM
8922004-10-13 Mark Mitchell <mark@codesourcery.com>
893
894 * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
895 loadable segment.
896
1af699f4
AM
8972004-10-13 Alan Modra <amodra@bigpond.net.au>
898
899 PR 44
09c112da
AM
900 * ldcref.c (check_section_sym_xref): Delete.
901 (check_local_sym_xref): New function.
902 (check_nocrossrefs): Adjust call.
1af699f4
AM
903 * emultempl/pe.em (struct orphan_save): Add os_tail.
904 (place_orphan): Backport assorted fixes from elf32.em.
905
7fa3d080
BW
9062004-10-12 Bob Wilson <bob.wilson@acm.org>
907
908 * emultempl/xtensaelf.em: Use ISO C90 formatting.
909
d3989512
JJ
9102004-10-11 Jakub Jelinek <jakub@redhat.com>
911
563f4125
JJ
912 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
913 getline for portability.
914
d3989512
JJ
915 * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
916 (gld${EMULATION_NAME}_parse_ld_so_conf,
917 gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
918 (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
919
6c0c5b1e
AM
9202004-10-11 Alan Modra <amodra@bigpond.net.au>
921
922 PR 423
923 * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
924 rejected when linking statically.
925
d2b2c203
DJ
9262004-10-08 Daniel Jacobowitz <dan@debian.org>
927
928 * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
929
43cd72b9
BW
9302004-10-07 Bob Wilson <bob.wilson@acm.org>
931
932 * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
933 assembler-generated longcall sequences. Describe new --size-opt
934 option.
935 * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
936 * emultempl/xtensaelf.em (remove_section,
937 replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
938 elf_xtensa_after_open): New.
939 (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
940 OPTION_NO_LITERAL_MOVEMENT): Define.
941 (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
942 (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
943 (PARSE_AND_LIST_OPTIONS): Add --size-opt.
944 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
945 OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
946 (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
947 * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
948 * Makefile.am (eelf32xtensa.c): Update dependencies.
949 * Makefile.in: Regenerate.
950
8fdd7217 9512004-10-07 Jeff Baker <jbaker@qnx.com>
6c0c5b1e 952
8fdd7217
NC
953 * lexsup.c: Handle --warn-shared-textrel option.
954 (ld_options): Restore alpha sorting of options.
955 * ldmain.c (main): Initialise warn_shared_info field to FALSE.
956 * ld.texinfo: Add documentation for --warn-shared-textrel.
957 * NEWS: Added mention of --warn-shared-textrel option.
958
339207f8 9592004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
6c0c5b1e 960
339207f8 961 * emultempl/crxelf.em (disable_relaxation): Add.
6c0c5b1e 962 (crxelf_before_allocation): Enable --relax option by default.
339207f8
TL
963 (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
964 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
965 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
966
bcaa7b3e
L
9672004-10-04 H.J. Lu <hongjiu.lu@intel.com>
968
969 * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
970 --sort-section name|alignment.
971
972 * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
973 --sort-section name|alignment.
974
975 * ld.h (sort_type): New enum.
976 (wildcard_spec): Change the type of `sorted' to sort_type.
977
978 * ldgram.y (SORT): Removed.
979 (SORT_BY_NAME): Added.
980 (SORT_BY_ALIGNMENT): Added.
981 (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
982 SORT_BY_ALIGNMENT.
983 (input_section_spec_no_keep): Updated `sorted'.
984 (statement): Replace SORT with SORT_BY_NAME.
985
986 * ldlang.c (compare_section): New function to compare 2
987 sections with different sorting schemes.
988 (wild_sort): Updated. Use compare_section.
989 (update_wild_statements): New function.
990 (lang_process): Call update_wild_statements before
991 map_input_to_output_sections.
992
993 * ldlex.l (SORT_BY_NAME): New.
994 (SORT_BY_ALIGNMENT): New.
995 (SORT): Return SORT_BY_NAME.
996
997 * ldmain.c (sort_section): New. Defined.
998 (main): Initialize it to none.
999
1000 * lexsup.c (option_values): Add OPTION_SORT_SECTION.
1001 (ld_options): Add an entry for OPTION_SORT_SECTION.
1002 (parse_args): Handle OPTION_SORT_SECTION.
1003
1004 * mri.c (mri_draw_tree): Updated `sorted'.
1005
a4f5ad88
JJ
10062004-10-04 Jakub Jelinek <jakub@redhat.com>
1007
1008 * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
1009 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
1010 argument.
1011 (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
1012 and . as second argument.
1013 (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
1014 * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
1015 (fold_binary): Add it here. Insert padding to make relro_end
1016 COMMONPAGESIZE bytes aligned. For DATA_SEGMENT_ALIGN in
1017 exp_dataseg_relro_adjust phase just use previously computed
1018 exp_data_seg.base.
1019 * ldlang.c (lang_size_sections): Set exp_data_seg.base for
1020 relro_adjust here. Call lang_size_sections_1 once more if there
1021 was too big padding at DATA_SEGMENT_RELRO_END.
1022 * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
1023
40a18ebd
NC
10242004-10-01 Paul Brook <paul@codesourcery.com>
1025
1026 * emulparams/armelf.sh: Add unwinding table sections.
1027
db8acf26
NC
10282004-09-30 Filip Navara <navaraf@reactos.com>
1029
1030 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
1031 correct base address for position independant executables.
1032 * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
1033 executables as DLLs.
1034
eeac373a
PB
10352004-09-30 Paul Brook <paul@codesourcery.com>
1036
1037 * ld.texinfo: Document --target2=abs.
1038 * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
1039
1ee7cf4c
NC
10402004-09-29 Nick Clifton <nickc@redhat.com>
1041
1042 * scripttempl/xstormy16.sc: Only perform the assignments to the
1043 ROM region when not performing a relocatable link. The ROM region
1044 does not start at address 0, but the sections will.
1045 * Makefile.am: Fix linker script dependency for the generation of
1046 eelf32xstormy16.c.
1047 * Makefile.in: Regenerate.
1048
03098a9a
CF
10492004-09-18 Filip Navara <navaraf@reactos.com>
1050
1051 * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
1052 emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
1053 emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
1054 TARGET_PAGE_SIZE.
1055 * scripttempl/pe.sc: Make the virtual address and file offset synced if
1056 the alignment is lower than the target page size.
1057
f2d3750d
CF
10582004-09-27 Filip Navara <navaraf@reactos.com>
1059
1060 * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
1061 def_file_parse to handle pe_def_file if NULL and prevent crash with
1062 invalid .def files.
1063
a23d8409
AM
10642004-09-27 Alan Modra <amodra@bigpond.net.au>
1065
1066 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
1067 --emit-stub-syms automatically when --emit-relocs.
1068
7b89fa29
PB
10692004-09-24 Paul Brook <paul@codeosurcery.com>
1070
1071 * scripttempl/elf.sc: Keep .preinit_array, .init_array and
1072 .fini_array sections.
1073
e2a68bcc
AS
10742004-09-19 Andreas Schwab <schwab@suse.de>
1075
1076 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
1077 base so that relro end is suitably aligned.
1078
3674e28a
PB
10792004-09-17 Paul Brook <paul@codesourcery.com>
1080
1081 * ld.texinfo: Rename arm-specific section. Document --target*
1082 * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
1083 * emulparams/armelf_linux.sh: Ditto.
1084 * emulparams/armelf_nbsd.sh: Ditto.
1085 * emultempl/armelf.em: Set default for TARGET2_TYPE.
1086 (target2_type): New variable.
1087 (arm_elf_before_allocation): Don't pass target1_type.
1088 (arm_elf_create_output_section_statements): New function.
1089 (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
1090 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
1091 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
1092 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
1093 * emultempl/armelf_oabi.em (_before_allocation): Remove extra
1094 argument to bfd_elf32_arm_process_before_allocation.
1095
f6e332e6
AM
10962004-09-17 Alan Modra <amodra@bigpond.net.au>
1097
1098 * ldexp.c (fold_name): Update u.undef.next refs.
1099 * emultempl/pe.em: Likewise.
1100 * emultempl/sunos.em: Likewise.
1101
9c933e04
AM
11022004-09-17 Alan Modra <amodra@bigpond.net.au>
1103
1104 * Makefile.am: Run "make dep-am".
1105 * Makefile.in: Regenerate.
1106 * config.in: Regenerate.
1107 * configure: Regenerate.
1108 * aclocal.m4: Regenerate.
1109 * po/ld.pot: Regenerate.
1110
1fa32646
TL
11112004-09-16 Tomer Levi <Tomer.Levi@nsc.com>
1112
9c933e04
AM
1113 * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
1114 (.fini): Likewise.
1115 (.jcr): Likewise.
1fa32646 1116
b6ee372a
AM
11172004-09-16 Alan Modra <amodra@bigpond.net.au>
1118
1119 * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
1120 to bfd_elf32_arm_process_before_allocation call.
1121
9c504268
PB
11222004-09-13 Paul Brook <paul@codesourcery.com>
1123
1124 * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
1125 * emultempl/armelf.em: Use TARGET1_IS_REL. Add --target1-{rel,abs}.
1126
d15b04bd
L
11272004-09-07 H.J. Lu <hongjiu.lu@intel.com>
1128
1129 * configure: Regenerated with autconfig 2.13.
1130
875c4330
AS
11312004-09-07 Andreas Schwab <schwab@suse.de>
1132
1133 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
1134 alignment before adjusting DATA_SEGMENT_RELRO_END.
1135
229fcec5
MM
11362004-09-06 Mark Mitchell <mark@codesourcery.com>
1137
1138 * emulparams/armsymbian.sh: Use armbpabi script.
1139 * scripttempl/armbpabi.sc: New script.
1140
e5a52504
MM
11412004-09-02 Mark Mitchell <mark@codesourcery.com>
1142
1143 * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
1144 (earmsymbian.c): New target.
1145 * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
1146 * Makefile.in: Regenerated.
1147 * aclocal.m4: Likewise.
1148 * configure: Likewise.
1149 * emulparams/armsymbian.sh: New file.
1150
42851540
NC
11512004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
1152
1153 * scripttempl/elf32crx.sc: Edit file with comments.
1154 (.init): Add new section.
1155 (.fini): Likewise.
1156 (.ctor): Control the linkage order.
1157 (.dtor): Likewise.
1158
c034e3e0
NC
11592004-08-27 Nick Clifton <nickc@redhat.com>
1160
1161 * emultempl/pe.em (after_open): Do not assume that either bfd is
9c933e04 1162 an archive.
c034e3e0 1163
688c58f3
AM
11642004-08-26 Alan Modra <amodra@bigpond.net.au>
1165
1166 * ldlang.c (lang_init): Don't compare with TRUE.
1167
b18c562e
NC
11682004-08-25 Dmitry Diky <diwil@spec.ru>
1169
1170 * emulparams/msp430all.sh: Fix RAM sizes for all targets.
1171 * scripttempl/elf32msp430.sc: Add .profiler section definition.
1172
61f5d054
L
11732004-08-24 H.J. Lu <hongjiu.lu@intel.com>
1174
1175 * ldlang.c (wildcardp): Defined as a macro with strpbrk.
1176
e77d3d77
MM
11772004-08-19 Mark Mitchell <mark@codesourcery.com>
1178
1179 * configure.tgt (arm*-*-symbianelf*): New target.
1180 (arm*-*-eabi*): Likewise.
1181
3f764659
JJ
11822004-08-19 Jakub Jelinek <jakub@redhat.com>
1183
1184 * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
1185 (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
1186 (OPTION_NON_OVERLAPPING_OPD): Define.
1187 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
1188 --non-overlapping-opd option.
1189
a010d60f
AM
11902004-08-18 Alan Modra <amodra@bigpond.net.au>
1191
1192 PR 338
1193 * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
1194 was already on the undefs list.
1195
c4e33880
AM
11962004-08-17 Alan Modra <amodra@bigpond.net.au>
1197
1198 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
1199 prefix the symbol field too.
1200
d003868e
AM
12012004-08-13 Alan Modra <amodra@bigpond.net.au>
1202
1203 * ldmain.c (link_callbacks): Remove "error_handler".
1204 * ldmisc.c: Include elf-bfd.h.
1205 (vfinfo): Sort comment. Handle %A. Use %A instead of
1206 bfd_get_section_indent.
1207 (error_handler): Delete.
1208 * ldmisc.h (error_handler): Delete declaration.
1209
99877b66
AM
12102004-08-10 Alan Modra <amodra@bigpond.net.au>
1211
1212 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
1213 ppc64_elf_restore_symbols.
1214
40e45c8b
AM
12152004-08-09 Alan Modra <amodra@bigpond.net.au>
1216
1217 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
1218 .toc is too large on relocatable linking.
1219
ccfa59ea
AM
12202004-08-09 Alan Modra <amodra@bigpond.net.au>
1221
1222 * emultempl/ppc64elf.em (ppc_after_open): Delete.
1223 (LDEMUL_AFTER_OPEN): Don't define.
1224
93fd0973
SC
12252004-08-02 Stephane Carrez <stcarrez@nerim.fr>
1226
1227 * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
1228
f1b123db
SC
12292004-08-01 Stephane Carrez <stcarrez@nerim.fr>
1230
1231 * scripttempl/elfm68hc12.sc: Align text, rodata and data section
1232 on power of 2.
1233
e7fbc2bf
JT
12342004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
1235
1236 * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
1237
c05e9f04
NC
12382004-07-26 Dmitry Diky <diwil@spec.ru>
1239
1240 * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
1241 msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
1242 msp430xG439.
1243 * configure.tgt: Likewise.
1244 * emulparams/msp430all.sh: Likewise.
1245 * Makefile.in: Regenerate.
1246
9f61903d
NC
12472004-07-23 Nick Clifton <nickc@redhat.com>
1248
1249 * emultempl/elf32.em (_place_orphan): Use an already existing
1250 section name if that section does not have any flags set.
1251
082b7297
L
12522004-07-21 H.J. Lu <hongjiu.lu@intel.com>
1253
1254 * ldlang.c (already_linked_hash_entry): Removed.
1255 (already_linked): Likewise.
1256 (already_linked_table): Likewise.
1257 (section_already_linked): Call bfd_section_already_linked.
1258 (lang_process): Replace already_linked_table_init with
1259 bfd_section_already_linked_table_init and check return. Replace
1260 already_linked_table_free with bfd_section_already_linked_table_free.
1261
76d7af2d
NC
12622004-07-21 Nick Clifton <nickc@redhat.com>
1263
1264 * ldlang.c (init_os): Make sure that the newly allocated userdata
1265 structure is zeroed out.
1266
14b3c463
L
12672004-07-19 H.J. Lu <hongjiu.lu@intel.com>
1268
1269 * NEWS: Mention the new --add-needed/--no-add-needed and
1270 --as-needed/--no-as-needed options.
1271
e56f61be
L
12722004-07-19 H.J. Lu <hongjiu.lu@intel.com>
1273
1274 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
1275 check the add_needed field.
1276 (dt_needed): New struct.
1277 (gld${EMULATION_NAME}_try_needed): Change the first argument
1278 to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
1279 bit in the file where the DT_NEEDED entry comes from.
1280 (gld${EMULATION_NAME}_search_needed): Change the second
1281 argument to a pointer to struct dt_needed.
1282 (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
1283 (gld${EMULATION_NAME}_after_open): Likewise.
1284
1285 * ld.texinfo: Add --add-needed document.
1286 * ldlang.c (new_afile): Set p->add_needed.
1287 * ldlang.h (lang_input_statement_type): Add add_needed field.
1288 * ldmain.h (add_needed): Declare.
1289 * ldmain.c (add_needed): New global var.
1290 * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
1291 OPTION_NO_ADD_NEEDED.
1292 (ld_options): Likewise.
1293 (parse_args): Handle them.
1294
c99b8138
NC
12952004-07-13 Christof Petig <christof@petig-baender.de>
1296
1297 * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
1298 for endian-ness of extracted addend.
1299
13ed4151
NC
13002004-07-13 Danny Smith <dannysmith@usesr.sourceforge.net>
1301
1302 * pe-dll.c (auto_export): Filter on just the import prefix,
1303 "_imp_", not "_imp__".
1304
1a320fbb
NC
13052004-07-09 Nick Clifton <nickc@redhat.com>
1306
1307 * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
1308
1fe1f39c
NC
13092004-07-06 Tomer Levi <Tomer.Levi@nsc.com>
1310
1311 * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
1312 (eelf32crx.c): New target.
1313 * Makefile.in: Regenerate.
1314 * configure.tgt: Handle crx-*-elf*.
1315 * emulparams/elf32crx.sh: New file.
1316 * emultempl/crxelf.em: New file.
1317 * scripttempl/elf32crx.sc: New file.
1318 * NEWS: Mention new target.
1319
85fbca6a
NC
13202004-07-06 Nick Clifton <nickc@redhat.com>
1321
1322 * Makefile.am: Add eshlsymbian.c.
1323 * Makefile.in: Regenerate.
1324 * configure.tgt: Add sh*-symbian-elf target.
1325 * emulparams/shlsymbian.sh: New file. Configure the
1326 sh-symbian-elf linker scripts.
1327 * scripttemp/elf32sh-symbian.sc: New file. Linker script
1328 template for the sh-symbian-elf target.
1329
b71a5181
DA
13302004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1331
1332 * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
1333 * emulparams/hppalinux.sh: Likewise.
1334 * scripttempl/elf.sc: Place .plt just before .got when .plt is in
1335 data segment and PLT_BEFORE_GOT is defined.
1336
c87db184
CF
13372004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1338
1339 * ld.texinfo (WIN32): Document PE weak symbols.
1340
f6a8ae81
KK
13412004-07-02 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1342
1343 * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
1344
b602c853
L
13452004-07-01 H.J. Lu <hongjiu.lu@intel.com>
1346
1347 * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
1348 the section.
1349
1a23a9e6
AM
13502004-06-29 Alan Modra <amodra@bigpond.net.au>
1351
1352 * ldlang.c (lang_reset_memory_regions): Save last relax pass section
1353 size in rawsize.
1354
eea6121a
AM
13552004-06-24 Alan Modra <amodra@bigpond.net.au>
1356
1357 * ldlang.c (print_output_section_statement): Don't print size before
1358 relaxation.
1359 (IGNORE_SECTION): Remove bfd arg. Update all callers.
1360
1361 * ldexp.c (fold_name): .. See below.
1362 * ldlang.c (section_already_linked, print_output_section_statement,
1363 print_input_section, insert_pad, size_input_section,
1364 lang_check_section_addresses, lang_size_sections_1,
1365 lang_size_sections, lang_do_assignments_1, lang_set_startof,
1366 lang_one_common, lang_reset_memory_regions, lang_process,
1367 lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
1368 * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
1369 * pe-dll.c (process_def_file, generate_reloc): ..
1370 * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
1371 gld${EMULATION_NAME}_before_allocation): ..
1372 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
1373 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
1374 sh64_elf_${EMULATION_NAME}_after_allocation): ..
1375 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
1376 * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
1377 ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
1378 "size" instead of "_raw_size" and "_cooked_size". Expand
1379 bfd_section_size macro invocations.
1380
552f8272
CF
13812004-06-22 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1382
1383 * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
1384 ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
1385 ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
1386 ___crt_xt_end__.
1387 (.tls): Define ___tls_start__ and ___tls_end__.
1388
aee6f5b4
AO
13892004-06-21 Alexandre Oliva <aoliva@redhat.com>
1390
1391 * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
1392
eea6121a 13932004-06-18 Adam Nemet <anemet@lnxw.com>
f234d5fe 1394
eea6121a
AM
1395 * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
1396 * configure: Regenerate.
f234d5fe 1397
dfff4fbe
JJ
13982004-06-15 Jakub Jelinek <jakub@redhat.com>
1399
1400 * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
1401 .gcc_except_table output sections lost accidentally with
1402 -z relro patch.
1403
a9e0c0c6
AM
14042004-06-15 Alan Modra <amodra@bigpond.net.au>
1405
1406 * ldwrite.c (build_link_order): Use bfd_get_section_size
1407 instead of bfd_get_section_size_before_reloc or _raw_size.
1408 * pe-dll.c (process_def_file): Likewise.
1409
7115639b
AM
14102004-06-14 Alan Modra <amodra@bigpond.net.au>
1411
1412 From Richard Wirth <r.wirth@wirthware.de>
1413 * ldlang.c (lang_finish): Don't free lang_definedness_table.
1414
9ca57817
AM
14152004-05-29 Alan Modra <amodra@bigpond.net.au>
1416
1417 * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
1418 (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
1419
f6f9408f
JR
14202004-05-28 Andrew Stubbs <andrew.stubbs@superh.com>
1421
1422 * testsuite/ld-sh/arch/arch.exp: New test script.
1423 * testsuite/ld-sh/arch/arch_expected.txt: New file.
1424 * testsuite/ld-sh/arch/sh.s: New file.
1425 * testsuite/ld-sh/arch/sh2.s: New file.
1426 * testsuite/ld-sh/arch/sh-dsp.s: New file.
1427 * testsuite/ld-sh/arch/sh2e.s: New file.
1428 * testsuite/ld-sh/arch/sh3-nommu.s: New file.
1429 * testsuite/ld-sh/arch/sh3.s: New file.
1430 * testsuite/ld-sh/arch/sh3-dsp.s: New file.
1431 * testsuite/ld-sh/arch/sh3e.s: New file.
1432 * testsuite/ld-sh/arch/sh4-nommu-nofpu.s: New file.
1433 * testsuite/ld-sh/arch/sh4-nofpu.s: New file.
1434 * testsuite/ld-sh/arch/sh4.s: New file.
1435 * testsuite/ld-sh/arch/sh4a-nofpu.s: New file.
1436 * testsuite/ld-sh/arch/sh4al-dsp.s: New file.
1437 * testsuite/ld-sh/arch/sh4a.s: New file.
1438
164e712d
AM
14392004-05-28 Alan Modra <amodra@bigpond.net.au>
1440
6feb9908
AM
1441 * ldlang.c: Formatting. Wrap long lines, expand bfd_get_section_flags
1442 throughout file.
1443 * lexsup.c: Formatting. Wrap long lines.
1444 * ldwrite.c: Update copyright date.
1445
164e712d
AM
1446 * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
1447 (output_section_callback): Nor SEC_KEEP here.
1448 (gc_section_callback): Twiddle SEC_EXCLUDE here.
1449 (lang_gc_wild): Delete. Fold into..
1450 (lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage
1451 collecting.
1452 (lang_process): Always call lang_gc_sections.
1453 (lang_place_orphans): Handle SEC_EXCLUDE sections.
1454 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
1455 SEC_EXCLUDE code.
1456
b3096250
L
14572004-05-26 H.J. Lu <hongjiu.lu@intel.com>
1458
1459 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
1460 SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
1461 * ldlang.c (lang_add_section): Likewise.
1462
e49f5022
AM
14632004-05-26 Alan Modra <amodra@bigpond.net.au>
1464
1465 * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
1466 sections when doing a final link. Clear SEC_EXCLUDE when doing
1467 a relocable link, except for SEC_DEBUGGING sections.
1468 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
1469 same condition here to drop SEC_EXCLUDE orphan sections.
1470
57ceae94
AM
14712004-05-25 Alan Modra <amodra@bigpond.net.au>
1472
1473 * ldlang.c (lang_process): Call bfd_merge_sections later, and
1474 only when not a relocatable link.
1475 (print_input_section): Handle SEC_EXCLUDE sections.
1476 (size_input_section): Don't update dot on SEC_EXCLUDE sections.
1477 (lang_do_assignments_1): Likewise.
1478 * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
1479 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
1480 * emultempl/hppaelf.em (build_section_lists): Likewise.
1481 * emultempl/ppc64elf.em (build_toc_list): Likewise.
1482 (build_section_lists): Likewise.
1483
a85785bc
AS
14842004-05-23 Andreas Schwab <schwab@suse.de>
1485
1486 * ld.texinfo (Options): Fix typo in last change.
1487
2d643429
NC
14882004-05-21 Andy Chittenden <achittenden@bluearc.com>
1489
1490 * ld.h (ld_config_type): Add new field: hash_table_size.
1491 * ldmain.c: Initialise the new field to zero. If it is non-zero
1492 after parsing the linker's command line call
1493 bfd_hash_set_default_size.
1494 * lexsup.c (option_values): Add OPTION_HASH_SIZE.
1495 (ld_options): Add hash-size.
1496 (parse_args): Parse --hash-size option. Allow
1497 --reduce-memory-overheads to set the default hash table size as
1498 well.
1499 * ld.texinfo: Document the new switch. Also mention that
1500 --reduce-memory-overheads can affect the hash table size.
1501 * NEWS: Mention the new feature.
1502
35835446
JR
15032004-05-19 J"orn Rennecke <joern.rennecke@superh.com>
1504
1505 * NEWS: Mention new linker map file generation and the
1506 --reduce-memory-overheads option.
1507 * ld.texinfo: Document --reduce-memory-overheads option.
1508 * ld.h (map_symbol_def): New struct.
1509 (struct user_section_struct, section_userdata_type): Rename to:
1510 (struct lean_user_section_struct, lean_section_userdata_type).
1511 (struct fat_user_section_struct, fat_section_userdata_type): New.
1512 (SECTION_USERDATA_SIZE): Define.
1513 (args_type): New member reduce_memory_overheads.
1514 * ldlang.c (map_obstack): New static variable.
1515 (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
1516 (lang_map): Unless command_line.reduce_memory_overheads is set,
1517 initialize lists of defined symbols for each section.
1518 (print_input_section): Unless command_line.reduce_memory_overheads
1519 is set, use print_all_symbols.
1520 (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
1521 * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
1522 * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
1523 (ld_options): Add entry for --reduce-memory-overheads.
1524 (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
1525
0841712e
JJ
15262004-05-19 Jakub Jelinek <jakub@redhat.com>
1527
1528 * ldgram.y (sect_constraint): New.
1529 (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1530 (section): Add sect_constraint. Pass additional argument
1531 to lang_enter_output_section_statement.
1532 * mri.c (mri_draw_tree): Pass additional argument to
1533 lang_enter_output_section_statement.
1534 * emultempl/pe.em (place_orphan): Likewise.
1535 (output_prev_sec_find): Disregard output section statements with
1536 constraint == -1.
1537 * emultempl/mmo.em (output_prev_sec_find): Likewise.
1538 (mmo_place_orphan): Pass additional argument to
1539 lang_enter_output_section_statement.
1540 * emultempl/elf32.em (output_prev_sec_find): Disregard output section
1541 statements with constraint == -1.
1542 (place_orphan): Pass additional argument to
1543 lang_enter_output_section_statement.
1544 * ldlang.c (lang_enter_overlay_section): Likewise.
1545 (lang_output_section_find_1): New.
1546 (lang_output_section_find): Use it.
1547 (lang_output_section_statement_lookup_1): New.
1548 (lang_output_section_statement_lookup): Use it.
1549 (check_section_callback, check_input_sections): New.
1550 (map_input_to_output_sections): Check if all input sections
1551 are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
1552 (strip_excluded_output_sections): Disregard output section statements
1553 with constraint == -1.
1554 (lang_record_phdrs): Likewise.
1555 (lang_enter_output_section_statement): Add constraint argument.
1556 Use lang_output_section_statement_lookup_1.
1557 * ldlang.h (lang_output_section_statement_type): Add constraint
1558 and all_input_readonly fields.
1559 (lang_enter_output_section_statement): Adjust prototype.
1560 * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1561 * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
1562 segment if all input sections are readonly.
1563
eea6121a 15642004-05-19 Adam Nemet <anemet@lnxw.com>
f2c50328
NC
1565
1566 * scripttempl/i386lynx.sc: Remove file.
1567
2a16d82a
BW
15682004-05-17 Bob Wilson <bob.wilson@acm.org>
1569
1570 * ld.texinfo (Output Section Address): Correct subsection name.
1571
eea6121a 15722004-05-17 Adam Nemet <anemet@lnxw.com>
b2d65c0b
NC
1573
1574 * configure.tgt (powerpc-*-lynxos* case): New case.
1575 * configure.host (i[3-7]86-*-lynxos* case): Remove case.
1576 * emulparams/ppclynx.sh: New file.
1577 * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
1578 * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
1579 (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
1580 (eppclynx.c): New rule.
1581 * Makefile.in: Regenerate.
1582
4b363073
NC
15832004-05-13 Joel Sherrill <joel@oarcorp.com>
1584
1585 * configure.tgt (or32-*-rtems*): Switch to elf and
1586 support versioned targets.
1587
9598fbe5
NC
15882004-05-13 Nick Clifton <nickc@redhat.com>
1589
1590 * po/fr.po: Updated French translation.
1591
8c37241b
JJ
15922004-05-11 Jakub Jelinek <jakub@redhat.com>
1593
1594 * genscripts.sh: Generate -z combreloc -z now -z relro scripts
1595 for binaries, -shared and -pie.
1596 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
1597 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
1598 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
1599 (OTHER_RELRO_SECTIONS): ... this.
1600 * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
1601 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
1602 -z relro and -z norelro.
1603 (gld${EMULATION_NAME}_list_options): Add it to usage.
1604 (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
1605 -z relro scripts when appropriate.
1606 * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
1607 Create separate .got.plt section if SEPARATE_GOTPLT.
1608 Move sections which are only written during relocation handling
1609 to the beginning of RW segment. If NO_SMALL_DATA, move .got
1610 before .data. Add DATA_SEGMENT_RELRO_END directive.
1611 Include OTHER_RELRO_SECTIONS.
1612 * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
1613 * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
1614 (fold_unary): Likewise.
1615 (fold_binary): Handle -z relro.
1616 * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
1617 exp_dataseg_relro_adjust phases. Add relro_end field.
1618 * ldmain.c (main): Initialize link_info.relro to FALSE.
1619 * ldlang.c (lang_size_sections): Handle -z relro.
1620
e21059f2
MM
16212004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
1622
1623 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
1624
5f9b8920
JR
16252004-05-07 J"orn Rennecke <joern.rennecke@superh.com>
1626
1627 * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
1628 before printing it with %W.
1629
26d2d8a2 16302004-05-07 Brian Ford <ford@vss.fsi.com>
eea6121a 1631 DJ Delorie <dj@redhat.com>
26d2d8a2
BF
1632
1633 * emultempl/pe.em (real_flags): New static.
1634 (OPTION_LARGE_ADDRESS_AWARE): New define.
1635 (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
1636 (gld_${EMULATION_NAME}_list_options): Likewise.
1637 (gld${EMULATION_NAME}_handle_option): Likewise.
1638 (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
1639 * ld.texinfo: Document it.
1640 * NEWS: Mention it.
1641
1b169501
BF
16422004-05-07 Brian Ford <ford@vss.fsi.com>
1643
1644 * NEWS: Mention DWARF 2 support for i386pe.
1645
41cf0c62
AO
16462004-05-05 Alexandre Oliva <aoliva@redhat.com>
1647
1648 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
1649 elf32-frvfdpic.
1650
d0d6a25b
AM
16512004-04-30 Alan Modra <amodra@bigpond.net.au>
1652
1653 * ldlang.c (unique_section_p): Pass section parm, return true on
1654 group sections.
1655 (output_section_callback): Adjust.
1656 * ldlang.h (unique_section_p): Update prototype.
1657 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
1658
755306be
EB
16592004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
1660
eea6121a 1661 * ld.texinfo (--gc-sections): Remove restriction for
755306be
EB
1662 dynamic linking.
1663
8a7140c3
NC
16642004-04-29 Brian Ford <ford@vss.fsi.com>
1665
1666 * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
1667 for DWARF 2/3. Update stab section's syntax.
1668
2f9636ba
AM
16692004-04-29 Alan Modra <amodra@bigpond.net.au>
1670
1671 * pe-dll.c: Revert changes accidentally committed 2004-03-08.
1672 (fill_edata): Correct pointer arithmetic.
1673
23867d67
CD
16742004-04-21 Chris Demetriou <cgd@broadcom.com>
1675
1676 * ld.texinfo: Remove MIPS --embedded-relocs documentation.
1677 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
1678 * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
1679 (EXTRA_EM_FILE): Use mipsecoff.em
1680 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
1681 (EXTRA_EM_FILE): Use mipsecoff.em
1682 * emultempl/mipsecoff.em: Restructure to be included as an
1683 extra emulation file.
1684 (check_sections, gld${EMULATION_NAME}_after_open)
1685 (gld${EMULATION_NAME}_after_allocation)
1686 (gld${EMULATION_NAME}_get_script)
1687 (ld_${EMULATION_NAME}_emulation): Remove
1688 (gld${EMULATION_NAME}_before_parse): Rename to...
1689 (mipsecoff_before_parse): This.
1690 (LDEMUL_BEFORE_PARSE): Define.
1691 * emultempl/mipself.em: Remove file.
1692 * scripttempl/mips.sc (.rel.sdata): Do not include in output.
1693 (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
1694 these symbols.
1695 * Makefile.am: Remove dependencies on emultempl/mipself.em.
1696 * Makefile.in: Regenerate.
1697
1502569c
NC
16982004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
1699
1700 * ld.texinfo (synthesizing on H8/300): Information about linker
1701 relaxation support for bit manipulation instructions and system
1702 control instructions is added.
1703
c894ddfb
HPN
17042004-04-21 Hans-Peter Nilsson <hp@axis.com>
1705
1706 * NEWS: Mention change in DEFINED semantics.
1707
a85bf78e
EB
17082004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
1709
1710 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
1711 (.data): Add KEEP for .gnu.linkonce.d.*personality*.
1712 (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
1713
58434bc1
BE
17142004-04-21 Ben Elliston <bje@au.ibm.com>
1715
1716 * ld.texinfo (Simple Example): Add missing punctuation.
1717
7a7f4e42
CD
17182004-04-20 Chris Demetriou <cgd@broadcom.com>
1719
1720 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
1721
3737f867
JJ
17222004-04-19 Jakub Jelinek <jakub@redhat.com>
1723
1724 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
1725 specially.
1726
3c17e4f7
DS
17272004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
1728
1729 * scriptempl/pe.sc: Put numbered .ctors.* after .ctors
1730 with default priority. Likewise for dtors.
1731
279500de
TS
17322004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1733
1734 * configure.host: Remove mips*-dec-bsd* target.
1735 * configure.tgt: Likewise.
1736
52f89c0a
RS
17372004-04-08 Richard Sandiford <rsandifo@redhat.com>
1738
1739 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
1740 * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
1741 * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
1742 * emultempl/irix.em: New file.
1743 * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
1744 dependencies.
1745 * Makefile.in: Regenerate.
1746
e489d0ae
PB
17472004-04-01 Paul Brook <paul@codesourcery.com>
1748
1749 * emultempl/armelf.em (byteswap_code): Add.
1750 (arm_elf_before_allocation): Pass extra parameter.
1751 (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
1752 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
1753 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
1754 * emultempl/armelf_oabi.em: Pass extra parameter.
1755 * ld.texinfo: Document --be8.
1756
7cc8057a
SS
17572004-03-30 Stan Shebs <shebs@apple.com>
1758
1759 Remove long-obsolete MPW support.
1760 * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
1761 * Makefile.am (mpw): Remove file-presynthesizing actions.
1762 * Makefile.in: Likewise.
1763 * ldfile.c (slash): Remove MPW case.
1764 * ldlex.l [MPW]: Remove unused definition.
1765
0949843d
NC
17662004-03-30 Galit Heller <Galit.Heller@nsc.com>
1767
1768 * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
1769 (eelf32cr16c.c): New target.
1770 * Makefile.in: Regenerate.
1771 * configure.tgt: Handle cr16c-*-elf*.
1772 * emulparams/elf32cr16c.sh: New file.
1773 * scripttempl/elfcr16c.sc: Likewise
1774 * NEWS: Mention support for new target.
1775
0a159ef8
NC
17762004-03-30 Nick Clifton <nickc@redhat.com>
1777
1778 * po/sv.po: Updated Swedish translation.
1779
7a945db6
AM
17802004-03-27 Alan Modra <amodra@bigpond.net.au>
1781
1782 * emultempl/elf32.em: Update new bfd_elf_discard_info name.
1783 * emultempl/hppaelf.em: Likewise.
1784 * emultempl/ppc64elf.em: Likewise.
1785 * emultempl/sh64elf.em: Likewise.
1786
5a580b3a
AM
17872004-03-25 Alan Modra <amodra@bigpond.net.au>
1788
1789 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
1790 size_dynamic_sections call.
1791
b9cf773d
AM
17922004-03-23 Alan Modra <amodra@bigpond.net.au>
1793
1794 PR 51.
1795 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
1796 link_info.wrap_char.
1797
59c2e50f
L
17982004-03-20 H.J. Lu <hongjiu.lu@intel.com>
1799
1800 * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
1801 or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
1802
44349745
AO
18032004-03-20 Alexandre Oliva <aoliva@redhat.com>
1804
1805 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
1806
81359a70
AM
18072004-03-19 Alan Modra <amodra@bigpond.net.au>
1808
1809 * config.in: Regenerate.
1810 * po/ld.pot: Regenerate.
1811
4a43e768
AM
18122004-03-18 Alan Modra <amodra@bigpond.net.au>
1813
1814 * ld.texinfo: Add --as-needed doco.
1815 * ldmain.c (as_needed): New global var.
1816 * ldmain.h (as_needed): Declare.
1817 * lexsup.c (option_values): Add OPTION_AS_NEEDED and
1818 OPTION_NO_AS_NEEDED.
1819 (ld_options): Likewise.
1820 (parse_args): Handle them.
1821 * ldlang.h (lang_input_statement_type): Add as_needed field.
1822 * ldlang.c (new_afile): Set p->as_needed.
1823 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
1824 (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
1825 (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
1826
1827 * ldlang.c (open_input_bfds): Remove useless cast.
1828 (lang_do_assignments_1): Likewise.
1829 (lang_for_each_input_section): Delete.
1830
9183ed4b
AM
18312004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1832
1833 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
1834
ee31fbd0
NC
18352004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
1836
1837 * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
1838 private when building implib.
1839
e5caec89
NS
18402004-03-05 Nathan Sidwell <nathan@codesourcery.com>
1841
1842 * ldlang.c (lang_add_section): Don't force SEC_LOAD on
1843 SEC_THREAD_LOCAL.
1844 (IGNORE_SECTION): Ignore .tbss sections too.
1845 (lang_size_sections_1): .tbss sections do not advance dot.
1846
cc2f008e
AS
18472004-03-01 Andreas Schwab <schwab@suse.de>
1848
1849 * ld.texinfo (Options): Fix example for --wrap.
1850
f5a95868
DS
18512004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
1852
1853 * pe-dll.c (fill_edata): Check that exported_symbol_sections is
1854 not NULL.
1855
177b729b
ILT
18562004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
1857
1858 * ldlang.c (lang_check): Use %P, not %E, in error message.
1859
1b493742
NS
18602004-02-23 Nathan Sidwell <nathan@codesourcery.com>
1861
1862 * ldlang.h (struct lang_output_section_state): Change processed
1863 field's type.
1864 * ldexp.c (check, invalid): Remove.
1865 (fold_name): Move valid_p assignments. Create undefined symbol
1866 when needed. Directly exampine section's processd flag.
1867 * ldlang.c (lang_output_section_statement_lookup): Adjust
1868 processed field init.
1869 (lang_size_sections_1): Allow LOADADDR when determining section's
1870 VMA. Adjust error message. Fold data statement's expr.
1871 (lang_size_sections): Correctly increment lang_statement_iteration.
1872
18732004-02-23 Alan Modra <amodra@bigpond.net.au>
1874
1875 * ldexp.c (fold_tree): Follow indirect symbols.
b9cf773d 1876
876f4090
NS
18772004-02-20 Nathan Sidwell <nathan@codesourcery.com>
1878
1879 * ldgram.y (exp): Add two operand ALIGN.
1880 * ldexp.c (fold_binary): Add ALIGN_K case.
1881 * ld.texinfo (ALIGN): Document two operand version.
1882
384d938f
NS
18832004-02-19 Nathan Sidwell <nathan@codesourcery.com>
1884
1885 * ldlang.c (map_input_to_output_sections): Initialize sections
1886 mentioned in a data statement expression.
1887 (lang_do_assignments_1): Add data statement's expression's
1888 section's vma.
1889
b6ca8815
NS
18902004-02-18 Nathan Sidwell <nathan@codesourcery.com>
1891
1892 * ldgram.y (statement_anywhere): Add assert rule.
1893 * ldlang.c (exp_init_os): Add assert case.
1894
c92c35e7
AC
18952004-02-14 Andrew Cagney <cagney@redhat.com>
1896
1897 * ldmain.c (remove_output): Call bfd_cache_close.
1898
9bf78c99
RS
18992004-02-14 Richard Sandiford <rsandifo@redhat.com>
1900
1901 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
1902 .MIPS.content* and .MIPS.events* sections.
1903
f3806916
DJ
19042004-02-09 Daniel Jacobowitz <drow@mvista.com>
1905
1906 * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
1907 .note.gnu.arm.ident to after allocated sections. Mark its
1908 address as 0.
1909
4c8e70d7
DJ
19102004-02-09 Daniel Jacobowitz <drow@mvista.com>
1911
1912 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
1913 * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
1914 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
1915 * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
1916 * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
1917
ff71f4f7
NC
19182004-02-05 Nick Clifton <nickc@redhat.com>
1919
1920 * emultempl/pe.em (_after_open): Fix typo in previous delta.
1921
07a68a80
NC
19222004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
1923
1924 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
1925
1dd3bf68
AM
19262004-01-28 Alan Modra <amodra@bigpond.net.au>
1927
586196d5
AM
1928 * genscripts.sh: Fix typo.
1929
1dd3bf68
AM
1930 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
1931
13d9421f
JJ
19322004-01-24 Jakub Jelinek <jakub@redhat.com>
1933
1934 * emulparams/elf64_ia64.sh: Put .rela.opd into
1935 OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
1936
4d8907ac
DS
19372004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
1938
1939 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
1940 * ld.texinfo (--omagic): Note that writable text section
1941 does not conform to published PE-COFF specs.
1942 (--enable-auto-import): Likewise.
1943
e5c60db5
AM
19442004-01-15 Alan Modra <amodra@bigpond.net.au>
1945
1946 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
1947
6bdafbeb
NC
19482004-01-13 Nick Clifton <nickc@redhat.com>
1949
1950 * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
1951 which if true will prevent the LMA region being used as a
1952 replacement for a default VMA region.
586196d5
AM
1953 (lang_leave_output_section_statement): Pass extra parameter.
1954 (lang_leave_overlay): Likewise.
1955 * ld.texinfo (Output Section LMA): Document that the LMA
6bdafbeb
NC
1956 region can be set to the VMA region if no VMA has been set.
1957 * ldlang.h (struct lang_output_section_phdr_list): Create a
1958 typedef for this type. Minor formatting fixes.
586196d5 1959
9dfc8ab2
NC
19602004-01-13 Nick Clifton <nickc@redhat.com>
1961
1962 * ldlang.c (lang_size_sections_1): If dot is advanced, then
1963 assume that the section should be allocated.
1964
8325c4dd
AM
19652004-01-13 Alan Modra <amodra@bigpond.net.au>
1966
1967 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
1968 sections. Do ignore SEC_NEVER_LOAD sections.
1969 (lang_size_sections_1): Remove test made redundant with the above.
1970
83490352
AM
19712004-01-09 Alan Modra <amodra@bigpond.net.au>
1972
1973 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
1974 program_header_size.
1975
005e1118
AO
19762004-01-06 Alexandre Oliva <aoliva@redhat.com>
1977
1978 2003-11-28 Alexandre Oliva <aoliva@redhat.com>
1979 * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
1980 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
1981 * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
1982 (MAXPAGESIZE): Set to 64Kb.
1983 (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
1984 __ROFIXUP_END__. Don't map .rofixup.got any more.
1985 * emulparams/elf32frv.sh (NOP): Set.
1986 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
1987 * configure.tgt: Add frv-*-*linux*.
1988 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
1989 * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
1990 (eelf32frvfd.c): New.
1991 * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
1992 * emulparams/elf32frv.sh: Reverted previous two patches.
1993 * emulparams/elf32frvfd.sh: New.
1994 * Makefile.in: Rebuilt.
1995 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
1996 * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
1997 .rofixup.got to .rofixup.
1998 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
1999 * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
2000 (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
2001
060feee5
JJ
20022004-01-05 Jakub Jelinek <jakub@redhat.com>
2003
2004 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
2005 * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
2006
5e2f1575
AM
20072004-01-03 Alan Modra <amodra@bigpond.net.au>
2008
e5caa5e0
AM
2009 * ldexp.c (align_n): Make static.
2010 * ldexp.h (align_n): Delete declaration.
2011 * ldlang.h (lang_enter_output_section_statement): Remove
2012 block_value param.
2013 * ldlang.c (lang_enter_output_section_statement): Likewise.
2014 (TO_ADDR, TO_SIZE): Define.
c2df3ea5 2015 (opb_shift): New var.
e5caa5e0
AM
2016 (init_opb): New function.
2017 (print_input_section): Call init_opb and use TO_ADDR.
2018 (print_data_statement, print_reloc_statement): Likewise.
2019 (print_padding_statement): Likewise.
c2df3ea5 2020 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
e5caa5e0
AM
2021 (lang_check_section_addresses): Likewise.
2022 (lang_size_sections_1): Likewise.
2023 (lang_do_assignments_1): Likewise.
2024 (lang_set_startof): Likewise.
c2df3ea5 2025 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
e5caa5e0 2026 (lang_process): Call init_opb.
c2df3ea5 2027 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
e5caa5e0
AM
2028 (lang_enter_overlay_section): Adjust
2029 lang_enter_output_section_statement call.
2030 * ldgram.y: Likewise.
2031 * mri.c (mri_draw_tree): Likewise.
2032 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
2033 * emultempl/mmo.em (mmo_place_orphan): Likewise.
2034 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
2035
5e2f1575
AM
2036 * ldfile.c (ldfile_set_output_arch): Add defarch param.
2037 * ldfile.h (ldfile_set_output_arch): Ditto.
2038 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
2039 ldfile_set_output_arch.
2040 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
2041 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
2042 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
2043 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2044 * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
2045 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
2046 * ldgram.y: Adjust ldfile_set_output_arch call.
2047 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2048 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
2049 * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
2050 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
2051 * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
2052 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2053 * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2054
b50c15dc
NC
20552004-01-02 Bernardo Innocenti <bernie@develer.com>
2056
2057 * configure.tgt: Add m68k-uClinux target.
6edf0760 2058
c9e214e5 2059For older changes see ChangeLog-0203
252b5132
RH
2060\f
2061Local Variables:
2062mode: change-log
2063left-margin: 8
2064fill-column: 74
2065version-control: never
2066End:
This page took 0.408778 seconds and 4 git commands to generate.