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