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