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