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