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