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