2004-07-21 Andrew Cagney <cagney@gnu.org>
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
14b3c463
L
12004-07-19 H.J. Lu <hongjiu.lu@intel.com>
2
3 * NEWS: Mention the new --add-needed/--no-add-needed and
4 --as-needed/--no-as-needed options.
5
e56f61be
L
62004-07-19 H.J. Lu <hongjiu.lu@intel.com>
7
8 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
9 check the add_needed field.
10 (dt_needed): New struct.
11 (gld${EMULATION_NAME}_try_needed): Change the first argument
12 to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
13 bit in the file where the DT_NEEDED entry comes from.
14 (gld${EMULATION_NAME}_search_needed): Change the second
15 argument to a pointer to struct dt_needed.
16 (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
17 (gld${EMULATION_NAME}_after_open): Likewise.
18
19 * ld.texinfo: Add --add-needed document.
20 * ldlang.c (new_afile): Set p->add_needed.
21 * ldlang.h (lang_input_statement_type): Add add_needed field.
22 * ldmain.h (add_needed): Declare.
23 * ldmain.c (add_needed): New global var.
24 * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
25 OPTION_NO_ADD_NEEDED.
26 (ld_options): Likewise.
27 (parse_args): Handle them.
28
c99b8138
NC
292004-07-13 Christof Petig <christof@petig-baender.de>
30
31 * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
32 for endian-ness of extracted addend.
33
13ed4151
NC
342004-07-13 Danny Smith <dannysmith@usesr.sourceforge.net>
35
36 * pe-dll.c (auto_export): Filter on just the import prefix,
37 "_imp_", not "_imp__".
38
1a320fbb
NC
392004-07-09 Nick Clifton <nickc@redhat.com>
40
41 * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
42
1fe1f39c
NC
432004-07-06 Tomer Levi <Tomer.Levi@nsc.com>
44
45 * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
46 (eelf32crx.c): New target.
47 * Makefile.in: Regenerate.
48 * configure.tgt: Handle crx-*-elf*.
49 * emulparams/elf32crx.sh: New file.
50 * emultempl/crxelf.em: New file.
51 * scripttempl/elf32crx.sc: New file.
52 * NEWS: Mention new target.
53
85fbca6a
NC
542004-07-06 Nick Clifton <nickc@redhat.com>
55
56 * Makefile.am: Add eshlsymbian.c.
57 * Makefile.in: Regenerate.
58 * configure.tgt: Add sh*-symbian-elf target.
59 * emulparams/shlsymbian.sh: New file. Configure the
60 sh-symbian-elf linker scripts.
61 * scripttemp/elf32sh-symbian.sc: New file. Linker script
62 template for the sh-symbian-elf target.
63
b71a5181
DA
642004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
65
66 * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
67 * emulparams/hppalinux.sh: Likewise.
68 * scripttempl/elf.sc: Place .plt just before .got when .plt is in
69 data segment and PLT_BEFORE_GOT is defined.
70
c87db184
CF
712004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
72
73 * ld.texinfo (WIN32): Document PE weak symbols.
74
f6a8ae81
KK
752004-07-02 Kaz Kojima <kkojima@rr.iij4u.or.jp>
76
77 * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
78
b602c853
L
792004-07-01 H.J. Lu <hongjiu.lu@intel.com>
80
81 * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
82 the section.
83
1a23a9e6
AM
842004-06-29 Alan Modra <amodra@bigpond.net.au>
85
86 * ldlang.c (lang_reset_memory_regions): Save last relax pass section
87 size in rawsize.
88
eea6121a
AM
892004-06-24 Alan Modra <amodra@bigpond.net.au>
90
91 * ldlang.c (print_output_section_statement): Don't print size before
92 relaxation.
93 (IGNORE_SECTION): Remove bfd arg. Update all callers.
94
95 * ldexp.c (fold_name): .. See below.
96 * ldlang.c (section_already_linked, print_output_section_statement,
97 print_input_section, insert_pad, size_input_section,
98 lang_check_section_addresses, lang_size_sections_1,
99 lang_size_sections, lang_do_assignments_1, lang_set_startof,
100 lang_one_common, lang_reset_memory_regions, lang_process,
101 lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
102 * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
103 * pe-dll.c (process_def_file, generate_reloc): ..
104 * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
105 gld${EMULATION_NAME}_before_allocation): ..
106 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
107 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
108 sh64_elf_${EMULATION_NAME}_after_allocation): ..
109 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
110 * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
111 ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
112 "size" instead of "_raw_size" and "_cooked_size". Expand
113 bfd_section_size macro invocations.
114
552f8272
CF
1152004-06-22 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
116
117 * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
118 ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
119 ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
120 ___crt_xt_end__.
121 (.tls): Define ___tls_start__ and ___tls_end__.
122
aee6f5b4
AO
1232004-06-21 Alexandre Oliva <aoliva@redhat.com>
124
125 * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
126
eea6121a 1272004-06-18 Adam Nemet <anemet@lnxw.com>
f234d5fe 128
eea6121a
AM
129 * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
130 * configure: Regenerate.
f234d5fe 131
dfff4fbe
JJ
1322004-06-15 Jakub Jelinek <jakub@redhat.com>
133
134 * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
135 .gcc_except_table output sections lost accidentally with
136 -z relro patch.
137
a9e0c0c6
AM
1382004-06-15 Alan Modra <amodra@bigpond.net.au>
139
140 * ldwrite.c (build_link_order): Use bfd_get_section_size
141 instead of bfd_get_section_size_before_reloc or _raw_size.
142 * pe-dll.c (process_def_file): Likewise.
143
7115639b
AM
1442004-06-14 Alan Modra <amodra@bigpond.net.au>
145
146 From Richard Wirth <r.wirth@wirthware.de>
147 * ldlang.c (lang_finish): Don't free lang_definedness_table.
148
9ca57817
AM
1492004-05-29 Alan Modra <amodra@bigpond.net.au>
150
151 * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
152 (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
153
f6f9408f
JR
1542004-05-28 Andrew Stubbs <andrew.stubbs@superh.com>
155
156 * testsuite/ld-sh/arch/arch.exp: New test script.
157 * testsuite/ld-sh/arch/arch_expected.txt: New file.
158 * testsuite/ld-sh/arch/sh.s: New file.
159 * testsuite/ld-sh/arch/sh2.s: New file.
160 * testsuite/ld-sh/arch/sh-dsp.s: New file.
161 * testsuite/ld-sh/arch/sh2e.s: New file.
162 * testsuite/ld-sh/arch/sh3-nommu.s: New file.
163 * testsuite/ld-sh/arch/sh3.s: New file.
164 * testsuite/ld-sh/arch/sh3-dsp.s: New file.
165 * testsuite/ld-sh/arch/sh3e.s: New file.
166 * testsuite/ld-sh/arch/sh4-nommu-nofpu.s: New file.
167 * testsuite/ld-sh/arch/sh4-nofpu.s: New file.
168 * testsuite/ld-sh/arch/sh4.s: New file.
169 * testsuite/ld-sh/arch/sh4a-nofpu.s: New file.
170 * testsuite/ld-sh/arch/sh4al-dsp.s: New file.
171 * testsuite/ld-sh/arch/sh4a.s: New file.
172
164e712d
AM
1732004-05-28 Alan Modra <amodra@bigpond.net.au>
174
6feb9908
AM
175 * ldlang.c: Formatting. Wrap long lines, expand bfd_get_section_flags
176 throughout file.
177 * lexsup.c: Formatting. Wrap long lines.
178 * ldwrite.c: Update copyright date.
179
164e712d
AM
180 * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
181 (output_section_callback): Nor SEC_KEEP here.
182 (gc_section_callback): Twiddle SEC_EXCLUDE here.
183 (lang_gc_wild): Delete. Fold into..
184 (lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage
185 collecting.
186 (lang_process): Always call lang_gc_sections.
187 (lang_place_orphans): Handle SEC_EXCLUDE sections.
188 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
189 SEC_EXCLUDE code.
190
b3096250
L
1912004-05-26 H.J. Lu <hongjiu.lu@intel.com>
192
193 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
194 SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
195 * ldlang.c (lang_add_section): Likewise.
196
e49f5022
AM
1972004-05-26 Alan Modra <amodra@bigpond.net.au>
198
199 * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
200 sections when doing a final link. Clear SEC_EXCLUDE when doing
201 a relocable link, except for SEC_DEBUGGING sections.
202 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
203 same condition here to drop SEC_EXCLUDE orphan sections.
204
57ceae94
AM
2052004-05-25 Alan Modra <amodra@bigpond.net.au>
206
207 * ldlang.c (lang_process): Call bfd_merge_sections later, and
208 only when not a relocatable link.
209 (print_input_section): Handle SEC_EXCLUDE sections.
210 (size_input_section): Don't update dot on SEC_EXCLUDE sections.
211 (lang_do_assignments_1): Likewise.
212 * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
213 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
214 * emultempl/hppaelf.em (build_section_lists): Likewise.
215 * emultempl/ppc64elf.em (build_toc_list): Likewise.
216 (build_section_lists): Likewise.
217
a85785bc
AS
2182004-05-23 Andreas Schwab <schwab@suse.de>
219
220 * ld.texinfo (Options): Fix typo in last change.
221
2d643429
NC
2222004-05-21 Andy Chittenden <achittenden@bluearc.com>
223
224 * ld.h (ld_config_type): Add new field: hash_table_size.
225 * ldmain.c: Initialise the new field to zero. If it is non-zero
226 after parsing the linker's command line call
227 bfd_hash_set_default_size.
228 * lexsup.c (option_values): Add OPTION_HASH_SIZE.
229 (ld_options): Add hash-size.
230 (parse_args): Parse --hash-size option. Allow
231 --reduce-memory-overheads to set the default hash table size as
232 well.
233 * ld.texinfo: Document the new switch. Also mention that
234 --reduce-memory-overheads can affect the hash table size.
235 * NEWS: Mention the new feature.
236
35835446
JR
2372004-05-19 J"orn Rennecke <joern.rennecke@superh.com>
238
239 * NEWS: Mention new linker map file generation and the
240 --reduce-memory-overheads option.
241 * ld.texinfo: Document --reduce-memory-overheads option.
242 * ld.h (map_symbol_def): New struct.
243 (struct user_section_struct, section_userdata_type): Rename to:
244 (struct lean_user_section_struct, lean_section_userdata_type).
245 (struct fat_user_section_struct, fat_section_userdata_type): New.
246 (SECTION_USERDATA_SIZE): Define.
247 (args_type): New member reduce_memory_overheads.
248 * ldlang.c (map_obstack): New static variable.
249 (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
250 (lang_map): Unless command_line.reduce_memory_overheads is set,
251 initialize lists of defined symbols for each section.
252 (print_input_section): Unless command_line.reduce_memory_overheads
253 is set, use print_all_symbols.
254 (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
255 * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
256 * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
257 (ld_options): Add entry for --reduce-memory-overheads.
258 (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
259
0841712e
JJ
2602004-05-19 Jakub Jelinek <jakub@redhat.com>
261
262 * ldgram.y (sect_constraint): New.
263 (ONLY_IF_RO, ONLY_IF_RW): New tokens.
264 (section): Add sect_constraint. Pass additional argument
265 to lang_enter_output_section_statement.
266 * mri.c (mri_draw_tree): Pass additional argument to
267 lang_enter_output_section_statement.
268 * emultempl/pe.em (place_orphan): Likewise.
269 (output_prev_sec_find): Disregard output section statements with
270 constraint == -1.
271 * emultempl/mmo.em (output_prev_sec_find): Likewise.
272 (mmo_place_orphan): Pass additional argument to
273 lang_enter_output_section_statement.
274 * emultempl/elf32.em (output_prev_sec_find): Disregard output section
275 statements with constraint == -1.
276 (place_orphan): Pass additional argument to
277 lang_enter_output_section_statement.
278 * ldlang.c (lang_enter_overlay_section): Likewise.
279 (lang_output_section_find_1): New.
280 (lang_output_section_find): Use it.
281 (lang_output_section_statement_lookup_1): New.
282 (lang_output_section_statement_lookup): Use it.
283 (check_section_callback, check_input_sections): New.
284 (map_input_to_output_sections): Check if all input sections
285 are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
286 (strip_excluded_output_sections): Disregard output section statements
287 with constraint == -1.
288 (lang_record_phdrs): Likewise.
289 (lang_enter_output_section_statement): Add constraint argument.
290 Use lang_output_section_statement_lookup_1.
291 * ldlang.h (lang_output_section_statement_type): Add constraint
292 and all_input_readonly fields.
293 (lang_enter_output_section_statement): Adjust prototype.
294 * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
295 * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
296 segment if all input sections are readonly.
297
eea6121a 2982004-05-19 Adam Nemet <anemet@lnxw.com>
f2c50328
NC
299
300 * scripttempl/i386lynx.sc: Remove file.
301
2a16d82a
BW
3022004-05-17 Bob Wilson <bob.wilson@acm.org>
303
304 * ld.texinfo (Output Section Address): Correct subsection name.
305
eea6121a 3062004-05-17 Adam Nemet <anemet@lnxw.com>
b2d65c0b
NC
307
308 * configure.tgt (powerpc-*-lynxos* case): New case.
309 * configure.host (i[3-7]86-*-lynxos* case): Remove case.
310 * emulparams/ppclynx.sh: New file.
311 * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
312 * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
313 (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
314 (eppclynx.c): New rule.
315 * Makefile.in: Regenerate.
316
4b363073
NC
3172004-05-13 Joel Sherrill <joel@oarcorp.com>
318
319 * configure.tgt (or32-*-rtems*): Switch to elf and
320 support versioned targets.
321
9598fbe5
NC
3222004-05-13 Nick Clifton <nickc@redhat.com>
323
324 * po/fr.po: Updated French translation.
325
8c37241b
JJ
3262004-05-11 Jakub Jelinek <jakub@redhat.com>
327
328 * genscripts.sh: Generate -z combreloc -z now -z relro scripts
329 for binaries, -shared and -pie.
330 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
331 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
332 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
333 (OTHER_RELRO_SECTIONS): ... this.
334 * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
335 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
336 -z relro and -z norelro.
337 (gld${EMULATION_NAME}_list_options): Add it to usage.
338 (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
339 -z relro scripts when appropriate.
340 * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
341 Create separate .got.plt section if SEPARATE_GOTPLT.
342 Move sections which are only written during relocation handling
343 to the beginning of RW segment. If NO_SMALL_DATA, move .got
344 before .data. Add DATA_SEGMENT_RELRO_END directive.
345 Include OTHER_RELRO_SECTIONS.
346 * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
347 * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
348 (fold_unary): Likewise.
349 (fold_binary): Handle -z relro.
350 * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
351 exp_dataseg_relro_adjust phases. Add relro_end field.
352 * ldmain.c (main): Initialize link_info.relro to FALSE.
353 * ldlang.c (lang_size_sections): Handle -z relro.
354
e21059f2
MM
3552004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
356
357 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
358
5f9b8920
JR
3592004-05-07 J"orn Rennecke <joern.rennecke@superh.com>
360
361 * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
362 before printing it with %W.
363
26d2d8a2 3642004-05-07 Brian Ford <ford@vss.fsi.com>
eea6121a 365 DJ Delorie <dj@redhat.com>
26d2d8a2
BF
366
367 * emultempl/pe.em (real_flags): New static.
368 (OPTION_LARGE_ADDRESS_AWARE): New define.
369 (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
370 (gld_${EMULATION_NAME}_list_options): Likewise.
371 (gld${EMULATION_NAME}_handle_option): Likewise.
372 (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
373 * ld.texinfo: Document it.
374 * NEWS: Mention it.
375
1b169501
BF
3762004-05-07 Brian Ford <ford@vss.fsi.com>
377
378 * NEWS: Mention DWARF 2 support for i386pe.
379
41cf0c62
AO
3802004-05-05 Alexandre Oliva <aoliva@redhat.com>
381
382 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
383 elf32-frvfdpic.
384
d0d6a25b
AM
3852004-04-30 Alan Modra <amodra@bigpond.net.au>
386
387 * ldlang.c (unique_section_p): Pass section parm, return true on
388 group sections.
389 (output_section_callback): Adjust.
390 * ldlang.h (unique_section_p): Update prototype.
391 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
392
755306be
EB
3932004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
394
eea6121a 395 * ld.texinfo (--gc-sections): Remove restriction for
755306be
EB
396 dynamic linking.
397
8a7140c3
NC
3982004-04-29 Brian Ford <ford@vss.fsi.com>
399
400 * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
401 for DWARF 2/3. Update stab section's syntax.
402
2f9636ba
AM
4032004-04-29 Alan Modra <amodra@bigpond.net.au>
404
405 * pe-dll.c: Revert changes accidentally committed 2004-03-08.
406 (fill_edata): Correct pointer arithmetic.
407
23867d67
CD
4082004-04-21 Chris Demetriou <cgd@broadcom.com>
409
410 * ld.texinfo: Remove MIPS --embedded-relocs documentation.
411 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
412 * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
413 (EXTRA_EM_FILE): Use mipsecoff.em
414 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
415 (EXTRA_EM_FILE): Use mipsecoff.em
416 * emultempl/mipsecoff.em: Restructure to be included as an
417 extra emulation file.
418 (check_sections, gld${EMULATION_NAME}_after_open)
419 (gld${EMULATION_NAME}_after_allocation)
420 (gld${EMULATION_NAME}_get_script)
421 (ld_${EMULATION_NAME}_emulation): Remove
422 (gld${EMULATION_NAME}_before_parse): Rename to...
423 (mipsecoff_before_parse): This.
424 (LDEMUL_BEFORE_PARSE): Define.
425 * emultempl/mipself.em: Remove file.
426 * scripttempl/mips.sc (.rel.sdata): Do not include in output.
427 (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
428 these symbols.
429 * Makefile.am: Remove dependencies on emultempl/mipself.em.
430 * Makefile.in: Regenerate.
431
1502569c
NC
4322004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
433
434 * ld.texinfo (synthesizing on H8/300): Information about linker
435 relaxation support for bit manipulation instructions and system
436 control instructions is added.
437
c894ddfb
HPN
4382004-04-21 Hans-Peter Nilsson <hp@axis.com>
439
440 * NEWS: Mention change in DEFINED semantics.
441
a85bf78e
EB
4422004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
443
444 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
445 (.data): Add KEEP for .gnu.linkonce.d.*personality*.
446 (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
447
58434bc1
BE
4482004-04-21 Ben Elliston <bje@au.ibm.com>
449
450 * ld.texinfo (Simple Example): Add missing punctuation.
451
7a7f4e42
CD
4522004-04-20 Chris Demetriou <cgd@broadcom.com>
453
454 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
455
3737f867
JJ
4562004-04-19 Jakub Jelinek <jakub@redhat.com>
457
458 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
459 specially.
460
3c17e4f7
DS
4612004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
462
463 * scriptempl/pe.sc: Put numbered .ctors.* after .ctors
464 with default priority. Likewise for dtors.
465
279500de
TS
4662004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
467
468 * configure.host: Remove mips*-dec-bsd* target.
469 * configure.tgt: Likewise.
470
52f89c0a
RS
4712004-04-08 Richard Sandiford <rsandifo@redhat.com>
472
473 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
474 * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
475 * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
476 * emultempl/irix.em: New file.
477 * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
478 dependencies.
479 * Makefile.in: Regenerate.
480
e489d0ae
PB
4812004-04-01 Paul Brook <paul@codesourcery.com>
482
483 * emultempl/armelf.em (byteswap_code): Add.
484 (arm_elf_before_allocation): Pass extra parameter.
485 (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
486 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
487 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
488 * emultempl/armelf_oabi.em: Pass extra parameter.
489 * ld.texinfo: Document --be8.
490
7cc8057a
SS
4912004-03-30 Stan Shebs <shebs@apple.com>
492
493 Remove long-obsolete MPW support.
494 * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
495 * Makefile.am (mpw): Remove file-presynthesizing actions.
496 * Makefile.in: Likewise.
497 * ldfile.c (slash): Remove MPW case.
498 * ldlex.l [MPW]: Remove unused definition.
499
0949843d
NC
5002004-03-30 Galit Heller <Galit.Heller@nsc.com>
501
502 * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
503 (eelf32cr16c.c): New target.
504 * Makefile.in: Regenerate.
505 * configure.tgt: Handle cr16c-*-elf*.
506 * emulparams/elf32cr16c.sh: New file.
507 * scripttempl/elfcr16c.sc: Likewise
508 * NEWS: Mention support for new target.
509
0a159ef8
NC
5102004-03-30 Nick Clifton <nickc@redhat.com>
511
512 * po/sv.po: Updated Swedish translation.
513
7a945db6
AM
5142004-03-27 Alan Modra <amodra@bigpond.net.au>
515
516 * emultempl/elf32.em: Update new bfd_elf_discard_info name.
517 * emultempl/hppaelf.em: Likewise.
518 * emultempl/ppc64elf.em: Likewise.
519 * emultempl/sh64elf.em: Likewise.
520
5a580b3a
AM
5212004-03-25 Alan Modra <amodra@bigpond.net.au>
522
523 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
524 size_dynamic_sections call.
525
b9cf773d
AM
5262004-03-23 Alan Modra <amodra@bigpond.net.au>
527
528 PR 51.
529 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
530 link_info.wrap_char.
531
59c2e50f
L
5322004-03-20 H.J. Lu <hongjiu.lu@intel.com>
533
534 * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
535 or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
536
44349745
AO
5372004-03-20 Alexandre Oliva <aoliva@redhat.com>
538
539 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
540
81359a70
AM
5412004-03-19 Alan Modra <amodra@bigpond.net.au>
542
543 * config.in: Regenerate.
544 * po/ld.pot: Regenerate.
545
4a43e768
AM
5462004-03-18 Alan Modra <amodra@bigpond.net.au>
547
548 * ld.texinfo: Add --as-needed doco.
549 * ldmain.c (as_needed): New global var.
550 * ldmain.h (as_needed): Declare.
551 * lexsup.c (option_values): Add OPTION_AS_NEEDED and
552 OPTION_NO_AS_NEEDED.
553 (ld_options): Likewise.
554 (parse_args): Handle them.
555 * ldlang.h (lang_input_statement_type): Add as_needed field.
556 * ldlang.c (new_afile): Set p->as_needed.
557 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
558 (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
559 (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
560
561 * ldlang.c (open_input_bfds): Remove useless cast.
562 (lang_do_assignments_1): Likewise.
563 (lang_for_each_input_section): Delete.
564
9183ed4b
AM
5652004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
566
567 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
568
ee31fbd0
NC
5692004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
570
571 * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
572 private when building implib.
573
e5caec89
NS
5742004-03-05 Nathan Sidwell <nathan@codesourcery.com>
575
576 * ldlang.c (lang_add_section): Don't force SEC_LOAD on
577 SEC_THREAD_LOCAL.
578 (IGNORE_SECTION): Ignore .tbss sections too.
579 (lang_size_sections_1): .tbss sections do not advance dot.
580
cc2f008e
AS
5812004-03-01 Andreas Schwab <schwab@suse.de>
582
583 * ld.texinfo (Options): Fix example for --wrap.
584
f5a95868
DS
5852004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
586
587 * pe-dll.c (fill_edata): Check that exported_symbol_sections is
588 not NULL.
589
177b729b
ILT
5902004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
591
592 * ldlang.c (lang_check): Use %P, not %E, in error message.
593
1b493742
NS
5942004-02-23 Nathan Sidwell <nathan@codesourcery.com>
595
596 * ldlang.h (struct lang_output_section_state): Change processed
597 field's type.
598 * ldexp.c (check, invalid): Remove.
599 (fold_name): Move valid_p assignments. Create undefined symbol
600 when needed. Directly exampine section's processd flag.
601 * ldlang.c (lang_output_section_statement_lookup): Adjust
602 processed field init.
603 (lang_size_sections_1): Allow LOADADDR when determining section's
604 VMA. Adjust error message. Fold data statement's expr.
605 (lang_size_sections): Correctly increment lang_statement_iteration.
606
6072004-02-23 Alan Modra <amodra@bigpond.net.au>
608
609 * ldexp.c (fold_tree): Follow indirect symbols.
b9cf773d 610
876f4090
NS
6112004-02-20 Nathan Sidwell <nathan@codesourcery.com>
612
613 * ldgram.y (exp): Add two operand ALIGN.
614 * ldexp.c (fold_binary): Add ALIGN_K case.
615 * ld.texinfo (ALIGN): Document two operand version.
616
384d938f
NS
6172004-02-19 Nathan Sidwell <nathan@codesourcery.com>
618
619 * ldlang.c (map_input_to_output_sections): Initialize sections
620 mentioned in a data statement expression.
621 (lang_do_assignments_1): Add data statement's expression's
622 section's vma.
623
b6ca8815
NS
6242004-02-18 Nathan Sidwell <nathan@codesourcery.com>
625
626 * ldgram.y (statement_anywhere): Add assert rule.
627 * ldlang.c (exp_init_os): Add assert case.
628
c92c35e7
AC
6292004-02-14 Andrew Cagney <cagney@redhat.com>
630
631 * ldmain.c (remove_output): Call bfd_cache_close.
632
9bf78c99
RS
6332004-02-14 Richard Sandiford <rsandifo@redhat.com>
634
635 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
636 .MIPS.content* and .MIPS.events* sections.
637
f3806916
DJ
6382004-02-09 Daniel Jacobowitz <drow@mvista.com>
639
640 * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
641 .note.gnu.arm.ident to after allocated sections. Mark its
642 address as 0.
643
4c8e70d7
DJ
6442004-02-09 Daniel Jacobowitz <drow@mvista.com>
645
646 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
647 * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
648 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
649 * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
650 * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
651
ff71f4f7
NC
6522004-02-05 Nick Clifton <nickc@redhat.com>
653
654 * emultempl/pe.em (_after_open): Fix typo in previous delta.
655
07a68a80
NC
6562004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
657
658 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
659
1dd3bf68
AM
6602004-01-28 Alan Modra <amodra@bigpond.net.au>
661
586196d5
AM
662 * genscripts.sh: Fix typo.
663
1dd3bf68
AM
664 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
665
13d9421f
JJ
6662004-01-24 Jakub Jelinek <jakub@redhat.com>
667
668 * emulparams/elf64_ia64.sh: Put .rela.opd into
669 OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
670
4d8907ac
DS
6712004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
672
673 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
674 * ld.texinfo (--omagic): Note that writable text section
675 does not conform to published PE-COFF specs.
676 (--enable-auto-import): Likewise.
677
e5c60db5
AM
6782004-01-15 Alan Modra <amodra@bigpond.net.au>
679
680 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
681
6bdafbeb
NC
6822004-01-13 Nick Clifton <nickc@redhat.com>
683
684 * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
685 which if true will prevent the LMA region being used as a
686 replacement for a default VMA region.
586196d5
AM
687 (lang_leave_output_section_statement): Pass extra parameter.
688 (lang_leave_overlay): Likewise.
689 * ld.texinfo (Output Section LMA): Document that the LMA
6bdafbeb
NC
690 region can be set to the VMA region if no VMA has been set.
691 * ldlang.h (struct lang_output_section_phdr_list): Create a
692 typedef for this type. Minor formatting fixes.
586196d5 693
9dfc8ab2
NC
6942004-01-13 Nick Clifton <nickc@redhat.com>
695
696 * ldlang.c (lang_size_sections_1): If dot is advanced, then
697 assume that the section should be allocated.
698
8325c4dd
AM
6992004-01-13 Alan Modra <amodra@bigpond.net.au>
700
701 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
702 sections. Do ignore SEC_NEVER_LOAD sections.
703 (lang_size_sections_1): Remove test made redundant with the above.
704
83490352
AM
7052004-01-09 Alan Modra <amodra@bigpond.net.au>
706
707 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
708 program_header_size.
709
005e1118
AO
7102004-01-06 Alexandre Oliva <aoliva@redhat.com>
711
712 2003-11-28 Alexandre Oliva <aoliva@redhat.com>
713 * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
714 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
715 * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
716 (MAXPAGESIZE): Set to 64Kb.
717 (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
718 __ROFIXUP_END__. Don't map .rofixup.got any more.
719 * emulparams/elf32frv.sh (NOP): Set.
720 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
721 * configure.tgt: Add frv-*-*linux*.
722 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
723 * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
724 (eelf32frvfd.c): New.
725 * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
726 * emulparams/elf32frv.sh: Reverted previous two patches.
727 * emulparams/elf32frvfd.sh: New.
728 * Makefile.in: Rebuilt.
729 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
730 * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
731 .rofixup.got to .rofixup.
732 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
733 * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
734 (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
735
060feee5
JJ
7362004-01-05 Jakub Jelinek <jakub@redhat.com>
737
738 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
739 * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
740
5e2f1575
AM
7412004-01-03 Alan Modra <amodra@bigpond.net.au>
742
e5caa5e0
AM
743 * ldexp.c (align_n): Make static.
744 * ldexp.h (align_n): Delete declaration.
745 * ldlang.h (lang_enter_output_section_statement): Remove
746 block_value param.
747 * ldlang.c (lang_enter_output_section_statement): Likewise.
748 (TO_ADDR, TO_SIZE): Define.
c2df3ea5 749 (opb_shift): New var.
e5caa5e0
AM
750 (init_opb): New function.
751 (print_input_section): Call init_opb and use TO_ADDR.
752 (print_data_statement, print_reloc_statement): Likewise.
753 (print_padding_statement): Likewise.
c2df3ea5 754 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
e5caa5e0
AM
755 (lang_check_section_addresses): Likewise.
756 (lang_size_sections_1): Likewise.
757 (lang_do_assignments_1): Likewise.
758 (lang_set_startof): Likewise.
c2df3ea5 759 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
e5caa5e0 760 (lang_process): Call init_opb.
c2df3ea5 761 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
e5caa5e0
AM
762 (lang_enter_overlay_section): Adjust
763 lang_enter_output_section_statement call.
764 * ldgram.y: Likewise.
765 * mri.c (mri_draw_tree): Likewise.
766 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
767 * emultempl/mmo.em (mmo_place_orphan): Likewise.
768 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
769
5e2f1575
AM
770 * ldfile.c (ldfile_set_output_arch): Add defarch param.
771 * ldfile.h (ldfile_set_output_arch): Ditto.
772 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
773 ldfile_set_output_arch.
774 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
775 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
776 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
777 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
778 * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
779 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
780 * ldgram.y: Adjust ldfile_set_output_arch call.
781 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
782 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
783 * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
784 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
785 * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
786 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
787 * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
788
b50c15dc
NC
7892004-01-02 Bernardo Innocenti <bernie@develer.com>
790
791 * configure.tgt: Add m68k-uClinux target.
6edf0760 792
c9e214e5 793For older changes see ChangeLog-0203
252b5132
RH
794\f
795Local Variables:
796mode: change-log
797left-margin: 8
798fill-column: 74
799version-control: never
800End:
This page took 0.410339 seconds and 4 git commands to generate.