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