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