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