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