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