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