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