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