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