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