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