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