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