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