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