Enable -Werror by default
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
1ad12f97
NC
12005-03-16 Nick Clifton <nickc@redhat.com>
2 Ben Elliston <bje@au.ibm.com>
3
4 * configure.in (error-on-warning): New switch: Add -Werror to the
5 compiler command line. Enabled by default. Disable via
6 --disable-error-on-warning.
7 * configure: Regenerate.
8
cb2d1ef2
AM
92005-03-16 Alan Modra <amodra@bigpond.net.au>
10
11 * emulparams/elf32ppclinux.sh (OTHER_READWRITE_SECTION): Delete.
12 (OTHER_RELRO_SECTIONS): Set this instead.
13
957d91c1
NC
142005-03-15 Nick Clifton <nickc@redhat.com>
15
16 * NEWS: Add cutoff for changes in 2.16 release.
17
34723071
NC
182005-03-15 Mikkel Krautz <krautz@gmail.com>
19
20 * configure.tgt (x86_64-elf): Add target.
21
729ae8d2
AM
222005-03-15 Alan Modra <amodra@bigpond.net.au>
23
24 * po/es.po: Commit new Spanish translation.
25
8b3d8fa8
AM
262005-03-14 Alan Modra <amodra@bigpond.net.au>
27
28 * ldexp.c (exp_fold_tree): Ensure return value is initialized.
29 Tidy etree_assert case.
30
882cb63e
AM
312005-03-14 Alan Modra <amodra@bigpond.net.au>
32
33 * po/tr.po: Commit new Turkish translation.
34
61c84b48
DJ
352005-03-11 Daniel Jacobowitz <dan@codesourcery.com>
36
37 * Makefile.am: Remove references to em68klynx.o and esparclynx.o.
38 * Makefile.in: Regenerated.
39 * emulparams/m68klynx.sh, emulparams/sparclynx.sh: Remove.
40
41c9e29d
NC
412005-03-07 Nick Clifton <nickc@redhat.com>
42
43 * po/fr.po: Updated translation.
44
06647dfd
AM
452005-03-05 Alan Modra <amodra@bigpond.net.au>
46
47 * po/ld.pot: Regenerate.
48
bb14f524
JB
492005-03-02 Jan Beulich <jbeulich@novell.com>
50
51 * ldmain.c (remove_output): Use unlink_if_ordinary instead of unlink.
52 * pe-dll.c (pe_dll_generate_implib): Likewise.
53
0ef622cb
BE
542005-02-24 Ben Elliston <bje@au.ibm.com>
55
56 * ldfile.c: Remove GNU960 conditional code.
57 * emultempl/gld960.em: Likewise.
58 * emultempl/gld960c.em: Likewise.
59 * emultempl/lnk960.em: Likewise.
60
f3f4bcca
NC
612005-02-24 Nick Clifton <nickc@redhat.com>
62
63 * emultempl/lnk960.em (lnk960_before_parse): Remove redundant
64 empty string from calls to concat.
65
662005-02-23 Nick Clifton <nickc@redhat.com>
67
68 * emultempl/lnk960.em (lnk960_before_parse): Terminate list of
69 arguments passed to concat() with a NULL.
70
71 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h because they
72 define types needed by ldfile.h
73
47639182
AM
742005-02-23 Alan Modra <amodra@bigpond.net.au>
75
76 * pe-dll.c: Warning fixes.
77 * emultempl/sunos.em: Likewise.
78
ace66bb2
DJ
792005-02-22 Daniel Jacobowitz <dan@codesourcery.com>
80
81 * ldlang.c (section_already_linked): Don't call
82 bfd_section_already_linked for dynamic objects.
83
5718918d
AM
842005-02-22 Alan Modra <amodra@bigpond.net.au>
85
86 * ldexp.c: Warning fixes.
87 * ldwrite.c: Likewise.
88 * emultempl/elf32.em: Likewise.
89
ebe372c1
L
902005-02-21 H.J. Lu <hongjiu.lu@intel.com>
91
92 * ldlang.c (lang_add_section): Check SEC_TIC54X_BLOCK for TI
93 tic54x input only.
94 (lang_size_sections_1): Check SEC_COFF_SHARED_LIBRARY for COFF
95 and ECOFF output only.
96
0ca2f5d5
AM
972005-02-21 Alan Modra <amodra@bigpond.net.au>
98
99 * config.in: Regenerate.
100 * configure: Regenerate.
101
fbbb9ac5
ZW
1022005-02-17 Zack Weinberg <zack@codesourcery.com>
103
104 * ldexp.c (assigning_to_dot): New global flag.
105 (fold_name): If assigning_to_dot is true, object immediately to
106 an undefined symbol.
107 (exp_fold_tree): Set and clear assigning_to_dot around the
108 recursive call to exp_fold_tree to process the right-hand side
109 of an assignment to the location counter.
110
c68dac40
PB
1112005-02-17 Paul Brook <paul@codesourcery.com>
112
113 * scripttempl/armbpabi.sc: Add dummy name to version block.
114
20c2cbe3
AM
1152005-02-17 Alan Modra <amodra@bigpond.net.au>
116
117 * ldexp.c (new_abs): Init new.str.
118
0b48acfe
MM
1192005-02-15 Mark Mitchell <mark@codesourcery.com>
120
121 * configure.in (AC_CHECK_FUNCS): Add glob.
122 * configure: Regenerated.
123 * emultempl/elf32.em (<glob.h>): Do not include if HAVE_GLOB is
124 not defined.
125 (gld${EMULATION_NAME}_parse_ld_so_conf_include): Do not use glob
126 if HAVE_GLOB is not defined.
fbbb9ac5 127
ff925e69
KK
1282005-02-16 Kaz Kojima <kkojima@rr.iij4u.or.jp>
129
130 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define
131 lib_path if NATIVE is yes.
132
92b7a70f
AM
1332005-02-16 Alan Modra <amodra@bigpond.net.au>
134
135 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Make
136 an error creating fake bfd fatal.
137 (ppc_before_allocation): Continue on after errors.
138 (gld${EMULATION_NAME}_finish): Likewise.
139
297ba367
NC
1402005-02-15 Nick Clifton <nickc@redhat.com>
141
142 * ldlex.l (YY_NO_UNPUT): Define so that the yy_unput function is
143 not declared. It is not used and its presence causes a compile
144 time warning.
fbbb9ac5 145
9eabd475
ZW
1462005-02-11 Zack Weinberg <zack@codesourcery.com>
147
148 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed):
149 If st.st_ino is zero, do not treat the library as a duplicate.
150
d457dcf6
JJ
1512005-02-10 Jakub Jelinek <jakub@redhat.com>
152
153 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
154 Set BFD_LINKER_CREATED on the stubs bfd.
155 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
156 Likewise.
157
4e5db43b
MM
1582005-02-08 Mark Mitchell <mark@codesourcery.com>
159
160 * scripttempl/armbpabi.sc (VERSION): Make special section symbols
9eabd475 161 local.
4e5db43b
MM
162 (Image$$ER_RO$$Base): Define whenever RELOCATING.
163 (Image$$ER_RO$$Limit): Likewise.
164 (SHT$$INIT_ARRAY$$Base): Likewise.
165 (SHT$$INIT_ARRAY$$Limit): Likeise.
166
4297f9f1
BE
1672005-02-10 Ben Elliston <bje@au.ibm.com>
168
169 * emultempl/beos.em: Remove #if 0 and #if 1 blocks.
170
1c7c5e5b
RS
1712005-02-08 Richard Sandiford <rsandifo@redhat.com>
172
173 * configure.tgt (mips64*el-*-linux-gnu*): Define targ_extra_libpath
174 to include o32 and n64 emulations.
175 (mips64*-*-linux-gnu*): Likewise.
176
300475fe
HPN
1772005-02-08 Hans-Peter Nilsson <hp@axis.com>
178
179 * ldmain.c (warning_callback, warning_find_reloc): Prepend
180 "warning: " to warning messages.
181
4ea42fb7
AM
1822005-02-04 Alan Modra <amodra@bigpond.net.au>
183
184 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't
185 look up symbol for etree_provide here.
186
161f49a3
DJ
1872005-02-02 Daniel Jacobowitz <dan@codesourcery.com>
188
189 * emulparams/elf32bmip.sh (TEXT_DYNAMIC): Always set.
190
73ae6183
NC
1912005-02-01 Edward Welbourne <eddy@opera.com>
192 Nick Clifton <nickc@redhat.com>
193
194 * ld.texinfo (Source Code Reference): New node describing how to
195 access linker script defined variables from source code.
196
77cfaee6
AM
1972005-02-01 Alan Modra <amodra@bigpond.net.au>
198
199 * ld.texinfo: Clarify --as-needed operation.
200
c46f8c51
AC
2012005-01-31 Andrew Cagney <cagney@gnu.org>
202
203 * configure: Regenerate to track ../gettext.m4.
204
d342277e
NC
2052005-01-31 Nick Clifton <nickc@redhat.com>
206
207 * ldver.c (ldversion): Bump reported copyright date to 2005.
208
d6486796
NC
2092005-01-31 Nick Clifton <nickc@redhat.com>
210
211 * configure.tgt: Remove obsolete targets m68k-lynxos and
212 sparc-lynxos.
213
319850b4
JB
2142005-01-28 Julian Brown <julian@codesourcery.com>
215
216 * emultempl/armelf.em (fix_v4bx): New variable.
217 (arm_elf_create_output_section_statements): Communicate fix_v4bx flag
218 value to bfd.
219 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_FIX_V4BX.
220 (PARSE_AND_LIST_LONGOPTS): Add option --fix-v4bx.
221 (PARSE_AND_LIST_OPTIONS): Add option --fix-v4bx.
9eabd475 222 (PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX.
319850b4
JB
223 * NEWS: Mention --fix-v4bx.
224 * ld.texinfo: Document --fix-v4bx.
225
dc4c9c19
MM
2262005-01-25 Mark Mitchell <mark@codesourcery.com>
227
228 * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Define, so
229 as to include .ARM.exidx$${Base,Limit}.
230 * ld/scripttempl/armbpabi.sc: Move .plt to end of text segment.
231 Define IMAGE$$ER_RO$${Base,Limit} and SHT$$INIT_ARRAY$${Base,Limit}.
232 Put .init_array, .fini_array, etc. into the read-only data
9eabd475
ZW
233 segment.
234
7e9f0867
AM
2352005-01-25 Alan Modra <amodra@bigpond.net.au>
236
237 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Formatting.
238 (gld${EMULATION_NAME}_after_open): Ignore needed libs if they were
239 only needed by an as-needed lib that didn't get linked.
240
7e69709c
AM
2412005-01-23 Alan Modra <amodra@bigpond.net.au>
242
243 * ld.texinfo (Output Section Keywords <CONSTRUCTORS>): Correct
244 __DTOR_LIST__ description.
245
b5666f2f
AM
2462005-01-23 Alan Modra <amodra@bigpond.net.au>
247
248 * ld.texinfo (Location Counter <dot outside sections>): Document
249 effects of orphan section placement, and ". = ." workaround.
250 * Makefile.in: Regenerate.
251
4e25343c
RS
2522005-01-22 Richard Sandiford <rsandifo@redhat.com>
253
254 * emulparams/elf32bmip.sh (OTHER_GOT_SECTIONS): Add ". = .;".
255 * emulparams/elf32bmipn32-defs.sh (OTHER_GOT_SECTIONS): Likewise.
256
b717d30e
JJ
2572005-01-21 Jakub Jelinek <jakub@redhat.com>
258
259 * ldgram.y (AS_NEEDED): New token.
260 (input_list): Handle AS_NEEDED ( input_list ).
261 * ldlex.l (AS_NEEDED): Add.
262 * ld.texinfo: Document AS_NEEDED ().
263 * NEWS: Mention AS_NEEDED ().
264
7a64f7b8
BE
2652005-01-21 Ben Elliston <bje@au.ibm.com>
266
267 * ldlang.c (lang_reasonable_defaults): Remove.
268 (lang_process): Don't call lang_reasonable_defaults.
269
270 * ldexp.c (exp_assop): Remove #if 0'd code.
271 (exp_print_tree): Likewise.
272 * ldlang.c (lang_memory_region_lookup): Likewise.
273 (open_output): Likewise.
274 (lang_do_assignments_1): Likewise.
275 (lang_place_orphans): Likewise.
276 (lang_enter_output_section_statement): Likewise.
277 (lang_reasonable_defaults): Likewise.
278 * ldlang.h (struct lang_input_statement_struct): Likewise.
279 * mri.c (mri_draw_tree): Likewise.
280 (mri_load): Likewise.
281 * pe-dll.c (generate_reloc): Likewise.
282 (make_import_fixup_entry): Likewise.
283 (pe_as16): Likewise.
284 * emultempl/beos.em (set_pe_subsystem): Likewise.
285 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
286 * emultempl/pe.em: Likewise.
287 * emultempl/xtensaelf.em (xtensa_colocate_literals): Likewise.
288
a154a8ad
MM
2892005-01-20 Daniel Jacobowitz <dan@codesourcery.com>
290
291 * Makefile.am (ALL_EMULATIONS): Add earmelfb_linux_eabi.o.
292 (earmelfb_linux_eabi.c): New target.
293 * Makefile.in: Regenerated.
294 * configure.tgt (arm*b-*-linux-gnueabi): New target.
295 * emulparams/armelfb_linux_eabi.sh: New file.
296
9c183183
AM
2972005-01-20 Nick Hudson <skrll@netbsd.org>
298
299 PR ld/676
300 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
301 Handle bfd_elf32_hppa_nbsd_vec.
302
e2243057
RS
3032005-01-19 Richard Sandiford <rsandifo@redhat.com>
304
305 * ldmain.h (ld_sysroot): Change type to a constant string.
306 * ldmain.c (ld_sysroot): Likewise.
307 (get_relative_sysroot, get_sysroot): New functions, adding command-line
308 support for changing the sysroot.
309 (main): Call the new functions.
310 * lexsup.c (OPTION_SYSROOT): New.
311 (ld_options): Add --sysroot.
312 (parse_args): Add a dummy handler for it.
313 * ld.texinfo (--sysroot): Document.
314 * NEWS: Mention the new --sysroot option.
315
1449d79b
AM
3162005-01-18 Alan Modra <amodra@bigpond.net.au>
317
318 * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
319 (lang_place_orphans): Don't abort on just_syms_flag, instead call
320 bfd_link_just_syms.
321
a880c748
DS
3222005-01-16 Danny Smith <dannysmith@users.sourceforge.net>
323
324 * defilep.y (def_name, def_library): Combine into...
325 (def_image_name): New function. Strip name to basename,
326 with warning.
327
07baa8ee
MK
3282005-01-12 Mark Kettenis <kettenis@gnu.org>
329
330 * configure.in: Be sure to invoke config.sub using the shell.
331 * configure: Regenerate.
332
e9b181b8
AM
3332005-01-11 Alan Modra <amodra@bigpond.net.au>
334
335 * configure.host: Correct sed patterns for last change.
336
59ef2528
NC
3372005-01-10 Nick Clifton <nickc@redhat.com>
338
339 PR binutils/609
340 * ldmisc.c (vfinfo): Add an extra argument: is_warning. Use this
341 to determine whether config.make_executable should be set to FALSE in
342 conjunction with config.fatal_warnings.
343 (info_msg, minfo, lfinof): Pass FALSE as the extra argument.
344 (einfo): Pass TRUE as the extra argument.
345
71a2d53a
NC
3462005-01-10 Greg Schaffer <gschafer@zip.com.au>
347
348 * configure.host (linux targets): Use "${CC} -dumpspecs" instead
349 of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0.
350 (ia64-*-aix): Delete - this target is obsolete, and would be
351 broken by this patch.
352
d6d0b336
EB
3532005-01-06 Eric Botcazou <ebotcazou@libertysurf.fr>
354
355 * configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*.
356 (sparc64-sun-solaris2*): New host.
357
4e7fd91e
PB
3582005-01-06 Paul Brook <paul@codesourcery.com>
359
360 * Makefie.am: Add earmelf_vxworks.
361 * Makefile.in: Regenerate.
362 * configure.tgt: Make arm-*-vxworks a separate case.
363 * emulparams/armelf_vxworks.sh: New function.
364
4c52953f
AM
3652005-01-06 Alan Modra <amodra@bigpond.net.au>
366
367 * emultempl/ppc64elf.em (no_multi_toc): New var.
368 (gld${EMULATION_NAME}_finish): Pass to ppc64_elf_setup_section_lists.
369 (OPTION_NO_MULTI_TOC): Define.
370 (PARSE_AND_LIST_LONGOPTS): Add --no-multi-toc support.
371 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
372
98d87ee7
NC
3732005-01-05 Nick Clifton <nickc@redhat.com>
374
375 PR binutils/614
376 * ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
4c52953f 377 Standard's specification for parsable error messages.
98d87ee7 378
5f81b918
PB
3792005-01-04 Paul Brook <paul@codesourcery.com>
380
381 * Makefile.am: Correct dependency for earmsymbian.c.
382 * Makefile.in: Regenerate.
383
2af59bab
DS
3842004-12-28 Danny Smith <dannysmith@users.sourceforge.net>
385
386 * emultempl/pe.em (set_pe_subsystem): Change second arg to
387 lang_add_entry to FALSE.
388
c38f024c
NC
3892004-12-23 Nick Clifton <nickc@redhat.com>
390
391 PR 600
392 * emulparams/shelf.sh (.stack): Increase stack start address to
393 0x300000.
394
550bdea6
NC
3952004-12-20 Nick Clifton <nickc@redhat.com>
396
397 * ldmain.c (main): Issue an error message if -static and -shared
398 are used together.
399
e3070fef
JJ
4002004-12-17 Jakub Jelinek <jakub@redhat.com>
401
402 * ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
403 * ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
404 * ldlang.c (lang_size_sections): Use them to avoid wasting virtual
405 address space at DATA_SEGMENT_ALIGN. Fix computation of expected
406 PT_GNU_RELRO segment end.
407
2fbd2a87
NC
4082004-12-14 P.J. Darcy <darcypj@us.ibm.com>
409
410 * configure.tgt: Add s390x-ibm-tpf support.
411
f2763b01
NC
4122004-12-16 Martin Kögler <mkoegler@auto.tuwien.ac.at>
413
414 * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
415 BFD.
416
cb9faf63
BE
4172004-12-07 Ben Elliston <bje@gnu.org>
418
419 * ldemul.h: Forward declare struct option.
420
02f80eef
DS
4212004-12-01 Danny Smith <dannysmith@users.sourceforge.net>
422
423 * scripttempl/pe.sc (.data): Add .jcr subsection.
424
dea514f5
PB
4252004-11-30 Paul Brook <paul@codesourcery.com>
426
427 * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
428
32118081
NC
4292004-11-30 Tero Niemela <tero_niemela@yahoo.com>
430
431 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
432 * Makefile.in: Regenerate.
433
33f362e1
NC
4342004-11-26 Melissa Mears <asterisk@graces.dricas.com>
435
436 * emultempl/pe.em: Add --subsystem:xbox as well as
437 --subsystem:%d.
438 * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
439 and numeric subsystems.
440
3eda52aa
AM
4412004-11-24 Alan Modra <amodra@bigpond.net.au>
442
443 * ldexp.c (fold_name): Correct PR 338 fix.
444
6b3221b4
MM
4452004-11-19 Mark Mitchell <mark@codesourcery.com>
446
447 * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
448 (earmelf_linux_eabi.c): New target.
449 * configure.tgt (arm*-*-linux-gnueabi): Handle it.
450 * emulparams/armelf_linux_eabi.sh: New file.
451 * Makefile.in: Regenerated.
452
9cd6d51a
NC
4532004-11-19 Nick Clifton <nickc@redhat.com>
454
455 PR 518
456 * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
457 LENGTH fields in the MEMORY command, to explicitly state that
458 symbols cannot be used in their expressions.
459
3ec57632
NC
4602004-11-19 Jon Beniston <jon@beniston.com>
461
462 * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
463 * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
4c52953f 464 * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
3ec57632
NC
465 which return the length and origin of a memory.
466 * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
467 * NEWS: Mention support for ORIGIN and LENGTH operators.
468
b7693d02
DJ
4692004-11-17 Daniel Jacobowitz <dan@codesourcery.com>
470
471 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
472 a dynamic object for stubs.
473
fc0e6df6
PB
4742004-11-04 Paul Brook <paul@codesourcery.com>
475
476 * ld.texinfo: Document --default-imported-symver.
477 * ldmain.c (main): Set link_info.default_imported_symver.
478 * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
479 (ld_options): Add --default-imported-symver.
480 (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
481
7499d566
NC
4822004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
483 Vineet Sharma <vineets@noida.hcltech.com>
484
485 * Makefile.am: Add entries for new maxq-coff target.
486 * Makefile.in: Regenerate.
487 * configure.tgt: Add support for maxq.
488 * emulparams/maxqcoff.sh: New File.
489 * scripttempl/maxqcoff.sc: New linker script for target maxq.
490 * NEWS: Mention the new target.
491
977cdf5a
NC
4922004-11-08 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
493
494 * testsuite/ld-scripts/weak.exp: Enable test on PE,
495 XFAIL non-i386 PE.
496 * testsuite/ld-undefined/weak-undef.exp: Enable test on PE,
497 XFAIL non-i386 PE.
498 * testsuite/lib/ld-lib.exp (is_pecoff_format): New.
499
7f266840
DJ
5002004-11-04 Daniel Jacobowitz <dan@debian.org>
501
502 * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
503 (earmelf_oabi.c): Remove rule.
504 * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
505 * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
506 * Makefile.in: Regenerated.
507
a0055007
HPN
5082004-11-04 Hans-Peter Nilsson <hp@axis.com>
509
510 * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
511 * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
512 (FINI_START): Ditto.
513 (INIT_END): Remove emitted "jump [sp+]".
514 (FINI_END): Ditto.
515
c5614fa4
AM
5162004-11-04 Alan Modra <amodra@bigpond.net.au>
517
518 * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
519 (no_opd_opt, no_toc_opt): New static vars.
520 (ppc_before_allocation): Don't edit opt if no_opd_opt. Call
521 ppc64_elf_edit_toc.
522 (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
523 (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
524 (PARSE_AND_LIST_OPTIONS): Describe new options.
525 (PARSE_AND_LIST_ARGS_CASES): Handle them.
526
7a5df8d0
NC
5272004-10-27 Nick Clifton <nickc@redhat.com>
528
529 * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
530 parameter to invocation of lang_section_start.
531 * emultempl/aix.em (_handle_option): Likewise.
c5614fa4 532
7a5df8d0
NC
533 * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
534 eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
535 * Makefile.in: Regenerate.
536
6f372e19
MM
5372004-10-26 Mark Mitchell <mark@codesourcery.com>
538
539 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
540 __exidx_{start,end} when not relocating.
541
ba916c8a
MM
5422004-10-25 Mark Mitchell <mark@codesourcery.com>
543
544 * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
545 * ldexp.h (segment_type): New type.
546 (segments): New variable.
547 * ldexp.c (segments): New variable.
548 (exp_print_token): Handle SEGMENT_START.
549 (fold_binary): Likewise.
550 * ldgram.y (SEGMENT_START): Declare it as a token.
551 (exp): Handle SEGMENT_START.
552 * ldlang.h (lang_address_statement_type): Add segment field.
553 (lang_section_start): Change prototype.
554 * ldlang.c (map_input_to_output_sections): Do not process section
555 assignments if a corresponding SEGMENT_START has already been
556 seen.
557 (lang_section_start): Add segment parameter.
558 * ldlex.l (SEGMENT_START): Add it.
559 * lexsup.c (seg_segment_start): New function.
560 (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
561 * ld.texinfo (SEGMENT_START): Document it.
562 * emulparams/armsymbian.sh (EMBEDDED): Set it.
563 * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
564 base addresses. Do not map relocations.
565 * NEWS: Mention SEGMENT_START.
566
3e3b46e5
PB
5672004-10-26 Paul Brook <paul@codesourcery.com>
568
569 * ld.texinfo: Document --default-symver.
570 * ldmain.c (main): Set link_info.create_default_symver.
571 * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
572 (ld_options): Add default-symver.
573 (parse_args): Handle OPTION_DEFAULT_SYMVER.
574
7b0eaa22
DS
5752004-10-24 Danny Smith <dannysmith@users.sourceforge.net>
576
577 * pe-dll.c (process_def_file): Don't export all symbols by default if
578 building a position-independent executable.
579
dfeffb9f
L
5802004-10-21 H.J. Lu <hongjiu.lu@intel.com>
581
582 PR 463
583 * ldmain.c (reloc_overflow): Accept a pointer to struct
584 bfd_link_hash_entry. Report symbol location for relocation
585 overflow.
586
dc4f76f8
L
5872004-10-21 H.J. Lu <hongjiu.lu@intel.com>
588
589 * genscripts.sh (libpath.exp): Really generate for first
590 emulation only.
591
2a08daf3
DS
5922004-10-19 Danny Smith <dannysmith@users.sourceforge.net>
593
594 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
595 comparison and replacement of filenames.
596
532345f2
L
5972004-10-19 H.J. Lu <hongjiu.lu@intel.com>
598
599 PR 459
600 * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
601 option on linker script as the one for linker script.
602
b58f81ae
DJ
6032004-10-16 Daniel Jacobowitz <dan@debian.org>
604
605 * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
606 (check_excluded_libs): New.
607 (load_symbols): Call check_excluded_libs.
608 * ldlang.h (add_excluded_libs): New prototype.
609 * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
610 (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
611 (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
612 * ld.texinfo (Command Line Variables): Document --exclude-libs.
613 (Options Specific to i386 PE Targets): Remove --exclude-libs.
614
95c148b4
AM
6152004-10-15 Alan Modra <amodra@bigpond.net.au>
616
c468c8bc
AM
617 * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
618 failing link script assert.
619
95c148b4
AM
620 * ldctor.c (ldctor_add_set_entry): Fix comment typo.
621
951e9133
L
6222004-10-14 H.J. Lu <hongjiu.lu@intel.com>
623
624 PR 445
625 * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
626 (SMALL_DATA_DTOR): Set.
627 * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
628 (SMALL_DATA_DTOR): Unset.
629 * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
630 after .data. If SMALL_DATA_DTOR is set, move .dtors after
631 .data.
632
afd7a018
AM
6332004-10-14 Alan Modra <amodra@bigpond.net.au>
634
635 PR 63
636 * ldlang.h (lang_output_section_statement_type): Make "next" a
637 struct lang_output_section_statement_struct *.
638 (struct orphan_save): Move from elf32.em. Add "name" and "flags".
639 (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
640 * ldlang.c (lang_output_section_find_1): Adjust for changed
641 output_section_statement "next".
642 (strip_excluded_output_sections): Likewise.
643 (lang_record_phdrs): Likewise.
644 (lang_output_section_find_by_flags): New function.
645 (output_prev_sec_find): Move from pe.em. Adjust iterator.
646 (lang_insert_orphan): New function. Tail end of elf32.em's
647 place_orphan merged with that from pe.em. Allow bfd_section to
648 be placed first. New heuristic for placing new output section
649 statement in existing script, and accompanying split of __start
650 symbol alignment into a separate assignment to dot.
651 (lang_add_section): Consistently use output->bfd_section rather than
652 an alias, section->output_section.
653 (map_input_to_output_sections): Rename overly long arg. Move
654 initialization of data_statement output section to here..
655 (lang_check_section_addresses): ..from here.
656 (print_assignment): Correct printing of etree_assert.
657 (print_all_symbols): Don't bomb if userdata is NULL.
658 (IGNORE_SECTION): Rearrange.
659 * emultempl/elf32.em (output_rel_find): Adjust interator.
660 (output_prev_sec_find): Delete.
661 (struct orphan_save): Delete.
662 (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
663 flags without creating a duplicate output section statement.
664 Revise code holding history of various orphan section placements.
665 Allow orphan sections to place before script specified output
666 sections. Call lang_output_section_find_by_flags when placement
667 by name fails. Use lang_insert_orphan.
668 * emultempl/mmo.em (output_prev_sec_find): Delete.
669 (struct orphan_save): Delete.
670 (mmo_place_orphan): Revise code holding history of orphan placement.
671 Allow orphans to place before existing output sections. Use
672 lang_insert_orphan.
673 * emultempl/pe.em (output_prev_sec_find): Delete.
674 (struct orphan_save): Delete.
675 (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
676 lang_insert_orphan.
677
c0042f5d
MM
6782004-10-13 Mark Mitchell <mark@codesourcery.com>
679
680 * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
681 loadable segment.
682
1af699f4
AM
6832004-10-13 Alan Modra <amodra@bigpond.net.au>
684
685 PR 44
09c112da
AM
686 * ldcref.c (check_section_sym_xref): Delete.
687 (check_local_sym_xref): New function.
688 (check_nocrossrefs): Adjust call.
1af699f4
AM
689 * emultempl/pe.em (struct orphan_save): Add os_tail.
690 (place_orphan): Backport assorted fixes from elf32.em.
691
7fa3d080
BW
6922004-10-12 Bob Wilson <bob.wilson@acm.org>
693
694 * emultempl/xtensaelf.em: Use ISO C90 formatting.
695
d3989512
JJ
6962004-10-11 Jakub Jelinek <jakub@redhat.com>
697
563f4125
JJ
698 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
699 getline for portability.
700
d3989512
JJ
701 * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
702 (gld${EMULATION_NAME}_parse_ld_so_conf,
703 gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
704 (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
705
6c0c5b1e
AM
7062004-10-11 Alan Modra <amodra@bigpond.net.au>
707
708 PR 423
709 * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
710 rejected when linking statically.
711
d2b2c203
DJ
7122004-10-08 Daniel Jacobowitz <dan@debian.org>
713
714 * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
715
43cd72b9
BW
7162004-10-07 Bob Wilson <bob.wilson@acm.org>
717
718 * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
719 assembler-generated longcall sequences. Describe new --size-opt
720 option.
721 * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
722 * emultempl/xtensaelf.em (remove_section,
723 replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
724 elf_xtensa_after_open): New.
725 (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
726 OPTION_NO_LITERAL_MOVEMENT): Define.
727 (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
728 (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
729 (PARSE_AND_LIST_OPTIONS): Add --size-opt.
730 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
731 OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
732 (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
733 * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
734 * Makefile.am (eelf32xtensa.c): Update dependencies.
735 * Makefile.in: Regenerate.
736
8fdd7217 7372004-10-07 Jeff Baker <jbaker@qnx.com>
6c0c5b1e 738
8fdd7217
NC
739 * lexsup.c: Handle --warn-shared-textrel option.
740 (ld_options): Restore alpha sorting of options.
741 * ldmain.c (main): Initialise warn_shared_info field to FALSE.
742 * ld.texinfo: Add documentation for --warn-shared-textrel.
743 * NEWS: Added mention of --warn-shared-textrel option.
744
339207f8 7452004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
6c0c5b1e 746
339207f8 747 * emultempl/crxelf.em (disable_relaxation): Add.
6c0c5b1e 748 (crxelf_before_allocation): Enable --relax option by default.
339207f8
TL
749 (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
750 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
751 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
752
bcaa7b3e
L
7532004-10-04 H.J. Lu <hongjiu.lu@intel.com>
754
755 * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
756 --sort-section name|alignment.
757
758 * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
759 --sort-section name|alignment.
760
761 * ld.h (sort_type): New enum.
762 (wildcard_spec): Change the type of `sorted' to sort_type.
763
764 * ldgram.y (SORT): Removed.
765 (SORT_BY_NAME): Added.
766 (SORT_BY_ALIGNMENT): Added.
767 (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
768 SORT_BY_ALIGNMENT.
769 (input_section_spec_no_keep): Updated `sorted'.
770 (statement): Replace SORT with SORT_BY_NAME.
771
772 * ldlang.c (compare_section): New function to compare 2
773 sections with different sorting schemes.
774 (wild_sort): Updated. Use compare_section.
775 (update_wild_statements): New function.
776 (lang_process): Call update_wild_statements before
777 map_input_to_output_sections.
778
779 * ldlex.l (SORT_BY_NAME): New.
780 (SORT_BY_ALIGNMENT): New.
781 (SORT): Return SORT_BY_NAME.
782
783 * ldmain.c (sort_section): New. Defined.
784 (main): Initialize it to none.
785
786 * lexsup.c (option_values): Add OPTION_SORT_SECTION.
787 (ld_options): Add an entry for OPTION_SORT_SECTION.
788 (parse_args): Handle OPTION_SORT_SECTION.
789
790 * mri.c (mri_draw_tree): Updated `sorted'.
791
a4f5ad88
JJ
7922004-10-04 Jakub Jelinek <jakub@redhat.com>
793
794 * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
795 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
796 argument.
797 (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
798 and . as second argument.
799 (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
800 * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
801 (fold_binary): Add it here. Insert padding to make relro_end
802 COMMONPAGESIZE bytes aligned. For DATA_SEGMENT_ALIGN in
803 exp_dataseg_relro_adjust phase just use previously computed
804 exp_data_seg.base.
805 * ldlang.c (lang_size_sections): Set exp_data_seg.base for
806 relro_adjust here. Call lang_size_sections_1 once more if there
807 was too big padding at DATA_SEGMENT_RELRO_END.
808 * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
809
40a18ebd
NC
8102004-10-01 Paul Brook <paul@codesourcery.com>
811
812 * emulparams/armelf.sh: Add unwinding table sections.
813
db8acf26
NC
8142004-09-30 Filip Navara <navaraf@reactos.com>
815
816 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
817 correct base address for position independant executables.
818 * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
819 executables as DLLs.
820
eeac373a
PB
8212004-09-30 Paul Brook <paul@codesourcery.com>
822
823 * ld.texinfo: Document --target2=abs.
824 * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
825
1ee7cf4c
NC
8262004-09-29 Nick Clifton <nickc@redhat.com>
827
828 * scripttempl/xstormy16.sc: Only perform the assignments to the
829 ROM region when not performing a relocatable link. The ROM region
830 does not start at address 0, but the sections will.
831 * Makefile.am: Fix linker script dependency for the generation of
832 eelf32xstormy16.c.
833 * Makefile.in: Regenerate.
834
03098a9a
CF
8352004-09-18 Filip Navara <navaraf@reactos.com>
836
837 * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
838 emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
839 emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
840 TARGET_PAGE_SIZE.
841 * scripttempl/pe.sc: Make the virtual address and file offset synced if
842 the alignment is lower than the target page size.
843
f2d3750d
CF
8442004-09-27 Filip Navara <navaraf@reactos.com>
845
846 * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
847 def_file_parse to handle pe_def_file if NULL and prevent crash with
848 invalid .def files.
849
a23d8409
AM
8502004-09-27 Alan Modra <amodra@bigpond.net.au>
851
852 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
853 --emit-stub-syms automatically when --emit-relocs.
854
7b89fa29
PB
8552004-09-24 Paul Brook <paul@codeosurcery.com>
856
857 * scripttempl/elf.sc: Keep .preinit_array, .init_array and
858 .fini_array sections.
859
e2a68bcc
AS
8602004-09-19 Andreas Schwab <schwab@suse.de>
861
862 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
863 base so that relro end is suitably aligned.
864
3674e28a
PB
8652004-09-17 Paul Brook <paul@codesourcery.com>
866
867 * ld.texinfo: Rename arm-specific section. Document --target*
868 * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
869 * emulparams/armelf_linux.sh: Ditto.
870 * emulparams/armelf_nbsd.sh: Ditto.
871 * emultempl/armelf.em: Set default for TARGET2_TYPE.
872 (target2_type): New variable.
873 (arm_elf_before_allocation): Don't pass target1_type.
874 (arm_elf_create_output_section_statements): New function.
875 (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
876 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
877 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
878 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
879 * emultempl/armelf_oabi.em (_before_allocation): Remove extra
880 argument to bfd_elf32_arm_process_before_allocation.
881
f6e332e6
AM
8822004-09-17 Alan Modra <amodra@bigpond.net.au>
883
884 * ldexp.c (fold_name): Update u.undef.next refs.
885 * emultempl/pe.em: Likewise.
886 * emultempl/sunos.em: Likewise.
887
9c933e04
AM
8882004-09-17 Alan Modra <amodra@bigpond.net.au>
889
890 * Makefile.am: Run "make dep-am".
891 * Makefile.in: Regenerate.
892 * config.in: Regenerate.
893 * configure: Regenerate.
894 * aclocal.m4: Regenerate.
895 * po/ld.pot: Regenerate.
896
1fa32646
TL
8972004-09-16 Tomer Levi <Tomer.Levi@nsc.com>
898
9c933e04
AM
899 * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
900 (.fini): Likewise.
901 (.jcr): Likewise.
1fa32646 902
b6ee372a
AM
9032004-09-16 Alan Modra <amodra@bigpond.net.au>
904
905 * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
906 to bfd_elf32_arm_process_before_allocation call.
907
9c504268
PB
9082004-09-13 Paul Brook <paul@codesourcery.com>
909
910 * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
911 * emultempl/armelf.em: Use TARGET1_IS_REL. Add --target1-{rel,abs}.
912
d15b04bd
L
9132004-09-07 H.J. Lu <hongjiu.lu@intel.com>
914
915 * configure: Regenerated with autconfig 2.13.
916
875c4330
AS
9172004-09-07 Andreas Schwab <schwab@suse.de>
918
919 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
920 alignment before adjusting DATA_SEGMENT_RELRO_END.
921
229fcec5
MM
9222004-09-06 Mark Mitchell <mark@codesourcery.com>
923
924 * emulparams/armsymbian.sh: Use armbpabi script.
925 * scripttempl/armbpabi.sc: New script.
926
e5a52504
MM
9272004-09-02 Mark Mitchell <mark@codesourcery.com>
928
929 * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
930 (earmsymbian.c): New target.
931 * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
932 * Makefile.in: Regenerated.
933 * aclocal.m4: Likewise.
934 * configure: Likewise.
935 * emulparams/armsymbian.sh: New file.
936
42851540
NC
9372004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
938
939 * scripttempl/elf32crx.sc: Edit file with comments.
940 (.init): Add new section.
941 (.fini): Likewise.
942 (.ctor): Control the linkage order.
943 (.dtor): Likewise.
944
c034e3e0
NC
9452004-08-27 Nick Clifton <nickc@redhat.com>
946
947 * emultempl/pe.em (after_open): Do not assume that either bfd is
9c933e04 948 an archive.
c034e3e0 949
688c58f3
AM
9502004-08-26 Alan Modra <amodra@bigpond.net.au>
951
952 * ldlang.c (lang_init): Don't compare with TRUE.
953
b18c562e
NC
9542004-08-25 Dmitry Diky <diwil@spec.ru>
955
956 * emulparams/msp430all.sh: Fix RAM sizes for all targets.
957 * scripttempl/elf32msp430.sc: Add .profiler section definition.
958
61f5d054
L
9592004-08-24 H.J. Lu <hongjiu.lu@intel.com>
960
961 * ldlang.c (wildcardp): Defined as a macro with strpbrk.
962
e77d3d77
MM
9632004-08-19 Mark Mitchell <mark@codesourcery.com>
964
965 * configure.tgt (arm*-*-symbianelf*): New target.
966 (arm*-*-eabi*): Likewise.
967
3f764659
JJ
9682004-08-19 Jakub Jelinek <jakub@redhat.com>
969
970 * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
971 (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
972 (OPTION_NON_OVERLAPPING_OPD): Define.
973 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
974 --non-overlapping-opd option.
975
a010d60f
AM
9762004-08-18 Alan Modra <amodra@bigpond.net.au>
977
978 PR 338
979 * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
980 was already on the undefs list.
981
c4e33880
AM
9822004-08-17 Alan Modra <amodra@bigpond.net.au>
983
984 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
985 prefix the symbol field too.
986
d003868e
AM
9872004-08-13 Alan Modra <amodra@bigpond.net.au>
988
989 * ldmain.c (link_callbacks): Remove "error_handler".
990 * ldmisc.c: Include elf-bfd.h.
991 (vfinfo): Sort comment. Handle %A. Use %A instead of
992 bfd_get_section_indent.
993 (error_handler): Delete.
994 * ldmisc.h (error_handler): Delete declaration.
995
99877b66
AM
9962004-08-10 Alan Modra <amodra@bigpond.net.au>
997
998 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
999 ppc64_elf_restore_symbols.
1000
40e45c8b
AM
10012004-08-09 Alan Modra <amodra@bigpond.net.au>
1002
1003 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
1004 .toc is too large on relocatable linking.
1005
ccfa59ea
AM
10062004-08-09 Alan Modra <amodra@bigpond.net.au>
1007
1008 * emultempl/ppc64elf.em (ppc_after_open): Delete.
1009 (LDEMUL_AFTER_OPEN): Don't define.
1010
93fd0973
SC
10112004-08-02 Stephane Carrez <stcarrez@nerim.fr>
1012
1013 * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
1014
f1b123db
SC
10152004-08-01 Stephane Carrez <stcarrez@nerim.fr>
1016
1017 * scripttempl/elfm68hc12.sc: Align text, rodata and data section
1018 on power of 2.
1019
e7fbc2bf
JT
10202004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
1021
1022 * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
1023
c05e9f04
NC
10242004-07-26 Dmitry Diky <diwil@spec.ru>
1025
1026 * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
1027 msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
1028 msp430xG439.
1029 * configure.tgt: Likewise.
1030 * emulparams/msp430all.sh: Likewise.
1031 * Makefile.in: Regenerate.
1032
9f61903d
NC
10332004-07-23 Nick Clifton <nickc@redhat.com>
1034
1035 * emultempl/elf32.em (_place_orphan): Use an already existing
1036 section name if that section does not have any flags set.
1037
082b7297
L
10382004-07-21 H.J. Lu <hongjiu.lu@intel.com>
1039
1040 * ldlang.c (already_linked_hash_entry): Removed.
1041 (already_linked): Likewise.
1042 (already_linked_table): Likewise.
1043 (section_already_linked): Call bfd_section_already_linked.
1044 (lang_process): Replace already_linked_table_init with
1045 bfd_section_already_linked_table_init and check return. Replace
1046 already_linked_table_free with bfd_section_already_linked_table_free.
1047
76d7af2d
NC
10482004-07-21 Nick Clifton <nickc@redhat.com>
1049
1050 * ldlang.c (init_os): Make sure that the newly allocated userdata
1051 structure is zeroed out.
1052
14b3c463
L
10532004-07-19 H.J. Lu <hongjiu.lu@intel.com>
1054
1055 * NEWS: Mention the new --add-needed/--no-add-needed and
1056 --as-needed/--no-as-needed options.
1057
e56f61be
L
10582004-07-19 H.J. Lu <hongjiu.lu@intel.com>
1059
1060 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
1061 check the add_needed field.
1062 (dt_needed): New struct.
1063 (gld${EMULATION_NAME}_try_needed): Change the first argument
1064 to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
1065 bit in the file where the DT_NEEDED entry comes from.
1066 (gld${EMULATION_NAME}_search_needed): Change the second
1067 argument to a pointer to struct dt_needed.
1068 (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
1069 (gld${EMULATION_NAME}_after_open): Likewise.
1070
1071 * ld.texinfo: Add --add-needed document.
1072 * ldlang.c (new_afile): Set p->add_needed.
1073 * ldlang.h (lang_input_statement_type): Add add_needed field.
1074 * ldmain.h (add_needed): Declare.
1075 * ldmain.c (add_needed): New global var.
1076 * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
1077 OPTION_NO_ADD_NEEDED.
1078 (ld_options): Likewise.
1079 (parse_args): Handle them.
1080
c99b8138
NC
10812004-07-13 Christof Petig <christof@petig-baender.de>
1082
1083 * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
1084 for endian-ness of extracted addend.
1085
13ed4151
NC
10862004-07-13 Danny Smith <dannysmith@usesr.sourceforge.net>
1087
1088 * pe-dll.c (auto_export): Filter on just the import prefix,
1089 "_imp_", not "_imp__".
1090
1a320fbb
NC
10912004-07-09 Nick Clifton <nickc@redhat.com>
1092
1093 * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
1094
1fe1f39c
NC
10952004-07-06 Tomer Levi <Tomer.Levi@nsc.com>
1096
1097 * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
1098 (eelf32crx.c): New target.
1099 * Makefile.in: Regenerate.
1100 * configure.tgt: Handle crx-*-elf*.
1101 * emulparams/elf32crx.sh: New file.
1102 * emultempl/crxelf.em: New file.
1103 * scripttempl/elf32crx.sc: New file.
1104 * NEWS: Mention new target.
1105
85fbca6a
NC
11062004-07-06 Nick Clifton <nickc@redhat.com>
1107
1108 * Makefile.am: Add eshlsymbian.c.
1109 * Makefile.in: Regenerate.
1110 * configure.tgt: Add sh*-symbian-elf target.
1111 * emulparams/shlsymbian.sh: New file. Configure the
1112 sh-symbian-elf linker scripts.
1113 * scripttemp/elf32sh-symbian.sc: New file. Linker script
1114 template for the sh-symbian-elf target.
1115
b71a5181
DA
11162004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1117
1118 * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
1119 * emulparams/hppalinux.sh: Likewise.
1120 * scripttempl/elf.sc: Place .plt just before .got when .plt is in
1121 data segment and PLT_BEFORE_GOT is defined.
1122
c87db184
CF
11232004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1124
1125 * ld.texinfo (WIN32): Document PE weak symbols.
1126
f6a8ae81
KK
11272004-07-02 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1128
1129 * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
1130
b602c853
L
11312004-07-01 H.J. Lu <hongjiu.lu@intel.com>
1132
1133 * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
1134 the section.
1135
1a23a9e6
AM
11362004-06-29 Alan Modra <amodra@bigpond.net.au>
1137
1138 * ldlang.c (lang_reset_memory_regions): Save last relax pass section
1139 size in rawsize.
1140
eea6121a
AM
11412004-06-24 Alan Modra <amodra@bigpond.net.au>
1142
1143 * ldlang.c (print_output_section_statement): Don't print size before
1144 relaxation.
1145 (IGNORE_SECTION): Remove bfd arg. Update all callers.
1146
1147 * ldexp.c (fold_name): .. See below.
1148 * ldlang.c (section_already_linked, print_output_section_statement,
1149 print_input_section, insert_pad, size_input_section,
1150 lang_check_section_addresses, lang_size_sections_1,
1151 lang_size_sections, lang_do_assignments_1, lang_set_startof,
1152 lang_one_common, lang_reset_memory_regions, lang_process,
1153 lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
1154 * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
1155 * pe-dll.c (process_def_file, generate_reloc): ..
1156 * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
1157 gld${EMULATION_NAME}_before_allocation): ..
1158 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
1159 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
1160 sh64_elf_${EMULATION_NAME}_after_allocation): ..
1161 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
1162 * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
1163 ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
1164 "size" instead of "_raw_size" and "_cooked_size". Expand
1165 bfd_section_size macro invocations.
1166
552f8272
CF
11672004-06-22 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1168
1169 * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
1170 ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
1171 ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
1172 ___crt_xt_end__.
1173 (.tls): Define ___tls_start__ and ___tls_end__.
1174
aee6f5b4
AO
11752004-06-21 Alexandre Oliva <aoliva@redhat.com>
1176
1177 * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
1178
eea6121a 11792004-06-18 Adam Nemet <anemet@lnxw.com>
f234d5fe 1180
eea6121a
AM
1181 * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
1182 * configure: Regenerate.
f234d5fe 1183
dfff4fbe
JJ
11842004-06-15 Jakub Jelinek <jakub@redhat.com>
1185
1186 * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
1187 .gcc_except_table output sections lost accidentally with
1188 -z relro patch.
1189
a9e0c0c6
AM
11902004-06-15 Alan Modra <amodra@bigpond.net.au>
1191
1192 * ldwrite.c (build_link_order): Use bfd_get_section_size
1193 instead of bfd_get_section_size_before_reloc or _raw_size.
1194 * pe-dll.c (process_def_file): Likewise.
1195
7115639b
AM
11962004-06-14 Alan Modra <amodra@bigpond.net.au>
1197
1198 From Richard Wirth <r.wirth@wirthware.de>
1199 * ldlang.c (lang_finish): Don't free lang_definedness_table.
1200
9ca57817
AM
12012004-05-29 Alan Modra <amodra@bigpond.net.au>
1202
1203 * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
1204 (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
1205
f6f9408f
JR
12062004-05-28 Andrew Stubbs <andrew.stubbs@superh.com>
1207
1208 * testsuite/ld-sh/arch/arch.exp: New test script.
1209 * testsuite/ld-sh/arch/arch_expected.txt: New file.
1210 * testsuite/ld-sh/arch/sh.s: New file.
1211 * testsuite/ld-sh/arch/sh2.s: New file.
1212 * testsuite/ld-sh/arch/sh-dsp.s: New file.
1213 * testsuite/ld-sh/arch/sh2e.s: New file.
1214 * testsuite/ld-sh/arch/sh3-nommu.s: New file.
1215 * testsuite/ld-sh/arch/sh3.s: New file.
1216 * testsuite/ld-sh/arch/sh3-dsp.s: New file.
1217 * testsuite/ld-sh/arch/sh3e.s: New file.
1218 * testsuite/ld-sh/arch/sh4-nommu-nofpu.s: New file.
1219 * testsuite/ld-sh/arch/sh4-nofpu.s: New file.
1220 * testsuite/ld-sh/arch/sh4.s: New file.
1221 * testsuite/ld-sh/arch/sh4a-nofpu.s: New file.
1222 * testsuite/ld-sh/arch/sh4al-dsp.s: New file.
1223 * testsuite/ld-sh/arch/sh4a.s: New file.
1224
164e712d
AM
12252004-05-28 Alan Modra <amodra@bigpond.net.au>
1226
6feb9908
AM
1227 * ldlang.c: Formatting. Wrap long lines, expand bfd_get_section_flags
1228 throughout file.
1229 * lexsup.c: Formatting. Wrap long lines.
1230 * ldwrite.c: Update copyright date.
1231
164e712d
AM
1232 * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
1233 (output_section_callback): Nor SEC_KEEP here.
1234 (gc_section_callback): Twiddle SEC_EXCLUDE here.
1235 (lang_gc_wild): Delete. Fold into..
1236 (lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage
1237 collecting.
1238 (lang_process): Always call lang_gc_sections.
1239 (lang_place_orphans): Handle SEC_EXCLUDE sections.
1240 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
1241 SEC_EXCLUDE code.
1242
b3096250
L
12432004-05-26 H.J. Lu <hongjiu.lu@intel.com>
1244
1245 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
1246 SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
1247 * ldlang.c (lang_add_section): Likewise.
1248
e49f5022
AM
12492004-05-26 Alan Modra <amodra@bigpond.net.au>
1250
1251 * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
1252 sections when doing a final link. Clear SEC_EXCLUDE when doing
1253 a relocable link, except for SEC_DEBUGGING sections.
1254 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
1255 same condition here to drop SEC_EXCLUDE orphan sections.
1256
57ceae94
AM
12572004-05-25 Alan Modra <amodra@bigpond.net.au>
1258
1259 * ldlang.c (lang_process): Call bfd_merge_sections later, and
1260 only when not a relocatable link.
1261 (print_input_section): Handle SEC_EXCLUDE sections.
1262 (size_input_section): Don't update dot on SEC_EXCLUDE sections.
1263 (lang_do_assignments_1): Likewise.
1264 * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
1265 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
1266 * emultempl/hppaelf.em (build_section_lists): Likewise.
1267 * emultempl/ppc64elf.em (build_toc_list): Likewise.
1268 (build_section_lists): Likewise.
1269
a85785bc
AS
12702004-05-23 Andreas Schwab <schwab@suse.de>
1271
1272 * ld.texinfo (Options): Fix typo in last change.
1273
2d643429
NC
12742004-05-21 Andy Chittenden <achittenden@bluearc.com>
1275
1276 * ld.h (ld_config_type): Add new field: hash_table_size.
1277 * ldmain.c: Initialise the new field to zero. If it is non-zero
1278 after parsing the linker's command line call
1279 bfd_hash_set_default_size.
1280 * lexsup.c (option_values): Add OPTION_HASH_SIZE.
1281 (ld_options): Add hash-size.
1282 (parse_args): Parse --hash-size option. Allow
1283 --reduce-memory-overheads to set the default hash table size as
1284 well.
1285 * ld.texinfo: Document the new switch. Also mention that
1286 --reduce-memory-overheads can affect the hash table size.
1287 * NEWS: Mention the new feature.
1288
35835446
JR
12892004-05-19 J"orn Rennecke <joern.rennecke@superh.com>
1290
1291 * NEWS: Mention new linker map file generation and the
1292 --reduce-memory-overheads option.
1293 * ld.texinfo: Document --reduce-memory-overheads option.
1294 * ld.h (map_symbol_def): New struct.
1295 (struct user_section_struct, section_userdata_type): Rename to:
1296 (struct lean_user_section_struct, lean_section_userdata_type).
1297 (struct fat_user_section_struct, fat_section_userdata_type): New.
1298 (SECTION_USERDATA_SIZE): Define.
1299 (args_type): New member reduce_memory_overheads.
1300 * ldlang.c (map_obstack): New static variable.
1301 (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
1302 (lang_map): Unless command_line.reduce_memory_overheads is set,
1303 initialize lists of defined symbols for each section.
1304 (print_input_section): Unless command_line.reduce_memory_overheads
1305 is set, use print_all_symbols.
1306 (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
1307 * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
1308 * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
1309 (ld_options): Add entry for --reduce-memory-overheads.
1310 (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
1311
0841712e
JJ
13122004-05-19 Jakub Jelinek <jakub@redhat.com>
1313
1314 * ldgram.y (sect_constraint): New.
1315 (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1316 (section): Add sect_constraint. Pass additional argument
1317 to lang_enter_output_section_statement.
1318 * mri.c (mri_draw_tree): Pass additional argument to
1319 lang_enter_output_section_statement.
1320 * emultempl/pe.em (place_orphan): Likewise.
1321 (output_prev_sec_find): Disregard output section statements with
1322 constraint == -1.
1323 * emultempl/mmo.em (output_prev_sec_find): Likewise.
1324 (mmo_place_orphan): Pass additional argument to
1325 lang_enter_output_section_statement.
1326 * emultempl/elf32.em (output_prev_sec_find): Disregard output section
1327 statements with constraint == -1.
1328 (place_orphan): Pass additional argument to
1329 lang_enter_output_section_statement.
1330 * ldlang.c (lang_enter_overlay_section): Likewise.
1331 (lang_output_section_find_1): New.
1332 (lang_output_section_find): Use it.
1333 (lang_output_section_statement_lookup_1): New.
1334 (lang_output_section_statement_lookup): Use it.
1335 (check_section_callback, check_input_sections): New.
1336 (map_input_to_output_sections): Check if all input sections
1337 are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
1338 (strip_excluded_output_sections): Disregard output section statements
1339 with constraint == -1.
1340 (lang_record_phdrs): Likewise.
1341 (lang_enter_output_section_statement): Add constraint argument.
1342 Use lang_output_section_statement_lookup_1.
1343 * ldlang.h (lang_output_section_statement_type): Add constraint
1344 and all_input_readonly fields.
1345 (lang_enter_output_section_statement): Adjust prototype.
1346 * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1347 * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
1348 segment if all input sections are readonly.
1349
eea6121a 13502004-05-19 Adam Nemet <anemet@lnxw.com>
f2c50328
NC
1351
1352 * scripttempl/i386lynx.sc: Remove file.
1353
2a16d82a
BW
13542004-05-17 Bob Wilson <bob.wilson@acm.org>
1355
1356 * ld.texinfo (Output Section Address): Correct subsection name.
1357
eea6121a 13582004-05-17 Adam Nemet <anemet@lnxw.com>
b2d65c0b
NC
1359
1360 * configure.tgt (powerpc-*-lynxos* case): New case.
1361 * configure.host (i[3-7]86-*-lynxos* case): Remove case.
1362 * emulparams/ppclynx.sh: New file.
1363 * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
1364 * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
1365 (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
1366 (eppclynx.c): New rule.
1367 * Makefile.in: Regenerate.
1368
4b363073
NC
13692004-05-13 Joel Sherrill <joel@oarcorp.com>
1370
1371 * configure.tgt (or32-*-rtems*): Switch to elf and
1372 support versioned targets.
1373
9598fbe5
NC
13742004-05-13 Nick Clifton <nickc@redhat.com>
1375
1376 * po/fr.po: Updated French translation.
1377
8c37241b
JJ
13782004-05-11 Jakub Jelinek <jakub@redhat.com>
1379
1380 * genscripts.sh: Generate -z combreloc -z now -z relro scripts
1381 for binaries, -shared and -pie.
1382 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
1383 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
1384 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
1385 (OTHER_RELRO_SECTIONS): ... this.
1386 * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
1387 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
1388 -z relro and -z norelro.
1389 (gld${EMULATION_NAME}_list_options): Add it to usage.
1390 (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
1391 -z relro scripts when appropriate.
1392 * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
1393 Create separate .got.plt section if SEPARATE_GOTPLT.
1394 Move sections which are only written during relocation handling
1395 to the beginning of RW segment. If NO_SMALL_DATA, move .got
1396 before .data. Add DATA_SEGMENT_RELRO_END directive.
1397 Include OTHER_RELRO_SECTIONS.
1398 * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
1399 * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
1400 (fold_unary): Likewise.
1401 (fold_binary): Handle -z relro.
1402 * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
1403 exp_dataseg_relro_adjust phases. Add relro_end field.
1404 * ldmain.c (main): Initialize link_info.relro to FALSE.
1405 * ldlang.c (lang_size_sections): Handle -z relro.
1406
e21059f2
MM
14072004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
1408
1409 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
1410
5f9b8920
JR
14112004-05-07 J"orn Rennecke <joern.rennecke@superh.com>
1412
1413 * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
1414 before printing it with %W.
1415
26d2d8a2 14162004-05-07 Brian Ford <ford@vss.fsi.com>
eea6121a 1417 DJ Delorie <dj@redhat.com>
26d2d8a2
BF
1418
1419 * emultempl/pe.em (real_flags): New static.
1420 (OPTION_LARGE_ADDRESS_AWARE): New define.
1421 (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
1422 (gld_${EMULATION_NAME}_list_options): Likewise.
1423 (gld${EMULATION_NAME}_handle_option): Likewise.
1424 (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
1425 * ld.texinfo: Document it.
1426 * NEWS: Mention it.
1427
1b169501
BF
14282004-05-07 Brian Ford <ford@vss.fsi.com>
1429
1430 * NEWS: Mention DWARF 2 support for i386pe.
1431
41cf0c62
AO
14322004-05-05 Alexandre Oliva <aoliva@redhat.com>
1433
1434 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
1435 elf32-frvfdpic.
1436
d0d6a25b
AM
14372004-04-30 Alan Modra <amodra@bigpond.net.au>
1438
1439 * ldlang.c (unique_section_p): Pass section parm, return true on
1440 group sections.
1441 (output_section_callback): Adjust.
1442 * ldlang.h (unique_section_p): Update prototype.
1443 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
1444
755306be
EB
14452004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
1446
eea6121a 1447 * ld.texinfo (--gc-sections): Remove restriction for
755306be
EB
1448 dynamic linking.
1449
8a7140c3
NC
14502004-04-29 Brian Ford <ford@vss.fsi.com>
1451
1452 * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
1453 for DWARF 2/3. Update stab section's syntax.
1454
2f9636ba
AM
14552004-04-29 Alan Modra <amodra@bigpond.net.au>
1456
1457 * pe-dll.c: Revert changes accidentally committed 2004-03-08.
1458 (fill_edata): Correct pointer arithmetic.
1459
23867d67
CD
14602004-04-21 Chris Demetriou <cgd@broadcom.com>
1461
1462 * ld.texinfo: Remove MIPS --embedded-relocs documentation.
1463 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
1464 * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
1465 (EXTRA_EM_FILE): Use mipsecoff.em
1466 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
1467 (EXTRA_EM_FILE): Use mipsecoff.em
1468 * emultempl/mipsecoff.em: Restructure to be included as an
1469 extra emulation file.
1470 (check_sections, gld${EMULATION_NAME}_after_open)
1471 (gld${EMULATION_NAME}_after_allocation)
1472 (gld${EMULATION_NAME}_get_script)
1473 (ld_${EMULATION_NAME}_emulation): Remove
1474 (gld${EMULATION_NAME}_before_parse): Rename to...
1475 (mipsecoff_before_parse): This.
1476 (LDEMUL_BEFORE_PARSE): Define.
1477 * emultempl/mipself.em: Remove file.
1478 * scripttempl/mips.sc (.rel.sdata): Do not include in output.
1479 (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
1480 these symbols.
1481 * Makefile.am: Remove dependencies on emultempl/mipself.em.
1482 * Makefile.in: Regenerate.
1483
1502569c
NC
14842004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
1485
1486 * ld.texinfo (synthesizing on H8/300): Information about linker
1487 relaxation support for bit manipulation instructions and system
1488 control instructions is added.
1489
c894ddfb
HPN
14902004-04-21 Hans-Peter Nilsson <hp@axis.com>
1491
1492 * NEWS: Mention change in DEFINED semantics.
1493
a85bf78e
EB
14942004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
1495
1496 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
1497 (.data): Add KEEP for .gnu.linkonce.d.*personality*.
1498 (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
1499
58434bc1
BE
15002004-04-21 Ben Elliston <bje@au.ibm.com>
1501
1502 * ld.texinfo (Simple Example): Add missing punctuation.
1503
7a7f4e42
CD
15042004-04-20 Chris Demetriou <cgd@broadcom.com>
1505
1506 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
1507
3737f867
JJ
15082004-04-19 Jakub Jelinek <jakub@redhat.com>
1509
1510 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
1511 specially.
1512
3c17e4f7
DS
15132004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
1514
1515 * scriptempl/pe.sc: Put numbered .ctors.* after .ctors
1516 with default priority. Likewise for dtors.
1517
279500de
TS
15182004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1519
1520 * configure.host: Remove mips*-dec-bsd* target.
1521 * configure.tgt: Likewise.
1522
52f89c0a
RS
15232004-04-08 Richard Sandiford <rsandifo@redhat.com>
1524
1525 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
1526 * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
1527 * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
1528 * emultempl/irix.em: New file.
1529 * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
1530 dependencies.
1531 * Makefile.in: Regenerate.
1532
e489d0ae
PB
15332004-04-01 Paul Brook <paul@codesourcery.com>
1534
1535 * emultempl/armelf.em (byteswap_code): Add.
1536 (arm_elf_before_allocation): Pass extra parameter.
1537 (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
1538 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
1539 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
1540 * emultempl/armelf_oabi.em: Pass extra parameter.
1541 * ld.texinfo: Document --be8.
1542
7cc8057a
SS
15432004-03-30 Stan Shebs <shebs@apple.com>
1544
1545 Remove long-obsolete MPW support.
1546 * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
1547 * Makefile.am (mpw): Remove file-presynthesizing actions.
1548 * Makefile.in: Likewise.
1549 * ldfile.c (slash): Remove MPW case.
1550 * ldlex.l [MPW]: Remove unused definition.
1551
0949843d
NC
15522004-03-30 Galit Heller <Galit.Heller@nsc.com>
1553
1554 * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
1555 (eelf32cr16c.c): New target.
1556 * Makefile.in: Regenerate.
1557 * configure.tgt: Handle cr16c-*-elf*.
1558 * emulparams/elf32cr16c.sh: New file.
1559 * scripttempl/elfcr16c.sc: Likewise
1560 * NEWS: Mention support for new target.
1561
0a159ef8
NC
15622004-03-30 Nick Clifton <nickc@redhat.com>
1563
1564 * po/sv.po: Updated Swedish translation.
1565
7a945db6
AM
15662004-03-27 Alan Modra <amodra@bigpond.net.au>
1567
1568 * emultempl/elf32.em: Update new bfd_elf_discard_info name.
1569 * emultempl/hppaelf.em: Likewise.
1570 * emultempl/ppc64elf.em: Likewise.
1571 * emultempl/sh64elf.em: Likewise.
1572
5a580b3a
AM
15732004-03-25 Alan Modra <amodra@bigpond.net.au>
1574
1575 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
1576 size_dynamic_sections call.
1577
b9cf773d
AM
15782004-03-23 Alan Modra <amodra@bigpond.net.au>
1579
1580 PR 51.
1581 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
1582 link_info.wrap_char.
1583
59c2e50f
L
15842004-03-20 H.J. Lu <hongjiu.lu@intel.com>
1585
1586 * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
1587 or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
1588
44349745
AO
15892004-03-20 Alexandre Oliva <aoliva@redhat.com>
1590
1591 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
1592
81359a70
AM
15932004-03-19 Alan Modra <amodra@bigpond.net.au>
1594
1595 * config.in: Regenerate.
1596 * po/ld.pot: Regenerate.
1597
4a43e768
AM
15982004-03-18 Alan Modra <amodra@bigpond.net.au>
1599
1600 * ld.texinfo: Add --as-needed doco.
1601 * ldmain.c (as_needed): New global var.
1602 * ldmain.h (as_needed): Declare.
1603 * lexsup.c (option_values): Add OPTION_AS_NEEDED and
1604 OPTION_NO_AS_NEEDED.
1605 (ld_options): Likewise.
1606 (parse_args): Handle them.
1607 * ldlang.h (lang_input_statement_type): Add as_needed field.
1608 * ldlang.c (new_afile): Set p->as_needed.
1609 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
1610 (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
1611 (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
1612
1613 * ldlang.c (open_input_bfds): Remove useless cast.
1614 (lang_do_assignments_1): Likewise.
1615 (lang_for_each_input_section): Delete.
1616
9183ed4b
AM
16172004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1618
1619 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
1620
ee31fbd0
NC
16212004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
1622
1623 * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
1624 private when building implib.
1625
e5caec89
NS
16262004-03-05 Nathan Sidwell <nathan@codesourcery.com>
1627
1628 * ldlang.c (lang_add_section): Don't force SEC_LOAD on
1629 SEC_THREAD_LOCAL.
1630 (IGNORE_SECTION): Ignore .tbss sections too.
1631 (lang_size_sections_1): .tbss sections do not advance dot.
1632
cc2f008e
AS
16332004-03-01 Andreas Schwab <schwab@suse.de>
1634
1635 * ld.texinfo (Options): Fix example for --wrap.
1636
f5a95868
DS
16372004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
1638
1639 * pe-dll.c (fill_edata): Check that exported_symbol_sections is
1640 not NULL.
1641
177b729b
ILT
16422004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
1643
1644 * ldlang.c (lang_check): Use %P, not %E, in error message.
1645
1b493742
NS
16462004-02-23 Nathan Sidwell <nathan@codesourcery.com>
1647
1648 * ldlang.h (struct lang_output_section_state): Change processed
1649 field's type.
1650 * ldexp.c (check, invalid): Remove.
1651 (fold_name): Move valid_p assignments. Create undefined symbol
1652 when needed. Directly exampine section's processd flag.
1653 * ldlang.c (lang_output_section_statement_lookup): Adjust
1654 processed field init.
1655 (lang_size_sections_1): Allow LOADADDR when determining section's
1656 VMA. Adjust error message. Fold data statement's expr.
1657 (lang_size_sections): Correctly increment lang_statement_iteration.
1658
16592004-02-23 Alan Modra <amodra@bigpond.net.au>
1660
1661 * ldexp.c (fold_tree): Follow indirect symbols.
b9cf773d 1662
876f4090
NS
16632004-02-20 Nathan Sidwell <nathan@codesourcery.com>
1664
1665 * ldgram.y (exp): Add two operand ALIGN.
1666 * ldexp.c (fold_binary): Add ALIGN_K case.
1667 * ld.texinfo (ALIGN): Document two operand version.
1668
384d938f
NS
16692004-02-19 Nathan Sidwell <nathan@codesourcery.com>
1670
1671 * ldlang.c (map_input_to_output_sections): Initialize sections
1672 mentioned in a data statement expression.
1673 (lang_do_assignments_1): Add data statement's expression's
1674 section's vma.
1675
b6ca8815
NS
16762004-02-18 Nathan Sidwell <nathan@codesourcery.com>
1677
1678 * ldgram.y (statement_anywhere): Add assert rule.
1679 * ldlang.c (exp_init_os): Add assert case.
1680
c92c35e7
AC
16812004-02-14 Andrew Cagney <cagney@redhat.com>
1682
1683 * ldmain.c (remove_output): Call bfd_cache_close.
1684
9bf78c99
RS
16852004-02-14 Richard Sandiford <rsandifo@redhat.com>
1686
1687 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
1688 .MIPS.content* and .MIPS.events* sections.
1689
f3806916
DJ
16902004-02-09 Daniel Jacobowitz <drow@mvista.com>
1691
1692 * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
1693 .note.gnu.arm.ident to after allocated sections. Mark its
1694 address as 0.
1695
4c8e70d7
DJ
16962004-02-09 Daniel Jacobowitz <drow@mvista.com>
1697
1698 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
1699 * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
1700 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
1701 * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
1702 * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
1703
ff71f4f7
NC
17042004-02-05 Nick Clifton <nickc@redhat.com>
1705
1706 * emultempl/pe.em (_after_open): Fix typo in previous delta.
1707
07a68a80
NC
17082004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
1709
1710 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
1711
1dd3bf68
AM
17122004-01-28 Alan Modra <amodra@bigpond.net.au>
1713
586196d5
AM
1714 * genscripts.sh: Fix typo.
1715
1dd3bf68
AM
1716 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
1717
13d9421f
JJ
17182004-01-24 Jakub Jelinek <jakub@redhat.com>
1719
1720 * emulparams/elf64_ia64.sh: Put .rela.opd into
1721 OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
1722
4d8907ac
DS
17232004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
1724
1725 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
1726 * ld.texinfo (--omagic): Note that writable text section
1727 does not conform to published PE-COFF specs.
1728 (--enable-auto-import): Likewise.
1729
e5c60db5
AM
17302004-01-15 Alan Modra <amodra@bigpond.net.au>
1731
1732 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
1733
6bdafbeb
NC
17342004-01-13 Nick Clifton <nickc@redhat.com>
1735
1736 * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
1737 which if true will prevent the LMA region being used as a
1738 replacement for a default VMA region.
586196d5
AM
1739 (lang_leave_output_section_statement): Pass extra parameter.
1740 (lang_leave_overlay): Likewise.
1741 * ld.texinfo (Output Section LMA): Document that the LMA
6bdafbeb
NC
1742 region can be set to the VMA region if no VMA has been set.
1743 * ldlang.h (struct lang_output_section_phdr_list): Create a
1744 typedef for this type. Minor formatting fixes.
586196d5 1745
9dfc8ab2
NC
17462004-01-13 Nick Clifton <nickc@redhat.com>
1747
1748 * ldlang.c (lang_size_sections_1): If dot is advanced, then
1749 assume that the section should be allocated.
1750
8325c4dd
AM
17512004-01-13 Alan Modra <amodra@bigpond.net.au>
1752
1753 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
1754 sections. Do ignore SEC_NEVER_LOAD sections.
1755 (lang_size_sections_1): Remove test made redundant with the above.
1756
83490352
AM
17572004-01-09 Alan Modra <amodra@bigpond.net.au>
1758
1759 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
1760 program_header_size.
1761
005e1118
AO
17622004-01-06 Alexandre Oliva <aoliva@redhat.com>
1763
1764 2003-11-28 Alexandre Oliva <aoliva@redhat.com>
1765 * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
1766 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
1767 * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
1768 (MAXPAGESIZE): Set to 64Kb.
1769 (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
1770 __ROFIXUP_END__. Don't map .rofixup.got any more.
1771 * emulparams/elf32frv.sh (NOP): Set.
1772 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
1773 * configure.tgt: Add frv-*-*linux*.
1774 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
1775 * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
1776 (eelf32frvfd.c): New.
1777 * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
1778 * emulparams/elf32frv.sh: Reverted previous two patches.
1779 * emulparams/elf32frvfd.sh: New.
1780 * Makefile.in: Rebuilt.
1781 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
1782 * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
1783 .rofixup.got to .rofixup.
1784 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
1785 * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
1786 (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
1787
060feee5
JJ
17882004-01-05 Jakub Jelinek <jakub@redhat.com>
1789
1790 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
1791 * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
1792
5e2f1575
AM
17932004-01-03 Alan Modra <amodra@bigpond.net.au>
1794
e5caa5e0
AM
1795 * ldexp.c (align_n): Make static.
1796 * ldexp.h (align_n): Delete declaration.
1797 * ldlang.h (lang_enter_output_section_statement): Remove
1798 block_value param.
1799 * ldlang.c (lang_enter_output_section_statement): Likewise.
1800 (TO_ADDR, TO_SIZE): Define.
c2df3ea5 1801 (opb_shift): New var.
e5caa5e0
AM
1802 (init_opb): New function.
1803 (print_input_section): Call init_opb and use TO_ADDR.
1804 (print_data_statement, print_reloc_statement): Likewise.
1805 (print_padding_statement): Likewise.
c2df3ea5 1806 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
e5caa5e0
AM
1807 (lang_check_section_addresses): Likewise.
1808 (lang_size_sections_1): Likewise.
1809 (lang_do_assignments_1): Likewise.
1810 (lang_set_startof): Likewise.
c2df3ea5 1811 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
e5caa5e0 1812 (lang_process): Call init_opb.
c2df3ea5 1813 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
e5caa5e0
AM
1814 (lang_enter_overlay_section): Adjust
1815 lang_enter_output_section_statement call.
1816 * ldgram.y: Likewise.
1817 * mri.c (mri_draw_tree): Likewise.
1818 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1819 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1820 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1821
5e2f1575
AM
1822 * ldfile.c (ldfile_set_output_arch): Add defarch param.
1823 * ldfile.h (ldfile_set_output_arch): Ditto.
1824 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
1825 ldfile_set_output_arch.
1826 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1827 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
1828 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
1829 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1830 * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
1831 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1832 * ldgram.y: Adjust ldfile_set_output_arch call.
1833 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1834 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
1835 * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
1836 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
1837 * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
1838 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1839 * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1840
b50c15dc
NC
18412004-01-02 Bernardo Innocenti <bernie@develer.com>
1842
1843 * configure.tgt: Add m68k-uClinux target.
6edf0760 1844
c9e214e5 1845For older changes see ChangeLog-0203
252b5132
RH
1846\f
1847Local Variables:
1848mode: change-log
1849left-margin: 8
1850fill-column: 74
1851version-control: never
1852End:
This page took 0.428779 seconds and 4 git commands to generate.