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