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