* gdb.dwarf2/dw2-basic.exp: Run on Hurd also.
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
d3989512
JJ
12004-10-11 Jakub Jelinek <jakub@redhat.com>
2
563f4125
JJ
3 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
4 getline for portability.
5
d3989512
JJ
6 * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
7 (gld${EMULATION_NAME}_parse_ld_so_conf,
8 gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
9 (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
10
6c0c5b1e
AM
112004-10-11 Alan Modra <amodra@bigpond.net.au>
12
13 PR 423
14 * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
15 rejected when linking statically.
16
d2b2c203
DJ
172004-10-08 Daniel Jacobowitz <dan@debian.org>
18
19 * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
20
43cd72b9
BW
212004-10-07 Bob Wilson <bob.wilson@acm.org>
22
23 * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
24 assembler-generated longcall sequences. Describe new --size-opt
25 option.
26 * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
27 * emultempl/xtensaelf.em (remove_section,
28 replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
29 elf_xtensa_after_open): New.
30 (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
31 OPTION_NO_LITERAL_MOVEMENT): Define.
32 (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
33 (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
34 (PARSE_AND_LIST_OPTIONS): Add --size-opt.
35 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
36 OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
37 (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
38 * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
39 * Makefile.am (eelf32xtensa.c): Update dependencies.
40 * Makefile.in: Regenerate.
41
8fdd7217 422004-10-07 Jeff Baker <jbaker@qnx.com>
6c0c5b1e 43
8fdd7217
NC
44 * lexsup.c: Handle --warn-shared-textrel option.
45 (ld_options): Restore alpha sorting of options.
46 * ldmain.c (main): Initialise warn_shared_info field to FALSE.
47 * ld.texinfo: Add documentation for --warn-shared-textrel.
48 * NEWS: Added mention of --warn-shared-textrel option.
49
339207f8 502004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
6c0c5b1e 51
339207f8 52 * emultempl/crxelf.em (disable_relaxation): Add.
6c0c5b1e 53 (crxelf_before_allocation): Enable --relax option by default.
339207f8
TL
54 (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
55 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
56 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
57
bcaa7b3e
L
582004-10-04 H.J. Lu <hongjiu.lu@intel.com>
59
60 * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
61 --sort-section name|alignment.
62
63 * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
64 --sort-section name|alignment.
65
66 * ld.h (sort_type): New enum.
67 (wildcard_spec): Change the type of `sorted' to sort_type.
68
69 * ldgram.y (SORT): Removed.
70 (SORT_BY_NAME): Added.
71 (SORT_BY_ALIGNMENT): Added.
72 (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
73 SORT_BY_ALIGNMENT.
74 (input_section_spec_no_keep): Updated `sorted'.
75 (statement): Replace SORT with SORT_BY_NAME.
76
77 * ldlang.c (compare_section): New function to compare 2
78 sections with different sorting schemes.
79 (wild_sort): Updated. Use compare_section.
80 (update_wild_statements): New function.
81 (lang_process): Call update_wild_statements before
82 map_input_to_output_sections.
83
84 * ldlex.l (SORT_BY_NAME): New.
85 (SORT_BY_ALIGNMENT): New.
86 (SORT): Return SORT_BY_NAME.
87
88 * ldmain.c (sort_section): New. Defined.
89 (main): Initialize it to none.
90
91 * lexsup.c (option_values): Add OPTION_SORT_SECTION.
92 (ld_options): Add an entry for OPTION_SORT_SECTION.
93 (parse_args): Handle OPTION_SORT_SECTION.
94
95 * mri.c (mri_draw_tree): Updated `sorted'.
96
a4f5ad88
JJ
972004-10-04 Jakub Jelinek <jakub@redhat.com>
98
99 * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
100 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
101 argument.
102 (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
103 and . as second argument.
104 (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
105 * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
106 (fold_binary): Add it here. Insert padding to make relro_end
107 COMMONPAGESIZE bytes aligned. For DATA_SEGMENT_ALIGN in
108 exp_dataseg_relro_adjust phase just use previously computed
109 exp_data_seg.base.
110 * ldlang.c (lang_size_sections): Set exp_data_seg.base for
111 relro_adjust here. Call lang_size_sections_1 once more if there
112 was too big padding at DATA_SEGMENT_RELRO_END.
113 * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
114
40a18ebd
NC
1152004-10-01 Paul Brook <paul@codesourcery.com>
116
117 * emulparams/armelf.sh: Add unwinding table sections.
118
db8acf26
NC
1192004-09-30 Filip Navara <navaraf@reactos.com>
120
121 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
122 correct base address for position independant executables.
123 * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
124 executables as DLLs.
125
eeac373a
PB
1262004-09-30 Paul Brook <paul@codesourcery.com>
127
128 * ld.texinfo: Document --target2=abs.
129 * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
130
1ee7cf4c
NC
1312004-09-29 Nick Clifton <nickc@redhat.com>
132
133 * scripttempl/xstormy16.sc: Only perform the assignments to the
134 ROM region when not performing a relocatable link. The ROM region
135 does not start at address 0, but the sections will.
136 * Makefile.am: Fix linker script dependency for the generation of
137 eelf32xstormy16.c.
138 * Makefile.in: Regenerate.
139
03098a9a
CF
1402004-09-18 Filip Navara <navaraf@reactos.com>
141
142 * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
143 emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
144 emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
145 TARGET_PAGE_SIZE.
146 * scripttempl/pe.sc: Make the virtual address and file offset synced if
147 the alignment is lower than the target page size.
148
f2d3750d
CF
1492004-09-27 Filip Navara <navaraf@reactos.com>
150
151 * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
152 def_file_parse to handle pe_def_file if NULL and prevent crash with
153 invalid .def files.
154
a23d8409
AM
1552004-09-27 Alan Modra <amodra@bigpond.net.au>
156
157 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
158 --emit-stub-syms automatically when --emit-relocs.
159
7b89fa29
PB
1602004-09-24 Paul Brook <paul@codeosurcery.com>
161
162 * scripttempl/elf.sc: Keep .preinit_array, .init_array and
163 .fini_array sections.
164
e2a68bcc
AS
1652004-09-19 Andreas Schwab <schwab@suse.de>
166
167 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
168 base so that relro end is suitably aligned.
169
3674e28a
PB
1702004-09-17 Paul Brook <paul@codesourcery.com>
171
172 * ld.texinfo: Rename arm-specific section. Document --target*
173 * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
174 * emulparams/armelf_linux.sh: Ditto.
175 * emulparams/armelf_nbsd.sh: Ditto.
176 * emultempl/armelf.em: Set default for TARGET2_TYPE.
177 (target2_type): New variable.
178 (arm_elf_before_allocation): Don't pass target1_type.
179 (arm_elf_create_output_section_statements): New function.
180 (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
181 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
182 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
183 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
184 * emultempl/armelf_oabi.em (_before_allocation): Remove extra
185 argument to bfd_elf32_arm_process_before_allocation.
186
f6e332e6
AM
1872004-09-17 Alan Modra <amodra@bigpond.net.au>
188
189 * ldexp.c (fold_name): Update u.undef.next refs.
190 * emultempl/pe.em: Likewise.
191 * emultempl/sunos.em: Likewise.
192
9c933e04
AM
1932004-09-17 Alan Modra <amodra@bigpond.net.au>
194
195 * Makefile.am: Run "make dep-am".
196 * Makefile.in: Regenerate.
197 * config.in: Regenerate.
198 * configure: Regenerate.
199 * aclocal.m4: Regenerate.
200 * po/ld.pot: Regenerate.
201
1fa32646
TL
2022004-09-16 Tomer Levi <Tomer.Levi@nsc.com>
203
9c933e04
AM
204 * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
205 (.fini): Likewise.
206 (.jcr): Likewise.
1fa32646 207
b6ee372a
AM
2082004-09-16 Alan Modra <amodra@bigpond.net.au>
209
210 * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
211 to bfd_elf32_arm_process_before_allocation call.
212
9c504268
PB
2132004-09-13 Paul Brook <paul@codesourcery.com>
214
215 * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
216 * emultempl/armelf.em: Use TARGET1_IS_REL. Add --target1-{rel,abs}.
217
d15b04bd
L
2182004-09-07 H.J. Lu <hongjiu.lu@intel.com>
219
220 * configure: Regenerated with autconfig 2.13.
221
875c4330
AS
2222004-09-07 Andreas Schwab <schwab@suse.de>
223
224 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
225 alignment before adjusting DATA_SEGMENT_RELRO_END.
226
229fcec5
MM
2272004-09-06 Mark Mitchell <mark@codesourcery.com>
228
229 * emulparams/armsymbian.sh: Use armbpabi script.
230 * scripttempl/armbpabi.sc: New script.
231
e5a52504
MM
2322004-09-02 Mark Mitchell <mark@codesourcery.com>
233
234 * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
235 (earmsymbian.c): New target.
236 * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
237 * Makefile.in: Regenerated.
238 * aclocal.m4: Likewise.
239 * configure: Likewise.
240 * emulparams/armsymbian.sh: New file.
241
42851540
NC
2422004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
243
244 * scripttempl/elf32crx.sc: Edit file with comments.
245 (.init): Add new section.
246 (.fini): Likewise.
247 (.ctor): Control the linkage order.
248 (.dtor): Likewise.
249
c034e3e0
NC
2502004-08-27 Nick Clifton <nickc@redhat.com>
251
252 * emultempl/pe.em (after_open): Do not assume that either bfd is
9c933e04 253 an archive.
c034e3e0 254
688c58f3
AM
2552004-08-26 Alan Modra <amodra@bigpond.net.au>
256
257 * ldlang.c (lang_init): Don't compare with TRUE.
258
b18c562e
NC
2592004-08-25 Dmitry Diky <diwil@spec.ru>
260
261 * emulparams/msp430all.sh: Fix RAM sizes for all targets.
262 * scripttempl/elf32msp430.sc: Add .profiler section definition.
263
61f5d054
L
2642004-08-24 H.J. Lu <hongjiu.lu@intel.com>
265
266 * ldlang.c (wildcardp): Defined as a macro with strpbrk.
267
e77d3d77
MM
2682004-08-19 Mark Mitchell <mark@codesourcery.com>
269
270 * configure.tgt (arm*-*-symbianelf*): New target.
271 (arm*-*-eabi*): Likewise.
272
3f764659
JJ
2732004-08-19 Jakub Jelinek <jakub@redhat.com>
274
275 * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
276 (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
277 (OPTION_NON_OVERLAPPING_OPD): Define.
278 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
279 --non-overlapping-opd option.
280
a010d60f
AM
2812004-08-18 Alan Modra <amodra@bigpond.net.au>
282
283 PR 338
284 * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
285 was already on the undefs list.
286
c4e33880
AM
2872004-08-17 Alan Modra <amodra@bigpond.net.au>
288
289 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
290 prefix the symbol field too.
291
d003868e
AM
2922004-08-13 Alan Modra <amodra@bigpond.net.au>
293
294 * ldmain.c (link_callbacks): Remove "error_handler".
295 * ldmisc.c: Include elf-bfd.h.
296 (vfinfo): Sort comment. Handle %A. Use %A instead of
297 bfd_get_section_indent.
298 (error_handler): Delete.
299 * ldmisc.h (error_handler): Delete declaration.
300
99877b66
AM
3012004-08-10 Alan Modra <amodra@bigpond.net.au>
302
303 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
304 ppc64_elf_restore_symbols.
305
40e45c8b
AM
3062004-08-09 Alan Modra <amodra@bigpond.net.au>
307
308 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
309 .toc is too large on relocatable linking.
310
ccfa59ea
AM
3112004-08-09 Alan Modra <amodra@bigpond.net.au>
312
313 * emultempl/ppc64elf.em (ppc_after_open): Delete.
314 (LDEMUL_AFTER_OPEN): Don't define.
315
93fd0973
SC
3162004-08-02 Stephane Carrez <stcarrez@nerim.fr>
317
318 * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
319
f1b123db
SC
3202004-08-01 Stephane Carrez <stcarrez@nerim.fr>
321
322 * scripttempl/elfm68hc12.sc: Align text, rodata and data section
323 on power of 2.
324
e7fbc2bf
JT
3252004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
326
327 * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
328
c05e9f04
NC
3292004-07-26 Dmitry Diky <diwil@spec.ru>
330
331 * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
332 msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
333 msp430xG439.
334 * configure.tgt: Likewise.
335 * emulparams/msp430all.sh: Likewise.
336 * Makefile.in: Regenerate.
337
9f61903d
NC
3382004-07-23 Nick Clifton <nickc@redhat.com>
339
340 * emultempl/elf32.em (_place_orphan): Use an already existing
341 section name if that section does not have any flags set.
342
082b7297
L
3432004-07-21 H.J. Lu <hongjiu.lu@intel.com>
344
345 * ldlang.c (already_linked_hash_entry): Removed.
346 (already_linked): Likewise.
347 (already_linked_table): Likewise.
348 (section_already_linked): Call bfd_section_already_linked.
349 (lang_process): Replace already_linked_table_init with
350 bfd_section_already_linked_table_init and check return. Replace
351 already_linked_table_free with bfd_section_already_linked_table_free.
352
76d7af2d
NC
3532004-07-21 Nick Clifton <nickc@redhat.com>
354
355 * ldlang.c (init_os): Make sure that the newly allocated userdata
356 structure is zeroed out.
357
14b3c463
L
3582004-07-19 H.J. Lu <hongjiu.lu@intel.com>
359
360 * NEWS: Mention the new --add-needed/--no-add-needed and
361 --as-needed/--no-as-needed options.
362
e56f61be
L
3632004-07-19 H.J. Lu <hongjiu.lu@intel.com>
364
365 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
366 check the add_needed field.
367 (dt_needed): New struct.
368 (gld${EMULATION_NAME}_try_needed): Change the first argument
369 to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
370 bit in the file where the DT_NEEDED entry comes from.
371 (gld${EMULATION_NAME}_search_needed): Change the second
372 argument to a pointer to struct dt_needed.
373 (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
374 (gld${EMULATION_NAME}_after_open): Likewise.
375
376 * ld.texinfo: Add --add-needed document.
377 * ldlang.c (new_afile): Set p->add_needed.
378 * ldlang.h (lang_input_statement_type): Add add_needed field.
379 * ldmain.h (add_needed): Declare.
380 * ldmain.c (add_needed): New global var.
381 * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
382 OPTION_NO_ADD_NEEDED.
383 (ld_options): Likewise.
384 (parse_args): Handle them.
385
c99b8138
NC
3862004-07-13 Christof Petig <christof@petig-baender.de>
387
388 * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
389 for endian-ness of extracted addend.
390
13ed4151
NC
3912004-07-13 Danny Smith <dannysmith@usesr.sourceforge.net>
392
393 * pe-dll.c (auto_export): Filter on just the import prefix,
394 "_imp_", not "_imp__".
395
1a320fbb
NC
3962004-07-09 Nick Clifton <nickc@redhat.com>
397
398 * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
399
1fe1f39c
NC
4002004-07-06 Tomer Levi <Tomer.Levi@nsc.com>
401
402 * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
403 (eelf32crx.c): New target.
404 * Makefile.in: Regenerate.
405 * configure.tgt: Handle crx-*-elf*.
406 * emulparams/elf32crx.sh: New file.
407 * emultempl/crxelf.em: New file.
408 * scripttempl/elf32crx.sc: New file.
409 * NEWS: Mention new target.
410
85fbca6a
NC
4112004-07-06 Nick Clifton <nickc@redhat.com>
412
413 * Makefile.am: Add eshlsymbian.c.
414 * Makefile.in: Regenerate.
415 * configure.tgt: Add sh*-symbian-elf target.
416 * emulparams/shlsymbian.sh: New file. Configure the
417 sh-symbian-elf linker scripts.
418 * scripttemp/elf32sh-symbian.sc: New file. Linker script
419 template for the sh-symbian-elf target.
420
b71a5181
DA
4212004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
422
423 * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
424 * emulparams/hppalinux.sh: Likewise.
425 * scripttempl/elf.sc: Place .plt just before .got when .plt is in
426 data segment and PLT_BEFORE_GOT is defined.
427
c87db184
CF
4282004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
429
430 * ld.texinfo (WIN32): Document PE weak symbols.
431
f6a8ae81
KK
4322004-07-02 Kaz Kojima <kkojima@rr.iij4u.or.jp>
433
434 * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
435
b602c853
L
4362004-07-01 H.J. Lu <hongjiu.lu@intel.com>
437
438 * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
439 the section.
440
1a23a9e6
AM
4412004-06-29 Alan Modra <amodra@bigpond.net.au>
442
443 * ldlang.c (lang_reset_memory_regions): Save last relax pass section
444 size in rawsize.
445
eea6121a
AM
4462004-06-24 Alan Modra <amodra@bigpond.net.au>
447
448 * ldlang.c (print_output_section_statement): Don't print size before
449 relaxation.
450 (IGNORE_SECTION): Remove bfd arg. Update all callers.
451
452 * ldexp.c (fold_name): .. See below.
453 * ldlang.c (section_already_linked, print_output_section_statement,
454 print_input_section, insert_pad, size_input_section,
455 lang_check_section_addresses, lang_size_sections_1,
456 lang_size_sections, lang_do_assignments_1, lang_set_startof,
457 lang_one_common, lang_reset_memory_regions, lang_process,
458 lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
459 * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
460 * pe-dll.c (process_def_file, generate_reloc): ..
461 * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
462 gld${EMULATION_NAME}_before_allocation): ..
463 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
464 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
465 sh64_elf_${EMULATION_NAME}_after_allocation): ..
466 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
467 * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
468 ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
469 "size" instead of "_raw_size" and "_cooked_size". Expand
470 bfd_section_size macro invocations.
471
552f8272
CF
4722004-06-22 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
473
474 * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
475 ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
476 ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
477 ___crt_xt_end__.
478 (.tls): Define ___tls_start__ and ___tls_end__.
479
aee6f5b4
AO
4802004-06-21 Alexandre Oliva <aoliva@redhat.com>
481
482 * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
483
eea6121a 4842004-06-18 Adam Nemet <anemet@lnxw.com>
f234d5fe 485
eea6121a
AM
486 * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
487 * configure: Regenerate.
f234d5fe 488
dfff4fbe
JJ
4892004-06-15 Jakub Jelinek <jakub@redhat.com>
490
491 * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
492 .gcc_except_table output sections lost accidentally with
493 -z relro patch.
494
a9e0c0c6
AM
4952004-06-15 Alan Modra <amodra@bigpond.net.au>
496
497 * ldwrite.c (build_link_order): Use bfd_get_section_size
498 instead of bfd_get_section_size_before_reloc or _raw_size.
499 * pe-dll.c (process_def_file): Likewise.
500
7115639b
AM
5012004-06-14 Alan Modra <amodra@bigpond.net.au>
502
503 From Richard Wirth <r.wirth@wirthware.de>
504 * ldlang.c (lang_finish): Don't free lang_definedness_table.
505
9ca57817
AM
5062004-05-29 Alan Modra <amodra@bigpond.net.au>
507
508 * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
509 (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
510
f6f9408f
JR
5112004-05-28 Andrew Stubbs <andrew.stubbs@superh.com>
512
513 * testsuite/ld-sh/arch/arch.exp: New test script.
514 * testsuite/ld-sh/arch/arch_expected.txt: New file.
515 * testsuite/ld-sh/arch/sh.s: New file.
516 * testsuite/ld-sh/arch/sh2.s: New file.
517 * testsuite/ld-sh/arch/sh-dsp.s: New file.
518 * testsuite/ld-sh/arch/sh2e.s: New file.
519 * testsuite/ld-sh/arch/sh3-nommu.s: New file.
520 * testsuite/ld-sh/arch/sh3.s: New file.
521 * testsuite/ld-sh/arch/sh3-dsp.s: New file.
522 * testsuite/ld-sh/arch/sh3e.s: New file.
523 * testsuite/ld-sh/arch/sh4-nommu-nofpu.s: New file.
524 * testsuite/ld-sh/arch/sh4-nofpu.s: New file.
525 * testsuite/ld-sh/arch/sh4.s: New file.
526 * testsuite/ld-sh/arch/sh4a-nofpu.s: New file.
527 * testsuite/ld-sh/arch/sh4al-dsp.s: New file.
528 * testsuite/ld-sh/arch/sh4a.s: New file.
529
164e712d
AM
5302004-05-28 Alan Modra <amodra@bigpond.net.au>
531
6feb9908
AM
532 * ldlang.c: Formatting. Wrap long lines, expand bfd_get_section_flags
533 throughout file.
534 * lexsup.c: Formatting. Wrap long lines.
535 * ldwrite.c: Update copyright date.
536
164e712d
AM
537 * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
538 (output_section_callback): Nor SEC_KEEP here.
539 (gc_section_callback): Twiddle SEC_EXCLUDE here.
540 (lang_gc_wild): Delete. Fold into..
541 (lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage
542 collecting.
543 (lang_process): Always call lang_gc_sections.
544 (lang_place_orphans): Handle SEC_EXCLUDE sections.
545 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
546 SEC_EXCLUDE code.
547
b3096250
L
5482004-05-26 H.J. Lu <hongjiu.lu@intel.com>
549
550 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
551 SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
552 * ldlang.c (lang_add_section): Likewise.
553
e49f5022
AM
5542004-05-26 Alan Modra <amodra@bigpond.net.au>
555
556 * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
557 sections when doing a final link. Clear SEC_EXCLUDE when doing
558 a relocable link, except for SEC_DEBUGGING sections.
559 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
560 same condition here to drop SEC_EXCLUDE orphan sections.
561
57ceae94
AM
5622004-05-25 Alan Modra <amodra@bigpond.net.au>
563
564 * ldlang.c (lang_process): Call bfd_merge_sections later, and
565 only when not a relocatable link.
566 (print_input_section): Handle SEC_EXCLUDE sections.
567 (size_input_section): Don't update dot on SEC_EXCLUDE sections.
568 (lang_do_assignments_1): Likewise.
569 * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
570 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
571 * emultempl/hppaelf.em (build_section_lists): Likewise.
572 * emultempl/ppc64elf.em (build_toc_list): Likewise.
573 (build_section_lists): Likewise.
574
a85785bc
AS
5752004-05-23 Andreas Schwab <schwab@suse.de>
576
577 * ld.texinfo (Options): Fix typo in last change.
578
2d643429
NC
5792004-05-21 Andy Chittenden <achittenden@bluearc.com>
580
581 * ld.h (ld_config_type): Add new field: hash_table_size.
582 * ldmain.c: Initialise the new field to zero. If it is non-zero
583 after parsing the linker's command line call
584 bfd_hash_set_default_size.
585 * lexsup.c (option_values): Add OPTION_HASH_SIZE.
586 (ld_options): Add hash-size.
587 (parse_args): Parse --hash-size option. Allow
588 --reduce-memory-overheads to set the default hash table size as
589 well.
590 * ld.texinfo: Document the new switch. Also mention that
591 --reduce-memory-overheads can affect the hash table size.
592 * NEWS: Mention the new feature.
593
35835446
JR
5942004-05-19 J"orn Rennecke <joern.rennecke@superh.com>
595
596 * NEWS: Mention new linker map file generation and the
597 --reduce-memory-overheads option.
598 * ld.texinfo: Document --reduce-memory-overheads option.
599 * ld.h (map_symbol_def): New struct.
600 (struct user_section_struct, section_userdata_type): Rename to:
601 (struct lean_user_section_struct, lean_section_userdata_type).
602 (struct fat_user_section_struct, fat_section_userdata_type): New.
603 (SECTION_USERDATA_SIZE): Define.
604 (args_type): New member reduce_memory_overheads.
605 * ldlang.c (map_obstack): New static variable.
606 (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
607 (lang_map): Unless command_line.reduce_memory_overheads is set,
608 initialize lists of defined symbols for each section.
609 (print_input_section): Unless command_line.reduce_memory_overheads
610 is set, use print_all_symbols.
611 (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
612 * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
613 * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
614 (ld_options): Add entry for --reduce-memory-overheads.
615 (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
616
0841712e
JJ
6172004-05-19 Jakub Jelinek <jakub@redhat.com>
618
619 * ldgram.y (sect_constraint): New.
620 (ONLY_IF_RO, ONLY_IF_RW): New tokens.
621 (section): Add sect_constraint. Pass additional argument
622 to lang_enter_output_section_statement.
623 * mri.c (mri_draw_tree): Pass additional argument to
624 lang_enter_output_section_statement.
625 * emultempl/pe.em (place_orphan): Likewise.
626 (output_prev_sec_find): Disregard output section statements with
627 constraint == -1.
628 * emultempl/mmo.em (output_prev_sec_find): Likewise.
629 (mmo_place_orphan): Pass additional argument to
630 lang_enter_output_section_statement.
631 * emultempl/elf32.em (output_prev_sec_find): Disregard output section
632 statements with constraint == -1.
633 (place_orphan): Pass additional argument to
634 lang_enter_output_section_statement.
635 * ldlang.c (lang_enter_overlay_section): Likewise.
636 (lang_output_section_find_1): New.
637 (lang_output_section_find): Use it.
638 (lang_output_section_statement_lookup_1): New.
639 (lang_output_section_statement_lookup): Use it.
640 (check_section_callback, check_input_sections): New.
641 (map_input_to_output_sections): Check if all input sections
642 are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
643 (strip_excluded_output_sections): Disregard output section statements
644 with constraint == -1.
645 (lang_record_phdrs): Likewise.
646 (lang_enter_output_section_statement): Add constraint argument.
647 Use lang_output_section_statement_lookup_1.
648 * ldlang.h (lang_output_section_statement_type): Add constraint
649 and all_input_readonly fields.
650 (lang_enter_output_section_statement): Adjust prototype.
651 * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
652 * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
653 segment if all input sections are readonly.
654
eea6121a 6552004-05-19 Adam Nemet <anemet@lnxw.com>
f2c50328
NC
656
657 * scripttempl/i386lynx.sc: Remove file.
658
2a16d82a
BW
6592004-05-17 Bob Wilson <bob.wilson@acm.org>
660
661 * ld.texinfo (Output Section Address): Correct subsection name.
662
eea6121a 6632004-05-17 Adam Nemet <anemet@lnxw.com>
b2d65c0b
NC
664
665 * configure.tgt (powerpc-*-lynxos* case): New case.
666 * configure.host (i[3-7]86-*-lynxos* case): Remove case.
667 * emulparams/ppclynx.sh: New file.
668 * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
669 * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
670 (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
671 (eppclynx.c): New rule.
672 * Makefile.in: Regenerate.
673
4b363073
NC
6742004-05-13 Joel Sherrill <joel@oarcorp.com>
675
676 * configure.tgt (or32-*-rtems*): Switch to elf and
677 support versioned targets.
678
9598fbe5
NC
6792004-05-13 Nick Clifton <nickc@redhat.com>
680
681 * po/fr.po: Updated French translation.
682
8c37241b
JJ
6832004-05-11 Jakub Jelinek <jakub@redhat.com>
684
685 * genscripts.sh: Generate -z combreloc -z now -z relro scripts
686 for binaries, -shared and -pie.
687 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
688 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
689 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
690 (OTHER_RELRO_SECTIONS): ... this.
691 * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
692 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
693 -z relro and -z norelro.
694 (gld${EMULATION_NAME}_list_options): Add it to usage.
695 (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
696 -z relro scripts when appropriate.
697 * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
698 Create separate .got.plt section if SEPARATE_GOTPLT.
699 Move sections which are only written during relocation handling
700 to the beginning of RW segment. If NO_SMALL_DATA, move .got
701 before .data. Add DATA_SEGMENT_RELRO_END directive.
702 Include OTHER_RELRO_SECTIONS.
703 * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
704 * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
705 (fold_unary): Likewise.
706 (fold_binary): Handle -z relro.
707 * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
708 exp_dataseg_relro_adjust phases. Add relro_end field.
709 * ldmain.c (main): Initialize link_info.relro to FALSE.
710 * ldlang.c (lang_size_sections): Handle -z relro.
711
e21059f2
MM
7122004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
713
714 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
715
5f9b8920
JR
7162004-05-07 J"orn Rennecke <joern.rennecke@superh.com>
717
718 * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
719 before printing it with %W.
720
26d2d8a2 7212004-05-07 Brian Ford <ford@vss.fsi.com>
eea6121a 722 DJ Delorie <dj@redhat.com>
26d2d8a2
BF
723
724 * emultempl/pe.em (real_flags): New static.
725 (OPTION_LARGE_ADDRESS_AWARE): New define.
726 (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
727 (gld_${EMULATION_NAME}_list_options): Likewise.
728 (gld${EMULATION_NAME}_handle_option): Likewise.
729 (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
730 * ld.texinfo: Document it.
731 * NEWS: Mention it.
732
1b169501
BF
7332004-05-07 Brian Ford <ford@vss.fsi.com>
734
735 * NEWS: Mention DWARF 2 support for i386pe.
736
41cf0c62
AO
7372004-05-05 Alexandre Oliva <aoliva@redhat.com>
738
739 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
740 elf32-frvfdpic.
741
d0d6a25b
AM
7422004-04-30 Alan Modra <amodra@bigpond.net.au>
743
744 * ldlang.c (unique_section_p): Pass section parm, return true on
745 group sections.
746 (output_section_callback): Adjust.
747 * ldlang.h (unique_section_p): Update prototype.
748 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
749
755306be
EB
7502004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
751
eea6121a 752 * ld.texinfo (--gc-sections): Remove restriction for
755306be
EB
753 dynamic linking.
754
8a7140c3
NC
7552004-04-29 Brian Ford <ford@vss.fsi.com>
756
757 * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
758 for DWARF 2/3. Update stab section's syntax.
759
2f9636ba
AM
7602004-04-29 Alan Modra <amodra@bigpond.net.au>
761
762 * pe-dll.c: Revert changes accidentally committed 2004-03-08.
763 (fill_edata): Correct pointer arithmetic.
764
23867d67
CD
7652004-04-21 Chris Demetriou <cgd@broadcom.com>
766
767 * ld.texinfo: Remove MIPS --embedded-relocs documentation.
768 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
769 * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
770 (EXTRA_EM_FILE): Use mipsecoff.em
771 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
772 (EXTRA_EM_FILE): Use mipsecoff.em
773 * emultempl/mipsecoff.em: Restructure to be included as an
774 extra emulation file.
775 (check_sections, gld${EMULATION_NAME}_after_open)
776 (gld${EMULATION_NAME}_after_allocation)
777 (gld${EMULATION_NAME}_get_script)
778 (ld_${EMULATION_NAME}_emulation): Remove
779 (gld${EMULATION_NAME}_before_parse): Rename to...
780 (mipsecoff_before_parse): This.
781 (LDEMUL_BEFORE_PARSE): Define.
782 * emultempl/mipself.em: Remove file.
783 * scripttempl/mips.sc (.rel.sdata): Do not include in output.
784 (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
785 these symbols.
786 * Makefile.am: Remove dependencies on emultempl/mipself.em.
787 * Makefile.in: Regenerate.
788
1502569c
NC
7892004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
790
791 * ld.texinfo (synthesizing on H8/300): Information about linker
792 relaxation support for bit manipulation instructions and system
793 control instructions is added.
794
c894ddfb
HPN
7952004-04-21 Hans-Peter Nilsson <hp@axis.com>
796
797 * NEWS: Mention change in DEFINED semantics.
798
a85bf78e
EB
7992004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
800
801 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
802 (.data): Add KEEP for .gnu.linkonce.d.*personality*.
803 (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
804
58434bc1
BE
8052004-04-21 Ben Elliston <bje@au.ibm.com>
806
807 * ld.texinfo (Simple Example): Add missing punctuation.
808
7a7f4e42
CD
8092004-04-20 Chris Demetriou <cgd@broadcom.com>
810
811 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
812
3737f867
JJ
8132004-04-19 Jakub Jelinek <jakub@redhat.com>
814
815 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
816 specially.
817
3c17e4f7
DS
8182004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
819
820 * scriptempl/pe.sc: Put numbered .ctors.* after .ctors
821 with default priority. Likewise for dtors.
822
279500de
TS
8232004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
824
825 * configure.host: Remove mips*-dec-bsd* target.
826 * configure.tgt: Likewise.
827
52f89c0a
RS
8282004-04-08 Richard Sandiford <rsandifo@redhat.com>
829
830 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
831 * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
832 * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
833 * emultempl/irix.em: New file.
834 * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
835 dependencies.
836 * Makefile.in: Regenerate.
837
e489d0ae
PB
8382004-04-01 Paul Brook <paul@codesourcery.com>
839
840 * emultempl/armelf.em (byteswap_code): Add.
841 (arm_elf_before_allocation): Pass extra parameter.
842 (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
843 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
844 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
845 * emultempl/armelf_oabi.em: Pass extra parameter.
846 * ld.texinfo: Document --be8.
847
7cc8057a
SS
8482004-03-30 Stan Shebs <shebs@apple.com>
849
850 Remove long-obsolete MPW support.
851 * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
852 * Makefile.am (mpw): Remove file-presynthesizing actions.
853 * Makefile.in: Likewise.
854 * ldfile.c (slash): Remove MPW case.
855 * ldlex.l [MPW]: Remove unused definition.
856
0949843d
NC
8572004-03-30 Galit Heller <Galit.Heller@nsc.com>
858
859 * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
860 (eelf32cr16c.c): New target.
861 * Makefile.in: Regenerate.
862 * configure.tgt: Handle cr16c-*-elf*.
863 * emulparams/elf32cr16c.sh: New file.
864 * scripttempl/elfcr16c.sc: Likewise
865 * NEWS: Mention support for new target.
866
0a159ef8
NC
8672004-03-30 Nick Clifton <nickc@redhat.com>
868
869 * po/sv.po: Updated Swedish translation.
870
7a945db6
AM
8712004-03-27 Alan Modra <amodra@bigpond.net.au>
872
873 * emultempl/elf32.em: Update new bfd_elf_discard_info name.
874 * emultempl/hppaelf.em: Likewise.
875 * emultempl/ppc64elf.em: Likewise.
876 * emultempl/sh64elf.em: Likewise.
877
5a580b3a
AM
8782004-03-25 Alan Modra <amodra@bigpond.net.au>
879
880 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
881 size_dynamic_sections call.
882
b9cf773d
AM
8832004-03-23 Alan Modra <amodra@bigpond.net.au>
884
885 PR 51.
886 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
887 link_info.wrap_char.
888
59c2e50f
L
8892004-03-20 H.J. Lu <hongjiu.lu@intel.com>
890
891 * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
892 or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
893
44349745
AO
8942004-03-20 Alexandre Oliva <aoliva@redhat.com>
895
896 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
897
81359a70
AM
8982004-03-19 Alan Modra <amodra@bigpond.net.au>
899
900 * config.in: Regenerate.
901 * po/ld.pot: Regenerate.
902
4a43e768
AM
9032004-03-18 Alan Modra <amodra@bigpond.net.au>
904
905 * ld.texinfo: Add --as-needed doco.
906 * ldmain.c (as_needed): New global var.
907 * ldmain.h (as_needed): Declare.
908 * lexsup.c (option_values): Add OPTION_AS_NEEDED and
909 OPTION_NO_AS_NEEDED.
910 (ld_options): Likewise.
911 (parse_args): Handle them.
912 * ldlang.h (lang_input_statement_type): Add as_needed field.
913 * ldlang.c (new_afile): Set p->as_needed.
914 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
915 (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
916 (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
917
918 * ldlang.c (open_input_bfds): Remove useless cast.
919 (lang_do_assignments_1): Likewise.
920 (lang_for_each_input_section): Delete.
921
9183ed4b
AM
9222004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
923
924 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
925
ee31fbd0
NC
9262004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
927
928 * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
929 private when building implib.
930
e5caec89
NS
9312004-03-05 Nathan Sidwell <nathan@codesourcery.com>
932
933 * ldlang.c (lang_add_section): Don't force SEC_LOAD on
934 SEC_THREAD_LOCAL.
935 (IGNORE_SECTION): Ignore .tbss sections too.
936 (lang_size_sections_1): .tbss sections do not advance dot.
937
cc2f008e
AS
9382004-03-01 Andreas Schwab <schwab@suse.de>
939
940 * ld.texinfo (Options): Fix example for --wrap.
941
f5a95868
DS
9422004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
943
944 * pe-dll.c (fill_edata): Check that exported_symbol_sections is
945 not NULL.
946
177b729b
ILT
9472004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
948
949 * ldlang.c (lang_check): Use %P, not %E, in error message.
950
1b493742
NS
9512004-02-23 Nathan Sidwell <nathan@codesourcery.com>
952
953 * ldlang.h (struct lang_output_section_state): Change processed
954 field's type.
955 * ldexp.c (check, invalid): Remove.
956 (fold_name): Move valid_p assignments. Create undefined symbol
957 when needed. Directly exampine section's processd flag.
958 * ldlang.c (lang_output_section_statement_lookup): Adjust
959 processed field init.
960 (lang_size_sections_1): Allow LOADADDR when determining section's
961 VMA. Adjust error message. Fold data statement's expr.
962 (lang_size_sections): Correctly increment lang_statement_iteration.
963
9642004-02-23 Alan Modra <amodra@bigpond.net.au>
965
966 * ldexp.c (fold_tree): Follow indirect symbols.
b9cf773d 967
876f4090
NS
9682004-02-20 Nathan Sidwell <nathan@codesourcery.com>
969
970 * ldgram.y (exp): Add two operand ALIGN.
971 * ldexp.c (fold_binary): Add ALIGN_K case.
972 * ld.texinfo (ALIGN): Document two operand version.
973
384d938f
NS
9742004-02-19 Nathan Sidwell <nathan@codesourcery.com>
975
976 * ldlang.c (map_input_to_output_sections): Initialize sections
977 mentioned in a data statement expression.
978 (lang_do_assignments_1): Add data statement's expression's
979 section's vma.
980
b6ca8815
NS
9812004-02-18 Nathan Sidwell <nathan@codesourcery.com>
982
983 * ldgram.y (statement_anywhere): Add assert rule.
984 * ldlang.c (exp_init_os): Add assert case.
985
c92c35e7
AC
9862004-02-14 Andrew Cagney <cagney@redhat.com>
987
988 * ldmain.c (remove_output): Call bfd_cache_close.
989
9bf78c99
RS
9902004-02-14 Richard Sandiford <rsandifo@redhat.com>
991
992 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
993 .MIPS.content* and .MIPS.events* sections.
994
f3806916
DJ
9952004-02-09 Daniel Jacobowitz <drow@mvista.com>
996
997 * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
998 .note.gnu.arm.ident to after allocated sections. Mark its
999 address as 0.
1000
4c8e70d7
DJ
10012004-02-09 Daniel Jacobowitz <drow@mvista.com>
1002
1003 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
1004 * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
1005 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
1006 * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
1007 * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
1008
ff71f4f7
NC
10092004-02-05 Nick Clifton <nickc@redhat.com>
1010
1011 * emultempl/pe.em (_after_open): Fix typo in previous delta.
1012
07a68a80
NC
10132004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
1014
1015 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
1016
1dd3bf68
AM
10172004-01-28 Alan Modra <amodra@bigpond.net.au>
1018
586196d5
AM
1019 * genscripts.sh: Fix typo.
1020
1dd3bf68
AM
1021 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
1022
13d9421f
JJ
10232004-01-24 Jakub Jelinek <jakub@redhat.com>
1024
1025 * emulparams/elf64_ia64.sh: Put .rela.opd into
1026 OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
1027
4d8907ac
DS
10282004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
1029
1030 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
1031 * ld.texinfo (--omagic): Note that writable text section
1032 does not conform to published PE-COFF specs.
1033 (--enable-auto-import): Likewise.
1034
e5c60db5
AM
10352004-01-15 Alan Modra <amodra@bigpond.net.au>
1036
1037 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
1038
6bdafbeb
NC
10392004-01-13 Nick Clifton <nickc@redhat.com>
1040
1041 * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
1042 which if true will prevent the LMA region being used as a
1043 replacement for a default VMA region.
586196d5
AM
1044 (lang_leave_output_section_statement): Pass extra parameter.
1045 (lang_leave_overlay): Likewise.
1046 * ld.texinfo (Output Section LMA): Document that the LMA
6bdafbeb
NC
1047 region can be set to the VMA region if no VMA has been set.
1048 * ldlang.h (struct lang_output_section_phdr_list): Create a
1049 typedef for this type. Minor formatting fixes.
586196d5 1050
9dfc8ab2
NC
10512004-01-13 Nick Clifton <nickc@redhat.com>
1052
1053 * ldlang.c (lang_size_sections_1): If dot is advanced, then
1054 assume that the section should be allocated.
1055
8325c4dd
AM
10562004-01-13 Alan Modra <amodra@bigpond.net.au>
1057
1058 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
1059 sections. Do ignore SEC_NEVER_LOAD sections.
1060 (lang_size_sections_1): Remove test made redundant with the above.
1061
83490352
AM
10622004-01-09 Alan Modra <amodra@bigpond.net.au>
1063
1064 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
1065 program_header_size.
1066
005e1118
AO
10672004-01-06 Alexandre Oliva <aoliva@redhat.com>
1068
1069 2003-11-28 Alexandre Oliva <aoliva@redhat.com>
1070 * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
1071 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
1072 * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
1073 (MAXPAGESIZE): Set to 64Kb.
1074 (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
1075 __ROFIXUP_END__. Don't map .rofixup.got any more.
1076 * emulparams/elf32frv.sh (NOP): Set.
1077 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
1078 * configure.tgt: Add frv-*-*linux*.
1079 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
1080 * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
1081 (eelf32frvfd.c): New.
1082 * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
1083 * emulparams/elf32frv.sh: Reverted previous two patches.
1084 * emulparams/elf32frvfd.sh: New.
1085 * Makefile.in: Rebuilt.
1086 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
1087 * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
1088 .rofixup.got to .rofixup.
1089 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
1090 * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
1091 (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
1092
060feee5
JJ
10932004-01-05 Jakub Jelinek <jakub@redhat.com>
1094
1095 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
1096 * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
1097
5e2f1575
AM
10982004-01-03 Alan Modra <amodra@bigpond.net.au>
1099
e5caa5e0
AM
1100 * ldexp.c (align_n): Make static.
1101 * ldexp.h (align_n): Delete declaration.
1102 * ldlang.h (lang_enter_output_section_statement): Remove
1103 block_value param.
1104 * ldlang.c (lang_enter_output_section_statement): Likewise.
1105 (TO_ADDR, TO_SIZE): Define.
c2df3ea5 1106 (opb_shift): New var.
e5caa5e0
AM
1107 (init_opb): New function.
1108 (print_input_section): Call init_opb and use TO_ADDR.
1109 (print_data_statement, print_reloc_statement): Likewise.
1110 (print_padding_statement): Likewise.
c2df3ea5 1111 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
e5caa5e0
AM
1112 (lang_check_section_addresses): Likewise.
1113 (lang_size_sections_1): Likewise.
1114 (lang_do_assignments_1): Likewise.
1115 (lang_set_startof): Likewise.
c2df3ea5 1116 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
e5caa5e0 1117 (lang_process): Call init_opb.
c2df3ea5 1118 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
e5caa5e0
AM
1119 (lang_enter_overlay_section): Adjust
1120 lang_enter_output_section_statement call.
1121 * ldgram.y: Likewise.
1122 * mri.c (mri_draw_tree): Likewise.
1123 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1124 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1125 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1126
5e2f1575
AM
1127 * ldfile.c (ldfile_set_output_arch): Add defarch param.
1128 * ldfile.h (ldfile_set_output_arch): Ditto.
1129 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
1130 ldfile_set_output_arch.
1131 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1132 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
1133 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
1134 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1135 * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
1136 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1137 * ldgram.y: Adjust ldfile_set_output_arch call.
1138 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1139 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
1140 * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
1141 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
1142 * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
1143 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1144 * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1145
b50c15dc
NC
11462004-01-02 Bernardo Innocenti <bernie@develer.com>
1147
1148 * configure.tgt: Add m68k-uClinux target.
6edf0760 1149
c9e214e5 1150For older changes see ChangeLog-0203
252b5132
RH
1151\f
1152Local Variables:
1153mode: change-log
1154left-margin: 8
1155fill-column: 74
1156version-control: never
1157End:
This page took 0.412213 seconds and 4 git commands to generate.