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