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