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