* emultempl/elf32.em (gld${EMULATION_NAME}_layout_sections_again):
[deliverable/binutils-gdb.git] / ld / ChangeLog
1 2005-03-29 Alan Modra <amodra@bigpond.net.au>
2
3 * emultempl/elf32.em (gld${EMULATION_NAME}_layout_sections_again):
4 New function, extracted from static void gld${EMULATION_NAME}_finish.
5 (gld${EMULATION_NAME}_strip_empty_sections): Likewise.
6 (gld${EMULATION_NAME}_provide_init_fini_syms): Likewise.
7 * emultempl/ppc64elf.em: Revert last change.
8 (ppc_layout_sections_again): Use
9 gld${EMULATION_NAME}_layout_sections_again.
10 (ppc_finish): Don't call gld${EMULATION_NAME}_finish. Instead call
11 gld${EMULATION_NAME}_strip_empty_sections and
12 gld${EMULATION_NAME}_provide_init_fini_syms.
13 * emultempl/hppaelf.em: Similarly.
14
15 2005-03-29 Alan Modra <amodra@bigpond.net.au>
16
17 * emultempl/ppc64elf.em (need_laying_out): Delete. Remove all refs.
18 (ppc_finish): Don't call bfd_elf_discard_info.
19 * emultempl/hppaelf.em: Similarly.
20
21 2005-03-24 Nick Clifton <nickc@redhat.com>
22
23 * po/fr.po: Updated French translation.
24
25 2005-03-23 Mike Frysinger <vapier@gentoo.org>
26 Nick Clifton <nickc@redhat.com>
27
28 * configure.host: Accept any C library to accompany a GNU Linux
29 implementation, not just the GNU C library.
30 * configure.tgt: Likewise.
31 * emultempl/elf32.em: Likewise.
32
33 2005-03-22 H.J. Lu <hongjiu.lu@intel.com>
34
35 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols): New
36 (gld${EMULATION_NAME}_finish): Call
37 gld${EMULATION_NAME}_provide_bound_symbols to provide
38 __preinit_array_start, __preinit_array_end, __init_array_start,
39 __init_array_end, __fini_array_start and __fini_array_end.
40
41 * scripttempl/elf.sc: Don't provide __preinit_array_start,
42 __preinit_array_end, __init_array_start, __init_array_end,
43 __fini_array_start nor __fini_array_end.
44
45 2005-03-23 Alan Modra <amodra@bigpond.net.au>
46
47 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Set
48 SEC_EXCLUDE on .gnu.warning sections.
49
50 2005-03-22 Alan Modra <amodra@bigpond.net.au>
51
52 * scripttempl/elf.sc (SBSS): Don't provide sbss start and end syms.
53
54 2005-03-21 Alan Modra <amodra@bigpond.net.au>
55
56 * emultempl/ppc32elf.em (gld${EMULATION_NAME}_after_allocation): New
57 function.
58 (LDEMUL_AFTER_ALLOCATION): Define.
59
60 2005-03-21 Alan Modra <amodra@bigpond.net.au>
61
62 * emultempl/ppc64elf.em (ppc_finish): Rename from
63 gld${EMULATION_NAME}_finish. Call gld${EMULATION_NAME}_finish.
64 (LDEMUL_FINISH): Update.
65 * emultempl/hppaelf.em (hppaelf_finish, LDEMUL_FINISH): Likewise.
66 * emultempl/m68hc1xelf.em (m68hc11elf_finish, LDEMUL_FINISH): Likewise.
67
68 2005-03-18 Julian Brown <julian@codesourcery.com>
69
70 * scripttempl/armbpapi.sc (.rel.dyn): Add .rel.init_array,
71 .rel.fini_array.
72 (.rela.dyn): Add .rela.init_array, .rela.fini_array.
73 (SECTIONS): Add .rel.other, .rela.other, .reli.other after PLT relocs.
74
75 2005-03-18 H.J. Lu <hongjiu.lu@intel.com>
76
77 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Don't set
78 bfd_section when removing unused empty output sections for
79 non-relocatable link.
80
81 2005-03-19 Alan Modra <amodra@bigpond.net.au>
82
83 * ldlang.c (lang_insert_orphan): Use old section_tail rather than
84 traversing the bfd section list to find pointer to new section.
85
86 2005-03-18 Alan Modra <amodra@bigpond.net.au>
87
88 * scripttempl/elf.sc: When CREATE_SHLIB, put .sdata2 and .sbss2
89 input sections into .sdata and .sbss output respectively.
90
91 2005-03-16 David Heine <dlheine@tensilica.com>
92 Bob Wilson <bob.wilson@acm.org>
93
94 * ldlang.c (IGNORE_SECTION): Remove check for zero size.
95 (lang_check_section_addresses): Ignore zero size sections here.
96
97 2005-03-16 H.J. Lu <hongjiu.lu@intel.com>
98
99 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Remove
100 unused empty output sections for non-relocatable link.
101
102 * ld.h (args_type): Remove gc_sections.
103
104 * ldlang.c (lang_mark_used_section): New.
105 (lang_gc_sections): Use link_info.gc_sections instead of
106 command_line.gc_sections.
107 * ldmain.c (main): Likewise.
108 * lexsup.c (parse_args): Likewise.
109 * ldlang.c (lang_process): Call lang_mark_used_section.
110
111 * ldmain.c (main): Initialize link_info.gc_sections to FALSE.
112
113 2005-03-16 Nick Clifton <nickc@redhat.com>
114 Ben Elliston <bje@au.ibm.com>
115
116 * configure.in (werror): New switch: Add -Werror to the
117 compiler command line. Enabled by default. Disable via
118 --disable-werror.
119 * configure: Regenerate.
120
121 2005-03-16 Alan Modra <amodra@bigpond.net.au>
122
123 * emulparams/elf32ppclinux.sh (OTHER_READWRITE_SECTION): Delete.
124 (OTHER_RELRO_SECTIONS): Set this instead.
125
126 2005-03-15 Nick Clifton <nickc@redhat.com>
127
128 * NEWS: Add cutoff for changes in 2.16 release.
129
130 2005-03-15 Mikkel Krautz <krautz@gmail.com>
131
132 * configure.tgt (x86_64-elf): Add target.
133
134 2005-03-15 Alan Modra <amodra@bigpond.net.au>
135
136 * po/es.po: Commit new Spanish translation.
137
138 2005-03-14 Alan Modra <amodra@bigpond.net.au>
139
140 * ldexp.c (exp_fold_tree): Ensure return value is initialized.
141 Tidy etree_assert case.
142
143 2005-03-14 Alan Modra <amodra@bigpond.net.au>
144
145 * po/tr.po: Commit new Turkish translation.
146
147 2005-03-11 Daniel Jacobowitz <dan@codesourcery.com>
148
149 * Makefile.am: Remove references to em68klynx.o and esparclynx.o.
150 * Makefile.in: Regenerated.
151 * emulparams/m68klynx.sh, emulparams/sparclynx.sh: Remove.
152
153 2005-03-07 Nick Clifton <nickc@redhat.com>
154
155 * po/fr.po: Updated translation.
156
157 2005-03-05 Alan Modra <amodra@bigpond.net.au>
158
159 * po/ld.pot: Regenerate.
160
161 2005-03-02 Jan Beulich <jbeulich@novell.com>
162
163 * ldmain.c (remove_output): Use unlink_if_ordinary instead of unlink.
164 * pe-dll.c (pe_dll_generate_implib): Likewise.
165
166 2005-02-24 Ben Elliston <bje@au.ibm.com>
167
168 * ldfile.c: Remove GNU960 conditional code.
169 * emultempl/gld960.em: Likewise.
170 * emultempl/gld960c.em: Likewise.
171 * emultempl/lnk960.em: Likewise.
172
173 2005-02-24 Nick Clifton <nickc@redhat.com>
174
175 * emultempl/lnk960.em (lnk960_before_parse): Remove redundant
176 empty string from calls to concat.
177
178 2005-02-23 Nick Clifton <nickc@redhat.com>
179
180 * emultempl/lnk960.em (lnk960_before_parse): Terminate list of
181 arguments passed to concat() with a NULL.
182
183 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h because they
184 define types needed by ldfile.h
185
186 2005-02-23 Alan Modra <amodra@bigpond.net.au>
187
188 * pe-dll.c: Warning fixes.
189 * emultempl/sunos.em: Likewise.
190
191 2005-02-22 Daniel Jacobowitz <dan@codesourcery.com>
192
193 * ldlang.c (section_already_linked): Don't call
194 bfd_section_already_linked for dynamic objects.
195
196 2005-02-22 Alan Modra <amodra@bigpond.net.au>
197
198 * ldexp.c: Warning fixes.
199 * ldwrite.c: Likewise.
200 * emultempl/elf32.em: Likewise.
201
202 2005-02-21 H.J. Lu <hongjiu.lu@intel.com>
203
204 * ldlang.c (lang_add_section): Check SEC_TIC54X_BLOCK for TI
205 tic54x input only.
206 (lang_size_sections_1): Check SEC_COFF_SHARED_LIBRARY for COFF
207 and ECOFF output only.
208
209 2005-02-21 Alan Modra <amodra@bigpond.net.au>
210
211 * config.in: Regenerate.
212 * configure: Regenerate.
213
214 2005-02-17 Zack Weinberg <zack@codesourcery.com>
215
216 * ldexp.c (assigning_to_dot): New global flag.
217 (fold_name): If assigning_to_dot is true, object immediately to
218 an undefined symbol.
219 (exp_fold_tree): Set and clear assigning_to_dot around the
220 recursive call to exp_fold_tree to process the right-hand side
221 of an assignment to the location counter.
222
223 2005-02-17 Paul Brook <paul@codesourcery.com>
224
225 * scripttempl/armbpabi.sc: Add dummy name to version block.
226
227 2005-02-17 Alan Modra <amodra@bigpond.net.au>
228
229 * ldexp.c (new_abs): Init new.str.
230
231 2005-02-15 Mark Mitchell <mark@codesourcery.com>
232
233 * configure.in (AC_CHECK_FUNCS): Add glob.
234 * configure: Regenerated.
235 * emultempl/elf32.em (<glob.h>): Do not include if HAVE_GLOB is
236 not defined.
237 (gld${EMULATION_NAME}_parse_ld_so_conf_include): Do not use glob
238 if HAVE_GLOB is not defined.
239
240 2005-02-16 Kaz Kojima <kkojima@rr.iij4u.or.jp>
241
242 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define
243 lib_path if NATIVE is yes.
244
245 2005-02-16 Alan Modra <amodra@bigpond.net.au>
246
247 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Make
248 an error creating fake bfd fatal.
249 (ppc_before_allocation): Continue on after errors.
250 (gld${EMULATION_NAME}_finish): Likewise.
251
252 2005-02-15 Nick Clifton <nickc@redhat.com>
253
254 * ldlex.l (YY_NO_UNPUT): Define so that the yy_unput function is
255 not declared. It is not used and its presence causes a compile
256 time warning.
257
258 2005-02-11 Zack Weinberg <zack@codesourcery.com>
259
260 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed):
261 If st.st_ino is zero, do not treat the library as a duplicate.
262
263 2005-02-10 Jakub Jelinek <jakub@redhat.com>
264
265 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
266 Set BFD_LINKER_CREATED on the stubs bfd.
267 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
268 Likewise.
269
270 2005-02-08 Mark Mitchell <mark@codesourcery.com>
271
272 * scripttempl/armbpabi.sc (VERSION): Make special section symbols
273 local.
274 (Image$$ER_RO$$Base): Define whenever RELOCATING.
275 (Image$$ER_RO$$Limit): Likewise.
276 (SHT$$INIT_ARRAY$$Base): Likewise.
277 (SHT$$INIT_ARRAY$$Limit): Likeise.
278
279 2005-02-10 Ben Elliston <bje@au.ibm.com>
280
281 * emultempl/beos.em: Remove #if 0 and #if 1 blocks.
282
283 2005-02-08 Richard Sandiford <rsandifo@redhat.com>
284
285 * configure.tgt (mips64*el-*-linux-gnu*): Define targ_extra_libpath
286 to include o32 and n64 emulations.
287 (mips64*-*-linux-gnu*): Likewise.
288
289 2005-02-08 Hans-Peter Nilsson <hp@axis.com>
290
291 * ldmain.c (warning_callback, warning_find_reloc): Prepend
292 "warning: " to warning messages.
293
294 2005-02-04 Alan Modra <amodra@bigpond.net.au>
295
296 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't
297 look up symbol for etree_provide here.
298
299 2005-02-02 Daniel Jacobowitz <dan@codesourcery.com>
300
301 * emulparams/elf32bmip.sh (TEXT_DYNAMIC): Always set.
302
303 2005-02-01 Edward Welbourne <eddy@opera.com>
304 Nick Clifton <nickc@redhat.com>
305
306 * ld.texinfo (Source Code Reference): New node describing how to
307 access linker script defined variables from source code.
308
309 2005-02-01 Alan Modra <amodra@bigpond.net.au>
310
311 * ld.texinfo: Clarify --as-needed operation.
312
313 2005-01-31 Andrew Cagney <cagney@gnu.org>
314
315 * configure: Regenerate to track ../gettext.m4.
316
317 2005-01-31 Nick Clifton <nickc@redhat.com>
318
319 * ldver.c (ldversion): Bump reported copyright date to 2005.
320
321 2005-01-31 Nick Clifton <nickc@redhat.com>
322
323 * configure.tgt: Remove obsolete targets m68k-lynxos and
324 sparc-lynxos.
325
326 2005-01-28 Julian Brown <julian@codesourcery.com>
327
328 * emultempl/armelf.em (fix_v4bx): New variable.
329 (arm_elf_create_output_section_statements): Communicate fix_v4bx flag
330 value to bfd.
331 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_FIX_V4BX.
332 (PARSE_AND_LIST_LONGOPTS): Add option --fix-v4bx.
333 (PARSE_AND_LIST_OPTIONS): Add option --fix-v4bx.
334 (PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX.
335 * NEWS: Mention --fix-v4bx.
336 * ld.texinfo: Document --fix-v4bx.
337
338 2005-01-25 Mark Mitchell <mark@codesourcery.com>
339
340 * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Define, so
341 as to include .ARM.exidx$${Base,Limit}.
342 * ld/scripttempl/armbpabi.sc: Move .plt to end of text segment.
343 Define IMAGE$$ER_RO$${Base,Limit} and SHT$$INIT_ARRAY$${Base,Limit}.
344 Put .init_array, .fini_array, etc. into the read-only data
345 segment.
346
347 2005-01-25 Alan Modra <amodra@bigpond.net.au>
348
349 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Formatting.
350 (gld${EMULATION_NAME}_after_open): Ignore needed libs if they were
351 only needed by an as-needed lib that didn't get linked.
352
353 2005-01-23 Alan Modra <amodra@bigpond.net.au>
354
355 * ld.texinfo (Output Section Keywords <CONSTRUCTORS>): Correct
356 __DTOR_LIST__ description.
357
358 2005-01-23 Alan Modra <amodra@bigpond.net.au>
359
360 * ld.texinfo (Location Counter <dot outside sections>): Document
361 effects of orphan section placement, and ". = ." workaround.
362 * Makefile.in: Regenerate.
363
364 2005-01-22 Richard Sandiford <rsandifo@redhat.com>
365
366 * emulparams/elf32bmip.sh (OTHER_GOT_SECTIONS): Add ". = .;".
367 * emulparams/elf32bmipn32-defs.sh (OTHER_GOT_SECTIONS): Likewise.
368
369 2005-01-21 Jakub Jelinek <jakub@redhat.com>
370
371 * ldgram.y (AS_NEEDED): New token.
372 (input_list): Handle AS_NEEDED ( input_list ).
373 * ldlex.l (AS_NEEDED): Add.
374 * ld.texinfo: Document AS_NEEDED ().
375 * NEWS: Mention AS_NEEDED ().
376
377 2005-01-21 Ben Elliston <bje@au.ibm.com>
378
379 * ldlang.c (lang_reasonable_defaults): Remove.
380 (lang_process): Don't call lang_reasonable_defaults.
381
382 * ldexp.c (exp_assop): Remove #if 0'd code.
383 (exp_print_tree): Likewise.
384 * ldlang.c (lang_memory_region_lookup): Likewise.
385 (open_output): Likewise.
386 (lang_do_assignments_1): Likewise.
387 (lang_place_orphans): Likewise.
388 (lang_enter_output_section_statement): Likewise.
389 (lang_reasonable_defaults): Likewise.
390 * ldlang.h (struct lang_input_statement_struct): Likewise.
391 * mri.c (mri_draw_tree): Likewise.
392 (mri_load): Likewise.
393 * pe-dll.c (generate_reloc): Likewise.
394 (make_import_fixup_entry): Likewise.
395 (pe_as16): Likewise.
396 * emultempl/beos.em (set_pe_subsystem): Likewise.
397 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
398 * emultempl/pe.em: Likewise.
399 * emultempl/xtensaelf.em (xtensa_colocate_literals): Likewise.
400
401 2005-01-20 Daniel Jacobowitz <dan@codesourcery.com>
402
403 * Makefile.am (ALL_EMULATIONS): Add earmelfb_linux_eabi.o.
404 (earmelfb_linux_eabi.c): New target.
405 * Makefile.in: Regenerated.
406 * configure.tgt (arm*b-*-linux-gnueabi): New target.
407 * emulparams/armelfb_linux_eabi.sh: New file.
408
409 2005-01-20 Nick Hudson <skrll@netbsd.org>
410
411 PR ld/676
412 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
413 Handle bfd_elf32_hppa_nbsd_vec.
414
415 2005-01-19 Richard Sandiford <rsandifo@redhat.com>
416
417 * ldmain.h (ld_sysroot): Change type to a constant string.
418 * ldmain.c (ld_sysroot): Likewise.
419 (get_relative_sysroot, get_sysroot): New functions, adding command-line
420 support for changing the sysroot.
421 (main): Call the new functions.
422 * lexsup.c (OPTION_SYSROOT): New.
423 (ld_options): Add --sysroot.
424 (parse_args): Add a dummy handler for it.
425 * ld.texinfo (--sysroot): Document.
426 * NEWS: Mention the new --sysroot option.
427
428 2005-01-18 Alan Modra <amodra@bigpond.net.au>
429
430 * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
431 (lang_place_orphans): Don't abort on just_syms_flag, instead call
432 bfd_link_just_syms.
433
434 2005-01-16 Danny Smith <dannysmith@users.sourceforge.net>
435
436 * defilep.y (def_name, def_library): Combine into...
437 (def_image_name): New function. Strip name to basename,
438 with warning.
439
440 2005-01-12 Mark Kettenis <kettenis@gnu.org>
441
442 * configure.in: Be sure to invoke config.sub using the shell.
443 * configure: Regenerate.
444
445 2005-01-11 Alan Modra <amodra@bigpond.net.au>
446
447 * configure.host: Correct sed patterns for last change.
448
449 2005-01-10 Nick Clifton <nickc@redhat.com>
450
451 PR binutils/609
452 * ldmisc.c (vfinfo): Add an extra argument: is_warning. Use this
453 to determine whether config.make_executable should be set to FALSE in
454 conjunction with config.fatal_warnings.
455 (info_msg, minfo, lfinof): Pass FALSE as the extra argument.
456 (einfo): Pass TRUE as the extra argument.
457
458 2005-01-10 Greg Schaffer <gschafer@zip.com.au>
459
460 * configure.host (linux targets): Use "${CC} -dumpspecs" instead
461 of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0.
462 (ia64-*-aix): Delete - this target is obsolete, and would be
463 broken by this patch.
464
465 2005-01-06 Eric Botcazou <ebotcazou@libertysurf.fr>
466
467 * configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*.
468 (sparc64-sun-solaris2*): New host.
469
470 2005-01-06 Paul Brook <paul@codesourcery.com>
471
472 * Makefie.am: Add earmelf_vxworks.
473 * Makefile.in: Regenerate.
474 * configure.tgt: Make arm-*-vxworks a separate case.
475 * emulparams/armelf_vxworks.sh: New function.
476
477 2005-01-06 Alan Modra <amodra@bigpond.net.au>
478
479 * emultempl/ppc64elf.em (no_multi_toc): New var.
480 (gld${EMULATION_NAME}_finish): Pass to ppc64_elf_setup_section_lists.
481 (OPTION_NO_MULTI_TOC): Define.
482 (PARSE_AND_LIST_LONGOPTS): Add --no-multi-toc support.
483 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
484
485 2005-01-05 Nick Clifton <nickc@redhat.com>
486
487 PR binutils/614
488 * ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
489 Standard's specification for parsable error messages.
490
491 2005-01-04 Paul Brook <paul@codesourcery.com>
492
493 * Makefile.am: Correct dependency for earmsymbian.c.
494 * Makefile.in: Regenerate.
495
496 2004-12-28 Danny Smith <dannysmith@users.sourceforge.net>
497
498 * emultempl/pe.em (set_pe_subsystem): Change second arg to
499 lang_add_entry to FALSE.
500
501 2004-12-23 Nick Clifton <nickc@redhat.com>
502
503 PR 600
504 * emulparams/shelf.sh (.stack): Increase stack start address to
505 0x300000.
506
507 2004-12-20 Nick Clifton <nickc@redhat.com>
508
509 * ldmain.c (main): Issue an error message if -static and -shared
510 are used together.
511
512 2004-12-17 Jakub Jelinek <jakub@redhat.com>
513
514 * ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
515 * ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
516 * ldlang.c (lang_size_sections): Use them to avoid wasting virtual
517 address space at DATA_SEGMENT_ALIGN. Fix computation of expected
518 PT_GNU_RELRO segment end.
519
520 2004-12-14 P.J. Darcy <darcypj@us.ibm.com>
521
522 * configure.tgt: Add s390x-ibm-tpf support.
523
524 2004-12-16 Martin Kögler <mkoegler@auto.tuwien.ac.at>
525
526 * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
527 BFD.
528
529 2004-12-07 Ben Elliston <bje@gnu.org>
530
531 * ldemul.h: Forward declare struct option.
532
533 2004-12-01 Danny Smith <dannysmith@users.sourceforge.net>
534
535 * scripttempl/pe.sc (.data): Add .jcr subsection.
536
537 2004-11-30 Paul Brook <paul@codesourcery.com>
538
539 * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
540
541 2004-11-30 Tero Niemela <tero_niemela@yahoo.com>
542
543 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
544 * Makefile.in: Regenerate.
545
546 2004-11-26 Melissa Mears <asterisk@graces.dricas.com>
547
548 * emultempl/pe.em: Add --subsystem:xbox as well as
549 --subsystem:%d.
550 * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
551 and numeric subsystems.
552
553 2004-11-24 Alan Modra <amodra@bigpond.net.au>
554
555 * ldexp.c (fold_name): Correct PR 338 fix.
556
557 2004-11-19 Mark Mitchell <mark@codesourcery.com>
558
559 * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
560 (earmelf_linux_eabi.c): New target.
561 * configure.tgt (arm*-*-linux-gnueabi): Handle it.
562 * emulparams/armelf_linux_eabi.sh: New file.
563 * Makefile.in: Regenerated.
564
565 2004-11-19 Nick Clifton <nickc@redhat.com>
566
567 PR 518
568 * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
569 LENGTH fields in the MEMORY command, to explicitly state that
570 symbols cannot be used in their expressions.
571
572 2004-11-19 Jon Beniston <jon@beniston.com>
573
574 * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
575 * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
576 * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
577 which return the length and origin of a memory.
578 * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
579 * NEWS: Mention support for ORIGIN and LENGTH operators.
580
581 2004-11-17 Daniel Jacobowitz <dan@codesourcery.com>
582
583 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
584 a dynamic object for stubs.
585
586 2004-11-04 Paul Brook <paul@codesourcery.com>
587
588 * ld.texinfo: Document --default-imported-symver.
589 * ldmain.c (main): Set link_info.default_imported_symver.
590 * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
591 (ld_options): Add --default-imported-symver.
592 (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
593
594 2004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
595 Vineet Sharma <vineets@noida.hcltech.com>
596
597 * Makefile.am: Add entries for new maxq-coff target.
598 * Makefile.in: Regenerate.
599 * configure.tgt: Add support for maxq.
600 * emulparams/maxqcoff.sh: New File.
601 * scripttempl/maxqcoff.sc: New linker script for target maxq.
602 * NEWS: Mention the new target.
603
604 2004-11-08 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
605
606 * testsuite/ld-scripts/weak.exp: Enable test on PE,
607 XFAIL non-i386 PE.
608 * testsuite/ld-undefined/weak-undef.exp: Enable test on PE,
609 XFAIL non-i386 PE.
610 * testsuite/lib/ld-lib.exp (is_pecoff_format): New.
611
612 2004-11-04 Daniel Jacobowitz <dan@debian.org>
613
614 * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
615 (earmelf_oabi.c): Remove rule.
616 * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
617 * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
618 * Makefile.in: Regenerated.
619
620 2004-11-04 Hans-Peter Nilsson <hp@axis.com>
621
622 * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
623 * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
624 (FINI_START): Ditto.
625 (INIT_END): Remove emitted "jump [sp+]".
626 (FINI_END): Ditto.
627
628 2004-11-04 Alan Modra <amodra@bigpond.net.au>
629
630 * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
631 (no_opd_opt, no_toc_opt): New static vars.
632 (ppc_before_allocation): Don't edit opt if no_opd_opt. Call
633 ppc64_elf_edit_toc.
634 (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
635 (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
636 (PARSE_AND_LIST_OPTIONS): Describe new options.
637 (PARSE_AND_LIST_ARGS_CASES): Handle them.
638
639 2004-10-27 Nick Clifton <nickc@redhat.com>
640
641 * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
642 parameter to invocation of lang_section_start.
643 * emultempl/aix.em (_handle_option): Likewise.
644
645 * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
646 eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
647 * Makefile.in: Regenerate.
648
649 2004-10-26 Mark Mitchell <mark@codesourcery.com>
650
651 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
652 __exidx_{start,end} when not relocating.
653
654 2004-10-25 Mark Mitchell <mark@codesourcery.com>
655
656 * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
657 * ldexp.h (segment_type): New type.
658 (segments): New variable.
659 * ldexp.c (segments): New variable.
660 (exp_print_token): Handle SEGMENT_START.
661 (fold_binary): Likewise.
662 * ldgram.y (SEGMENT_START): Declare it as a token.
663 (exp): Handle SEGMENT_START.
664 * ldlang.h (lang_address_statement_type): Add segment field.
665 (lang_section_start): Change prototype.
666 * ldlang.c (map_input_to_output_sections): Do not process section
667 assignments if a corresponding SEGMENT_START has already been
668 seen.
669 (lang_section_start): Add segment parameter.
670 * ldlex.l (SEGMENT_START): Add it.
671 * lexsup.c (seg_segment_start): New function.
672 (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
673 * ld.texinfo (SEGMENT_START): Document it.
674 * emulparams/armsymbian.sh (EMBEDDED): Set it.
675 * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
676 base addresses. Do not map relocations.
677 * NEWS: Mention SEGMENT_START.
678
679 2004-10-26 Paul Brook <paul@codesourcery.com>
680
681 * ld.texinfo: Document --default-symver.
682 * ldmain.c (main): Set link_info.create_default_symver.
683 * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
684 (ld_options): Add default-symver.
685 (parse_args): Handle OPTION_DEFAULT_SYMVER.
686
687 2004-10-24 Danny Smith <dannysmith@users.sourceforge.net>
688
689 * pe-dll.c (process_def_file): Don't export all symbols by default if
690 building a position-independent executable.
691
692 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
693
694 PR 463
695 * ldmain.c (reloc_overflow): Accept a pointer to struct
696 bfd_link_hash_entry. Report symbol location for relocation
697 overflow.
698
699 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
700
701 * genscripts.sh (libpath.exp): Really generate for first
702 emulation only.
703
704 2004-10-19 Danny Smith <dannysmith@users.sourceforge.net>
705
706 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
707 comparison and replacement of filenames.
708
709 2004-10-19 H.J. Lu <hongjiu.lu@intel.com>
710
711 PR 459
712 * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
713 option on linker script as the one for linker script.
714
715 2004-10-16 Daniel Jacobowitz <dan@debian.org>
716
717 * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
718 (check_excluded_libs): New.
719 (load_symbols): Call check_excluded_libs.
720 * ldlang.h (add_excluded_libs): New prototype.
721 * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
722 (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
723 (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
724 * ld.texinfo (Command Line Variables): Document --exclude-libs.
725 (Options Specific to i386 PE Targets): Remove --exclude-libs.
726
727 2004-10-15 Alan Modra <amodra@bigpond.net.au>
728
729 * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
730 failing link script assert.
731
732 * ldctor.c (ldctor_add_set_entry): Fix comment typo.
733
734 2004-10-14 H.J. Lu <hongjiu.lu@intel.com>
735
736 PR 445
737 * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
738 (SMALL_DATA_DTOR): Set.
739 * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
740 (SMALL_DATA_DTOR): Unset.
741 * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
742 after .data. If SMALL_DATA_DTOR is set, move .dtors after
743 .data.
744
745 2004-10-14 Alan Modra <amodra@bigpond.net.au>
746
747 PR 63
748 * ldlang.h (lang_output_section_statement_type): Make "next" a
749 struct lang_output_section_statement_struct *.
750 (struct orphan_save): Move from elf32.em. Add "name" and "flags".
751 (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
752 * ldlang.c (lang_output_section_find_1): Adjust for changed
753 output_section_statement "next".
754 (strip_excluded_output_sections): Likewise.
755 (lang_record_phdrs): Likewise.
756 (lang_output_section_find_by_flags): New function.
757 (output_prev_sec_find): Move from pe.em. Adjust iterator.
758 (lang_insert_orphan): New function. Tail end of elf32.em's
759 place_orphan merged with that from pe.em. Allow bfd_section to
760 be placed first. New heuristic for placing new output section
761 statement in existing script, and accompanying split of __start
762 symbol alignment into a separate assignment to dot.
763 (lang_add_section): Consistently use output->bfd_section rather than
764 an alias, section->output_section.
765 (map_input_to_output_sections): Rename overly long arg. Move
766 initialization of data_statement output section to here..
767 (lang_check_section_addresses): ..from here.
768 (print_assignment): Correct printing of etree_assert.
769 (print_all_symbols): Don't bomb if userdata is NULL.
770 (IGNORE_SECTION): Rearrange.
771 * emultempl/elf32.em (output_rel_find): Adjust interator.
772 (output_prev_sec_find): Delete.
773 (struct orphan_save): Delete.
774 (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
775 flags without creating a duplicate output section statement.
776 Revise code holding history of various orphan section placements.
777 Allow orphan sections to place before script specified output
778 sections. Call lang_output_section_find_by_flags when placement
779 by name fails. Use lang_insert_orphan.
780 * emultempl/mmo.em (output_prev_sec_find): Delete.
781 (struct orphan_save): Delete.
782 (mmo_place_orphan): Revise code holding history of orphan placement.
783 Allow orphans to place before existing output sections. Use
784 lang_insert_orphan.
785 * emultempl/pe.em (output_prev_sec_find): Delete.
786 (struct orphan_save): Delete.
787 (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
788 lang_insert_orphan.
789
790 2004-10-13 Mark Mitchell <mark@codesourcery.com>
791
792 * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
793 loadable segment.
794
795 2004-10-13 Alan Modra <amodra@bigpond.net.au>
796
797 PR 44
798 * ldcref.c (check_section_sym_xref): Delete.
799 (check_local_sym_xref): New function.
800 (check_nocrossrefs): Adjust call.
801 * emultempl/pe.em (struct orphan_save): Add os_tail.
802 (place_orphan): Backport assorted fixes from elf32.em.
803
804 2004-10-12 Bob Wilson <bob.wilson@acm.org>
805
806 * emultempl/xtensaelf.em: Use ISO C90 formatting.
807
808 2004-10-11 Jakub Jelinek <jakub@redhat.com>
809
810 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
811 getline for portability.
812
813 * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
814 (gld${EMULATION_NAME}_parse_ld_so_conf,
815 gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
816 (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
817
818 2004-10-11 Alan Modra <amodra@bigpond.net.au>
819
820 PR 423
821 * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
822 rejected when linking statically.
823
824 2004-10-08 Daniel Jacobowitz <dan@debian.org>
825
826 * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
827
828 2004-10-07 Bob Wilson <bob.wilson@acm.org>
829
830 * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
831 assembler-generated longcall sequences. Describe new --size-opt
832 option.
833 * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
834 * emultempl/xtensaelf.em (remove_section,
835 replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
836 elf_xtensa_after_open): New.
837 (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
838 OPTION_NO_LITERAL_MOVEMENT): Define.
839 (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
840 (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
841 (PARSE_AND_LIST_OPTIONS): Add --size-opt.
842 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
843 OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
844 (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
845 * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
846 * Makefile.am (eelf32xtensa.c): Update dependencies.
847 * Makefile.in: Regenerate.
848
849 2004-10-07 Jeff Baker <jbaker@qnx.com>
850
851 * lexsup.c: Handle --warn-shared-textrel option.
852 (ld_options): Restore alpha sorting of options.
853 * ldmain.c (main): Initialise warn_shared_info field to FALSE.
854 * ld.texinfo: Add documentation for --warn-shared-textrel.
855 * NEWS: Added mention of --warn-shared-textrel option.
856
857 2004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
858
859 * emultempl/crxelf.em (disable_relaxation): Add.
860 (crxelf_before_allocation): Enable --relax option by default.
861 (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
862 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
863 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
864
865 2004-10-04 H.J. Lu <hongjiu.lu@intel.com>
866
867 * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
868 --sort-section name|alignment.
869
870 * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
871 --sort-section name|alignment.
872
873 * ld.h (sort_type): New enum.
874 (wildcard_spec): Change the type of `sorted' to sort_type.
875
876 * ldgram.y (SORT): Removed.
877 (SORT_BY_NAME): Added.
878 (SORT_BY_ALIGNMENT): Added.
879 (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
880 SORT_BY_ALIGNMENT.
881 (input_section_spec_no_keep): Updated `sorted'.
882 (statement): Replace SORT with SORT_BY_NAME.
883
884 * ldlang.c (compare_section): New function to compare 2
885 sections with different sorting schemes.
886 (wild_sort): Updated. Use compare_section.
887 (update_wild_statements): New function.
888 (lang_process): Call update_wild_statements before
889 map_input_to_output_sections.
890
891 * ldlex.l (SORT_BY_NAME): New.
892 (SORT_BY_ALIGNMENT): New.
893 (SORT): Return SORT_BY_NAME.
894
895 * ldmain.c (sort_section): New. Defined.
896 (main): Initialize it to none.
897
898 * lexsup.c (option_values): Add OPTION_SORT_SECTION.
899 (ld_options): Add an entry for OPTION_SORT_SECTION.
900 (parse_args): Handle OPTION_SORT_SECTION.
901
902 * mri.c (mri_draw_tree): Updated `sorted'.
903
904 2004-10-04 Jakub Jelinek <jakub@redhat.com>
905
906 * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
907 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
908 argument.
909 (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
910 and . as second argument.
911 (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
912 * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
913 (fold_binary): Add it here. Insert padding to make relro_end
914 COMMONPAGESIZE bytes aligned. For DATA_SEGMENT_ALIGN in
915 exp_dataseg_relro_adjust phase just use previously computed
916 exp_data_seg.base.
917 * ldlang.c (lang_size_sections): Set exp_data_seg.base for
918 relro_adjust here. Call lang_size_sections_1 once more if there
919 was too big padding at DATA_SEGMENT_RELRO_END.
920 * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
921
922 2004-10-01 Paul Brook <paul@codesourcery.com>
923
924 * emulparams/armelf.sh: Add unwinding table sections.
925
926 2004-09-30 Filip Navara <navaraf@reactos.com>
927
928 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
929 correct base address for position independant executables.
930 * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
931 executables as DLLs.
932
933 2004-09-30 Paul Brook <paul@codesourcery.com>
934
935 * ld.texinfo: Document --target2=abs.
936 * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
937
938 2004-09-29 Nick Clifton <nickc@redhat.com>
939
940 * scripttempl/xstormy16.sc: Only perform the assignments to the
941 ROM region when not performing a relocatable link. The ROM region
942 does not start at address 0, but the sections will.
943 * Makefile.am: Fix linker script dependency for the generation of
944 eelf32xstormy16.c.
945 * Makefile.in: Regenerate.
946
947 2004-09-18 Filip Navara <navaraf@reactos.com>
948
949 * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
950 emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
951 emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
952 TARGET_PAGE_SIZE.
953 * scripttempl/pe.sc: Make the virtual address and file offset synced if
954 the alignment is lower than the target page size.
955
956 2004-09-27 Filip Navara <navaraf@reactos.com>
957
958 * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
959 def_file_parse to handle pe_def_file if NULL and prevent crash with
960 invalid .def files.
961
962 2004-09-27 Alan Modra <amodra@bigpond.net.au>
963
964 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
965 --emit-stub-syms automatically when --emit-relocs.
966
967 2004-09-24 Paul Brook <paul@codeosurcery.com>
968
969 * scripttempl/elf.sc: Keep .preinit_array, .init_array and
970 .fini_array sections.
971
972 2004-09-19 Andreas Schwab <schwab@suse.de>
973
974 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
975 base so that relro end is suitably aligned.
976
977 2004-09-17 Paul Brook <paul@codesourcery.com>
978
979 * ld.texinfo: Rename arm-specific section. Document --target*
980 * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
981 * emulparams/armelf_linux.sh: Ditto.
982 * emulparams/armelf_nbsd.sh: Ditto.
983 * emultempl/armelf.em: Set default for TARGET2_TYPE.
984 (target2_type): New variable.
985 (arm_elf_before_allocation): Don't pass target1_type.
986 (arm_elf_create_output_section_statements): New function.
987 (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
988 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
989 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
990 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
991 * emultempl/armelf_oabi.em (_before_allocation): Remove extra
992 argument to bfd_elf32_arm_process_before_allocation.
993
994 2004-09-17 Alan Modra <amodra@bigpond.net.au>
995
996 * ldexp.c (fold_name): Update u.undef.next refs.
997 * emultempl/pe.em: Likewise.
998 * emultempl/sunos.em: Likewise.
999
1000 2004-09-17 Alan Modra <amodra@bigpond.net.au>
1001
1002 * Makefile.am: Run "make dep-am".
1003 * Makefile.in: Regenerate.
1004 * config.in: Regenerate.
1005 * configure: Regenerate.
1006 * aclocal.m4: Regenerate.
1007 * po/ld.pot: Regenerate.
1008
1009 2004-09-16 Tomer Levi <Tomer.Levi@nsc.com>
1010
1011 * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
1012 (.fini): Likewise.
1013 (.jcr): Likewise.
1014
1015 2004-09-16 Alan Modra <amodra@bigpond.net.au>
1016
1017 * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
1018 to bfd_elf32_arm_process_before_allocation call.
1019
1020 2004-09-13 Paul Brook <paul@codesourcery.com>
1021
1022 * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
1023 * emultempl/armelf.em: Use TARGET1_IS_REL. Add --target1-{rel,abs}.
1024
1025 2004-09-07 H.J. Lu <hongjiu.lu@intel.com>
1026
1027 * configure: Regenerated with autconfig 2.13.
1028
1029 2004-09-07 Andreas Schwab <schwab@suse.de>
1030
1031 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
1032 alignment before adjusting DATA_SEGMENT_RELRO_END.
1033
1034 2004-09-06 Mark Mitchell <mark@codesourcery.com>
1035
1036 * emulparams/armsymbian.sh: Use armbpabi script.
1037 * scripttempl/armbpabi.sc: New script.
1038
1039 2004-09-02 Mark Mitchell <mark@codesourcery.com>
1040
1041 * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
1042 (earmsymbian.c): New target.
1043 * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
1044 * Makefile.in: Regenerated.
1045 * aclocal.m4: Likewise.
1046 * configure: Likewise.
1047 * emulparams/armsymbian.sh: New file.
1048
1049 2004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
1050
1051 * scripttempl/elf32crx.sc: Edit file with comments.
1052 (.init): Add new section.
1053 (.fini): Likewise.
1054 (.ctor): Control the linkage order.
1055 (.dtor): Likewise.
1056
1057 2004-08-27 Nick Clifton <nickc@redhat.com>
1058
1059 * emultempl/pe.em (after_open): Do not assume that either bfd is
1060 an archive.
1061
1062 2004-08-26 Alan Modra <amodra@bigpond.net.au>
1063
1064 * ldlang.c (lang_init): Don't compare with TRUE.
1065
1066 2004-08-25 Dmitry Diky <diwil@spec.ru>
1067
1068 * emulparams/msp430all.sh: Fix RAM sizes for all targets.
1069 * scripttempl/elf32msp430.sc: Add .profiler section definition.
1070
1071 2004-08-24 H.J. Lu <hongjiu.lu@intel.com>
1072
1073 * ldlang.c (wildcardp): Defined as a macro with strpbrk.
1074
1075 2004-08-19 Mark Mitchell <mark@codesourcery.com>
1076
1077 * configure.tgt (arm*-*-symbianelf*): New target.
1078 (arm*-*-eabi*): Likewise.
1079
1080 2004-08-19 Jakub Jelinek <jakub@redhat.com>
1081
1082 * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
1083 (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
1084 (OPTION_NON_OVERLAPPING_OPD): Define.
1085 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
1086 --non-overlapping-opd option.
1087
1088 2004-08-18 Alan Modra <amodra@bigpond.net.au>
1089
1090 PR 338
1091 * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
1092 was already on the undefs list.
1093
1094 2004-08-17 Alan Modra <amodra@bigpond.net.au>
1095
1096 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
1097 prefix the symbol field too.
1098
1099 2004-08-13 Alan Modra <amodra@bigpond.net.au>
1100
1101 * ldmain.c (link_callbacks): Remove "error_handler".
1102 * ldmisc.c: Include elf-bfd.h.
1103 (vfinfo): Sort comment. Handle %A. Use %A instead of
1104 bfd_get_section_indent.
1105 (error_handler): Delete.
1106 * ldmisc.h (error_handler): Delete declaration.
1107
1108 2004-08-10 Alan Modra <amodra@bigpond.net.au>
1109
1110 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
1111 ppc64_elf_restore_symbols.
1112
1113 2004-08-09 Alan Modra <amodra@bigpond.net.au>
1114
1115 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
1116 .toc is too large on relocatable linking.
1117
1118 2004-08-09 Alan Modra <amodra@bigpond.net.au>
1119
1120 * emultempl/ppc64elf.em (ppc_after_open): Delete.
1121 (LDEMUL_AFTER_OPEN): Don't define.
1122
1123 2004-08-02 Stephane Carrez <stcarrez@nerim.fr>
1124
1125 * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
1126
1127 2004-08-01 Stephane Carrez <stcarrez@nerim.fr>
1128
1129 * scripttempl/elfm68hc12.sc: Align text, rodata and data section
1130 on power of 2.
1131
1132 2004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
1133
1134 * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
1135
1136 2004-07-26 Dmitry Diky <diwil@spec.ru>
1137
1138 * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
1139 msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
1140 msp430xG439.
1141 * configure.tgt: Likewise.
1142 * emulparams/msp430all.sh: Likewise.
1143 * Makefile.in: Regenerate.
1144
1145 2004-07-23 Nick Clifton <nickc@redhat.com>
1146
1147 * emultempl/elf32.em (_place_orphan): Use an already existing
1148 section name if that section does not have any flags set.
1149
1150 2004-07-21 H.J. Lu <hongjiu.lu@intel.com>
1151
1152 * ldlang.c (already_linked_hash_entry): Removed.
1153 (already_linked): Likewise.
1154 (already_linked_table): Likewise.
1155 (section_already_linked): Call bfd_section_already_linked.
1156 (lang_process): Replace already_linked_table_init with
1157 bfd_section_already_linked_table_init and check return. Replace
1158 already_linked_table_free with bfd_section_already_linked_table_free.
1159
1160 2004-07-21 Nick Clifton <nickc@redhat.com>
1161
1162 * ldlang.c (init_os): Make sure that the newly allocated userdata
1163 structure is zeroed out.
1164
1165 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
1166
1167 * NEWS: Mention the new --add-needed/--no-add-needed and
1168 --as-needed/--no-as-needed options.
1169
1170 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
1171
1172 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
1173 check the add_needed field.
1174 (dt_needed): New struct.
1175 (gld${EMULATION_NAME}_try_needed): Change the first argument
1176 to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
1177 bit in the file where the DT_NEEDED entry comes from.
1178 (gld${EMULATION_NAME}_search_needed): Change the second
1179 argument to a pointer to struct dt_needed.
1180 (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
1181 (gld${EMULATION_NAME}_after_open): Likewise.
1182
1183 * ld.texinfo: Add --add-needed document.
1184 * ldlang.c (new_afile): Set p->add_needed.
1185 * ldlang.h (lang_input_statement_type): Add add_needed field.
1186 * ldmain.h (add_needed): Declare.
1187 * ldmain.c (add_needed): New global var.
1188 * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
1189 OPTION_NO_ADD_NEEDED.
1190 (ld_options): Likewise.
1191 (parse_args): Handle them.
1192
1193 2004-07-13 Christof Petig <christof@petig-baender.de>
1194
1195 * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
1196 for endian-ness of extracted addend.
1197
1198 2004-07-13 Danny Smith <dannysmith@usesr.sourceforge.net>
1199
1200 * pe-dll.c (auto_export): Filter on just the import prefix,
1201 "_imp_", not "_imp__".
1202
1203 2004-07-09 Nick Clifton <nickc@redhat.com>
1204
1205 * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
1206
1207 2004-07-06 Tomer Levi <Tomer.Levi@nsc.com>
1208
1209 * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
1210 (eelf32crx.c): New target.
1211 * Makefile.in: Regenerate.
1212 * configure.tgt: Handle crx-*-elf*.
1213 * emulparams/elf32crx.sh: New file.
1214 * emultempl/crxelf.em: New file.
1215 * scripttempl/elf32crx.sc: New file.
1216 * NEWS: Mention new target.
1217
1218 2004-07-06 Nick Clifton <nickc@redhat.com>
1219
1220 * Makefile.am: Add eshlsymbian.c.
1221 * Makefile.in: Regenerate.
1222 * configure.tgt: Add sh*-symbian-elf target.
1223 * emulparams/shlsymbian.sh: New file. Configure the
1224 sh-symbian-elf linker scripts.
1225 * scripttemp/elf32sh-symbian.sc: New file. Linker script
1226 template for the sh-symbian-elf target.
1227
1228 2004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1229
1230 * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
1231 * emulparams/hppalinux.sh: Likewise.
1232 * scripttempl/elf.sc: Place .plt just before .got when .plt is in
1233 data segment and PLT_BEFORE_GOT is defined.
1234
1235 2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1236
1237 * ld.texinfo (WIN32): Document PE weak symbols.
1238
1239 2004-07-02 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1240
1241 * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
1242
1243 2004-07-01 H.J. Lu <hongjiu.lu@intel.com>
1244
1245 * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
1246 the section.
1247
1248 2004-06-29 Alan Modra <amodra@bigpond.net.au>
1249
1250 * ldlang.c (lang_reset_memory_regions): Save last relax pass section
1251 size in rawsize.
1252
1253 2004-06-24 Alan Modra <amodra@bigpond.net.au>
1254
1255 * ldlang.c (print_output_section_statement): Don't print size before
1256 relaxation.
1257 (IGNORE_SECTION): Remove bfd arg. Update all callers.
1258
1259 * ldexp.c (fold_name): .. See below.
1260 * ldlang.c (section_already_linked, print_output_section_statement,
1261 print_input_section, insert_pad, size_input_section,
1262 lang_check_section_addresses, lang_size_sections_1,
1263 lang_size_sections, lang_do_assignments_1, lang_set_startof,
1264 lang_one_common, lang_reset_memory_regions, lang_process,
1265 lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
1266 * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
1267 * pe-dll.c (process_def_file, generate_reloc): ..
1268 * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
1269 gld${EMULATION_NAME}_before_allocation): ..
1270 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
1271 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
1272 sh64_elf_${EMULATION_NAME}_after_allocation): ..
1273 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
1274 * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
1275 ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
1276 "size" instead of "_raw_size" and "_cooked_size". Expand
1277 bfd_section_size macro invocations.
1278
1279 2004-06-22 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1280
1281 * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
1282 ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
1283 ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
1284 ___crt_xt_end__.
1285 (.tls): Define ___tls_start__ and ___tls_end__.
1286
1287 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
1288
1289 * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
1290
1291 2004-06-18 Adam Nemet <anemet@lnxw.com>
1292
1293 * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
1294 * configure: Regenerate.
1295
1296 2004-06-15 Jakub Jelinek <jakub@redhat.com>
1297
1298 * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
1299 .gcc_except_table output sections lost accidentally with
1300 -z relro patch.
1301
1302 2004-06-15 Alan Modra <amodra@bigpond.net.au>
1303
1304 * ldwrite.c (build_link_order): Use bfd_get_section_size
1305 instead of bfd_get_section_size_before_reloc or _raw_size.
1306 * pe-dll.c (process_def_file): Likewise.
1307
1308 2004-06-14 Alan Modra <amodra@bigpond.net.au>
1309
1310 From Richard Wirth <r.wirth@wirthware.de>
1311 * ldlang.c (lang_finish): Don't free lang_definedness_table.
1312
1313 2004-05-29 Alan Modra <amodra@bigpond.net.au>
1314
1315 * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
1316 (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
1317
1318 2004-05-28 Andrew Stubbs <andrew.stubbs@superh.com>
1319
1320 * testsuite/ld-sh/arch/arch.exp: New test script.
1321 * testsuite/ld-sh/arch/arch_expected.txt: New file.
1322 * testsuite/ld-sh/arch/sh.s: New file.
1323 * testsuite/ld-sh/arch/sh2.s: New file.
1324 * testsuite/ld-sh/arch/sh-dsp.s: New file.
1325 * testsuite/ld-sh/arch/sh2e.s: New file.
1326 * testsuite/ld-sh/arch/sh3-nommu.s: New file.
1327 * testsuite/ld-sh/arch/sh3.s: New file.
1328 * testsuite/ld-sh/arch/sh3-dsp.s: New file.
1329 * testsuite/ld-sh/arch/sh3e.s: New file.
1330 * testsuite/ld-sh/arch/sh4-nommu-nofpu.s: New file.
1331 * testsuite/ld-sh/arch/sh4-nofpu.s: New file.
1332 * testsuite/ld-sh/arch/sh4.s: New file.
1333 * testsuite/ld-sh/arch/sh4a-nofpu.s: New file.
1334 * testsuite/ld-sh/arch/sh4al-dsp.s: New file.
1335 * testsuite/ld-sh/arch/sh4a.s: New file.
1336
1337 2004-05-28 Alan Modra <amodra@bigpond.net.au>
1338
1339 * ldlang.c: Formatting. Wrap long lines, expand bfd_get_section_flags
1340 throughout file.
1341 * lexsup.c: Formatting. Wrap long lines.
1342 * ldwrite.c: Update copyright date.
1343
1344 * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
1345 (output_section_callback): Nor SEC_KEEP here.
1346 (gc_section_callback): Twiddle SEC_EXCLUDE here.
1347 (lang_gc_wild): Delete. Fold into..
1348 (lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage
1349 collecting.
1350 (lang_process): Always call lang_gc_sections.
1351 (lang_place_orphans): Handle SEC_EXCLUDE sections.
1352 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
1353 SEC_EXCLUDE code.
1354
1355 2004-05-26 H.J. Lu <hongjiu.lu@intel.com>
1356
1357 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
1358 SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
1359 * ldlang.c (lang_add_section): Likewise.
1360
1361 2004-05-26 Alan Modra <amodra@bigpond.net.au>
1362
1363 * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
1364 sections when doing a final link. Clear SEC_EXCLUDE when doing
1365 a relocable link, except for SEC_DEBUGGING sections.
1366 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
1367 same condition here to drop SEC_EXCLUDE orphan sections.
1368
1369 2004-05-25 Alan Modra <amodra@bigpond.net.au>
1370
1371 * ldlang.c (lang_process): Call bfd_merge_sections later, and
1372 only when not a relocatable link.
1373 (print_input_section): Handle SEC_EXCLUDE sections.
1374 (size_input_section): Don't update dot on SEC_EXCLUDE sections.
1375 (lang_do_assignments_1): Likewise.
1376 * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
1377 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
1378 * emultempl/hppaelf.em (build_section_lists): Likewise.
1379 * emultempl/ppc64elf.em (build_toc_list): Likewise.
1380 (build_section_lists): Likewise.
1381
1382 2004-05-23 Andreas Schwab <schwab@suse.de>
1383
1384 * ld.texinfo (Options): Fix typo in last change.
1385
1386 2004-05-21 Andy Chittenden <achittenden@bluearc.com>
1387
1388 * ld.h (ld_config_type): Add new field: hash_table_size.
1389 * ldmain.c: Initialise the new field to zero. If it is non-zero
1390 after parsing the linker's command line call
1391 bfd_hash_set_default_size.
1392 * lexsup.c (option_values): Add OPTION_HASH_SIZE.
1393 (ld_options): Add hash-size.
1394 (parse_args): Parse --hash-size option. Allow
1395 --reduce-memory-overheads to set the default hash table size as
1396 well.
1397 * ld.texinfo: Document the new switch. Also mention that
1398 --reduce-memory-overheads can affect the hash table size.
1399 * NEWS: Mention the new feature.
1400
1401 2004-05-19 J"orn Rennecke <joern.rennecke@superh.com>
1402
1403 * NEWS: Mention new linker map file generation and the
1404 --reduce-memory-overheads option.
1405 * ld.texinfo: Document --reduce-memory-overheads option.
1406 * ld.h (map_symbol_def): New struct.
1407 (struct user_section_struct, section_userdata_type): Rename to:
1408 (struct lean_user_section_struct, lean_section_userdata_type).
1409 (struct fat_user_section_struct, fat_section_userdata_type): New.
1410 (SECTION_USERDATA_SIZE): Define.
1411 (args_type): New member reduce_memory_overheads.
1412 * ldlang.c (map_obstack): New static variable.
1413 (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
1414 (lang_map): Unless command_line.reduce_memory_overheads is set,
1415 initialize lists of defined symbols for each section.
1416 (print_input_section): Unless command_line.reduce_memory_overheads
1417 is set, use print_all_symbols.
1418 (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
1419 * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
1420 * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
1421 (ld_options): Add entry for --reduce-memory-overheads.
1422 (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
1423
1424 2004-05-19 Jakub Jelinek <jakub@redhat.com>
1425
1426 * ldgram.y (sect_constraint): New.
1427 (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1428 (section): Add sect_constraint. Pass additional argument
1429 to lang_enter_output_section_statement.
1430 * mri.c (mri_draw_tree): Pass additional argument to
1431 lang_enter_output_section_statement.
1432 * emultempl/pe.em (place_orphan): Likewise.
1433 (output_prev_sec_find): Disregard output section statements with
1434 constraint == -1.
1435 * emultempl/mmo.em (output_prev_sec_find): Likewise.
1436 (mmo_place_orphan): Pass additional argument to
1437 lang_enter_output_section_statement.
1438 * emultempl/elf32.em (output_prev_sec_find): Disregard output section
1439 statements with constraint == -1.
1440 (place_orphan): Pass additional argument to
1441 lang_enter_output_section_statement.
1442 * ldlang.c (lang_enter_overlay_section): Likewise.
1443 (lang_output_section_find_1): New.
1444 (lang_output_section_find): Use it.
1445 (lang_output_section_statement_lookup_1): New.
1446 (lang_output_section_statement_lookup): Use it.
1447 (check_section_callback, check_input_sections): New.
1448 (map_input_to_output_sections): Check if all input sections
1449 are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
1450 (strip_excluded_output_sections): Disregard output section statements
1451 with constraint == -1.
1452 (lang_record_phdrs): Likewise.
1453 (lang_enter_output_section_statement): Add constraint argument.
1454 Use lang_output_section_statement_lookup_1.
1455 * ldlang.h (lang_output_section_statement_type): Add constraint
1456 and all_input_readonly fields.
1457 (lang_enter_output_section_statement): Adjust prototype.
1458 * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1459 * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
1460 segment if all input sections are readonly.
1461
1462 2004-05-19 Adam Nemet <anemet@lnxw.com>
1463
1464 * scripttempl/i386lynx.sc: Remove file.
1465
1466 2004-05-17 Bob Wilson <bob.wilson@acm.org>
1467
1468 * ld.texinfo (Output Section Address): Correct subsection name.
1469
1470 2004-05-17 Adam Nemet <anemet@lnxw.com>
1471
1472 * configure.tgt (powerpc-*-lynxos* case): New case.
1473 * configure.host (i[3-7]86-*-lynxos* case): Remove case.
1474 * emulparams/ppclynx.sh: New file.
1475 * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
1476 * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
1477 (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
1478 (eppclynx.c): New rule.
1479 * Makefile.in: Regenerate.
1480
1481 2004-05-13 Joel Sherrill <joel@oarcorp.com>
1482
1483 * configure.tgt (or32-*-rtems*): Switch to elf and
1484 support versioned targets.
1485
1486 2004-05-13 Nick Clifton <nickc@redhat.com>
1487
1488 * po/fr.po: Updated French translation.
1489
1490 2004-05-11 Jakub Jelinek <jakub@redhat.com>
1491
1492 * genscripts.sh: Generate -z combreloc -z now -z relro scripts
1493 for binaries, -shared and -pie.
1494 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
1495 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
1496 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
1497 (OTHER_RELRO_SECTIONS): ... this.
1498 * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
1499 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
1500 -z relro and -z norelro.
1501 (gld${EMULATION_NAME}_list_options): Add it to usage.
1502 (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
1503 -z relro scripts when appropriate.
1504 * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
1505 Create separate .got.plt section if SEPARATE_GOTPLT.
1506 Move sections which are only written during relocation handling
1507 to the beginning of RW segment. If NO_SMALL_DATA, move .got
1508 before .data. Add DATA_SEGMENT_RELRO_END directive.
1509 Include OTHER_RELRO_SECTIONS.
1510 * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
1511 * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
1512 (fold_unary): Likewise.
1513 (fold_binary): Handle -z relro.
1514 * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
1515 exp_dataseg_relro_adjust phases. Add relro_end field.
1516 * ldmain.c (main): Initialize link_info.relro to FALSE.
1517 * ldlang.c (lang_size_sections): Handle -z relro.
1518
1519 2004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
1520
1521 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
1522
1523 2004-05-07 J"orn Rennecke <joern.rennecke@superh.com>
1524
1525 * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
1526 before printing it with %W.
1527
1528 2004-05-07 Brian Ford <ford@vss.fsi.com>
1529 DJ Delorie <dj@redhat.com>
1530
1531 * emultempl/pe.em (real_flags): New static.
1532 (OPTION_LARGE_ADDRESS_AWARE): New define.
1533 (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
1534 (gld_${EMULATION_NAME}_list_options): Likewise.
1535 (gld${EMULATION_NAME}_handle_option): Likewise.
1536 (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
1537 * ld.texinfo: Document it.
1538 * NEWS: Mention it.
1539
1540 2004-05-07 Brian Ford <ford@vss.fsi.com>
1541
1542 * NEWS: Mention DWARF 2 support for i386pe.
1543
1544 2004-05-05 Alexandre Oliva <aoliva@redhat.com>
1545
1546 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
1547 elf32-frvfdpic.
1548
1549 2004-04-30 Alan Modra <amodra@bigpond.net.au>
1550
1551 * ldlang.c (unique_section_p): Pass section parm, return true on
1552 group sections.
1553 (output_section_callback): Adjust.
1554 * ldlang.h (unique_section_p): Update prototype.
1555 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
1556
1557 2004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
1558
1559 * ld.texinfo (--gc-sections): Remove restriction for
1560 dynamic linking.
1561
1562 2004-04-29 Brian Ford <ford@vss.fsi.com>
1563
1564 * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
1565 for DWARF 2/3. Update stab section's syntax.
1566
1567 2004-04-29 Alan Modra <amodra@bigpond.net.au>
1568
1569 * pe-dll.c: Revert changes accidentally committed 2004-03-08.
1570 (fill_edata): Correct pointer arithmetic.
1571
1572 2004-04-21 Chris Demetriou <cgd@broadcom.com>
1573
1574 * ld.texinfo: Remove MIPS --embedded-relocs documentation.
1575 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
1576 * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
1577 (EXTRA_EM_FILE): Use mipsecoff.em
1578 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
1579 (EXTRA_EM_FILE): Use mipsecoff.em
1580 * emultempl/mipsecoff.em: Restructure to be included as an
1581 extra emulation file.
1582 (check_sections, gld${EMULATION_NAME}_after_open)
1583 (gld${EMULATION_NAME}_after_allocation)
1584 (gld${EMULATION_NAME}_get_script)
1585 (ld_${EMULATION_NAME}_emulation): Remove
1586 (gld${EMULATION_NAME}_before_parse): Rename to...
1587 (mipsecoff_before_parse): This.
1588 (LDEMUL_BEFORE_PARSE): Define.
1589 * emultempl/mipself.em: Remove file.
1590 * scripttempl/mips.sc (.rel.sdata): Do not include in output.
1591 (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
1592 these symbols.
1593 * Makefile.am: Remove dependencies on emultempl/mipself.em.
1594 * Makefile.in: Regenerate.
1595
1596 2004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
1597
1598 * ld.texinfo (synthesizing on H8/300): Information about linker
1599 relaxation support for bit manipulation instructions and system
1600 control instructions is added.
1601
1602 2004-04-21 Hans-Peter Nilsson <hp@axis.com>
1603
1604 * NEWS: Mention change in DEFINED semantics.
1605
1606 2004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
1607
1608 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
1609 (.data): Add KEEP for .gnu.linkonce.d.*personality*.
1610 (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
1611
1612 2004-04-21 Ben Elliston <bje@au.ibm.com>
1613
1614 * ld.texinfo (Simple Example): Add missing punctuation.
1615
1616 2004-04-20 Chris Demetriou <cgd@broadcom.com>
1617
1618 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
1619
1620 2004-04-19 Jakub Jelinek <jakub@redhat.com>
1621
1622 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
1623 specially.
1624
1625 2004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
1626
1627 * scriptempl/pe.sc: Put numbered .ctors.* after .ctors
1628 with default priority. Likewise for dtors.
1629
1630 2004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1631
1632 * configure.host: Remove mips*-dec-bsd* target.
1633 * configure.tgt: Likewise.
1634
1635 2004-04-08 Richard Sandiford <rsandifo@redhat.com>
1636
1637 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
1638 * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
1639 * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
1640 * emultempl/irix.em: New file.
1641 * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
1642 dependencies.
1643 * Makefile.in: Regenerate.
1644
1645 2004-04-01 Paul Brook <paul@codesourcery.com>
1646
1647 * emultempl/armelf.em (byteswap_code): Add.
1648 (arm_elf_before_allocation): Pass extra parameter.
1649 (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
1650 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
1651 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
1652 * emultempl/armelf_oabi.em: Pass extra parameter.
1653 * ld.texinfo: Document --be8.
1654
1655 2004-03-30 Stan Shebs <shebs@apple.com>
1656
1657 Remove long-obsolete MPW support.
1658 * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
1659 * Makefile.am (mpw): Remove file-presynthesizing actions.
1660 * Makefile.in: Likewise.
1661 * ldfile.c (slash): Remove MPW case.
1662 * ldlex.l [MPW]: Remove unused definition.
1663
1664 2004-03-30 Galit Heller <Galit.Heller@nsc.com>
1665
1666 * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
1667 (eelf32cr16c.c): New target.
1668 * Makefile.in: Regenerate.
1669 * configure.tgt: Handle cr16c-*-elf*.
1670 * emulparams/elf32cr16c.sh: New file.
1671 * scripttempl/elfcr16c.sc: Likewise
1672 * NEWS: Mention support for new target.
1673
1674 2004-03-30 Nick Clifton <nickc@redhat.com>
1675
1676 * po/sv.po: Updated Swedish translation.
1677
1678 2004-03-27 Alan Modra <amodra@bigpond.net.au>
1679
1680 * emultempl/elf32.em: Update new bfd_elf_discard_info name.
1681 * emultempl/hppaelf.em: Likewise.
1682 * emultempl/ppc64elf.em: Likewise.
1683 * emultempl/sh64elf.em: Likewise.
1684
1685 2004-03-25 Alan Modra <amodra@bigpond.net.au>
1686
1687 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
1688 size_dynamic_sections call.
1689
1690 2004-03-23 Alan Modra <amodra@bigpond.net.au>
1691
1692 PR 51.
1693 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
1694 link_info.wrap_char.
1695
1696 2004-03-20 H.J. Lu <hongjiu.lu@intel.com>
1697
1698 * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
1699 or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
1700
1701 2004-03-20 Alexandre Oliva <aoliva@redhat.com>
1702
1703 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
1704
1705 2004-03-19 Alan Modra <amodra@bigpond.net.au>
1706
1707 * config.in: Regenerate.
1708 * po/ld.pot: Regenerate.
1709
1710 2004-03-18 Alan Modra <amodra@bigpond.net.au>
1711
1712 * ld.texinfo: Add --as-needed doco.
1713 * ldmain.c (as_needed): New global var.
1714 * ldmain.h (as_needed): Declare.
1715 * lexsup.c (option_values): Add OPTION_AS_NEEDED and
1716 OPTION_NO_AS_NEEDED.
1717 (ld_options): Likewise.
1718 (parse_args): Handle them.
1719 * ldlang.h (lang_input_statement_type): Add as_needed field.
1720 * ldlang.c (new_afile): Set p->as_needed.
1721 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
1722 (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
1723 (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
1724
1725 * ldlang.c (open_input_bfds): Remove useless cast.
1726 (lang_do_assignments_1): Likewise.
1727 (lang_for_each_input_section): Delete.
1728
1729 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1730
1731 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
1732
1733 2004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
1734
1735 * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
1736 private when building implib.
1737
1738 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
1739
1740 * ldlang.c (lang_add_section): Don't force SEC_LOAD on
1741 SEC_THREAD_LOCAL.
1742 (IGNORE_SECTION): Ignore .tbss sections too.
1743 (lang_size_sections_1): .tbss sections do not advance dot.
1744
1745 2004-03-01 Andreas Schwab <schwab@suse.de>
1746
1747 * ld.texinfo (Options): Fix example for --wrap.
1748
1749 2004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
1750
1751 * pe-dll.c (fill_edata): Check that exported_symbol_sections is
1752 not NULL.
1753
1754 2004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
1755
1756 * ldlang.c (lang_check): Use %P, not %E, in error message.
1757
1758 2004-02-23 Nathan Sidwell <nathan@codesourcery.com>
1759
1760 * ldlang.h (struct lang_output_section_state): Change processed
1761 field's type.
1762 * ldexp.c (check, invalid): Remove.
1763 (fold_name): Move valid_p assignments. Create undefined symbol
1764 when needed. Directly exampine section's processd flag.
1765 * ldlang.c (lang_output_section_statement_lookup): Adjust
1766 processed field init.
1767 (lang_size_sections_1): Allow LOADADDR when determining section's
1768 VMA. Adjust error message. Fold data statement's expr.
1769 (lang_size_sections): Correctly increment lang_statement_iteration.
1770
1771 2004-02-23 Alan Modra <amodra@bigpond.net.au>
1772
1773 * ldexp.c (fold_tree): Follow indirect symbols.
1774
1775 2004-02-20 Nathan Sidwell <nathan@codesourcery.com>
1776
1777 * ldgram.y (exp): Add two operand ALIGN.
1778 * ldexp.c (fold_binary): Add ALIGN_K case.
1779 * ld.texinfo (ALIGN): Document two operand version.
1780
1781 2004-02-19 Nathan Sidwell <nathan@codesourcery.com>
1782
1783 * ldlang.c (map_input_to_output_sections): Initialize sections
1784 mentioned in a data statement expression.
1785 (lang_do_assignments_1): Add data statement's expression's
1786 section's vma.
1787
1788 2004-02-18 Nathan Sidwell <nathan@codesourcery.com>
1789
1790 * ldgram.y (statement_anywhere): Add assert rule.
1791 * ldlang.c (exp_init_os): Add assert case.
1792
1793 2004-02-14 Andrew Cagney <cagney@redhat.com>
1794
1795 * ldmain.c (remove_output): Call bfd_cache_close.
1796
1797 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
1798
1799 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
1800 .MIPS.content* and .MIPS.events* sections.
1801
1802 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
1803
1804 * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
1805 .note.gnu.arm.ident to after allocated sections. Mark its
1806 address as 0.
1807
1808 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
1809
1810 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
1811 * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
1812 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
1813 * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
1814 * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
1815
1816 2004-02-05 Nick Clifton <nickc@redhat.com>
1817
1818 * emultempl/pe.em (_after_open): Fix typo in previous delta.
1819
1820 2004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
1821
1822 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
1823
1824 2004-01-28 Alan Modra <amodra@bigpond.net.au>
1825
1826 * genscripts.sh: Fix typo.
1827
1828 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
1829
1830 2004-01-24 Jakub Jelinek <jakub@redhat.com>
1831
1832 * emulparams/elf64_ia64.sh: Put .rela.opd into
1833 OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
1834
1835 2004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
1836
1837 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
1838 * ld.texinfo (--omagic): Note that writable text section
1839 does not conform to published PE-COFF specs.
1840 (--enable-auto-import): Likewise.
1841
1842 2004-01-15 Alan Modra <amodra@bigpond.net.au>
1843
1844 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
1845
1846 2004-01-13 Nick Clifton <nickc@redhat.com>
1847
1848 * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
1849 which if true will prevent the LMA region being used as a
1850 replacement for a default VMA region.
1851 (lang_leave_output_section_statement): Pass extra parameter.
1852 (lang_leave_overlay): Likewise.
1853 * ld.texinfo (Output Section LMA): Document that the LMA
1854 region can be set to the VMA region if no VMA has been set.
1855 * ldlang.h (struct lang_output_section_phdr_list): Create a
1856 typedef for this type. Minor formatting fixes.
1857
1858 2004-01-13 Nick Clifton <nickc@redhat.com>
1859
1860 * ldlang.c (lang_size_sections_1): If dot is advanced, then
1861 assume that the section should be allocated.
1862
1863 2004-01-13 Alan Modra <amodra@bigpond.net.au>
1864
1865 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
1866 sections. Do ignore SEC_NEVER_LOAD sections.
1867 (lang_size_sections_1): Remove test made redundant with the above.
1868
1869 2004-01-09 Alan Modra <amodra@bigpond.net.au>
1870
1871 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
1872 program_header_size.
1873
1874 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
1875
1876 2003-11-28 Alexandre Oliva <aoliva@redhat.com>
1877 * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
1878 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
1879 * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
1880 (MAXPAGESIZE): Set to 64Kb.
1881 (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
1882 __ROFIXUP_END__. Don't map .rofixup.got any more.
1883 * emulparams/elf32frv.sh (NOP): Set.
1884 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
1885 * configure.tgt: Add frv-*-*linux*.
1886 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
1887 * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
1888 (eelf32frvfd.c): New.
1889 * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
1890 * emulparams/elf32frv.sh: Reverted previous two patches.
1891 * emulparams/elf32frvfd.sh: New.
1892 * Makefile.in: Rebuilt.
1893 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
1894 * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
1895 .rofixup.got to .rofixup.
1896 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
1897 * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
1898 (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
1899
1900 2004-01-05 Jakub Jelinek <jakub@redhat.com>
1901
1902 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
1903 * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
1904
1905 2004-01-03 Alan Modra <amodra@bigpond.net.au>
1906
1907 * ldexp.c (align_n): Make static.
1908 * ldexp.h (align_n): Delete declaration.
1909 * ldlang.h (lang_enter_output_section_statement): Remove
1910 block_value param.
1911 * ldlang.c (lang_enter_output_section_statement): Likewise.
1912 (TO_ADDR, TO_SIZE): Define.
1913 (opb_shift): New var.
1914 (init_opb): New function.
1915 (print_input_section): Call init_opb and use TO_ADDR.
1916 (print_data_statement, print_reloc_statement): Likewise.
1917 (print_padding_statement): Likewise.
1918 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
1919 (lang_check_section_addresses): Likewise.
1920 (lang_size_sections_1): Likewise.
1921 (lang_do_assignments_1): Likewise.
1922 (lang_set_startof): Likewise.
1923 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
1924 (lang_process): Call init_opb.
1925 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
1926 (lang_enter_overlay_section): Adjust
1927 lang_enter_output_section_statement call.
1928 * ldgram.y: Likewise.
1929 * mri.c (mri_draw_tree): Likewise.
1930 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1931 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1932 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1933
1934 * ldfile.c (ldfile_set_output_arch): Add defarch param.
1935 * ldfile.h (ldfile_set_output_arch): Ditto.
1936 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
1937 ldfile_set_output_arch.
1938 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1939 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
1940 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
1941 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1942 * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
1943 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1944 * ldgram.y: Adjust ldfile_set_output_arch call.
1945 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1946 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
1947 * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
1948 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
1949 * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
1950 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1951 * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1952
1953 2004-01-02 Bernardo Innocenti <bernie@develer.com>
1954
1955 * configure.tgt: Add m68k-uClinux target.
1956
1957 For older changes see ChangeLog-0203
1958 \f
1959 Local Variables:
1960 mode: change-log
1961 left-margin: 8
1962 fill-column: 74
1963 version-control: never
1964 End:
This page took 0.068252 seconds and 5 git commands to generate.