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