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