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