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