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