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