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