Apply Dmitry Diky's patches to add relaxation to msp430.
[deliverable/binutils-gdb.git] / ld / ChangeLog
1 2004-08-25 Dmitry Diky <diwil@spec.ru>
2
3 * emulparams/msp430all.sh: Fix RAM sizes for all targets.
4 * scripttempl/elf32msp430.sc: Add .profiler section definition.
5
6 2004-08-24 H.J. Lu <hongjiu.lu@intel.com>
7
8 * ldlang.c (wildcardp): Defined as a macro with strpbrk.
9
10 2004-08-19 Mark Mitchell <mark@codesourcery.com>
11
12 * configure.tgt (arm*-*-symbianelf*): New target.
13 (arm*-*-eabi*): Likewise.
14
15 2004-08-19 Jakub Jelinek <jakub@redhat.com>
16
17 * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
18 (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
19 (OPTION_NON_OVERLAPPING_OPD): Define.
20 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
21 --non-overlapping-opd option.
22
23 2004-08-18 Alan Modra <amodra@bigpond.net.au>
24
25 PR 338
26 * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
27 was already on the undefs list.
28
29 2004-08-17 Alan Modra <amodra@bigpond.net.au>
30
31 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
32 prefix the symbol field too.
33
34 2004-08-13 Alan Modra <amodra@bigpond.net.au>
35
36 * ldmain.c (link_callbacks): Remove "error_handler".
37 * ldmisc.c: Include elf-bfd.h.
38 (vfinfo): Sort comment. Handle %A. Use %A instead of
39 bfd_get_section_indent.
40 (error_handler): Delete.
41 * ldmisc.h (error_handler): Delete declaration.
42
43 2004-08-10 Alan Modra <amodra@bigpond.net.au>
44
45 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
46 ppc64_elf_restore_symbols.
47
48 2004-08-09 Alan Modra <amodra@bigpond.net.au>
49
50 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
51 .toc is too large on relocatable linking.
52
53 2004-08-09 Alan Modra <amodra@bigpond.net.au>
54
55 * emultempl/ppc64elf.em (ppc_after_open): Delete.
56 (LDEMUL_AFTER_OPEN): Don't define.
57
58 2004-08-02 Stephane Carrez <stcarrez@nerim.fr>
59
60 * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
61
62 2004-08-01 Stephane Carrez <stcarrez@nerim.fr>
63
64 * scripttempl/elfm68hc12.sc: Align text, rodata and data section
65 on power of 2.
66
67 2004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
68
69 * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
70
71 2004-07-26 Dmitry Diky <diwil@spec.ru>
72
73 * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
74 msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
75 msp430xG439.
76 * configure.tgt: Likewise.
77 * emulparams/msp430all.sh: Likewise.
78 * Makefile.in: Regenerate.
79
80 2004-07-23 Nick Clifton <nickc@redhat.com>
81
82 * emultempl/elf32.em (_place_orphan): Use an already existing
83 section name if that section does not have any flags set.
84
85 2004-07-21 H.J. Lu <hongjiu.lu@intel.com>
86
87 * ldlang.c (already_linked_hash_entry): Removed.
88 (already_linked): Likewise.
89 (already_linked_table): Likewise.
90 (section_already_linked): Call bfd_section_already_linked.
91 (lang_process): Replace already_linked_table_init with
92 bfd_section_already_linked_table_init and check return. Replace
93 already_linked_table_free with bfd_section_already_linked_table_free.
94
95 2004-07-21 Nick Clifton <nickc@redhat.com>
96
97 * ldlang.c (init_os): Make sure that the newly allocated userdata
98 structure is zeroed out.
99
100 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
101
102 * NEWS: Mention the new --add-needed/--no-add-needed and
103 --as-needed/--no-as-needed options.
104
105 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
106
107 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
108 check the add_needed field.
109 (dt_needed): New struct.
110 (gld${EMULATION_NAME}_try_needed): Change the first argument
111 to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
112 bit in the file where the DT_NEEDED entry comes from.
113 (gld${EMULATION_NAME}_search_needed): Change the second
114 argument to a pointer to struct dt_needed.
115 (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
116 (gld${EMULATION_NAME}_after_open): Likewise.
117
118 * ld.texinfo: Add --add-needed document.
119 * ldlang.c (new_afile): Set p->add_needed.
120 * ldlang.h (lang_input_statement_type): Add add_needed field.
121 * ldmain.h (add_needed): Declare.
122 * ldmain.c (add_needed): New global var.
123 * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
124 OPTION_NO_ADD_NEEDED.
125 (ld_options): Likewise.
126 (parse_args): Handle them.
127
128 2004-07-13 Christof Petig <christof@petig-baender.de>
129
130 * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
131 for endian-ness of extracted addend.
132
133 2004-07-13 Danny Smith <dannysmith@usesr.sourceforge.net>
134
135 * pe-dll.c (auto_export): Filter on just the import prefix,
136 "_imp_", not "_imp__".
137
138 2004-07-09 Nick Clifton <nickc@redhat.com>
139
140 * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
141
142 2004-07-06 Tomer Levi <Tomer.Levi@nsc.com>
143
144 * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
145 (eelf32crx.c): New target.
146 * Makefile.in: Regenerate.
147 * configure.tgt: Handle crx-*-elf*.
148 * emulparams/elf32crx.sh: New file.
149 * emultempl/crxelf.em: New file.
150 * scripttempl/elf32crx.sc: New file.
151 * NEWS: Mention new target.
152
153 2004-07-06 Nick Clifton <nickc@redhat.com>
154
155 * Makefile.am: Add eshlsymbian.c.
156 * Makefile.in: Regenerate.
157 * configure.tgt: Add sh*-symbian-elf target.
158 * emulparams/shlsymbian.sh: New file. Configure the
159 sh-symbian-elf linker scripts.
160 * scripttemp/elf32sh-symbian.sc: New file. Linker script
161 template for the sh-symbian-elf target.
162
163 2004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
164
165 * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
166 * emulparams/hppalinux.sh: Likewise.
167 * scripttempl/elf.sc: Place .plt just before .got when .plt is in
168 data segment and PLT_BEFORE_GOT is defined.
169
170 2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
171
172 * ld.texinfo (WIN32): Document PE weak symbols.
173
174 2004-07-02 Kaz Kojima <kkojima@rr.iij4u.or.jp>
175
176 * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
177
178 2004-07-01 H.J. Lu <hongjiu.lu@intel.com>
179
180 * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
181 the section.
182
183 2004-06-29 Alan Modra <amodra@bigpond.net.au>
184
185 * ldlang.c (lang_reset_memory_regions): Save last relax pass section
186 size in rawsize.
187
188 2004-06-24 Alan Modra <amodra@bigpond.net.au>
189
190 * ldlang.c (print_output_section_statement): Don't print size before
191 relaxation.
192 (IGNORE_SECTION): Remove bfd arg. Update all callers.
193
194 * ldexp.c (fold_name): .. See below.
195 * ldlang.c (section_already_linked, print_output_section_statement,
196 print_input_section, insert_pad, size_input_section,
197 lang_check_section_addresses, lang_size_sections_1,
198 lang_size_sections, lang_do_assignments_1, lang_set_startof,
199 lang_one_common, lang_reset_memory_regions, lang_process,
200 lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
201 * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
202 * pe-dll.c (process_def_file, generate_reloc): ..
203 * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
204 gld${EMULATION_NAME}_before_allocation): ..
205 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
206 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
207 sh64_elf_${EMULATION_NAME}_after_allocation): ..
208 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
209 * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
210 ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
211 "size" instead of "_raw_size" and "_cooked_size". Expand
212 bfd_section_size macro invocations.
213
214 2004-06-22 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
215
216 * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
217 ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
218 ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
219 ___crt_xt_end__.
220 (.tls): Define ___tls_start__ and ___tls_end__.
221
222 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
223
224 * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
225
226 2004-06-18 Adam Nemet <anemet@lnxw.com>
227
228 * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
229 * configure: Regenerate.
230
231 2004-06-15 Jakub Jelinek <jakub@redhat.com>
232
233 * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
234 .gcc_except_table output sections lost accidentally with
235 -z relro patch.
236
237 2004-06-15 Alan Modra <amodra@bigpond.net.au>
238
239 * ldwrite.c (build_link_order): Use bfd_get_section_size
240 instead of bfd_get_section_size_before_reloc or _raw_size.
241 * pe-dll.c (process_def_file): Likewise.
242
243 2004-06-14 Alan Modra <amodra@bigpond.net.au>
244
245 From Richard Wirth <r.wirth@wirthware.de>
246 * ldlang.c (lang_finish): Don't free lang_definedness_table.
247
248 2004-05-29 Alan Modra <amodra@bigpond.net.au>
249
250 * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
251 (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
252
253 2004-05-28 Andrew Stubbs <andrew.stubbs@superh.com>
254
255 * testsuite/ld-sh/arch/arch.exp: New test script.
256 * testsuite/ld-sh/arch/arch_expected.txt: New file.
257 * testsuite/ld-sh/arch/sh.s: New file.
258 * testsuite/ld-sh/arch/sh2.s: New file.
259 * testsuite/ld-sh/arch/sh-dsp.s: New file.
260 * testsuite/ld-sh/arch/sh2e.s: New file.
261 * testsuite/ld-sh/arch/sh3-nommu.s: New file.
262 * testsuite/ld-sh/arch/sh3.s: New file.
263 * testsuite/ld-sh/arch/sh3-dsp.s: New file.
264 * testsuite/ld-sh/arch/sh3e.s: New file.
265 * testsuite/ld-sh/arch/sh4-nommu-nofpu.s: New file.
266 * testsuite/ld-sh/arch/sh4-nofpu.s: New file.
267 * testsuite/ld-sh/arch/sh4.s: New file.
268 * testsuite/ld-sh/arch/sh4a-nofpu.s: New file.
269 * testsuite/ld-sh/arch/sh4al-dsp.s: New file.
270 * testsuite/ld-sh/arch/sh4a.s: New file.
271
272 2004-05-28 Alan Modra <amodra@bigpond.net.au>
273
274 * ldlang.c: Formatting. Wrap long lines, expand bfd_get_section_flags
275 throughout file.
276 * lexsup.c: Formatting. Wrap long lines.
277 * ldwrite.c: Update copyright date.
278
279 * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
280 (output_section_callback): Nor SEC_KEEP here.
281 (gc_section_callback): Twiddle SEC_EXCLUDE here.
282 (lang_gc_wild): Delete. Fold into..
283 (lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage
284 collecting.
285 (lang_process): Always call lang_gc_sections.
286 (lang_place_orphans): Handle SEC_EXCLUDE sections.
287 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
288 SEC_EXCLUDE code.
289
290 2004-05-26 H.J. Lu <hongjiu.lu@intel.com>
291
292 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
293 SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
294 * ldlang.c (lang_add_section): Likewise.
295
296 2004-05-26 Alan Modra <amodra@bigpond.net.au>
297
298 * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
299 sections when doing a final link. Clear SEC_EXCLUDE when doing
300 a relocable link, except for SEC_DEBUGGING sections.
301 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
302 same condition here to drop SEC_EXCLUDE orphan sections.
303
304 2004-05-25 Alan Modra <amodra@bigpond.net.au>
305
306 * ldlang.c (lang_process): Call bfd_merge_sections later, and
307 only when not a relocatable link.
308 (print_input_section): Handle SEC_EXCLUDE sections.
309 (size_input_section): Don't update dot on SEC_EXCLUDE sections.
310 (lang_do_assignments_1): Likewise.
311 * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
312 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
313 * emultempl/hppaelf.em (build_section_lists): Likewise.
314 * emultempl/ppc64elf.em (build_toc_list): Likewise.
315 (build_section_lists): Likewise.
316
317 2004-05-23 Andreas Schwab <schwab@suse.de>
318
319 * ld.texinfo (Options): Fix typo in last change.
320
321 2004-05-21 Andy Chittenden <achittenden@bluearc.com>
322
323 * ld.h (ld_config_type): Add new field: hash_table_size.
324 * ldmain.c: Initialise the new field to zero. If it is non-zero
325 after parsing the linker's command line call
326 bfd_hash_set_default_size.
327 * lexsup.c (option_values): Add OPTION_HASH_SIZE.
328 (ld_options): Add hash-size.
329 (parse_args): Parse --hash-size option. Allow
330 --reduce-memory-overheads to set the default hash table size as
331 well.
332 * ld.texinfo: Document the new switch. Also mention that
333 --reduce-memory-overheads can affect the hash table size.
334 * NEWS: Mention the new feature.
335
336 2004-05-19 J"orn Rennecke <joern.rennecke@superh.com>
337
338 * NEWS: Mention new linker map file generation and the
339 --reduce-memory-overheads option.
340 * ld.texinfo: Document --reduce-memory-overheads option.
341 * ld.h (map_symbol_def): New struct.
342 (struct user_section_struct, section_userdata_type): Rename to:
343 (struct lean_user_section_struct, lean_section_userdata_type).
344 (struct fat_user_section_struct, fat_section_userdata_type): New.
345 (SECTION_USERDATA_SIZE): Define.
346 (args_type): New member reduce_memory_overheads.
347 * ldlang.c (map_obstack): New static variable.
348 (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
349 (lang_map): Unless command_line.reduce_memory_overheads is set,
350 initialize lists of defined symbols for each section.
351 (print_input_section): Unless command_line.reduce_memory_overheads
352 is set, use print_all_symbols.
353 (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
354 * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
355 * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
356 (ld_options): Add entry for --reduce-memory-overheads.
357 (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
358
359 2004-05-19 Jakub Jelinek <jakub@redhat.com>
360
361 * ldgram.y (sect_constraint): New.
362 (ONLY_IF_RO, ONLY_IF_RW): New tokens.
363 (section): Add sect_constraint. Pass additional argument
364 to lang_enter_output_section_statement.
365 * mri.c (mri_draw_tree): Pass additional argument to
366 lang_enter_output_section_statement.
367 * emultempl/pe.em (place_orphan): Likewise.
368 (output_prev_sec_find): Disregard output section statements with
369 constraint == -1.
370 * emultempl/mmo.em (output_prev_sec_find): Likewise.
371 (mmo_place_orphan): Pass additional argument to
372 lang_enter_output_section_statement.
373 * emultempl/elf32.em (output_prev_sec_find): Disregard output section
374 statements with constraint == -1.
375 (place_orphan): Pass additional argument to
376 lang_enter_output_section_statement.
377 * ldlang.c (lang_enter_overlay_section): Likewise.
378 (lang_output_section_find_1): New.
379 (lang_output_section_find): Use it.
380 (lang_output_section_statement_lookup_1): New.
381 (lang_output_section_statement_lookup): Use it.
382 (check_section_callback, check_input_sections): New.
383 (map_input_to_output_sections): Check if all input sections
384 are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
385 (strip_excluded_output_sections): Disregard output section statements
386 with constraint == -1.
387 (lang_record_phdrs): Likewise.
388 (lang_enter_output_section_statement): Add constraint argument.
389 Use lang_output_section_statement_lookup_1.
390 * ldlang.h (lang_output_section_statement_type): Add constraint
391 and all_input_readonly fields.
392 (lang_enter_output_section_statement): Adjust prototype.
393 * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
394 * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
395 segment if all input sections are readonly.
396
397 2004-05-19 Adam Nemet <anemet@lnxw.com>
398
399 * scripttempl/i386lynx.sc: Remove file.
400
401 2004-05-17 Bob Wilson <bob.wilson@acm.org>
402
403 * ld.texinfo (Output Section Address): Correct subsection name.
404
405 2004-05-17 Adam Nemet <anemet@lnxw.com>
406
407 * configure.tgt (powerpc-*-lynxos* case): New case.
408 * configure.host (i[3-7]86-*-lynxos* case): Remove case.
409 * emulparams/ppclynx.sh: New file.
410 * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
411 * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
412 (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
413 (eppclynx.c): New rule.
414 * Makefile.in: Regenerate.
415
416 2004-05-13 Joel Sherrill <joel@oarcorp.com>
417
418 * configure.tgt (or32-*-rtems*): Switch to elf and
419 support versioned targets.
420
421 2004-05-13 Nick Clifton <nickc@redhat.com>
422
423 * po/fr.po: Updated French translation.
424
425 2004-05-11 Jakub Jelinek <jakub@redhat.com>
426
427 * genscripts.sh: Generate -z combreloc -z now -z relro scripts
428 for binaries, -shared and -pie.
429 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
430 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
431 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
432 (OTHER_RELRO_SECTIONS): ... this.
433 * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
434 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
435 -z relro and -z norelro.
436 (gld${EMULATION_NAME}_list_options): Add it to usage.
437 (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
438 -z relro scripts when appropriate.
439 * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
440 Create separate .got.plt section if SEPARATE_GOTPLT.
441 Move sections which are only written during relocation handling
442 to the beginning of RW segment. If NO_SMALL_DATA, move .got
443 before .data. Add DATA_SEGMENT_RELRO_END directive.
444 Include OTHER_RELRO_SECTIONS.
445 * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
446 * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
447 (fold_unary): Likewise.
448 (fold_binary): Handle -z relro.
449 * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
450 exp_dataseg_relro_adjust phases. Add relro_end field.
451 * ldmain.c (main): Initialize link_info.relro to FALSE.
452 * ldlang.c (lang_size_sections): Handle -z relro.
453
454 2004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
455
456 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
457
458 2004-05-07 J"orn Rennecke <joern.rennecke@superh.com>
459
460 * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
461 before printing it with %W.
462
463 2004-05-07 Brian Ford <ford@vss.fsi.com>
464 DJ Delorie <dj@redhat.com>
465
466 * emultempl/pe.em (real_flags): New static.
467 (OPTION_LARGE_ADDRESS_AWARE): New define.
468 (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
469 (gld_${EMULATION_NAME}_list_options): Likewise.
470 (gld${EMULATION_NAME}_handle_option): Likewise.
471 (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
472 * ld.texinfo: Document it.
473 * NEWS: Mention it.
474
475 2004-05-07 Brian Ford <ford@vss.fsi.com>
476
477 * NEWS: Mention DWARF 2 support for i386pe.
478
479 2004-05-05 Alexandre Oliva <aoliva@redhat.com>
480
481 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
482 elf32-frvfdpic.
483
484 2004-04-30 Alan Modra <amodra@bigpond.net.au>
485
486 * ldlang.c (unique_section_p): Pass section parm, return true on
487 group sections.
488 (output_section_callback): Adjust.
489 * ldlang.h (unique_section_p): Update prototype.
490 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
491
492 2004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
493
494 * ld.texinfo (--gc-sections): Remove restriction for
495 dynamic linking.
496
497 2004-04-29 Brian Ford <ford@vss.fsi.com>
498
499 * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
500 for DWARF 2/3. Update stab section's syntax.
501
502 2004-04-29 Alan Modra <amodra@bigpond.net.au>
503
504 * pe-dll.c: Revert changes accidentally committed 2004-03-08.
505 (fill_edata): Correct pointer arithmetic.
506
507 2004-04-21 Chris Demetriou <cgd@broadcom.com>
508
509 * ld.texinfo: Remove MIPS --embedded-relocs documentation.
510 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
511 * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
512 (EXTRA_EM_FILE): Use mipsecoff.em
513 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
514 (EXTRA_EM_FILE): Use mipsecoff.em
515 * emultempl/mipsecoff.em: Restructure to be included as an
516 extra emulation file.
517 (check_sections, gld${EMULATION_NAME}_after_open)
518 (gld${EMULATION_NAME}_after_allocation)
519 (gld${EMULATION_NAME}_get_script)
520 (ld_${EMULATION_NAME}_emulation): Remove
521 (gld${EMULATION_NAME}_before_parse): Rename to...
522 (mipsecoff_before_parse): This.
523 (LDEMUL_BEFORE_PARSE): Define.
524 * emultempl/mipself.em: Remove file.
525 * scripttempl/mips.sc (.rel.sdata): Do not include in output.
526 (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
527 these symbols.
528 * Makefile.am: Remove dependencies on emultempl/mipself.em.
529 * Makefile.in: Regenerate.
530
531 2004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
532
533 * ld.texinfo (synthesizing on H8/300): Information about linker
534 relaxation support for bit manipulation instructions and system
535 control instructions is added.
536
537 2004-04-21 Hans-Peter Nilsson <hp@axis.com>
538
539 * NEWS: Mention change in DEFINED semantics.
540
541 2004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
542
543 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
544 (.data): Add KEEP for .gnu.linkonce.d.*personality*.
545 (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
546
547 2004-04-21 Ben Elliston <bje@au.ibm.com>
548
549 * ld.texinfo (Simple Example): Add missing punctuation.
550
551 2004-04-20 Chris Demetriou <cgd@broadcom.com>
552
553 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
554
555 2004-04-19 Jakub Jelinek <jakub@redhat.com>
556
557 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
558 specially.
559
560 2004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
561
562 * scriptempl/pe.sc: Put numbered .ctors.* after .ctors
563 with default priority. Likewise for dtors.
564
565 2004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
566
567 * configure.host: Remove mips*-dec-bsd* target.
568 * configure.tgt: Likewise.
569
570 2004-04-08 Richard Sandiford <rsandifo@redhat.com>
571
572 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
573 * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
574 * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
575 * emultempl/irix.em: New file.
576 * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
577 dependencies.
578 * Makefile.in: Regenerate.
579
580 2004-04-01 Paul Brook <paul@codesourcery.com>
581
582 * emultempl/armelf.em (byteswap_code): Add.
583 (arm_elf_before_allocation): Pass extra parameter.
584 (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
585 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
586 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
587 * emultempl/armelf_oabi.em: Pass extra parameter.
588 * ld.texinfo: Document --be8.
589
590 2004-03-30 Stan Shebs <shebs@apple.com>
591
592 Remove long-obsolete MPW support.
593 * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
594 * Makefile.am (mpw): Remove file-presynthesizing actions.
595 * Makefile.in: Likewise.
596 * ldfile.c (slash): Remove MPW case.
597 * ldlex.l [MPW]: Remove unused definition.
598
599 2004-03-30 Galit Heller <Galit.Heller@nsc.com>
600
601 * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
602 (eelf32cr16c.c): New target.
603 * Makefile.in: Regenerate.
604 * configure.tgt: Handle cr16c-*-elf*.
605 * emulparams/elf32cr16c.sh: New file.
606 * scripttempl/elfcr16c.sc: Likewise
607 * NEWS: Mention support for new target.
608
609 2004-03-30 Nick Clifton <nickc@redhat.com>
610
611 * po/sv.po: Updated Swedish translation.
612
613 2004-03-27 Alan Modra <amodra@bigpond.net.au>
614
615 * emultempl/elf32.em: Update new bfd_elf_discard_info name.
616 * emultempl/hppaelf.em: Likewise.
617 * emultempl/ppc64elf.em: Likewise.
618 * emultempl/sh64elf.em: Likewise.
619
620 2004-03-25 Alan Modra <amodra@bigpond.net.au>
621
622 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
623 size_dynamic_sections call.
624
625 2004-03-23 Alan Modra <amodra@bigpond.net.au>
626
627 PR 51.
628 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
629 link_info.wrap_char.
630
631 2004-03-20 H.J. Lu <hongjiu.lu@intel.com>
632
633 * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
634 or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
635
636 2004-03-20 Alexandre Oliva <aoliva@redhat.com>
637
638 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
639
640 2004-03-19 Alan Modra <amodra@bigpond.net.au>
641
642 * config.in: Regenerate.
643 * po/ld.pot: Regenerate.
644
645 2004-03-18 Alan Modra <amodra@bigpond.net.au>
646
647 * ld.texinfo: Add --as-needed doco.
648 * ldmain.c (as_needed): New global var.
649 * ldmain.h (as_needed): Declare.
650 * lexsup.c (option_values): Add OPTION_AS_NEEDED and
651 OPTION_NO_AS_NEEDED.
652 (ld_options): Likewise.
653 (parse_args): Handle them.
654 * ldlang.h (lang_input_statement_type): Add as_needed field.
655 * ldlang.c (new_afile): Set p->as_needed.
656 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
657 (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
658 (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
659
660 * ldlang.c (open_input_bfds): Remove useless cast.
661 (lang_do_assignments_1): Likewise.
662 (lang_for_each_input_section): Delete.
663
664 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
665
666 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
667
668 2004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
669
670 * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
671 private when building implib.
672
673 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
674
675 * ldlang.c (lang_add_section): Don't force SEC_LOAD on
676 SEC_THREAD_LOCAL.
677 (IGNORE_SECTION): Ignore .tbss sections too.
678 (lang_size_sections_1): .tbss sections do not advance dot.
679
680 2004-03-01 Andreas Schwab <schwab@suse.de>
681
682 * ld.texinfo (Options): Fix example for --wrap.
683
684 2004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
685
686 * pe-dll.c (fill_edata): Check that exported_symbol_sections is
687 not NULL.
688
689 2004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
690
691 * ldlang.c (lang_check): Use %P, not %E, in error message.
692
693 2004-02-23 Nathan Sidwell <nathan@codesourcery.com>
694
695 * ldlang.h (struct lang_output_section_state): Change processed
696 field's type.
697 * ldexp.c (check, invalid): Remove.
698 (fold_name): Move valid_p assignments. Create undefined symbol
699 when needed. Directly exampine section's processd flag.
700 * ldlang.c (lang_output_section_statement_lookup): Adjust
701 processed field init.
702 (lang_size_sections_1): Allow LOADADDR when determining section's
703 VMA. Adjust error message. Fold data statement's expr.
704 (lang_size_sections): Correctly increment lang_statement_iteration.
705
706 2004-02-23 Alan Modra <amodra@bigpond.net.au>
707
708 * ldexp.c (fold_tree): Follow indirect symbols.
709
710 2004-02-20 Nathan Sidwell <nathan@codesourcery.com>
711
712 * ldgram.y (exp): Add two operand ALIGN.
713 * ldexp.c (fold_binary): Add ALIGN_K case.
714 * ld.texinfo (ALIGN): Document two operand version.
715
716 2004-02-19 Nathan Sidwell <nathan@codesourcery.com>
717
718 * ldlang.c (map_input_to_output_sections): Initialize sections
719 mentioned in a data statement expression.
720 (lang_do_assignments_1): Add data statement's expression's
721 section's vma.
722
723 2004-02-18 Nathan Sidwell <nathan@codesourcery.com>
724
725 * ldgram.y (statement_anywhere): Add assert rule.
726 * ldlang.c (exp_init_os): Add assert case.
727
728 2004-02-14 Andrew Cagney <cagney@redhat.com>
729
730 * ldmain.c (remove_output): Call bfd_cache_close.
731
732 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
733
734 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
735 .MIPS.content* and .MIPS.events* sections.
736
737 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
738
739 * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
740 .note.gnu.arm.ident to after allocated sections. Mark its
741 address as 0.
742
743 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
744
745 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
746 * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
747 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
748 * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
749 * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
750
751 2004-02-05 Nick Clifton <nickc@redhat.com>
752
753 * emultempl/pe.em (_after_open): Fix typo in previous delta.
754
755 2004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
756
757 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
758
759 2004-01-28 Alan Modra <amodra@bigpond.net.au>
760
761 * genscripts.sh: Fix typo.
762
763 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
764
765 2004-01-24 Jakub Jelinek <jakub@redhat.com>
766
767 * emulparams/elf64_ia64.sh: Put .rela.opd into
768 OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
769
770 2004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
771
772 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
773 * ld.texinfo (--omagic): Note that writable text section
774 does not conform to published PE-COFF specs.
775 (--enable-auto-import): Likewise.
776
777 2004-01-15 Alan Modra <amodra@bigpond.net.au>
778
779 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
780
781 2004-01-13 Nick Clifton <nickc@redhat.com>
782
783 * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
784 which if true will prevent the LMA region being used as a
785 replacement for a default VMA region.
786 (lang_leave_output_section_statement): Pass extra parameter.
787 (lang_leave_overlay): Likewise.
788 * ld.texinfo (Output Section LMA): Document that the LMA
789 region can be set to the VMA region if no VMA has been set.
790 * ldlang.h (struct lang_output_section_phdr_list): Create a
791 typedef for this type. Minor formatting fixes.
792
793 2004-01-13 Nick Clifton <nickc@redhat.com>
794
795 * ldlang.c (lang_size_sections_1): If dot is advanced, then
796 assume that the section should be allocated.
797
798 2004-01-13 Alan Modra <amodra@bigpond.net.au>
799
800 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
801 sections. Do ignore SEC_NEVER_LOAD sections.
802 (lang_size_sections_1): Remove test made redundant with the above.
803
804 2004-01-09 Alan Modra <amodra@bigpond.net.au>
805
806 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
807 program_header_size.
808
809 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
810
811 2003-11-28 Alexandre Oliva <aoliva@redhat.com>
812 * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
813 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
814 * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
815 (MAXPAGESIZE): Set to 64Kb.
816 (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
817 __ROFIXUP_END__. Don't map .rofixup.got any more.
818 * emulparams/elf32frv.sh (NOP): Set.
819 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
820 * configure.tgt: Add frv-*-*linux*.
821 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
822 * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
823 (eelf32frvfd.c): New.
824 * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
825 * emulparams/elf32frv.sh: Reverted previous two patches.
826 * emulparams/elf32frvfd.sh: New.
827 * Makefile.in: Rebuilt.
828 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
829 * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
830 .rofixup.got to .rofixup.
831 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
832 * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
833 (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
834
835 2004-01-05 Jakub Jelinek <jakub@redhat.com>
836
837 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
838 * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
839
840 2004-01-03 Alan Modra <amodra@bigpond.net.au>
841
842 * ldexp.c (align_n): Make static.
843 * ldexp.h (align_n): Delete declaration.
844 * ldlang.h (lang_enter_output_section_statement): Remove
845 block_value param.
846 * ldlang.c (lang_enter_output_section_statement): Likewise.
847 (TO_ADDR, TO_SIZE): Define.
848 (opb_shift): New var.
849 (init_opb): New function.
850 (print_input_section): Call init_opb and use TO_ADDR.
851 (print_data_statement, print_reloc_statement): Likewise.
852 (print_padding_statement): Likewise.
853 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
854 (lang_check_section_addresses): Likewise.
855 (lang_size_sections_1): Likewise.
856 (lang_do_assignments_1): Likewise.
857 (lang_set_startof): Likewise.
858 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
859 (lang_process): Call init_opb.
860 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
861 (lang_enter_overlay_section): Adjust
862 lang_enter_output_section_statement call.
863 * ldgram.y: Likewise.
864 * mri.c (mri_draw_tree): Likewise.
865 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
866 * emultempl/mmo.em (mmo_place_orphan): Likewise.
867 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
868
869 * ldfile.c (ldfile_set_output_arch): Add defarch param.
870 * ldfile.h (ldfile_set_output_arch): Ditto.
871 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
872 ldfile_set_output_arch.
873 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
874 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
875 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
876 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
877 * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
878 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
879 * ldgram.y: Adjust ldfile_set_output_arch call.
880 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
881 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
882 * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
883 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
884 * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
885 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
886 * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
887
888 2004-01-02 Bernardo Innocenti <bernie@develer.com>
889
890 * configure.tgt: Add m68k-uClinux target.
891
892 For older changes see ChangeLog-0203
893 \f
894 Local Variables:
895 mode: change-log
896 left-margin: 8
897 fill-column: 74
898 version-control: never
899 End:
This page took 0.051756 seconds and 4 git commands to generate.