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