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