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