]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/ChangeLog
bfd/
[thirdparty/binutils-gdb.git] / ld / ChangeLog
CommitLineData
eea6121a
AM
12004-06-24 Alan Modra <amodra@bigpond.net.au>
2
3 * ldlang.c (print_output_section_statement): Don't print size before
4 relaxation.
5 (IGNORE_SECTION): Remove bfd arg. Update all callers.
6
7 * ldexp.c (fold_name): .. See below.
8 * ldlang.c (section_already_linked, print_output_section_statement,
9 print_input_section, insert_pad, size_input_section,
10 lang_check_section_addresses, lang_size_sections_1,
11 lang_size_sections, lang_do_assignments_1, lang_set_startof,
12 lang_one_common, lang_reset_memory_regions, lang_process,
13 lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
14 * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
15 * pe-dll.c (process_def_file, generate_reloc): ..
16 * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
17 gld${EMULATION_NAME}_before_allocation): ..
18 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
19 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
20 sh64_elf_${EMULATION_NAME}_after_allocation): ..
21 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
22 * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
23 ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
24 "size" instead of "_raw_size" and "_cooked_size". Expand
25 bfd_section_size macro invocations.
26
552f8272
CF
272004-06-22 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
28
29 * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
30 ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
31 ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
32 ___crt_xt_end__.
33 (.tls): Define ___tls_start__ and ___tls_end__.
34
aee6f5b4
AO
352004-06-21 Alexandre Oliva <aoliva@redhat.com>
36
37 * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
38
eea6121a 392004-06-18 Adam Nemet <anemet@lnxw.com>
f234d5fe 40
eea6121a
AM
41 * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
42 * configure: Regenerate.
f234d5fe 43
dfff4fbe
JJ
442004-06-15 Jakub Jelinek <jakub@redhat.com>
45
46 * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
47 .gcc_except_table output sections lost accidentally with
48 -z relro patch.
49
a9e0c0c6
AM
502004-06-15 Alan Modra <amodra@bigpond.net.au>
51
52 * ldwrite.c (build_link_order): Use bfd_get_section_size
53 instead of bfd_get_section_size_before_reloc or _raw_size.
54 * pe-dll.c (process_def_file): Likewise.
55
7115639b
AM
562004-06-14 Alan Modra <amodra@bigpond.net.au>
57
58 From Richard Wirth <r.wirth@wirthware.de>
59 * ldlang.c (lang_finish): Don't free lang_definedness_table.
60
9ca57817
AM
612004-05-29 Alan Modra <amodra@bigpond.net.au>
62
63 * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
64 (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
65
f6f9408f
JR
662004-05-28 Andrew Stubbs <andrew.stubbs@superh.com>
67
68 * testsuite/ld-sh/arch/arch.exp: New test script.
69 * testsuite/ld-sh/arch/arch_expected.txt: New file.
70 * testsuite/ld-sh/arch/sh.s: New file.
71 * testsuite/ld-sh/arch/sh2.s: New file.
72 * testsuite/ld-sh/arch/sh-dsp.s: New file.
73 * testsuite/ld-sh/arch/sh2e.s: New file.
74 * testsuite/ld-sh/arch/sh3-nommu.s: New file.
75 * testsuite/ld-sh/arch/sh3.s: New file.
76 * testsuite/ld-sh/arch/sh3-dsp.s: New file.
77 * testsuite/ld-sh/arch/sh3e.s: New file.
78 * testsuite/ld-sh/arch/sh4-nommu-nofpu.s: New file.
79 * testsuite/ld-sh/arch/sh4-nofpu.s: New file.
80 * testsuite/ld-sh/arch/sh4.s: New file.
81 * testsuite/ld-sh/arch/sh4a-nofpu.s: New file.
82 * testsuite/ld-sh/arch/sh4al-dsp.s: New file.
83 * testsuite/ld-sh/arch/sh4a.s: New file.
84
164e712d
AM
852004-05-28 Alan Modra <amodra@bigpond.net.au>
86
6feb9908
AM
87 * ldlang.c: Formatting. Wrap long lines, expand bfd_get_section_flags
88 throughout file.
89 * lexsup.c: Formatting. Wrap long lines.
90 * ldwrite.c: Update copyright date.
91
164e712d
AM
92 * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
93 (output_section_callback): Nor SEC_KEEP here.
94 (gc_section_callback): Twiddle SEC_EXCLUDE here.
95 (lang_gc_wild): Delete. Fold into..
96 (lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage
97 collecting.
98 (lang_process): Always call lang_gc_sections.
99 (lang_place_orphans): Handle SEC_EXCLUDE sections.
100 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
101 SEC_EXCLUDE code.
102
b3096250
L
1032004-05-26 H.J. Lu <hongjiu.lu@intel.com>
104
105 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
106 SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
107 * ldlang.c (lang_add_section): Likewise.
108
e49f5022
AM
1092004-05-26 Alan Modra <amodra@bigpond.net.au>
110
111 * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
112 sections when doing a final link. Clear SEC_EXCLUDE when doing
113 a relocable link, except for SEC_DEBUGGING sections.
114 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
115 same condition here to drop SEC_EXCLUDE orphan sections.
116
57ceae94
AM
1172004-05-25 Alan Modra <amodra@bigpond.net.au>
118
119 * ldlang.c (lang_process): Call bfd_merge_sections later, and
120 only when not a relocatable link.
121 (print_input_section): Handle SEC_EXCLUDE sections.
122 (size_input_section): Don't update dot on SEC_EXCLUDE sections.
123 (lang_do_assignments_1): Likewise.
124 * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
125 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
126 * emultempl/hppaelf.em (build_section_lists): Likewise.
127 * emultempl/ppc64elf.em (build_toc_list): Likewise.
128 (build_section_lists): Likewise.
129
a85785bc
AS
1302004-05-23 Andreas Schwab <schwab@suse.de>
131
132 * ld.texinfo (Options): Fix typo in last change.
133
2d643429
NC
1342004-05-21 Andy Chittenden <achittenden@bluearc.com>
135
136 * ld.h (ld_config_type): Add new field: hash_table_size.
137 * ldmain.c: Initialise the new field to zero. If it is non-zero
138 after parsing the linker's command line call
139 bfd_hash_set_default_size.
140 * lexsup.c (option_values): Add OPTION_HASH_SIZE.
141 (ld_options): Add hash-size.
142 (parse_args): Parse --hash-size option. Allow
143 --reduce-memory-overheads to set the default hash table size as
144 well.
145 * ld.texinfo: Document the new switch. Also mention that
146 --reduce-memory-overheads can affect the hash table size.
147 * NEWS: Mention the new feature.
148
35835446
JR
1492004-05-19 J"orn Rennecke <joern.rennecke@superh.com>
150
151 * NEWS: Mention new linker map file generation and the
152 --reduce-memory-overheads option.
153 * ld.texinfo: Document --reduce-memory-overheads option.
154 * ld.h (map_symbol_def): New struct.
155 (struct user_section_struct, section_userdata_type): Rename to:
156 (struct lean_user_section_struct, lean_section_userdata_type).
157 (struct fat_user_section_struct, fat_section_userdata_type): New.
158 (SECTION_USERDATA_SIZE): Define.
159 (args_type): New member reduce_memory_overheads.
160 * ldlang.c (map_obstack): New static variable.
161 (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
162 (lang_map): Unless command_line.reduce_memory_overheads is set,
163 initialize lists of defined symbols for each section.
164 (print_input_section): Unless command_line.reduce_memory_overheads
165 is set, use print_all_symbols.
166 (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
167 * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
168 * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
169 (ld_options): Add entry for --reduce-memory-overheads.
170 (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
171
0841712e
JJ
1722004-05-19 Jakub Jelinek <jakub@redhat.com>
173
174 * ldgram.y (sect_constraint): New.
175 (ONLY_IF_RO, ONLY_IF_RW): New tokens.
176 (section): Add sect_constraint. Pass additional argument
177 to lang_enter_output_section_statement.
178 * mri.c (mri_draw_tree): Pass additional argument to
179 lang_enter_output_section_statement.
180 * emultempl/pe.em (place_orphan): Likewise.
181 (output_prev_sec_find): Disregard output section statements with
182 constraint == -1.
183 * emultempl/mmo.em (output_prev_sec_find): Likewise.
184 (mmo_place_orphan): Pass additional argument to
185 lang_enter_output_section_statement.
186 * emultempl/elf32.em (output_prev_sec_find): Disregard output section
187 statements with constraint == -1.
188 (place_orphan): Pass additional argument to
189 lang_enter_output_section_statement.
190 * ldlang.c (lang_enter_overlay_section): Likewise.
191 (lang_output_section_find_1): New.
192 (lang_output_section_find): Use it.
193 (lang_output_section_statement_lookup_1): New.
194 (lang_output_section_statement_lookup): Use it.
195 (check_section_callback, check_input_sections): New.
196 (map_input_to_output_sections): Check if all input sections
197 are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
198 (strip_excluded_output_sections): Disregard output section statements
199 with constraint == -1.
200 (lang_record_phdrs): Likewise.
201 (lang_enter_output_section_statement): Add constraint argument.
202 Use lang_output_section_statement_lookup_1.
203 * ldlang.h (lang_output_section_statement_type): Add constraint
204 and all_input_readonly fields.
205 (lang_enter_output_section_statement): Adjust prototype.
206 * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
207 * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
208 segment if all input sections are readonly.
209
eea6121a 2102004-05-19 Adam Nemet <anemet@lnxw.com>
f2c50328
NC
211
212 * scripttempl/i386lynx.sc: Remove file.
213
2a16d82a
BW
2142004-05-17 Bob Wilson <bob.wilson@acm.org>
215
216 * ld.texinfo (Output Section Address): Correct subsection name.
217
eea6121a 2182004-05-17 Adam Nemet <anemet@lnxw.com>
b2d65c0b
NC
219
220 * configure.tgt (powerpc-*-lynxos* case): New case.
221 * configure.host (i[3-7]86-*-lynxos* case): Remove case.
222 * emulparams/ppclynx.sh: New file.
223 * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
224 * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
225 (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
226 (eppclynx.c): New rule.
227 * Makefile.in: Regenerate.
228
4b363073
NC
2292004-05-13 Joel Sherrill <joel@oarcorp.com>
230
231 * configure.tgt (or32-*-rtems*): Switch to elf and
232 support versioned targets.
233
9598fbe5
NC
2342004-05-13 Nick Clifton <nickc@redhat.com>
235
236 * po/fr.po: Updated French translation.
237
8c37241b
JJ
2382004-05-11 Jakub Jelinek <jakub@redhat.com>
239
240 * genscripts.sh: Generate -z combreloc -z now -z relro scripts
241 for binaries, -shared and -pie.
242 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
243 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
244 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
245 (OTHER_RELRO_SECTIONS): ... this.
246 * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
247 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
248 -z relro and -z norelro.
249 (gld${EMULATION_NAME}_list_options): Add it to usage.
250 (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
251 -z relro scripts when appropriate.
252 * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
253 Create separate .got.plt section if SEPARATE_GOTPLT.
254 Move sections which are only written during relocation handling
255 to the beginning of RW segment. If NO_SMALL_DATA, move .got
256 before .data. Add DATA_SEGMENT_RELRO_END directive.
257 Include OTHER_RELRO_SECTIONS.
258 * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
259 * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
260 (fold_unary): Likewise.
261 (fold_binary): Handle -z relro.
262 * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
263 exp_dataseg_relro_adjust phases. Add relro_end field.
264 * ldmain.c (main): Initialize link_info.relro to FALSE.
265 * ldlang.c (lang_size_sections): Handle -z relro.
266
e21059f2
MM
2672004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
268
269 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
270
5f9b8920
JR
2712004-05-07 J"orn Rennecke <joern.rennecke@superh.com>
272
273 * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
274 before printing it with %W.
275
26d2d8a2 2762004-05-07 Brian Ford <ford@vss.fsi.com>
eea6121a 277 DJ Delorie <dj@redhat.com>
26d2d8a2
BF
278
279 * emultempl/pe.em (real_flags): New static.
280 (OPTION_LARGE_ADDRESS_AWARE): New define.
281 (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
282 (gld_${EMULATION_NAME}_list_options): Likewise.
283 (gld${EMULATION_NAME}_handle_option): Likewise.
284 (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
285 * ld.texinfo: Document it.
286 * NEWS: Mention it.
287
1b169501
BF
2882004-05-07 Brian Ford <ford@vss.fsi.com>
289
290 * NEWS: Mention DWARF 2 support for i386pe.
291
41cf0c62
AO
2922004-05-05 Alexandre Oliva <aoliva@redhat.com>
293
294 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
295 elf32-frvfdpic.
296
d0d6a25b
AM
2972004-04-30 Alan Modra <amodra@bigpond.net.au>
298
299 * ldlang.c (unique_section_p): Pass section parm, return true on
300 group sections.
301 (output_section_callback): Adjust.
302 * ldlang.h (unique_section_p): Update prototype.
303 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
304
755306be
EB
3052004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
306
eea6121a 307 * ld.texinfo (--gc-sections): Remove restriction for
755306be
EB
308 dynamic linking.
309
8a7140c3
NC
3102004-04-29 Brian Ford <ford@vss.fsi.com>
311
312 * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
313 for DWARF 2/3. Update stab section's syntax.
314
2f9636ba
AM
3152004-04-29 Alan Modra <amodra@bigpond.net.au>
316
317 * pe-dll.c: Revert changes accidentally committed 2004-03-08.
318 (fill_edata): Correct pointer arithmetic.
319
23867d67
CD
3202004-04-21 Chris Demetriou <cgd@broadcom.com>
321
322 * ld.texinfo: Remove MIPS --embedded-relocs documentation.
323 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
324 * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
325 (EXTRA_EM_FILE): Use mipsecoff.em
326 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
327 (EXTRA_EM_FILE): Use mipsecoff.em
328 * emultempl/mipsecoff.em: Restructure to be included as an
329 extra emulation file.
330 (check_sections, gld${EMULATION_NAME}_after_open)
331 (gld${EMULATION_NAME}_after_allocation)
332 (gld${EMULATION_NAME}_get_script)
333 (ld_${EMULATION_NAME}_emulation): Remove
334 (gld${EMULATION_NAME}_before_parse): Rename to...
335 (mipsecoff_before_parse): This.
336 (LDEMUL_BEFORE_PARSE): Define.
337 * emultempl/mipself.em: Remove file.
338 * scripttempl/mips.sc (.rel.sdata): Do not include in output.
339 (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
340 these symbols.
341 * Makefile.am: Remove dependencies on emultempl/mipself.em.
342 * Makefile.in: Regenerate.
343
1502569c
NC
3442004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
345
346 * ld.texinfo (synthesizing on H8/300): Information about linker
347 relaxation support for bit manipulation instructions and system
348 control instructions is added.
349
c894ddfb
HPN
3502004-04-21 Hans-Peter Nilsson <hp@axis.com>
351
352 * NEWS: Mention change in DEFINED semantics.
353
a85bf78e
EB
3542004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
355
356 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
357 (.data): Add KEEP for .gnu.linkonce.d.*personality*.
358 (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
359
58434bc1
BE
3602004-04-21 Ben Elliston <bje@au.ibm.com>
361
362 * ld.texinfo (Simple Example): Add missing punctuation.
363
7a7f4e42
CD
3642004-04-20 Chris Demetriou <cgd@broadcom.com>
365
366 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
367
3737f867
JJ
3682004-04-19 Jakub Jelinek <jakub@redhat.com>
369
370 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
371 specially.
372
3c17e4f7
DS
3732004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
374
375 * scriptempl/pe.sc: Put numbered .ctors.* after .ctors
376 with default priority. Likewise for dtors.
377
279500de
TS
3782004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
379
380 * configure.host: Remove mips*-dec-bsd* target.
381 * configure.tgt: Likewise.
382
52f89c0a
RS
3832004-04-08 Richard Sandiford <rsandifo@redhat.com>
384
385 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
386 * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
387 * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
388 * emultempl/irix.em: New file.
389 * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
390 dependencies.
391 * Makefile.in: Regenerate.
392
e489d0ae
PB
3932004-04-01 Paul Brook <paul@codesourcery.com>
394
395 * emultempl/armelf.em (byteswap_code): Add.
396 (arm_elf_before_allocation): Pass extra parameter.
397 (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
398 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
399 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
400 * emultempl/armelf_oabi.em: Pass extra parameter.
401 * ld.texinfo: Document --be8.
402
7cc8057a
SS
4032004-03-30 Stan Shebs <shebs@apple.com>
404
405 Remove long-obsolete MPW support.
406 * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
407 * Makefile.am (mpw): Remove file-presynthesizing actions.
408 * Makefile.in: Likewise.
409 * ldfile.c (slash): Remove MPW case.
410 * ldlex.l [MPW]: Remove unused definition.
411
0949843d
NC
4122004-03-30 Galit Heller <Galit.Heller@nsc.com>
413
414 * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
415 (eelf32cr16c.c): New target.
416 * Makefile.in: Regenerate.
417 * configure.tgt: Handle cr16c-*-elf*.
418 * emulparams/elf32cr16c.sh: New file.
419 * scripttempl/elfcr16c.sc: Likewise
420 * NEWS: Mention support for new target.
421
0a159ef8
NC
4222004-03-30 Nick Clifton <nickc@redhat.com>
423
424 * po/sv.po: Updated Swedish translation.
425
7a945db6
AM
4262004-03-27 Alan Modra <amodra@bigpond.net.au>
427
428 * emultempl/elf32.em: Update new bfd_elf_discard_info name.
429 * emultempl/hppaelf.em: Likewise.
430 * emultempl/ppc64elf.em: Likewise.
431 * emultempl/sh64elf.em: Likewise.
432
5a580b3a
AM
4332004-03-25 Alan Modra <amodra@bigpond.net.au>
434
435 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
436 size_dynamic_sections call.
437
b9cf773d
AM
4382004-03-23 Alan Modra <amodra@bigpond.net.au>
439
440 PR 51.
441 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
442 link_info.wrap_char.
443
59c2e50f
L
4442004-03-20 H.J. Lu <hongjiu.lu@intel.com>
445
446 * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
447 or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
448
44349745
AO
4492004-03-20 Alexandre Oliva <aoliva@redhat.com>
450
451 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
452
81359a70
AM
4532004-03-19 Alan Modra <amodra@bigpond.net.au>
454
455 * config.in: Regenerate.
456 * po/ld.pot: Regenerate.
457
4a43e768
AM
4582004-03-18 Alan Modra <amodra@bigpond.net.au>
459
460 * ld.texinfo: Add --as-needed doco.
461 * ldmain.c (as_needed): New global var.
462 * ldmain.h (as_needed): Declare.
463 * lexsup.c (option_values): Add OPTION_AS_NEEDED and
464 OPTION_NO_AS_NEEDED.
465 (ld_options): Likewise.
466 (parse_args): Handle them.
467 * ldlang.h (lang_input_statement_type): Add as_needed field.
468 * ldlang.c (new_afile): Set p->as_needed.
469 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
470 (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
471 (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
472
473 * ldlang.c (open_input_bfds): Remove useless cast.
474 (lang_do_assignments_1): Likewise.
475 (lang_for_each_input_section): Delete.
476
9183ed4b
AM
4772004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
478
479 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
480
ee31fbd0
NC
4812004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
482
483 * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
484 private when building implib.
485
e5caec89
NS
4862004-03-05 Nathan Sidwell <nathan@codesourcery.com>
487
488 * ldlang.c (lang_add_section): Don't force SEC_LOAD on
489 SEC_THREAD_LOCAL.
490 (IGNORE_SECTION): Ignore .tbss sections too.
491 (lang_size_sections_1): .tbss sections do not advance dot.
492
cc2f008e
AS
4932004-03-01 Andreas Schwab <schwab@suse.de>
494
495 * ld.texinfo (Options): Fix example for --wrap.
496
f5a95868
DS
4972004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
498
499 * pe-dll.c (fill_edata): Check that exported_symbol_sections is
500 not NULL.
501
177b729b
ILT
5022004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
503
504 * ldlang.c (lang_check): Use %P, not %E, in error message.
505
1b493742
NS
5062004-02-23 Nathan Sidwell <nathan@codesourcery.com>
507
508 * ldlang.h (struct lang_output_section_state): Change processed
509 field's type.
510 * ldexp.c (check, invalid): Remove.
511 (fold_name): Move valid_p assignments. Create undefined symbol
512 when needed. Directly exampine section's processd flag.
513 * ldlang.c (lang_output_section_statement_lookup): Adjust
514 processed field init.
515 (lang_size_sections_1): Allow LOADADDR when determining section's
516 VMA. Adjust error message. Fold data statement's expr.
517 (lang_size_sections): Correctly increment lang_statement_iteration.
518
5192004-02-23 Alan Modra <amodra@bigpond.net.au>
520
521 * ldexp.c (fold_tree): Follow indirect symbols.
b9cf773d 522
876f4090
NS
5232004-02-20 Nathan Sidwell <nathan@codesourcery.com>
524
525 * ldgram.y (exp): Add two operand ALIGN.
526 * ldexp.c (fold_binary): Add ALIGN_K case.
527 * ld.texinfo (ALIGN): Document two operand version.
528
384d938f
NS
5292004-02-19 Nathan Sidwell <nathan@codesourcery.com>
530
531 * ldlang.c (map_input_to_output_sections): Initialize sections
532 mentioned in a data statement expression.
533 (lang_do_assignments_1): Add data statement's expression's
534 section's vma.
535
b6ca8815
NS
5362004-02-18 Nathan Sidwell <nathan@codesourcery.com>
537
538 * ldgram.y (statement_anywhere): Add assert rule.
539 * ldlang.c (exp_init_os): Add assert case.
540
c92c35e7
AC
5412004-02-14 Andrew Cagney <cagney@redhat.com>
542
543 * ldmain.c (remove_output): Call bfd_cache_close.
544
9bf78c99
RS
5452004-02-14 Richard Sandiford <rsandifo@redhat.com>
546
547 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
548 .MIPS.content* and .MIPS.events* sections.
549
f3806916
DJ
5502004-02-09 Daniel Jacobowitz <drow@mvista.com>
551
552 * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
553 .note.gnu.arm.ident to after allocated sections. Mark its
554 address as 0.
555
4c8e70d7
DJ
5562004-02-09 Daniel Jacobowitz <drow@mvista.com>
557
558 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
559 * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
560 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
561 * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
562 * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
563
ff71f4f7
NC
5642004-02-05 Nick Clifton <nickc@redhat.com>
565
566 * emultempl/pe.em (_after_open): Fix typo in previous delta.
567
07a68a80
NC
5682004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
569
570 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
571
1dd3bf68
AM
5722004-01-28 Alan Modra <amodra@bigpond.net.au>
573
586196d5
AM
574 * genscripts.sh: Fix typo.
575
1dd3bf68
AM
576 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
577
13d9421f
JJ
5782004-01-24 Jakub Jelinek <jakub@redhat.com>
579
580 * emulparams/elf64_ia64.sh: Put .rela.opd into
581 OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
582
4d8907ac
DS
5832004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
584
585 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
586 * ld.texinfo (--omagic): Note that writable text section
587 does not conform to published PE-COFF specs.
588 (--enable-auto-import): Likewise.
589
e5c60db5
AM
5902004-01-15 Alan Modra <amodra@bigpond.net.au>
591
592 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
593
6bdafbeb
NC
5942004-01-13 Nick Clifton <nickc@redhat.com>
595
596 * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
597 which if true will prevent the LMA region being used as a
598 replacement for a default VMA region.
586196d5
AM
599 (lang_leave_output_section_statement): Pass extra parameter.
600 (lang_leave_overlay): Likewise.
601 * ld.texinfo (Output Section LMA): Document that the LMA
6bdafbeb
NC
602 region can be set to the VMA region if no VMA has been set.
603 * ldlang.h (struct lang_output_section_phdr_list): Create a
604 typedef for this type. Minor formatting fixes.
586196d5 605
9dfc8ab2
NC
6062004-01-13 Nick Clifton <nickc@redhat.com>
607
608 * ldlang.c (lang_size_sections_1): If dot is advanced, then
609 assume that the section should be allocated.
610
8325c4dd
AM
6112004-01-13 Alan Modra <amodra@bigpond.net.au>
612
613 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
614 sections. Do ignore SEC_NEVER_LOAD sections.
615 (lang_size_sections_1): Remove test made redundant with the above.
616
83490352
AM
6172004-01-09 Alan Modra <amodra@bigpond.net.au>
618
619 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
620 program_header_size.
621
005e1118
AO
6222004-01-06 Alexandre Oliva <aoliva@redhat.com>
623
624 2003-11-28 Alexandre Oliva <aoliva@redhat.com>
625 * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
626 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
627 * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
628 (MAXPAGESIZE): Set to 64Kb.
629 (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
630 __ROFIXUP_END__. Don't map .rofixup.got any more.
631 * emulparams/elf32frv.sh (NOP): Set.
632 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
633 * configure.tgt: Add frv-*-*linux*.
634 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
635 * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
636 (eelf32frvfd.c): New.
637 * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
638 * emulparams/elf32frv.sh: Reverted previous two patches.
639 * emulparams/elf32frvfd.sh: New.
640 * Makefile.in: Rebuilt.
641 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
642 * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
643 .rofixup.got to .rofixup.
644 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
645 * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
646 (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
647
060feee5
JJ
6482004-01-05 Jakub Jelinek <jakub@redhat.com>
649
650 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
651 * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
652
5e2f1575
AM
6532004-01-03 Alan Modra <amodra@bigpond.net.au>
654
e5caa5e0
AM
655 * ldexp.c (align_n): Make static.
656 * ldexp.h (align_n): Delete declaration.
657 * ldlang.h (lang_enter_output_section_statement): Remove
658 block_value param.
659 * ldlang.c (lang_enter_output_section_statement): Likewise.
660 (TO_ADDR, TO_SIZE): Define.
c2df3ea5 661 (opb_shift): New var.
e5caa5e0
AM
662 (init_opb): New function.
663 (print_input_section): Call init_opb and use TO_ADDR.
664 (print_data_statement, print_reloc_statement): Likewise.
665 (print_padding_statement): Likewise.
c2df3ea5 666 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
e5caa5e0
AM
667 (lang_check_section_addresses): Likewise.
668 (lang_size_sections_1): Likewise.
669 (lang_do_assignments_1): Likewise.
670 (lang_set_startof): Likewise.
c2df3ea5 671 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
e5caa5e0 672 (lang_process): Call init_opb.
c2df3ea5 673 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
e5caa5e0
AM
674 (lang_enter_overlay_section): Adjust
675 lang_enter_output_section_statement call.
676 * ldgram.y: Likewise.
677 * mri.c (mri_draw_tree): Likewise.
678 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
679 * emultempl/mmo.em (mmo_place_orphan): Likewise.
680 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
681
5e2f1575
AM
682 * ldfile.c (ldfile_set_output_arch): Add defarch param.
683 * ldfile.h (ldfile_set_output_arch): Ditto.
684 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
685 ldfile_set_output_arch.
686 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
687 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
688 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
689 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
690 * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
691 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
692 * ldgram.y: Adjust ldfile_set_output_arch call.
693 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
694 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
695 * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
696 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
697 * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
698 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
699 * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
700
b50c15dc
NC
7012004-01-02 Bernardo Innocenti <bernie@develer.com>
702
703 * configure.tgt: Add m68k-uClinux target.
6edf0760 704
c9e214e5 705For older changes see ChangeLog-0203
252b5132
RH
706\f
707Local Variables:
708mode: change-log
709left-margin: 8
710fill-column: 74
711version-control: never
712End: