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