bfd/
[deliverable/binutils-gdb.git] / ld / ChangeLog
1 2005-05-17 H.J. Lu <hongjiu.lu@intel.com>
2
3 PR 797
4 * ldexp.c (exp_fold_tree_1): Renamed from exp_fold_tree and
5 take take a bfd_boolean, mark_used. Ignore assert failure if
6 mark_used is TRUE.
7 (exp_fold_tree) Call exp_fold_tree_1 with mark_used == FALSE.
8 (exp_fold_tree_no_dot): Updated to take a bfd_boolean,
9 mark_used and pass down.
10 (fold_unary): Likewise.
11 (fold_binary): Likewise.
12 (fold_trinary): Likewise.
13 (exp_binop): Add FALSE to call to exp_fold_tree_no_dot.
14 (exp_trinop): Likewise.
15 (exp_unop): Likewise.
16 (exp_nameop): Likewise.
17 (exp_get_vma): Likewise.
18 (exp_get_fill): Likewise.
19 (exp_get_abs_int): Likewise.
20 (fold_name): Likewise. Set SEC_KEEP in output section flags.
21 (exp_mark_used_section): New.
22
23 * ldexp.h (exp_mark_used_section): New.
24
25 * ldlang.c (lang_output_section_statement_lookup_1): Set the
26 ignored field to FALSE.
27 (lang_mark_used_section_1): New.
28 (lang_mark_used_section): Call lang_mark_used_section_1.
29 (strip_excluded_output_sections): Call lang_mark_used_section
30 and check for unused sections.
31 (lang_size_sections_1): Skip an output section if it should
32 be ignored.
33 (lang_do_assignments_1): Likewise.
34 (lang_process): Don't call lang_mark_used_section here.
35
36 * ldlang.h (lang_output_section_statement_type): Change
37 all_input_readonly to bitfield. Add ignored.
38
39 2005-05-17 Lennert Buytenhek <buytenh@wantstofly.org>
40 Peter S. Mazinger" <ps.m@gmx.net>
41
42 * emulparams/armelf_linux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
43 * emulparams/hppalinux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
44
45 2005-05-17 Julian Brown <julian@codesourcery.com>
46
47 * ldlang.c (print_assignment): Do not rely upon a valid result
48 having a section associated with it.
49
50 2005-05-17 Nick Clifton <nickc@redhat.com>
51
52 * ldlang.c (Scan_for_self_assignment): Check an assignment tree to
53 see if the same value is being used on the rhs as on the lhs.
54 (print_assignment): Call scan_for_self_assignment and if it
55 returns true, do no display the result of the computation but
56 instead just the final value of the symbol on the lhs.
57 * ld.texinfo: Document this behaviour and provide an example of
58 when it will happen.
59
60 2005-05-15 Daniel Jacobowitz <dan@codesourcery.com>
61
62 * Makefile.am (AM_MAKEINFOFLAGS): Define.
63 (TEXI2DVI): Define.
64 (ldver.texi): Depend on distributed files instead of built files.
65 (ld.info): Include $(srcdir) in the rule target. Remove actions.
66 (ld.dvi): Remove actions.
67 (MAINTAINERCLEANFILES): Add configdoc.texi.
68 (CONFIG_STATUS_DEPENDENCIES): Add bfd/configure.in.
69 (install-data-local): Renamed from install.
70 (Makefile): Remove explicit dependency.
71 * acinclude.m4: Remove obsolete code.
72 * configure.in: Update AC_PREREQ. Remove extra $CONFIG_SHELL.
73 * Makefile.in, aclocal.m4, config.in, configure: Regenerated.
74
75 2005-05-11 Bob Wilson <bob.wilson@acm.org>
76
77 * scripttempl/elfxtensa.sc: Sync up with elf.sc.
78 * emulparams/elf32xtensa.sh (PLT, GOT): Define.
79
80 2005-05-11 Alan Modra <amodra@bigpond.net.au>
81
82 * ldgram.y: Add SPECIAL token.
83 (sect_constraint): Handle SPECIAL.
84 * ldlang.c (lang_output_section_find_1): Don't match SPECIAL.
85 (map_input_to_output_sections): Likewise.
86 * ldlex.l (SPECIAL): Define.
87 * emulparams/elf32ppc.sh (DATA_GOT, SDATA_GOT, SEPARATE_GOTPLT,
88 GOT, PLT, GOTPLT): Define.
89 * emultempl/ppc32elf.em (old_plt, old_got): New static vars.
90 (ppc_after_open): New function.
91 (PARSE_AND_LIST_PROLOGUE): Define OPTION_OLD_LPT and OPTION_OLD_GOT.
92 (PARSE_AND_LIST_LONGOPTS): Add "bss-plt" and "sdata-got".
93 (PARSE_AND_LIST_OPTIONS): Document them.
94 (PARSE_AND_LIST_ARGS_CASES): Handle them.
95 (LDEMUL_AFTER_OPEN): Define.
96 * scripttempl/elf.sc (PLT): Don't override existing define.
97 (DATA_GOT, SDATA_GOT): Define and use to enable alternate got
98 placement rather than using NO_SMALL_DATA. Emit GOTPLT for RELRO_NOW.
99
100 2005-05-10 Alan Modra <amodra@bigpond.net.au>
101
102 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_GOTPLT_END): Delete.
103 (DATA_SEGMENT_RELRO_END): Use SEPARATE_GOTPLT value.
104 (GOTPLT): Remove DATA_SEGMENT_RELRO_GOTPLT_END. Place after
105 DATA_SEGMENT_RELRO_END in script.
106
107 2005-05-09 H.J. Lu <hongjiu.lu@intel.com>
108
109 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
110 Don't use a removed section.
111
112 2005-05-09 H.J. Lu <hongjiu.lu@intel.com>
113
114 * ldmain.c (reloc_overflow): Use output_bfd if the symbol
115 is defined in the ABS section.
116
117 2005-05-06 H.J. Lu <hongjiu.lu@intel.com>
118
119 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
120 Put back !link_info.relocatable.
121
122 2005-05-06 H.J. Lu <hongjiu.lu@intel.com>
123
124 PR 878
125 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
126 Just check link_info.executable.
127
128 2005-05-06 Nick Clifton <nickc@redhat.com>
129
130 * Update the address and phone number of the FSF organization in
131 the GPL notices in the following files:
132 aclocal.m4, deffile.h, deffilep.y, fdl.texi, ld.h, ldcref.c,
133 ldctor.c, ldctor.h, ldemul.c, ldexp.c, ldexp.h, ldfile.c,
134 ldfile.h, 20ldgram.y, ldint.texinfo, ldlang.c, ldlang.h, ldlex.h,
135 ldlex.l, ldmain.c, ldmain.h, ldmisc.c, ldmisc.h, ldver.c, ldver.h,
136 ldwrite.c, ldwrite.h, lexsup.c, mri.c, mri.h, pe-dll.c, pe-dll.h,
137 sysdep.h, emultempl/aix.em, emultempl/alphaelf.em,
138 emultempl/armcoff.em, emultempl/armelf.em, emultempl/beos.em,
139 emultempl/crxelf.em, emultempl/elf32.em, emultempl/generic.em,
140 emultempl/gld960.em, emultempl/gld960c.em, emultempl/hppaelf.em,
141 emultempl/ia64elf.em, emultempl/irix.em, emultempl/linux.em,
142 emultempl/lnk960.em, emultempl/m68hc1xelf.em,
143 emultempl/m68kcoff.em, emultempl/m68kelf.em,
144 emultempl/mipsecoff.em, emultempl/mmix-elfnmmo.em,
145 emultempl/mmixelf.em, emultempl/mmo.em, emultempl/needrelax.em,
146 emultempl/pe.em, emultempl/ppc32elf.em, emultempl/ppc64elf.em,
147 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em,
148 emultempl/vanilla.em, emultempl/xtensaelf.em
149
150 2005-05-05 H.J. Lu <hongjiu.lu@intel.com>
151
152 * scripttempl/elf.sc: Document the usage of __bss_start.
153
154 2005-05-05 Paul Brook <paul@codesourcery.com>
155
156 * Makefile.am: Add eelf_i386_vxworks.
157 * Makefile.in: Regenerate.
158 * configure.tgt: Make i?86-*-vxworks use targ_emul=elf_i386_vxworks.
159 * emulparams/elf_i386_vxworks.sh: New file.
160 * emulparams/vxworks.sh: New file.
161 * scripttempl/elf.sc: Add DATA_END_SYMBOLS and ETEXT_NAME.
162
163 2005-05-04 H.J. Lu <hongjiu.lu@intel.com>
164
165 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
166 Call _bfd_elf_provide_section_bound_symbols.
167
168 2005-05-04 Alan Modra <amodra@bigpond.net.au>
169
170 * ldemul.c: Include bfdlink.h.
171 (ldemul_before_allocation): Assume before_allocation is non-zero.
172 (before_allocation_default): Call strip_excluded_output_sections.
173 * ldlang.c (stripped_excluded_sections): New variable.
174 (lang_add_section): Build input section list for each output
175 section, attached via map_head and map_tail pointers.
176 (strip_excluded_output_sections): Make global. Traverse the
177 input section lists to find which output sections can go. Clear
178 link_order pointers and set stripped_excluded_sections.
179 (lang_process): Call strip_excluded_output_sections.
180 * ldlang.h (strip_excluded_output_sections): Declare.
181 * ldwrite.c: Update throuhout for link_order_head -> map_head change.
182 * emultempl/aix.em (before_allocation): Call
183 strip_excluded_output_sections.
184 * emultempl/armcoff.em (before_allocation): Likewise.
185 * emultempl/beos.em (before_allocation): Likewise.
186 * emultempl/linux.em (before_allocation): Likewise.
187 * emultempl/pe.em (before_allocation): Likewise.
188 * emultempl/sunos.em (before_allocation): Likewise.
189 * emultempl/elf32.em (before_allocation): Likewise. Call
190 bfd_elf_size_dynsym_hash_dynstr too.
191 * emultempl/lnk960.em (lnk960_before_allocation): Delete.
192 (ld_lnk960): Use before_allocation_default.
193
194 2005-05-02 H.J. Lu <hongjiu.lu@intel.com>
195
196 * emultempl/elf32.em (gld${EMULATION_NAME}_strip_empty_section):
197 Updated for bfd_section_list_remove change.
198 * ldlang.c (lang_insert_orphan): Likewise.
199 (strip_excluded_output_sections): Likewise.
200 (sort_sections_by_lma): New.
201 (lang_check_section_addresses): Sort the sections before
202 checking addresses.
203
204 2005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
205
206 * configure.tgt: Add h8300*-*-rtemscoff.
207 Switch h8300*-*-rtems* to elf.
208
209 2005-04-29 Ben Elliston <bje@au.ibm.com>
210
211 * ldgram.y (lang_memory_region_type): Make static.
212 (ldgram_want_filename): Likewise.
213 * ldemul.c (ld_emulation): Make static.
214 * ldfile.h (ldfile_find_command_file): Remove extern.
215 * ldfile.c (ldfile_find_command_file): Make static.
216 * ldlang.h (unique_section_list): Remove extern declaration.
217 * ldlang.c (unique_section_list): Make static.
218 * mri.h (symbol_truncate): Remove extern declaration.
219 * mri.c (symbol_truncate): Make static.
220 (order, only_load, address, alias): Likewise.
221 (alignment, subalignment): Likewise.
222
223 2005-04-27 H.J. Lu <hongjiu.lu@intel.com>
224
225 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
226 Use the first SEC_ALLOC section which isn't SEC_READONLY or the
227 last SEC_ALLOC section if such a section doesn't exist.
228
229 2005-04-24 Mark Kettenis <kettenis@gnu.org>
230
231 * configure.host: Add *-*-openbsd support.
232
233 2005-04-15 Julian Brown <julian@codesourcery.com>
234
235 * ld.texinfo: Document --use-blx.
236 * emultempl/armelf.em (use_blx): New variable.
237 (arm_elf_create_output_section_statements): Communicate value of
238 use_blx to bfd.
239 (PARSE_AND_LIST_PROLOGUE): Add OPTION_USE_BLX.
240 (PARSE_AND_LIST_OPTIONS): Add --use-blx option.
241 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_USE_BLX case.
242
243 2005-04-14 Alan Modra <amodra@bigpond.net.au>
244
245 * Makefile.am (NO_WERROR): Define. Use instead of -Wno-error.
246 * configure.in: Include ../bfd/warning.m4 contents.
247 * Makefile.in: Regenerate.
248 * configure: Regenerate.
249
250 2005-04-12 Alan Modra <amodra@bigpond.net.au>
251
252 * Makefile.am: Run "make dep-am".
253 (ldgram.o, ldlex.o, deffilep.o): Add -Wno-error to command.
254 * Makefile.in: Regenerate.
255 * config.in: Regenerate.
256
257 2005-04-11 Alan Modra <amodra@bigpond.net.au>
258
259 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Ignore
260 as_needed libs that were not needed.
261 (gld${EMULATION_NAME}_check_needed): Likewise.
262
263 2005-04-07 Nick Clifton <nickc@redhat.com>
264
265 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h so that
266 ldfile.h can use the lang_input_statement type.
267
268 2005-04-06 Jakub Jelinek <jakub@redhat.com>
269
270 * ldlang.c: Formatting.
271 (walk_wild_consider_section): Remember return value from wildcardp.
272 (is_simple_wild): Use strcspn instead of 2 strpbrk calls and strlen.
273 (wild_spec_can_overlap): Use strcspn instead of strpbrk and strlen.
274
275 2005-04-06 Robert O'Callahan <rocallahan@novell.com>
276
277 * ld.h (lean_section_userdata_type): Remove.
278 (fat_section_userdata_type): Remove file field.
279 (SECTION_USERDATA_SIZE): Remove.
280 * ldlang.c (init_os): Eliminate initialization of unused
281 lean_section_userdata_type.
282
283 * ldlang.h (callback_t, walk_wild_section_handler_t): New
284 typedefs.
285 (struct lang_wild_statement_struct): Add walk_wild_section_handler
286 and handler_data fields.
287 * ldlang.c (callback_t): Removed.
288 (walk_wild_consider_section, walk_wild_section_general,
289 section_iterator_callback, find_section, is_simple_wild,
290 match_simple_wild, walk_wild_section_specs1_wild0,
291 walk_wild_section_specs1_wild1, walk_wild_section_specs2_wild1,
292 walk_wild_section_specs3_wild2, walk_wild_section_specs4_wild2,
293 wild_spec_can_overlap, analyze_walk_wild_section_handler): New
294 functions.
295 (lang_add_wild): Call analyze_walk_wild_section_handler.
296 (walk_wild_section): Renamed to walk_wild_section_general and
297 created a wrapper function.
298 (section_iterator_callback_data): New typedef.
299
300 2005-04-04 Nick Clifton <nickc@redhat.com>
301
302 * configure.in: Add a check for <unistd.h> providing a prototype
303 for getopt() which is compatible with the one in
304 include/getopt.h. If so then define HAVE_DECL_GETOPT.
305 * configure: Regenerate.
306 * config.in (HAVE_DECL_GETOPT): Add.
307 * ldemul.c: Include config.h
308 * lexsup.c: Likewise.
309 * emultempl/elf32.sc: Likewise.
310
311 2005-03-29 Alan Modra <amodra@bigpond.net.au>
312
313 * emultempl/elf32.em (gld${EMULATION_NAME}_layout_sections_again):
314 New function, extracted from static void gld${EMULATION_NAME}_finish.
315 (gld${EMULATION_NAME}_strip_empty_sections): Likewise.
316 (gld${EMULATION_NAME}_provide_init_fini_syms): Likewise.
317 * emultempl/ppc64elf.em: Revert last change.
318 (ppc_layout_sections_again): Use
319 gld${EMULATION_NAME}_layout_sections_again.
320 (ppc_finish): Don't call gld${EMULATION_NAME}_finish. Instead call
321 gld${EMULATION_NAME}_strip_empty_sections and
322 gld${EMULATION_NAME}_provide_init_fini_syms.
323 * emultempl/hppaelf.em: Similarly.
324
325 2005-03-29 Alan Modra <amodra@bigpond.net.au>
326
327 * emultempl/ppc64elf.em (need_laying_out): Delete. Remove all refs.
328 (ppc_finish): Don't call bfd_elf_discard_info.
329 * emultempl/hppaelf.em: Similarly.
330
331 2005-03-24 Nick Clifton <nickc@redhat.com>
332
333 * po/fr.po: Updated French translation.
334
335 2005-03-23 Mike Frysinger <vapier@gentoo.org>
336 Nick Clifton <nickc@redhat.com>
337
338 * configure.host: Accept any C library to accompany a GNU Linux
339 implementation, not just the GNU C library.
340 * configure.tgt: Likewise.
341 * emultempl/elf32.em: Likewise.
342
343 2005-03-22 H.J. Lu <hongjiu.lu@intel.com>
344
345 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols): New
346 (gld${EMULATION_NAME}_finish): Call
347 gld${EMULATION_NAME}_provide_bound_symbols to provide
348 __preinit_array_start, __preinit_array_end, __init_array_start,
349 __init_array_end, __fini_array_start and __fini_array_end.
350
351 * scripttempl/elf.sc: Don't provide __preinit_array_start,
352 __preinit_array_end, __init_array_start, __init_array_end,
353 __fini_array_start nor __fini_array_end.
354
355 2005-03-23 Alan Modra <amodra@bigpond.net.au>
356
357 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Set
358 SEC_EXCLUDE on .gnu.warning sections.
359
360 2005-03-22 Alan Modra <amodra@bigpond.net.au>
361
362 * scripttempl/elf.sc (SBSS): Don't provide sbss start and end syms.
363
364 2005-03-21 Alan Modra <amodra@bigpond.net.au>
365
366 * emultempl/ppc32elf.em (gld${EMULATION_NAME}_after_allocation): New
367 function.
368 (LDEMUL_AFTER_ALLOCATION): Define.
369
370 2005-03-21 Alan Modra <amodra@bigpond.net.au>
371
372 * emultempl/ppc64elf.em (ppc_finish): Rename from
373 gld${EMULATION_NAME}_finish. Call gld${EMULATION_NAME}_finish.
374 (LDEMUL_FINISH): Update.
375 * emultempl/hppaelf.em (hppaelf_finish, LDEMUL_FINISH): Likewise.
376 * emultempl/m68hc1xelf.em (m68hc11elf_finish, LDEMUL_FINISH): Likewise.
377
378 2005-03-18 Julian Brown <julian@codesourcery.com>
379
380 * scripttempl/armbpapi.sc (.rel.dyn): Add .rel.init_array,
381 .rel.fini_array.
382 (.rela.dyn): Add .rela.init_array, .rela.fini_array.
383 (SECTIONS): Add .rel.other, .rela.other, .reli.other after PLT relocs.
384
385 2005-03-18 H.J. Lu <hongjiu.lu@intel.com>
386
387 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Don't set
388 bfd_section when removing unused empty output sections for
389 non-relocatable link.
390
391 2005-03-19 Alan Modra <amodra@bigpond.net.au>
392
393 * ldlang.c (lang_insert_orphan): Use old section_tail rather than
394 traversing the bfd section list to find pointer to new section.
395
396 2005-03-18 Alan Modra <amodra@bigpond.net.au>
397
398 * scripttempl/elf.sc: When CREATE_SHLIB, put .sdata2 and .sbss2
399 input sections into .sdata and .sbss output respectively.
400
401 2005-03-16 David Heine <dlheine@tensilica.com>
402 Bob Wilson <bob.wilson@acm.org>
403
404 * ldlang.c (IGNORE_SECTION): Remove check for zero size.
405 (lang_check_section_addresses): Ignore zero size sections here.
406
407 2005-03-16 H.J. Lu <hongjiu.lu@intel.com>
408
409 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Remove
410 unused empty output sections for non-relocatable link.
411
412 * ld.h (args_type): Remove gc_sections.
413
414 * ldlang.c (lang_mark_used_section): New.
415 (lang_gc_sections): Use link_info.gc_sections instead of
416 command_line.gc_sections.
417 * ldmain.c (main): Likewise.
418 * lexsup.c (parse_args): Likewise.
419 * ldlang.c (lang_process): Call lang_mark_used_section.
420
421 * ldmain.c (main): Initialize link_info.gc_sections to FALSE.
422
423 2005-03-16 Nick Clifton <nickc@redhat.com>
424 Ben Elliston <bje@au.ibm.com>
425
426 * configure.in (werror): New switch: Add -Werror to the
427 compiler command line. Enabled by default. Disable via
428 --disable-werror.
429 * configure: Regenerate.
430
431 2005-03-16 Alan Modra <amodra@bigpond.net.au>
432
433 * emulparams/elf32ppclinux.sh (OTHER_READWRITE_SECTION): Delete.
434 (OTHER_RELRO_SECTIONS): Set this instead.
435
436 2005-03-15 Nick Clifton <nickc@redhat.com>
437
438 * NEWS: Add cutoff for changes in 2.16 release.
439
440 2005-03-15 Mikkel Krautz <krautz@gmail.com>
441
442 * configure.tgt (x86_64-elf): Add target.
443
444 2005-03-15 Alan Modra <amodra@bigpond.net.au>
445
446 * po/es.po: Commit new Spanish translation.
447
448 2005-03-14 Alan Modra <amodra@bigpond.net.au>
449
450 * ldexp.c (exp_fold_tree): Ensure return value is initialized.
451 Tidy etree_assert case.
452
453 2005-03-14 Alan Modra <amodra@bigpond.net.au>
454
455 * po/tr.po: Commit new Turkish translation.
456
457 2005-03-11 Daniel Jacobowitz <dan@codesourcery.com>
458
459 * Makefile.am: Remove references to em68klynx.o and esparclynx.o.
460 * Makefile.in: Regenerated.
461 * emulparams/m68klynx.sh, emulparams/sparclynx.sh: Remove.
462
463 2005-03-07 Nick Clifton <nickc@redhat.com>
464
465 * po/fr.po: Updated translation.
466
467 2005-03-05 Alan Modra <amodra@bigpond.net.au>
468
469 * po/ld.pot: Regenerate.
470
471 2005-03-02 Jan Beulich <jbeulich@novell.com>
472
473 * ldmain.c (remove_output): Use unlink_if_ordinary instead of unlink.
474 * pe-dll.c (pe_dll_generate_implib): Likewise.
475
476 2005-02-24 Ben Elliston <bje@au.ibm.com>
477
478 * ldfile.c: Remove GNU960 conditional code.
479 * emultempl/gld960.em: Likewise.
480 * emultempl/gld960c.em: Likewise.
481 * emultempl/lnk960.em: Likewise.
482
483 2005-02-24 Nick Clifton <nickc@redhat.com>
484
485 * emultempl/lnk960.em (lnk960_before_parse): Remove redundant
486 empty string from calls to concat.
487
488 2005-02-23 Nick Clifton <nickc@redhat.com>
489
490 * emultempl/lnk960.em (lnk960_before_parse): Terminate list of
491 arguments passed to concat() with a NULL.
492
493 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h because they
494 define types needed by ldfile.h
495
496 2005-02-23 Alan Modra <amodra@bigpond.net.au>
497
498 * pe-dll.c: Warning fixes.
499 * emultempl/sunos.em: Likewise.
500
501 2005-02-22 Daniel Jacobowitz <dan@codesourcery.com>
502
503 * ldlang.c (section_already_linked): Don't call
504 bfd_section_already_linked for dynamic objects.
505
506 2005-02-22 Alan Modra <amodra@bigpond.net.au>
507
508 * ldexp.c: Warning fixes.
509 * ldwrite.c: Likewise.
510 * emultempl/elf32.em: Likewise.
511
512 2005-02-21 H.J. Lu <hongjiu.lu@intel.com>
513
514 * ldlang.c (lang_add_section): Check SEC_TIC54X_BLOCK for TI
515 tic54x input only.
516 (lang_size_sections_1): Check SEC_COFF_SHARED_LIBRARY for COFF
517 and ECOFF output only.
518
519 2005-02-21 Alan Modra <amodra@bigpond.net.au>
520
521 * config.in: Regenerate.
522 * configure: Regenerate.
523
524 2005-02-17 Zack Weinberg <zack@codesourcery.com>
525
526 * ldexp.c (assigning_to_dot): New global flag.
527 (fold_name): If assigning_to_dot is true, object immediately to
528 an undefined symbol.
529 (exp_fold_tree): Set and clear assigning_to_dot around the
530 recursive call to exp_fold_tree to process the right-hand side
531 of an assignment to the location counter.
532
533 2005-02-17 Paul Brook <paul@codesourcery.com>
534
535 * scripttempl/armbpabi.sc: Add dummy name to version block.
536
537 2005-02-17 Alan Modra <amodra@bigpond.net.au>
538
539 * ldexp.c (new_abs): Init new.str.
540
541 2005-02-15 Mark Mitchell <mark@codesourcery.com>
542
543 * configure.in (AC_CHECK_FUNCS): Add glob.
544 * configure: Regenerated.
545 * emultempl/elf32.em (<glob.h>): Do not include if HAVE_GLOB is
546 not defined.
547 (gld${EMULATION_NAME}_parse_ld_so_conf_include): Do not use glob
548 if HAVE_GLOB is not defined.
549
550 2005-02-16 Kaz Kojima <kkojima@rr.iij4u.or.jp>
551
552 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define
553 lib_path if NATIVE is yes.
554
555 2005-02-16 Alan Modra <amodra@bigpond.net.au>
556
557 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Make
558 an error creating fake bfd fatal.
559 (ppc_before_allocation): Continue on after errors.
560 (gld${EMULATION_NAME}_finish): Likewise.
561
562 2005-02-15 Nick Clifton <nickc@redhat.com>
563
564 * ldlex.l (YY_NO_UNPUT): Define so that the yy_unput function is
565 not declared. It is not used and its presence causes a compile
566 time warning.
567
568 2005-02-11 Zack Weinberg <zack@codesourcery.com>
569
570 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed):
571 If st.st_ino is zero, do not treat the library as a duplicate.
572
573 2005-02-10 Jakub Jelinek <jakub@redhat.com>
574
575 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
576 Set BFD_LINKER_CREATED on the stubs bfd.
577 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
578 Likewise.
579
580 2005-02-08 Mark Mitchell <mark@codesourcery.com>
581
582 * scripttempl/armbpabi.sc (VERSION): Make special section symbols
583 local.
584 (Image$$ER_RO$$Base): Define whenever RELOCATING.
585 (Image$$ER_RO$$Limit): Likewise.
586 (SHT$$INIT_ARRAY$$Base): Likewise.
587 (SHT$$INIT_ARRAY$$Limit): Likeise.
588
589 2005-02-10 Ben Elliston <bje@au.ibm.com>
590
591 * emultempl/beos.em: Remove #if 0 and #if 1 blocks.
592
593 2005-02-08 Richard Sandiford <rsandifo@redhat.com>
594
595 * configure.tgt (mips64*el-*-linux-gnu*): Define targ_extra_libpath
596 to include o32 and n64 emulations.
597 (mips64*-*-linux-gnu*): Likewise.
598
599 2005-02-08 Hans-Peter Nilsson <hp@axis.com>
600
601 * ldmain.c (warning_callback, warning_find_reloc): Prepend
602 "warning: " to warning messages.
603
604 2005-02-04 Alan Modra <amodra@bigpond.net.au>
605
606 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't
607 look up symbol for etree_provide here.
608
609 2005-02-02 Daniel Jacobowitz <dan@codesourcery.com>
610
611 * emulparams/elf32bmip.sh (TEXT_DYNAMIC): Always set.
612
613 2005-02-01 Edward Welbourne <eddy@opera.com>
614 Nick Clifton <nickc@redhat.com>
615
616 * ld.texinfo (Source Code Reference): New node describing how to
617 access linker script defined variables from source code.
618
619 2005-02-01 Alan Modra <amodra@bigpond.net.au>
620
621 * ld.texinfo: Clarify --as-needed operation.
622
623 2005-01-31 Andrew Cagney <cagney@gnu.org>
624
625 * configure: Regenerate to track ../gettext.m4.
626
627 2005-01-31 Nick Clifton <nickc@redhat.com>
628
629 * ldver.c (ldversion): Bump reported copyright date to 2005.
630
631 2005-01-31 Nick Clifton <nickc@redhat.com>
632
633 * configure.tgt: Remove obsolete targets m68k-lynxos and
634 sparc-lynxos.
635
636 2005-01-28 Julian Brown <julian@codesourcery.com>
637
638 * emultempl/armelf.em (fix_v4bx): New variable.
639 (arm_elf_create_output_section_statements): Communicate fix_v4bx flag
640 value to bfd.
641 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_FIX_V4BX.
642 (PARSE_AND_LIST_LONGOPTS): Add option --fix-v4bx.
643 (PARSE_AND_LIST_OPTIONS): Add option --fix-v4bx.
644 (PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX.
645 * NEWS: Mention --fix-v4bx.
646 * ld.texinfo: Document --fix-v4bx.
647
648 2005-01-25 Mark Mitchell <mark@codesourcery.com>
649
650 * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Define, so
651 as to include .ARM.exidx$${Base,Limit}.
652 * ld/scripttempl/armbpabi.sc: Move .plt to end of text segment.
653 Define IMAGE$$ER_RO$${Base,Limit} and SHT$$INIT_ARRAY$${Base,Limit}.
654 Put .init_array, .fini_array, etc. into the read-only data
655 segment.
656
657 2005-01-25 Alan Modra <amodra@bigpond.net.au>
658
659 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Formatting.
660 (gld${EMULATION_NAME}_after_open): Ignore needed libs if they were
661 only needed by an as-needed lib that didn't get linked.
662
663 2005-01-23 Alan Modra <amodra@bigpond.net.au>
664
665 * ld.texinfo (Output Section Keywords <CONSTRUCTORS>): Correct
666 __DTOR_LIST__ description.
667
668 2005-01-23 Alan Modra <amodra@bigpond.net.au>
669
670 * ld.texinfo (Location Counter <dot outside sections>): Document
671 effects of orphan section placement, and ". = ." workaround.
672 * Makefile.in: Regenerate.
673
674 2005-01-22 Richard Sandiford <rsandifo@redhat.com>
675
676 * emulparams/elf32bmip.sh (OTHER_GOT_SECTIONS): Add ". = .;".
677 * emulparams/elf32bmipn32-defs.sh (OTHER_GOT_SECTIONS): Likewise.
678
679 2005-01-21 Jakub Jelinek <jakub@redhat.com>
680
681 * ldgram.y (AS_NEEDED): New token.
682 (input_list): Handle AS_NEEDED ( input_list ).
683 * ldlex.l (AS_NEEDED): Add.
684 * ld.texinfo: Document AS_NEEDED ().
685 * NEWS: Mention AS_NEEDED ().
686
687 2005-01-21 Ben Elliston <bje@au.ibm.com>
688
689 * ldlang.c (lang_reasonable_defaults): Remove.
690 (lang_process): Don't call lang_reasonable_defaults.
691
692 * ldexp.c (exp_assop): Remove #if 0'd code.
693 (exp_print_tree): Likewise.
694 * ldlang.c (lang_memory_region_lookup): Likewise.
695 (open_output): Likewise.
696 (lang_do_assignments_1): Likewise.
697 (lang_place_orphans): Likewise.
698 (lang_enter_output_section_statement): Likewise.
699 (lang_reasonable_defaults): Likewise.
700 * ldlang.h (struct lang_input_statement_struct): Likewise.
701 * mri.c (mri_draw_tree): Likewise.
702 (mri_load): Likewise.
703 * pe-dll.c (generate_reloc): Likewise.
704 (make_import_fixup_entry): Likewise.
705 (pe_as16): Likewise.
706 * emultempl/beos.em (set_pe_subsystem): Likewise.
707 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
708 * emultempl/pe.em: Likewise.
709 * emultempl/xtensaelf.em (xtensa_colocate_literals): Likewise.
710
711 2005-01-20 Daniel Jacobowitz <dan@codesourcery.com>
712
713 * Makefile.am (ALL_EMULATIONS): Add earmelfb_linux_eabi.o.
714 (earmelfb_linux_eabi.c): New target.
715 * Makefile.in: Regenerated.
716 * configure.tgt (arm*b-*-linux-gnueabi): New target.
717 * emulparams/armelfb_linux_eabi.sh: New file.
718
719 2005-01-20 Nick Hudson <skrll@netbsd.org>
720
721 PR ld/676
722 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
723 Handle bfd_elf32_hppa_nbsd_vec.
724
725 2005-01-19 Richard Sandiford <rsandifo@redhat.com>
726
727 * ldmain.h (ld_sysroot): Change type to a constant string.
728 * ldmain.c (ld_sysroot): Likewise.
729 (get_relative_sysroot, get_sysroot): New functions, adding command-line
730 support for changing the sysroot.
731 (main): Call the new functions.
732 * lexsup.c (OPTION_SYSROOT): New.
733 (ld_options): Add --sysroot.
734 (parse_args): Add a dummy handler for it.
735 * ld.texinfo (--sysroot): Document.
736 * NEWS: Mention the new --sysroot option.
737
738 2005-01-18 Alan Modra <amodra@bigpond.net.au>
739
740 * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
741 (lang_place_orphans): Don't abort on just_syms_flag, instead call
742 bfd_link_just_syms.
743
744 2005-01-16 Danny Smith <dannysmith@users.sourceforge.net>
745
746 * defilep.y (def_name, def_library): Combine into...
747 (def_image_name): New function. Strip name to basename,
748 with warning.
749
750 2005-01-12 Mark Kettenis <kettenis@gnu.org>
751
752 * configure.in: Be sure to invoke config.sub using the shell.
753 * configure: Regenerate.
754
755 2005-01-11 Alan Modra <amodra@bigpond.net.au>
756
757 * configure.host: Correct sed patterns for last change.
758
759 2005-01-10 Nick Clifton <nickc@redhat.com>
760
761 PR binutils/609
762 * ldmisc.c (vfinfo): Add an extra argument: is_warning. Use this
763 to determine whether config.make_executable should be set to FALSE in
764 conjunction with config.fatal_warnings.
765 (info_msg, minfo, lfinof): Pass FALSE as the extra argument.
766 (einfo): Pass TRUE as the extra argument.
767
768 2005-01-10 Greg Schaffer <gschafer@zip.com.au>
769
770 * configure.host (linux targets): Use "${CC} -dumpspecs" instead
771 of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0.
772 (ia64-*-aix): Delete - this target is obsolete, and would be
773 broken by this patch.
774
775 2005-01-06 Eric Botcazou <ebotcazou@libertysurf.fr>
776
777 * configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*.
778 (sparc64-sun-solaris2*): New host.
779
780 2005-01-06 Paul Brook <paul@codesourcery.com>
781
782 * Makefie.am: Add earmelf_vxworks.
783 * Makefile.in: Regenerate.
784 * configure.tgt: Make arm-*-vxworks a separate case.
785 * emulparams/armelf_vxworks.sh: New function.
786
787 2005-01-06 Alan Modra <amodra@bigpond.net.au>
788
789 * emultempl/ppc64elf.em (no_multi_toc): New var.
790 (gld${EMULATION_NAME}_finish): Pass to ppc64_elf_setup_section_lists.
791 (OPTION_NO_MULTI_TOC): Define.
792 (PARSE_AND_LIST_LONGOPTS): Add --no-multi-toc support.
793 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
794
795 2005-01-05 Nick Clifton <nickc@redhat.com>
796
797 PR binutils/614
798 * ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
799 Standard's specification for parsable error messages.
800
801 2005-01-04 Paul Brook <paul@codesourcery.com>
802
803 * Makefile.am: Correct dependency for earmsymbian.c.
804 * Makefile.in: Regenerate.
805
806 2004-12-28 Danny Smith <dannysmith@users.sourceforge.net>
807
808 * emultempl/pe.em (set_pe_subsystem): Change second arg to
809 lang_add_entry to FALSE.
810
811 2004-12-23 Nick Clifton <nickc@redhat.com>
812
813 PR 600
814 * emulparams/shelf.sh (.stack): Increase stack start address to
815 0x300000.
816
817 2004-12-20 Nick Clifton <nickc@redhat.com>
818
819 * ldmain.c (main): Issue an error message if -static and -shared
820 are used together.
821
822 2004-12-17 Jakub Jelinek <jakub@redhat.com>
823
824 * ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
825 * ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
826 * ldlang.c (lang_size_sections): Use them to avoid wasting virtual
827 address space at DATA_SEGMENT_ALIGN. Fix computation of expected
828 PT_GNU_RELRO segment end.
829
830 2004-12-14 P.J. Darcy <darcypj@us.ibm.com>
831
832 * configure.tgt: Add s390x-ibm-tpf support.
833
834 2004-12-16 Martin Kögler <mkoegler@auto.tuwien.ac.at>
835
836 * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
837 BFD.
838
839 2004-12-07 Ben Elliston <bje@gnu.org>
840
841 * ldemul.h: Forward declare struct option.
842
843 2004-12-01 Danny Smith <dannysmith@users.sourceforge.net>
844
845 * scripttempl/pe.sc (.data): Add .jcr subsection.
846
847 2004-11-30 Paul Brook <paul@codesourcery.com>
848
849 * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
850
851 2004-11-30 Tero Niemela <tero_niemela@yahoo.com>
852
853 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
854 * Makefile.in: Regenerate.
855
856 2004-11-26 Melissa Mears <asterisk@graces.dricas.com>
857
858 * emultempl/pe.em: Add --subsystem:xbox as well as
859 --subsystem:%d.
860 * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
861 and numeric subsystems.
862
863 2004-11-24 Alan Modra <amodra@bigpond.net.au>
864
865 * ldexp.c (fold_name): Correct PR 338 fix.
866
867 2004-11-19 Mark Mitchell <mark@codesourcery.com>
868
869 * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
870 (earmelf_linux_eabi.c): New target.
871 * configure.tgt (arm*-*-linux-gnueabi): Handle it.
872 * emulparams/armelf_linux_eabi.sh: New file.
873 * Makefile.in: Regenerated.
874
875 2004-11-19 Nick Clifton <nickc@redhat.com>
876
877 PR 518
878 * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
879 LENGTH fields in the MEMORY command, to explicitly state that
880 symbols cannot be used in their expressions.
881
882 2004-11-19 Jon Beniston <jon@beniston.com>
883
884 * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
885 * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
886 * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
887 which return the length and origin of a memory.
888 * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
889 * NEWS: Mention support for ORIGIN and LENGTH operators.
890
891 2004-11-17 Daniel Jacobowitz <dan@codesourcery.com>
892
893 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
894 a dynamic object for stubs.
895
896 2004-11-04 Paul Brook <paul@codesourcery.com>
897
898 * ld.texinfo: Document --default-imported-symver.
899 * ldmain.c (main): Set link_info.default_imported_symver.
900 * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
901 (ld_options): Add --default-imported-symver.
902 (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
903
904 2004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
905 Vineet Sharma <vineets@noida.hcltech.com>
906
907 * Makefile.am: Add entries for new maxq-coff target.
908 * Makefile.in: Regenerate.
909 * configure.tgt: Add support for maxq.
910 * emulparams/maxqcoff.sh: New File.
911 * scripttempl/maxqcoff.sc: New linker script for target maxq.
912 * NEWS: Mention the new target.
913
914 2004-11-04 Daniel Jacobowitz <dan@debian.org>
915
916 * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
917 (earmelf_oabi.c): Remove rule.
918 * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
919 * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
920 * Makefile.in: Regenerated.
921
922 2004-11-04 Hans-Peter Nilsson <hp@axis.com>
923
924 * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
925 * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
926 (FINI_START): Ditto.
927 (INIT_END): Remove emitted "jump [sp+]".
928 (FINI_END): Ditto.
929
930 2004-11-04 Alan Modra <amodra@bigpond.net.au>
931
932 * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
933 (no_opd_opt, no_toc_opt): New static vars.
934 (ppc_before_allocation): Don't edit opt if no_opd_opt. Call
935 ppc64_elf_edit_toc.
936 (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
937 (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
938 (PARSE_AND_LIST_OPTIONS): Describe new options.
939 (PARSE_AND_LIST_ARGS_CASES): Handle them.
940
941 2004-10-27 Nick Clifton <nickc@redhat.com>
942
943 * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
944 parameter to invocation of lang_section_start.
945 * emultempl/aix.em (_handle_option): Likewise.
946
947 * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
948 eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
949 * Makefile.in: Regenerate.
950
951 2004-10-26 Mark Mitchell <mark@codesourcery.com>
952
953 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
954 __exidx_{start,end} when not relocating.
955
956 2004-10-25 Mark Mitchell <mark@codesourcery.com>
957
958 * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
959 * ldexp.h (segment_type): New type.
960 (segments): New variable.
961 * ldexp.c (segments): New variable.
962 (exp_print_token): Handle SEGMENT_START.
963 (fold_binary): Likewise.
964 * ldgram.y (SEGMENT_START): Declare it as a token.
965 (exp): Handle SEGMENT_START.
966 * ldlang.h (lang_address_statement_type): Add segment field.
967 (lang_section_start): Change prototype.
968 * ldlang.c (map_input_to_output_sections): Do not process section
969 assignments if a corresponding SEGMENT_START has already been
970 seen.
971 (lang_section_start): Add segment parameter.
972 * ldlex.l (SEGMENT_START): Add it.
973 * lexsup.c (seg_segment_start): New function.
974 (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
975 * ld.texinfo (SEGMENT_START): Document it.
976 * emulparams/armsymbian.sh (EMBEDDED): Set it.
977 * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
978 base addresses. Do not map relocations.
979 * NEWS: Mention SEGMENT_START.
980
981 2004-10-26 Paul Brook <paul@codesourcery.com>
982
983 * ld.texinfo: Document --default-symver.
984 * ldmain.c (main): Set link_info.create_default_symver.
985 * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
986 (ld_options): Add default-symver.
987 (parse_args): Handle OPTION_DEFAULT_SYMVER.
988
989 2004-10-24 Danny Smith <dannysmith@users.sourceforge.net>
990
991 * pe-dll.c (process_def_file): Don't export all symbols by default if
992 building a position-independent executable.
993
994 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
995
996 PR 463
997 * ldmain.c (reloc_overflow): Accept a pointer to struct
998 bfd_link_hash_entry. Report symbol location for relocation
999 overflow.
1000
1001 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
1002
1003 * genscripts.sh (libpath.exp): Really generate for first
1004 emulation only.
1005
1006 2004-10-19 Danny Smith <dannysmith@users.sourceforge.net>
1007
1008 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
1009 comparison and replacement of filenames.
1010
1011 2004-10-19 H.J. Lu <hongjiu.lu@intel.com>
1012
1013 PR 459
1014 * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
1015 option on linker script as the one for linker script.
1016
1017 2004-10-16 Daniel Jacobowitz <dan@debian.org>
1018
1019 * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
1020 (check_excluded_libs): New.
1021 (load_symbols): Call check_excluded_libs.
1022 * ldlang.h (add_excluded_libs): New prototype.
1023 * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
1024 (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
1025 (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
1026 * ld.texinfo (Command Line Variables): Document --exclude-libs.
1027 (Options Specific to i386 PE Targets): Remove --exclude-libs.
1028
1029 2004-10-15 Alan Modra <amodra@bigpond.net.au>
1030
1031 * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
1032 failing link script assert.
1033
1034 * ldctor.c (ldctor_add_set_entry): Fix comment typo.
1035
1036 2004-10-14 H.J. Lu <hongjiu.lu@intel.com>
1037
1038 PR 445
1039 * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
1040 (SMALL_DATA_DTOR): Set.
1041 * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
1042 (SMALL_DATA_DTOR): Unset.
1043 * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
1044 after .data. If SMALL_DATA_DTOR is set, move .dtors after
1045 .data.
1046
1047 2004-10-14 Alan Modra <amodra@bigpond.net.au>
1048
1049 PR 63
1050 * ldlang.h (lang_output_section_statement_type): Make "next" a
1051 struct lang_output_section_statement_struct *.
1052 (struct orphan_save): Move from elf32.em. Add "name" and "flags".
1053 (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
1054 * ldlang.c (lang_output_section_find_1): Adjust for changed
1055 output_section_statement "next".
1056 (strip_excluded_output_sections): Likewise.
1057 (lang_record_phdrs): Likewise.
1058 (lang_output_section_find_by_flags): New function.
1059 (output_prev_sec_find): Move from pe.em. Adjust iterator.
1060 (lang_insert_orphan): New function. Tail end of elf32.em's
1061 place_orphan merged with that from pe.em. Allow bfd_section to
1062 be placed first. New heuristic for placing new output section
1063 statement in existing script, and accompanying split of __start
1064 symbol alignment into a separate assignment to dot.
1065 (lang_add_section): Consistently use output->bfd_section rather than
1066 an alias, section->output_section.
1067 (map_input_to_output_sections): Rename overly long arg. Move
1068 initialization of data_statement output section to here..
1069 (lang_check_section_addresses): ..from here.
1070 (print_assignment): Correct printing of etree_assert.
1071 (print_all_symbols): Don't bomb if userdata is NULL.
1072 (IGNORE_SECTION): Rearrange.
1073 * emultempl/elf32.em (output_rel_find): Adjust interator.
1074 (output_prev_sec_find): Delete.
1075 (struct orphan_save): Delete.
1076 (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
1077 flags without creating a duplicate output section statement.
1078 Revise code holding history of various orphan section placements.
1079 Allow orphan sections to place before script specified output
1080 sections. Call lang_output_section_find_by_flags when placement
1081 by name fails. Use lang_insert_orphan.
1082 * emultempl/mmo.em (output_prev_sec_find): Delete.
1083 (struct orphan_save): Delete.
1084 (mmo_place_orphan): Revise code holding history of orphan placement.
1085 Allow orphans to place before existing output sections. Use
1086 lang_insert_orphan.
1087 * emultempl/pe.em (output_prev_sec_find): Delete.
1088 (struct orphan_save): Delete.
1089 (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
1090 lang_insert_orphan.
1091
1092 2004-10-13 Mark Mitchell <mark@codesourcery.com>
1093
1094 * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
1095 loadable segment.
1096
1097 2004-10-13 Alan Modra <amodra@bigpond.net.au>
1098
1099 PR 44
1100 * ldcref.c (check_section_sym_xref): Delete.
1101 (check_local_sym_xref): New function.
1102 (check_nocrossrefs): Adjust call.
1103 * emultempl/pe.em (struct orphan_save): Add os_tail.
1104 (place_orphan): Backport assorted fixes from elf32.em.
1105
1106 2004-10-12 Bob Wilson <bob.wilson@acm.org>
1107
1108 * emultempl/xtensaelf.em: Use ISO C90 formatting.
1109
1110 2004-10-11 Jakub Jelinek <jakub@redhat.com>
1111
1112 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
1113 getline for portability.
1114
1115 * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
1116 (gld${EMULATION_NAME}_parse_ld_so_conf,
1117 gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
1118 (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
1119
1120 2004-10-11 Alan Modra <amodra@bigpond.net.au>
1121
1122 PR 423
1123 * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
1124 rejected when linking statically.
1125
1126 2004-10-08 Daniel Jacobowitz <dan@debian.org>
1127
1128 * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
1129
1130 2004-10-07 Bob Wilson <bob.wilson@acm.org>
1131
1132 * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
1133 assembler-generated longcall sequences. Describe new --size-opt
1134 option.
1135 * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
1136 * emultempl/xtensaelf.em (remove_section,
1137 replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
1138 elf_xtensa_after_open): New.
1139 (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
1140 OPTION_NO_LITERAL_MOVEMENT): Define.
1141 (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
1142 (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
1143 (PARSE_AND_LIST_OPTIONS): Add --size-opt.
1144 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
1145 OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
1146 (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
1147 * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
1148 * Makefile.am (eelf32xtensa.c): Update dependencies.
1149 * Makefile.in: Regenerate.
1150
1151 2004-10-07 Jeff Baker <jbaker@qnx.com>
1152
1153 * lexsup.c: Handle --warn-shared-textrel option.
1154 (ld_options): Restore alpha sorting of options.
1155 * ldmain.c (main): Initialise warn_shared_info field to FALSE.
1156 * ld.texinfo: Add documentation for --warn-shared-textrel.
1157 * NEWS: Added mention of --warn-shared-textrel option.
1158
1159 2004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
1160
1161 * emultempl/crxelf.em (disable_relaxation): Add.
1162 (crxelf_before_allocation): Enable --relax option by default.
1163 (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
1164 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
1165 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
1166
1167 2004-10-04 H.J. Lu <hongjiu.lu@intel.com>
1168
1169 * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
1170 --sort-section name|alignment.
1171
1172 * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
1173 --sort-section name|alignment.
1174
1175 * ld.h (sort_type): New enum.
1176 (wildcard_spec): Change the type of `sorted' to sort_type.
1177
1178 * ldgram.y (SORT): Removed.
1179 (SORT_BY_NAME): Added.
1180 (SORT_BY_ALIGNMENT): Added.
1181 (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
1182 SORT_BY_ALIGNMENT.
1183 (input_section_spec_no_keep): Updated `sorted'.
1184 (statement): Replace SORT with SORT_BY_NAME.
1185
1186 * ldlang.c (compare_section): New function to compare 2
1187 sections with different sorting schemes.
1188 (wild_sort): Updated. Use compare_section.
1189 (update_wild_statements): New function.
1190 (lang_process): Call update_wild_statements before
1191 map_input_to_output_sections.
1192
1193 * ldlex.l (SORT_BY_NAME): New.
1194 (SORT_BY_ALIGNMENT): New.
1195 (SORT): Return SORT_BY_NAME.
1196
1197 * ldmain.c (sort_section): New. Defined.
1198 (main): Initialize it to none.
1199
1200 * lexsup.c (option_values): Add OPTION_SORT_SECTION.
1201 (ld_options): Add an entry for OPTION_SORT_SECTION.
1202 (parse_args): Handle OPTION_SORT_SECTION.
1203
1204 * mri.c (mri_draw_tree): Updated `sorted'.
1205
1206 2004-10-04 Jakub Jelinek <jakub@redhat.com>
1207
1208 * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
1209 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
1210 argument.
1211 (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
1212 and . as second argument.
1213 (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
1214 * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
1215 (fold_binary): Add it here. Insert padding to make relro_end
1216 COMMONPAGESIZE bytes aligned. For DATA_SEGMENT_ALIGN in
1217 exp_dataseg_relro_adjust phase just use previously computed
1218 exp_data_seg.base.
1219 * ldlang.c (lang_size_sections): Set exp_data_seg.base for
1220 relro_adjust here. Call lang_size_sections_1 once more if there
1221 was too big padding at DATA_SEGMENT_RELRO_END.
1222 * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
1223
1224 2004-10-01 Paul Brook <paul@codesourcery.com>
1225
1226 * emulparams/armelf.sh: Add unwinding table sections.
1227
1228 2004-09-30 Filip Navara <navaraf@reactos.com>
1229
1230 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
1231 correct base address for position independant executables.
1232 * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
1233 executables as DLLs.
1234
1235 2004-09-30 Paul Brook <paul@codesourcery.com>
1236
1237 * ld.texinfo: Document --target2=abs.
1238 * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
1239
1240 2004-09-29 Nick Clifton <nickc@redhat.com>
1241
1242 * scripttempl/xstormy16.sc: Only perform the assignments to the
1243 ROM region when not performing a relocatable link. The ROM region
1244 does not start at address 0, but the sections will.
1245 * Makefile.am: Fix linker script dependency for the generation of
1246 eelf32xstormy16.c.
1247 * Makefile.in: Regenerate.
1248
1249 2004-09-18 Filip Navara <navaraf@reactos.com>
1250
1251 * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
1252 emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
1253 emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
1254 TARGET_PAGE_SIZE.
1255 * scripttempl/pe.sc: Make the virtual address and file offset synced if
1256 the alignment is lower than the target page size.
1257
1258 2004-09-27 Filip Navara <navaraf@reactos.com>
1259
1260 * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
1261 def_file_parse to handle pe_def_file if NULL and prevent crash with
1262 invalid .def files.
1263
1264 2004-09-27 Alan Modra <amodra@bigpond.net.au>
1265
1266 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
1267 --emit-stub-syms automatically when --emit-relocs.
1268
1269 2004-09-24 Paul Brook <paul@codeosurcery.com>
1270
1271 * scripttempl/elf.sc: Keep .preinit_array, .init_array and
1272 .fini_array sections.
1273
1274 2004-09-19 Andreas Schwab <schwab@suse.de>
1275
1276 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
1277 base so that relro end is suitably aligned.
1278
1279 2004-09-17 Paul Brook <paul@codesourcery.com>
1280
1281 * ld.texinfo: Rename arm-specific section. Document --target*
1282 * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
1283 * emulparams/armelf_linux.sh: Ditto.
1284 * emulparams/armelf_nbsd.sh: Ditto.
1285 * emultempl/armelf.em: Set default for TARGET2_TYPE.
1286 (target2_type): New variable.
1287 (arm_elf_before_allocation): Don't pass target1_type.
1288 (arm_elf_create_output_section_statements): New function.
1289 (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
1290 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
1291 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
1292 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
1293 * emultempl/armelf_oabi.em (_before_allocation): Remove extra
1294 argument to bfd_elf32_arm_process_before_allocation.
1295
1296 2004-09-17 Alan Modra <amodra@bigpond.net.au>
1297
1298 * ldexp.c (fold_name): Update u.undef.next refs.
1299 * emultempl/pe.em: Likewise.
1300 * emultempl/sunos.em: Likewise.
1301
1302 2004-09-17 Alan Modra <amodra@bigpond.net.au>
1303
1304 * Makefile.am: Run "make dep-am".
1305 * Makefile.in: Regenerate.
1306 * config.in: Regenerate.
1307 * configure: Regenerate.
1308 * aclocal.m4: Regenerate.
1309 * po/ld.pot: Regenerate.
1310
1311 2004-09-16 Tomer Levi <Tomer.Levi@nsc.com>
1312
1313 * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
1314 (.fini): Likewise.
1315 (.jcr): Likewise.
1316
1317 2004-09-16 Alan Modra <amodra@bigpond.net.au>
1318
1319 * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
1320 to bfd_elf32_arm_process_before_allocation call.
1321
1322 2004-09-13 Paul Brook <paul@codesourcery.com>
1323
1324 * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
1325 * emultempl/armelf.em: Use TARGET1_IS_REL. Add --target1-{rel,abs}.
1326
1327 2004-09-07 H.J. Lu <hongjiu.lu@intel.com>
1328
1329 * configure: Regenerated with autconfig 2.13.
1330
1331 2004-09-07 Andreas Schwab <schwab@suse.de>
1332
1333 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
1334 alignment before adjusting DATA_SEGMENT_RELRO_END.
1335
1336 2004-09-06 Mark Mitchell <mark@codesourcery.com>
1337
1338 * emulparams/armsymbian.sh: Use armbpabi script.
1339 * scripttempl/armbpabi.sc: New script.
1340
1341 2004-09-02 Mark Mitchell <mark@codesourcery.com>
1342
1343 * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
1344 (earmsymbian.c): New target.
1345 * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
1346 * Makefile.in: Regenerated.
1347 * aclocal.m4: Likewise.
1348 * configure: Likewise.
1349 * emulparams/armsymbian.sh: New file.
1350
1351 2004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
1352
1353 * scripttempl/elf32crx.sc: Edit file with comments.
1354 (.init): Add new section.
1355 (.fini): Likewise.
1356 (.ctor): Control the linkage order.
1357 (.dtor): Likewise.
1358
1359 2004-08-27 Nick Clifton <nickc@redhat.com>
1360
1361 * emultempl/pe.em (after_open): Do not assume that either bfd is
1362 an archive.
1363
1364 2004-08-26 Alan Modra <amodra@bigpond.net.au>
1365
1366 * ldlang.c (lang_init): Don't compare with TRUE.
1367
1368 2004-08-25 Dmitry Diky <diwil@spec.ru>
1369
1370 * emulparams/msp430all.sh: Fix RAM sizes for all targets.
1371 * scripttempl/elf32msp430.sc: Add .profiler section definition.
1372
1373 2004-08-24 H.J. Lu <hongjiu.lu@intel.com>
1374
1375 * ldlang.c (wildcardp): Defined as a macro with strpbrk.
1376
1377 2004-08-19 Mark Mitchell <mark@codesourcery.com>
1378
1379 * configure.tgt (arm*-*-symbianelf*): New target.
1380 (arm*-*-eabi*): Likewise.
1381
1382 2004-08-19 Jakub Jelinek <jakub@redhat.com>
1383
1384 * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
1385 (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
1386 (OPTION_NON_OVERLAPPING_OPD): Define.
1387 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
1388 --non-overlapping-opd option.
1389
1390 2004-08-18 Alan Modra <amodra@bigpond.net.au>
1391
1392 PR 338
1393 * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
1394 was already on the undefs list.
1395
1396 2004-08-17 Alan Modra <amodra@bigpond.net.au>
1397
1398 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
1399 prefix the symbol field too.
1400
1401 2004-08-13 Alan Modra <amodra@bigpond.net.au>
1402
1403 * ldmain.c (link_callbacks): Remove "error_handler".
1404 * ldmisc.c: Include elf-bfd.h.
1405 (vfinfo): Sort comment. Handle %A. Use %A instead of
1406 bfd_get_section_indent.
1407 (error_handler): Delete.
1408 * ldmisc.h (error_handler): Delete declaration.
1409
1410 2004-08-10 Alan Modra <amodra@bigpond.net.au>
1411
1412 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
1413 ppc64_elf_restore_symbols.
1414
1415 2004-08-09 Alan Modra <amodra@bigpond.net.au>
1416
1417 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
1418 .toc is too large on relocatable linking.
1419
1420 2004-08-09 Alan Modra <amodra@bigpond.net.au>
1421
1422 * emultempl/ppc64elf.em (ppc_after_open): Delete.
1423 (LDEMUL_AFTER_OPEN): Don't define.
1424
1425 2004-08-02 Stephane Carrez <stcarrez@nerim.fr>
1426
1427 * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
1428
1429 2004-08-01 Stephane Carrez <stcarrez@nerim.fr>
1430
1431 * scripttempl/elfm68hc12.sc: Align text, rodata and data section
1432 on power of 2.
1433
1434 2004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
1435
1436 * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
1437
1438 2004-07-26 Dmitry Diky <diwil@spec.ru>
1439
1440 * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
1441 msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
1442 msp430xG439.
1443 * configure.tgt: Likewise.
1444 * emulparams/msp430all.sh: Likewise.
1445 * Makefile.in: Regenerate.
1446
1447 2004-07-23 Nick Clifton <nickc@redhat.com>
1448
1449 * emultempl/elf32.em (_place_orphan): Use an already existing
1450 section name if that section does not have any flags set.
1451
1452 2004-07-21 H.J. Lu <hongjiu.lu@intel.com>
1453
1454 * ldlang.c (already_linked_hash_entry): Removed.
1455 (already_linked): Likewise.
1456 (already_linked_table): Likewise.
1457 (section_already_linked): Call bfd_section_already_linked.
1458 (lang_process): Replace already_linked_table_init with
1459 bfd_section_already_linked_table_init and check return. Replace
1460 already_linked_table_free with bfd_section_already_linked_table_free.
1461
1462 2004-07-21 Nick Clifton <nickc@redhat.com>
1463
1464 * ldlang.c (init_os): Make sure that the newly allocated userdata
1465 structure is zeroed out.
1466
1467 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
1468
1469 * NEWS: Mention the new --add-needed/--no-add-needed and
1470 --as-needed/--no-as-needed options.
1471
1472 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
1473
1474 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
1475 check the add_needed field.
1476 (dt_needed): New struct.
1477 (gld${EMULATION_NAME}_try_needed): Change the first argument
1478 to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
1479 bit in the file where the DT_NEEDED entry comes from.
1480 (gld${EMULATION_NAME}_search_needed): Change the second
1481 argument to a pointer to struct dt_needed.
1482 (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
1483 (gld${EMULATION_NAME}_after_open): Likewise.
1484
1485 * ld.texinfo: Add --add-needed document.
1486 * ldlang.c (new_afile): Set p->add_needed.
1487 * ldlang.h (lang_input_statement_type): Add add_needed field.
1488 * ldmain.h (add_needed): Declare.
1489 * ldmain.c (add_needed): New global var.
1490 * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
1491 OPTION_NO_ADD_NEEDED.
1492 (ld_options): Likewise.
1493 (parse_args): Handle them.
1494
1495 2004-07-13 Christof Petig <christof@petig-baender.de>
1496
1497 * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
1498 for endian-ness of extracted addend.
1499
1500 2004-07-13 Danny Smith <dannysmith@usesr.sourceforge.net>
1501
1502 * pe-dll.c (auto_export): Filter on just the import prefix,
1503 "_imp_", not "_imp__".
1504
1505 2004-07-09 Nick Clifton <nickc@redhat.com>
1506
1507 * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
1508
1509 2004-07-06 Tomer Levi <Tomer.Levi@nsc.com>
1510
1511 * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
1512 (eelf32crx.c): New target.
1513 * Makefile.in: Regenerate.
1514 * configure.tgt: Handle crx-*-elf*.
1515 * emulparams/elf32crx.sh: New file.
1516 * emultempl/crxelf.em: New file.
1517 * scripttempl/elf32crx.sc: New file.
1518 * NEWS: Mention new target.
1519
1520 2004-07-06 Nick Clifton <nickc@redhat.com>
1521
1522 * Makefile.am: Add eshlsymbian.c.
1523 * Makefile.in: Regenerate.
1524 * configure.tgt: Add sh*-symbian-elf target.
1525 * emulparams/shlsymbian.sh: New file. Configure the
1526 sh-symbian-elf linker scripts.
1527 * scripttemp/elf32sh-symbian.sc: New file. Linker script
1528 template for the sh-symbian-elf target.
1529
1530 2004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1531
1532 * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
1533 * emulparams/hppalinux.sh: Likewise.
1534 * scripttempl/elf.sc: Place .plt just before .got when .plt is in
1535 data segment and PLT_BEFORE_GOT is defined.
1536
1537 2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1538
1539 * ld.texinfo (WIN32): Document PE weak symbols.
1540
1541 2004-07-02 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1542
1543 * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
1544
1545 2004-07-01 H.J. Lu <hongjiu.lu@intel.com>
1546
1547 * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
1548 the section.
1549
1550 2004-06-29 Alan Modra <amodra@bigpond.net.au>
1551
1552 * ldlang.c (lang_reset_memory_regions): Save last relax pass section
1553 size in rawsize.
1554
1555 2004-06-24 Alan Modra <amodra@bigpond.net.au>
1556
1557 * ldlang.c (print_output_section_statement): Don't print size before
1558 relaxation.
1559 (IGNORE_SECTION): Remove bfd arg. Update all callers.
1560
1561 * ldexp.c (fold_name): .. See below.
1562 * ldlang.c (section_already_linked, print_output_section_statement,
1563 print_input_section, insert_pad, size_input_section,
1564 lang_check_section_addresses, lang_size_sections_1,
1565 lang_size_sections, lang_do_assignments_1, lang_set_startof,
1566 lang_one_common, lang_reset_memory_regions, lang_process,
1567 lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
1568 * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
1569 * pe-dll.c (process_def_file, generate_reloc): ..
1570 * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
1571 gld${EMULATION_NAME}_before_allocation): ..
1572 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
1573 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
1574 sh64_elf_${EMULATION_NAME}_after_allocation): ..
1575 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
1576 * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
1577 ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
1578 "size" instead of "_raw_size" and "_cooked_size". Expand
1579 bfd_section_size macro invocations.
1580
1581 2004-06-22 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1582
1583 * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
1584 ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
1585 ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
1586 ___crt_xt_end__.
1587 (.tls): Define ___tls_start__ and ___tls_end__.
1588
1589 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
1590
1591 * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
1592
1593 2004-06-18 Adam Nemet <anemet@lnxw.com>
1594
1595 * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
1596 * configure: Regenerate.
1597
1598 2004-06-15 Jakub Jelinek <jakub@redhat.com>
1599
1600 * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
1601 .gcc_except_table output sections lost accidentally with
1602 -z relro patch.
1603
1604 2004-06-15 Alan Modra <amodra@bigpond.net.au>
1605
1606 * ldwrite.c (build_link_order): Use bfd_get_section_size
1607 instead of bfd_get_section_size_before_reloc or _raw_size.
1608 * pe-dll.c (process_def_file): Likewise.
1609
1610 2004-06-14 Alan Modra <amodra@bigpond.net.au>
1611
1612 From Richard Wirth <r.wirth@wirthware.de>
1613 * ldlang.c (lang_finish): Don't free lang_definedness_table.
1614
1615 2004-05-29 Alan Modra <amodra@bigpond.net.au>
1616
1617 * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
1618 (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
1619
1620 2004-05-28 Alan Modra <amodra@bigpond.net.au>
1621
1622 * ldlang.c: Formatting. Wrap long lines, expand bfd_get_section_flags
1623 throughout file.
1624 * lexsup.c: Formatting. Wrap long lines.
1625 * ldwrite.c: Update copyright date.
1626
1627 * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
1628 (output_section_callback): Nor SEC_KEEP here.
1629 (gc_section_callback): Twiddle SEC_EXCLUDE here.
1630 (lang_gc_wild): Delete. Fold into..
1631 (lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage
1632 collecting.
1633 (lang_process): Always call lang_gc_sections.
1634 (lang_place_orphans): Handle SEC_EXCLUDE sections.
1635 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
1636 SEC_EXCLUDE code.
1637
1638 2004-05-26 H.J. Lu <hongjiu.lu@intel.com>
1639
1640 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
1641 SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
1642 * ldlang.c (lang_add_section): Likewise.
1643
1644 2004-05-26 Alan Modra <amodra@bigpond.net.au>
1645
1646 * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
1647 sections when doing a final link. Clear SEC_EXCLUDE when doing
1648 a relocable link, except for SEC_DEBUGGING sections.
1649 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
1650 same condition here to drop SEC_EXCLUDE orphan sections.
1651
1652 2004-05-25 Alan Modra <amodra@bigpond.net.au>
1653
1654 * ldlang.c (lang_process): Call bfd_merge_sections later, and
1655 only when not a relocatable link.
1656 (print_input_section): Handle SEC_EXCLUDE sections.
1657 (size_input_section): Don't update dot on SEC_EXCLUDE sections.
1658 (lang_do_assignments_1): Likewise.
1659 * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
1660 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
1661 * emultempl/hppaelf.em (build_section_lists): Likewise.
1662 * emultempl/ppc64elf.em (build_toc_list): Likewise.
1663 (build_section_lists): Likewise.
1664
1665 2004-05-23 Andreas Schwab <schwab@suse.de>
1666
1667 * ld.texinfo (Options): Fix typo in last change.
1668
1669 2004-05-21 Andy Chittenden <achittenden@bluearc.com>
1670
1671 * ld.h (ld_config_type): Add new field: hash_table_size.
1672 * ldmain.c: Initialise the new field to zero. If it is non-zero
1673 after parsing the linker's command line call
1674 bfd_hash_set_default_size.
1675 * lexsup.c (option_values): Add OPTION_HASH_SIZE.
1676 (ld_options): Add hash-size.
1677 (parse_args): Parse --hash-size option. Allow
1678 --reduce-memory-overheads to set the default hash table size as
1679 well.
1680 * ld.texinfo: Document the new switch. Also mention that
1681 --reduce-memory-overheads can affect the hash table size.
1682 * NEWS: Mention the new feature.
1683
1684 2004-05-19 J"orn Rennecke <joern.rennecke@superh.com>
1685
1686 * NEWS: Mention new linker map file generation and the
1687 --reduce-memory-overheads option.
1688 * ld.texinfo: Document --reduce-memory-overheads option.
1689 * ld.h (map_symbol_def): New struct.
1690 (struct user_section_struct, section_userdata_type): Rename to:
1691 (struct lean_user_section_struct, lean_section_userdata_type).
1692 (struct fat_user_section_struct, fat_section_userdata_type): New.
1693 (SECTION_USERDATA_SIZE): Define.
1694 (args_type): New member reduce_memory_overheads.
1695 * ldlang.c (map_obstack): New static variable.
1696 (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
1697 (lang_map): Unless command_line.reduce_memory_overheads is set,
1698 initialize lists of defined symbols for each section.
1699 (print_input_section): Unless command_line.reduce_memory_overheads
1700 is set, use print_all_symbols.
1701 (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
1702 * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
1703 * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
1704 (ld_options): Add entry for --reduce-memory-overheads.
1705 (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
1706
1707 2004-05-19 Jakub Jelinek <jakub@redhat.com>
1708
1709 * ldgram.y (sect_constraint): New.
1710 (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1711 (section): Add sect_constraint. Pass additional argument
1712 to lang_enter_output_section_statement.
1713 * mri.c (mri_draw_tree): Pass additional argument to
1714 lang_enter_output_section_statement.
1715 * emultempl/pe.em (place_orphan): Likewise.
1716 (output_prev_sec_find): Disregard output section statements with
1717 constraint == -1.
1718 * emultempl/mmo.em (output_prev_sec_find): Likewise.
1719 (mmo_place_orphan): Pass additional argument to
1720 lang_enter_output_section_statement.
1721 * emultempl/elf32.em (output_prev_sec_find): Disregard output section
1722 statements with constraint == -1.
1723 (place_orphan): Pass additional argument to
1724 lang_enter_output_section_statement.
1725 * ldlang.c (lang_enter_overlay_section): Likewise.
1726 (lang_output_section_find_1): New.
1727 (lang_output_section_find): Use it.
1728 (lang_output_section_statement_lookup_1): New.
1729 (lang_output_section_statement_lookup): Use it.
1730 (check_section_callback, check_input_sections): New.
1731 (map_input_to_output_sections): Check if all input sections
1732 are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
1733 (strip_excluded_output_sections): Disregard output section statements
1734 with constraint == -1.
1735 (lang_record_phdrs): Likewise.
1736 (lang_enter_output_section_statement): Add constraint argument.
1737 Use lang_output_section_statement_lookup_1.
1738 * ldlang.h (lang_output_section_statement_type): Add constraint
1739 and all_input_readonly fields.
1740 (lang_enter_output_section_statement): Adjust prototype.
1741 * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1742 * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
1743 segment if all input sections are readonly.
1744
1745 2004-05-19 Adam Nemet <anemet@lnxw.com>
1746
1747 * scripttempl/i386lynx.sc: Remove file.
1748
1749 2004-05-17 Bob Wilson <bob.wilson@acm.org>
1750
1751 * ld.texinfo (Output Section Address): Correct subsection name.
1752
1753 2004-05-17 Adam Nemet <anemet@lnxw.com>
1754
1755 * configure.tgt (powerpc-*-lynxos* case): New case.
1756 * configure.host (i[3-7]86-*-lynxos* case): Remove case.
1757 * emulparams/ppclynx.sh: New file.
1758 * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
1759 * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
1760 (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
1761 (eppclynx.c): New rule.
1762 * Makefile.in: Regenerate.
1763
1764 2004-05-13 Joel Sherrill <joel@oarcorp.com>
1765
1766 * configure.tgt (or32-*-rtems*): Switch to elf and
1767 support versioned targets.
1768
1769 2004-05-13 Nick Clifton <nickc@redhat.com>
1770
1771 * po/fr.po: Updated French translation.
1772
1773 2004-05-11 Jakub Jelinek <jakub@redhat.com>
1774
1775 * genscripts.sh: Generate -z combreloc -z now -z relro scripts
1776 for binaries, -shared and -pie.
1777 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
1778 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
1779 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
1780 (OTHER_RELRO_SECTIONS): ... this.
1781 * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
1782 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
1783 -z relro and -z norelro.
1784 (gld${EMULATION_NAME}_list_options): Add it to usage.
1785 (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
1786 -z relro scripts when appropriate.
1787 * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
1788 Create separate .got.plt section if SEPARATE_GOTPLT.
1789 Move sections which are only written during relocation handling
1790 to the beginning of RW segment. If NO_SMALL_DATA, move .got
1791 before .data. Add DATA_SEGMENT_RELRO_END directive.
1792 Include OTHER_RELRO_SECTIONS.
1793 * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
1794 * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
1795 (fold_unary): Likewise.
1796 (fold_binary): Handle -z relro.
1797 * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
1798 exp_dataseg_relro_adjust phases. Add relro_end field.
1799 * ldmain.c (main): Initialize link_info.relro to FALSE.
1800 * ldlang.c (lang_size_sections): Handle -z relro.
1801
1802 2004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
1803
1804 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
1805
1806 2004-05-07 J"orn Rennecke <joern.rennecke@superh.com>
1807
1808 * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
1809 before printing it with %W.
1810
1811 2004-05-07 Brian Ford <ford@vss.fsi.com>
1812 DJ Delorie <dj@redhat.com>
1813
1814 * emultempl/pe.em (real_flags): New static.
1815 (OPTION_LARGE_ADDRESS_AWARE): New define.
1816 (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
1817 (gld_${EMULATION_NAME}_list_options): Likewise.
1818 (gld${EMULATION_NAME}_handle_option): Likewise.
1819 (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
1820 * ld.texinfo: Document it.
1821 * NEWS: Mention it.
1822
1823 2004-05-07 Brian Ford <ford@vss.fsi.com>
1824
1825 * NEWS: Mention DWARF 2 support for i386pe.
1826
1827 2004-05-05 Alexandre Oliva <aoliva@redhat.com>
1828
1829 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
1830 elf32-frvfdpic.
1831
1832 2004-04-30 Alan Modra <amodra@bigpond.net.au>
1833
1834 * ldlang.c (unique_section_p): Pass section parm, return true on
1835 group sections.
1836 (output_section_callback): Adjust.
1837 * ldlang.h (unique_section_p): Update prototype.
1838 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
1839
1840 2004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
1841
1842 * ld.texinfo (--gc-sections): Remove restriction for
1843 dynamic linking.
1844
1845 2004-04-29 Brian Ford <ford@vss.fsi.com>
1846
1847 * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
1848 for DWARF 2/3. Update stab section's syntax.
1849
1850 2004-04-29 Alan Modra <amodra@bigpond.net.au>
1851
1852 * pe-dll.c: Revert changes accidentally committed 2004-03-08.
1853 (fill_edata): Correct pointer arithmetic.
1854
1855 2004-04-21 Chris Demetriou <cgd@broadcom.com>
1856
1857 * ld.texinfo: Remove MIPS --embedded-relocs documentation.
1858 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
1859 * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
1860 (EXTRA_EM_FILE): Use mipsecoff.em
1861 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
1862 (EXTRA_EM_FILE): Use mipsecoff.em
1863 * emultempl/mipsecoff.em: Restructure to be included as an
1864 extra emulation file.
1865 (check_sections, gld${EMULATION_NAME}_after_open)
1866 (gld${EMULATION_NAME}_after_allocation)
1867 (gld${EMULATION_NAME}_get_script)
1868 (ld_${EMULATION_NAME}_emulation): Remove
1869 (gld${EMULATION_NAME}_before_parse): Rename to...
1870 (mipsecoff_before_parse): This.
1871 (LDEMUL_BEFORE_PARSE): Define.
1872 * emultempl/mipself.em: Remove file.
1873 * scripttempl/mips.sc (.rel.sdata): Do not include in output.
1874 (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
1875 these symbols.
1876 * Makefile.am: Remove dependencies on emultempl/mipself.em.
1877 * Makefile.in: Regenerate.
1878
1879 2004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
1880
1881 * ld.texinfo (synthesizing on H8/300): Information about linker
1882 relaxation support for bit manipulation instructions and system
1883 control instructions is added.
1884
1885 2004-04-21 Hans-Peter Nilsson <hp@axis.com>
1886
1887 * NEWS: Mention change in DEFINED semantics.
1888
1889 2004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
1890
1891 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
1892 (.data): Add KEEP for .gnu.linkonce.d.*personality*.
1893 (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
1894
1895 2004-04-21 Ben Elliston <bje@au.ibm.com>
1896
1897 * ld.texinfo (Simple Example): Add missing punctuation.
1898
1899 2004-04-20 Chris Demetriou <cgd@broadcom.com>
1900
1901 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
1902
1903 2004-04-19 Jakub Jelinek <jakub@redhat.com>
1904
1905 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
1906 specially.
1907
1908 2004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
1909
1910 * scriptempl/pe.sc: Put numbered .ctors.* after .ctors
1911 with default priority. Likewise for dtors.
1912
1913 2004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1914
1915 * configure.host: Remove mips*-dec-bsd* target.
1916 * configure.tgt: Likewise.
1917
1918 2004-04-08 Richard Sandiford <rsandifo@redhat.com>
1919
1920 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
1921 * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
1922 * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
1923 * emultempl/irix.em: New file.
1924 * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
1925 dependencies.
1926 * Makefile.in: Regenerate.
1927
1928 2004-04-01 Paul Brook <paul@codesourcery.com>
1929
1930 * emultempl/armelf.em (byteswap_code): Add.
1931 (arm_elf_before_allocation): Pass extra parameter.
1932 (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
1933 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
1934 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
1935 * emultempl/armelf_oabi.em: Pass extra parameter.
1936 * ld.texinfo: Document --be8.
1937
1938 2004-03-30 Stan Shebs <shebs@apple.com>
1939
1940 Remove long-obsolete MPW support.
1941 * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
1942 * Makefile.am (mpw): Remove file-presynthesizing actions.
1943 * Makefile.in: Likewise.
1944 * ldfile.c (slash): Remove MPW case.
1945 * ldlex.l [MPW]: Remove unused definition.
1946
1947 2004-03-30 Galit Heller <Galit.Heller@nsc.com>
1948
1949 * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
1950 (eelf32cr16c.c): New target.
1951 * Makefile.in: Regenerate.
1952 * configure.tgt: Handle cr16c-*-elf*.
1953 * emulparams/elf32cr16c.sh: New file.
1954 * scripttempl/elfcr16c.sc: Likewise
1955 * NEWS: Mention support for new target.
1956
1957 2004-03-30 Nick Clifton <nickc@redhat.com>
1958
1959 * po/sv.po: Updated Swedish translation.
1960
1961 2004-03-27 Alan Modra <amodra@bigpond.net.au>
1962
1963 * emultempl/elf32.em: Update new bfd_elf_discard_info name.
1964 * emultempl/hppaelf.em: Likewise.
1965 * emultempl/ppc64elf.em: Likewise.
1966 * emultempl/sh64elf.em: Likewise.
1967
1968 2004-03-25 Alan Modra <amodra@bigpond.net.au>
1969
1970 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
1971 size_dynamic_sections call.
1972
1973 2004-03-23 Alan Modra <amodra@bigpond.net.au>
1974
1975 PR 51.
1976 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
1977 link_info.wrap_char.
1978
1979 2004-03-20 H.J. Lu <hongjiu.lu@intel.com>
1980
1981 * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
1982 or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
1983
1984 2004-03-20 Alexandre Oliva <aoliva@redhat.com>
1985
1986 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
1987
1988 2004-03-19 Alan Modra <amodra@bigpond.net.au>
1989
1990 * config.in: Regenerate.
1991 * po/ld.pot: Regenerate.
1992
1993 2004-03-18 Alan Modra <amodra@bigpond.net.au>
1994
1995 * ld.texinfo: Add --as-needed doco.
1996 * ldmain.c (as_needed): New global var.
1997 * ldmain.h (as_needed): Declare.
1998 * lexsup.c (option_values): Add OPTION_AS_NEEDED and
1999 OPTION_NO_AS_NEEDED.
2000 (ld_options): Likewise.
2001 (parse_args): Handle them.
2002 * ldlang.h (lang_input_statement_type): Add as_needed field.
2003 * ldlang.c (new_afile): Set p->as_needed.
2004 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
2005 (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
2006 (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
2007
2008 * ldlang.c (open_input_bfds): Remove useless cast.
2009 (lang_do_assignments_1): Likewise.
2010 (lang_for_each_input_section): Delete.
2011
2012 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2013
2014 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
2015
2016 2004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
2017
2018 * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
2019 private when building implib.
2020
2021 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
2022
2023 * ldlang.c (lang_add_section): Don't force SEC_LOAD on
2024 SEC_THREAD_LOCAL.
2025 (IGNORE_SECTION): Ignore .tbss sections too.
2026 (lang_size_sections_1): .tbss sections do not advance dot.
2027
2028 2004-03-01 Andreas Schwab <schwab@suse.de>
2029
2030 * ld.texinfo (Options): Fix example for --wrap.
2031
2032 2004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
2033
2034 * pe-dll.c (fill_edata): Check that exported_symbol_sections is
2035 not NULL.
2036
2037 2004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
2038
2039 * ldlang.c (lang_check): Use %P, not %E, in error message.
2040
2041 2004-02-23 Nathan Sidwell <nathan@codesourcery.com>
2042
2043 * ldlang.h (struct lang_output_section_state): Change processed
2044 field's type.
2045 * ldexp.c (check, invalid): Remove.
2046 (fold_name): Move valid_p assignments. Create undefined symbol
2047 when needed. Directly exampine section's processd flag.
2048 * ldlang.c (lang_output_section_statement_lookup): Adjust
2049 processed field init.
2050 (lang_size_sections_1): Allow LOADADDR when determining section's
2051 VMA. Adjust error message. Fold data statement's expr.
2052 (lang_size_sections): Correctly increment lang_statement_iteration.
2053
2054 2004-02-23 Alan Modra <amodra@bigpond.net.au>
2055
2056 * ldexp.c (fold_tree): Follow indirect symbols.
2057
2058 2004-02-20 Nathan Sidwell <nathan@codesourcery.com>
2059
2060 * ldgram.y (exp): Add two operand ALIGN.
2061 * ldexp.c (fold_binary): Add ALIGN_K case.
2062 * ld.texinfo (ALIGN): Document two operand version.
2063
2064 2004-02-19 Nathan Sidwell <nathan@codesourcery.com>
2065
2066 * ldlang.c (map_input_to_output_sections): Initialize sections
2067 mentioned in a data statement expression.
2068 (lang_do_assignments_1): Add data statement's expression's
2069 section's vma.
2070
2071 2004-02-18 Nathan Sidwell <nathan@codesourcery.com>
2072
2073 * ldgram.y (statement_anywhere): Add assert rule.
2074 * ldlang.c (exp_init_os): Add assert case.
2075
2076 2004-02-14 Andrew Cagney <cagney@redhat.com>
2077
2078 * ldmain.c (remove_output): Call bfd_cache_close.
2079
2080 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
2081
2082 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
2083 .MIPS.content* and .MIPS.events* sections.
2084
2085 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
2086
2087 * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
2088 .note.gnu.arm.ident to after allocated sections. Mark its
2089 address as 0.
2090
2091 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
2092
2093 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
2094 * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
2095 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
2096 * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
2097 * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
2098
2099 2004-02-05 Nick Clifton <nickc@redhat.com>
2100
2101 * emultempl/pe.em (_after_open): Fix typo in previous delta.
2102
2103 2004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
2104
2105 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
2106
2107 2004-01-28 Alan Modra <amodra@bigpond.net.au>
2108
2109 * genscripts.sh: Fix typo.
2110
2111 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
2112
2113 2004-01-24 Jakub Jelinek <jakub@redhat.com>
2114
2115 * emulparams/elf64_ia64.sh: Put .rela.opd into
2116 OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
2117
2118 2004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
2119
2120 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
2121 * ld.texinfo (--omagic): Note that writable text section
2122 does not conform to published PE-COFF specs.
2123 (--enable-auto-import): Likewise.
2124
2125 2004-01-15 Alan Modra <amodra@bigpond.net.au>
2126
2127 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
2128
2129 2004-01-13 Nick Clifton <nickc@redhat.com>
2130
2131 * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
2132 which if true will prevent the LMA region being used as a
2133 replacement for a default VMA region.
2134 (lang_leave_output_section_statement): Pass extra parameter.
2135 (lang_leave_overlay): Likewise.
2136 * ld.texinfo (Output Section LMA): Document that the LMA
2137 region can be set to the VMA region if no VMA has been set.
2138 * ldlang.h (struct lang_output_section_phdr_list): Create a
2139 typedef for this type. Minor formatting fixes.
2140
2141 2004-01-13 Nick Clifton <nickc@redhat.com>
2142
2143 * ldlang.c (lang_size_sections_1): If dot is advanced, then
2144 assume that the section should be allocated.
2145
2146 2004-01-13 Alan Modra <amodra@bigpond.net.au>
2147
2148 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
2149 sections. Do ignore SEC_NEVER_LOAD sections.
2150 (lang_size_sections_1): Remove test made redundant with the above.
2151
2152 2004-01-09 Alan Modra <amodra@bigpond.net.au>
2153
2154 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
2155 program_header_size.
2156
2157 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
2158
2159 2003-11-28 Alexandre Oliva <aoliva@redhat.com>
2160 * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
2161 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
2162 * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
2163 (MAXPAGESIZE): Set to 64Kb.
2164 (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
2165 __ROFIXUP_END__. Don't map .rofixup.got any more.
2166 * emulparams/elf32frv.sh (NOP): Set.
2167 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
2168 * configure.tgt: Add frv-*-*linux*.
2169 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
2170 * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
2171 (eelf32frvfd.c): New.
2172 * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
2173 * emulparams/elf32frv.sh: Reverted previous two patches.
2174 * emulparams/elf32frvfd.sh: New.
2175 * Makefile.in: Rebuilt.
2176 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
2177 * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
2178 .rofixup.got to .rofixup.
2179 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
2180 * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
2181 (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
2182
2183 2004-01-05 Jakub Jelinek <jakub@redhat.com>
2184
2185 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
2186 * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
2187
2188 2004-01-03 Alan Modra <amodra@bigpond.net.au>
2189
2190 * ldexp.c (align_n): Make static.
2191 * ldexp.h (align_n): Delete declaration.
2192 * ldlang.h (lang_enter_output_section_statement): Remove
2193 block_value param.
2194 * ldlang.c (lang_enter_output_section_statement): Likewise.
2195 (TO_ADDR, TO_SIZE): Define.
2196 (opb_shift): New var.
2197 (init_opb): New function.
2198 (print_input_section): Call init_opb and use TO_ADDR.
2199 (print_data_statement, print_reloc_statement): Likewise.
2200 (print_padding_statement): Likewise.
2201 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
2202 (lang_check_section_addresses): Likewise.
2203 (lang_size_sections_1): Likewise.
2204 (lang_do_assignments_1): Likewise.
2205 (lang_set_startof): Likewise.
2206 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
2207 (lang_process): Call init_opb.
2208 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
2209 (lang_enter_overlay_section): Adjust
2210 lang_enter_output_section_statement call.
2211 * ldgram.y: Likewise.
2212 * mri.c (mri_draw_tree): Likewise.
2213 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
2214 * emultempl/mmo.em (mmo_place_orphan): Likewise.
2215 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
2216
2217 * ldfile.c (ldfile_set_output_arch): Add defarch param.
2218 * ldfile.h (ldfile_set_output_arch): Ditto.
2219 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
2220 ldfile_set_output_arch.
2221 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
2222 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
2223 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
2224 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2225 * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
2226 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
2227 * ldgram.y: Adjust ldfile_set_output_arch call.
2228 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2229 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
2230 * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
2231 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
2232 * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
2233 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2234 * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2235
2236 2004-01-02 Bernardo Innocenti <bernie@develer.com>
2237
2238 * configure.tgt: Add m68k-uClinux target.
2239
2240 For older changes see ChangeLog-0203
2241 \f
2242 Local Variables:
2243 mode: change-log
2244 left-margin: 8
2245 fill-column: 74
2246 version-control: never
2247 End:
This page took 0.123533 seconds and 5 git commands to generate.