2004-10-27 Tomer Levi <Tomer.Levi@nsc.com>
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
6f372e19
MM
12004-10-26 Mark Mitchell <mark@codesourcery.com>
2
3 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
4 __exidx_{start,end} when not relocating.
5
ba916c8a
MM
62004-10-25 Mark Mitchell <mark@codesourcery.com>
7
8 * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
9 * ldexp.h (segment_type): New type.
10 (segments): New variable.
11 * ldexp.c (segments): New variable.
12 (exp_print_token): Handle SEGMENT_START.
13 (fold_binary): Likewise.
14 * ldgram.y (SEGMENT_START): Declare it as a token.
15 (exp): Handle SEGMENT_START.
16 * ldlang.h (lang_address_statement_type): Add segment field.
17 (lang_section_start): Change prototype.
18 * ldlang.c (map_input_to_output_sections): Do not process section
19 assignments if a corresponding SEGMENT_START has already been
20 seen.
21 (lang_section_start): Add segment parameter.
22 * ldlex.l (SEGMENT_START): Add it.
23 * lexsup.c (seg_segment_start): New function.
24 (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
25 * ld.texinfo (SEGMENT_START): Document it.
26 * emulparams/armsymbian.sh (EMBEDDED): Set it.
27 * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
28 base addresses. Do not map relocations.
29 * NEWS: Mention SEGMENT_START.
30
3e3b46e5
PB
312004-10-26 Paul Brook <paul@codesourcery.com>
32
33 * ld.texinfo: Document --default-symver.
34 * ldmain.c (main): Set link_info.create_default_symver.
35 * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
36 (ld_options): Add default-symver.
37 (parse_args): Handle OPTION_DEFAULT_SYMVER.
38
7b0eaa22
DS
392004-10-24 Danny Smith <dannysmith@users.sourceforge.net>
40
41 * pe-dll.c (process_def_file): Don't export all symbols by default if
42 building a position-independent executable.
43
dfeffb9f
L
442004-10-21 H.J. Lu <hongjiu.lu@intel.com>
45
46 PR 463
47 * ldmain.c (reloc_overflow): Accept a pointer to struct
48 bfd_link_hash_entry. Report symbol location for relocation
49 overflow.
50
dc4f76f8
L
512004-10-21 H.J. Lu <hongjiu.lu@intel.com>
52
53 * genscripts.sh (libpath.exp): Really generate for first
54 emulation only.
55
2a08daf3
DS
562004-10-19 Danny Smith <dannysmith@users.sourceforge.net>
57
58 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
59 comparison and replacement of filenames.
60
532345f2
L
612004-10-19 H.J. Lu <hongjiu.lu@intel.com>
62
63 PR 459
64 * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
65 option on linker script as the one for linker script.
66
b58f81ae
DJ
672004-10-16 Daniel Jacobowitz <dan@debian.org>
68
69 * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
70 (check_excluded_libs): New.
71 (load_symbols): Call check_excluded_libs.
72 * ldlang.h (add_excluded_libs): New prototype.
73 * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
74 (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
75 (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
76 * ld.texinfo (Command Line Variables): Document --exclude-libs.
77 (Options Specific to i386 PE Targets): Remove --exclude-libs.
78
95c148b4
AM
792004-10-15 Alan Modra <amodra@bigpond.net.au>
80
c468c8bc
AM
81 * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
82 failing link script assert.
83
95c148b4
AM
84 * ldctor.c (ldctor_add_set_entry): Fix comment typo.
85
951e9133
L
862004-10-14 H.J. Lu <hongjiu.lu@intel.com>
87
88 PR 445
89 * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
90 (SMALL_DATA_DTOR): Set.
91 * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
92 (SMALL_DATA_DTOR): Unset.
93 * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
94 after .data. If SMALL_DATA_DTOR is set, move .dtors after
95 .data.
96
afd7a018
AM
972004-10-14 Alan Modra <amodra@bigpond.net.au>
98
99 PR 63
100 * ldlang.h (lang_output_section_statement_type): Make "next" a
101 struct lang_output_section_statement_struct *.
102 (struct orphan_save): Move from elf32.em. Add "name" and "flags".
103 (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
104 * ldlang.c (lang_output_section_find_1): Adjust for changed
105 output_section_statement "next".
106 (strip_excluded_output_sections): Likewise.
107 (lang_record_phdrs): Likewise.
108 (lang_output_section_find_by_flags): New function.
109 (output_prev_sec_find): Move from pe.em. Adjust iterator.
110 (lang_insert_orphan): New function. Tail end of elf32.em's
111 place_orphan merged with that from pe.em. Allow bfd_section to
112 be placed first. New heuristic for placing new output section
113 statement in existing script, and accompanying split of __start
114 symbol alignment into a separate assignment to dot.
115 (lang_add_section): Consistently use output->bfd_section rather than
116 an alias, section->output_section.
117 (map_input_to_output_sections): Rename overly long arg. Move
118 initialization of data_statement output section to here..
119 (lang_check_section_addresses): ..from here.
120 (print_assignment): Correct printing of etree_assert.
121 (print_all_symbols): Don't bomb if userdata is NULL.
122 (IGNORE_SECTION): Rearrange.
123 * emultempl/elf32.em (output_rel_find): Adjust interator.
124 (output_prev_sec_find): Delete.
125 (struct orphan_save): Delete.
126 (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
127 flags without creating a duplicate output section statement.
128 Revise code holding history of various orphan section placements.
129 Allow orphan sections to place before script specified output
130 sections. Call lang_output_section_find_by_flags when placement
131 by name fails. Use lang_insert_orphan.
132 * emultempl/mmo.em (output_prev_sec_find): Delete.
133 (struct orphan_save): Delete.
134 (mmo_place_orphan): Revise code holding history of orphan placement.
135 Allow orphans to place before existing output sections. Use
136 lang_insert_orphan.
137 * emultempl/pe.em (output_prev_sec_find): Delete.
138 (struct orphan_save): Delete.
139 (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
140 lang_insert_orphan.
141
c0042f5d
MM
1422004-10-13 Mark Mitchell <mark@codesourcery.com>
143
144 * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
145 loadable segment.
146
1af699f4
AM
1472004-10-13 Alan Modra <amodra@bigpond.net.au>
148
149 PR 44
09c112da
AM
150 * ldcref.c (check_section_sym_xref): Delete.
151 (check_local_sym_xref): New function.
152 (check_nocrossrefs): Adjust call.
1af699f4
AM
153 * emultempl/pe.em (struct orphan_save): Add os_tail.
154 (place_orphan): Backport assorted fixes from elf32.em.
155
7fa3d080
BW
1562004-10-12 Bob Wilson <bob.wilson@acm.org>
157
158 * emultempl/xtensaelf.em: Use ISO C90 formatting.
159
d3989512
JJ
1602004-10-11 Jakub Jelinek <jakub@redhat.com>
161
563f4125
JJ
162 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
163 getline for portability.
164
d3989512
JJ
165 * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
166 (gld${EMULATION_NAME}_parse_ld_so_conf,
167 gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
168 (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
169
6c0c5b1e
AM
1702004-10-11 Alan Modra <amodra@bigpond.net.au>
171
172 PR 423
173 * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
174 rejected when linking statically.
175
d2b2c203
DJ
1762004-10-08 Daniel Jacobowitz <dan@debian.org>
177
178 * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
179
43cd72b9
BW
1802004-10-07 Bob Wilson <bob.wilson@acm.org>
181
182 * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
183 assembler-generated longcall sequences. Describe new --size-opt
184 option.
185 * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
186 * emultempl/xtensaelf.em (remove_section,
187 replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
188 elf_xtensa_after_open): New.
189 (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
190 OPTION_NO_LITERAL_MOVEMENT): Define.
191 (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
192 (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
193 (PARSE_AND_LIST_OPTIONS): Add --size-opt.
194 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
195 OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
196 (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
197 * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
198 * Makefile.am (eelf32xtensa.c): Update dependencies.
199 * Makefile.in: Regenerate.
200
8fdd7217 2012004-10-07 Jeff Baker <jbaker@qnx.com>
6c0c5b1e 202
8fdd7217
NC
203 * lexsup.c: Handle --warn-shared-textrel option.
204 (ld_options): Restore alpha sorting of options.
205 * ldmain.c (main): Initialise warn_shared_info field to FALSE.
206 * ld.texinfo: Add documentation for --warn-shared-textrel.
207 * NEWS: Added mention of --warn-shared-textrel option.
208
339207f8 2092004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
6c0c5b1e 210
339207f8 211 * emultempl/crxelf.em (disable_relaxation): Add.
6c0c5b1e 212 (crxelf_before_allocation): Enable --relax option by default.
339207f8
TL
213 (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
214 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
215 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
216
bcaa7b3e
L
2172004-10-04 H.J. Lu <hongjiu.lu@intel.com>
218
219 * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
220 --sort-section name|alignment.
221
222 * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
223 --sort-section name|alignment.
224
225 * ld.h (sort_type): New enum.
226 (wildcard_spec): Change the type of `sorted' to sort_type.
227
228 * ldgram.y (SORT): Removed.
229 (SORT_BY_NAME): Added.
230 (SORT_BY_ALIGNMENT): Added.
231 (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
232 SORT_BY_ALIGNMENT.
233 (input_section_spec_no_keep): Updated `sorted'.
234 (statement): Replace SORT with SORT_BY_NAME.
235
236 * ldlang.c (compare_section): New function to compare 2
237 sections with different sorting schemes.
238 (wild_sort): Updated. Use compare_section.
239 (update_wild_statements): New function.
240 (lang_process): Call update_wild_statements before
241 map_input_to_output_sections.
242
243 * ldlex.l (SORT_BY_NAME): New.
244 (SORT_BY_ALIGNMENT): New.
245 (SORT): Return SORT_BY_NAME.
246
247 * ldmain.c (sort_section): New. Defined.
248 (main): Initialize it to none.
249
250 * lexsup.c (option_values): Add OPTION_SORT_SECTION.
251 (ld_options): Add an entry for OPTION_SORT_SECTION.
252 (parse_args): Handle OPTION_SORT_SECTION.
253
254 * mri.c (mri_draw_tree): Updated `sorted'.
255
a4f5ad88
JJ
2562004-10-04 Jakub Jelinek <jakub@redhat.com>
257
258 * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
259 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
260 argument.
261 (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
262 and . as second argument.
263 (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
264 * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
265 (fold_binary): Add it here. Insert padding to make relro_end
266 COMMONPAGESIZE bytes aligned. For DATA_SEGMENT_ALIGN in
267 exp_dataseg_relro_adjust phase just use previously computed
268 exp_data_seg.base.
269 * ldlang.c (lang_size_sections): Set exp_data_seg.base for
270 relro_adjust here. Call lang_size_sections_1 once more if there
271 was too big padding at DATA_SEGMENT_RELRO_END.
272 * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
273
40a18ebd
NC
2742004-10-01 Paul Brook <paul@codesourcery.com>
275
276 * emulparams/armelf.sh: Add unwinding table sections.
277
db8acf26
NC
2782004-09-30 Filip Navara <navaraf@reactos.com>
279
280 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
281 correct base address for position independant executables.
282 * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
283 executables as DLLs.
284
eeac373a
PB
2852004-09-30 Paul Brook <paul@codesourcery.com>
286
287 * ld.texinfo: Document --target2=abs.
288 * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
289
1ee7cf4c
NC
2902004-09-29 Nick Clifton <nickc@redhat.com>
291
292 * scripttempl/xstormy16.sc: Only perform the assignments to the
293 ROM region when not performing a relocatable link. The ROM region
294 does not start at address 0, but the sections will.
295 * Makefile.am: Fix linker script dependency for the generation of
296 eelf32xstormy16.c.
297 * Makefile.in: Regenerate.
298
03098a9a
CF
2992004-09-18 Filip Navara <navaraf@reactos.com>
300
301 * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
302 emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
303 emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
304 TARGET_PAGE_SIZE.
305 * scripttempl/pe.sc: Make the virtual address and file offset synced if
306 the alignment is lower than the target page size.
307
f2d3750d
CF
3082004-09-27 Filip Navara <navaraf@reactos.com>
309
310 * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
311 def_file_parse to handle pe_def_file if NULL and prevent crash with
312 invalid .def files.
313
a23d8409
AM
3142004-09-27 Alan Modra <amodra@bigpond.net.au>
315
316 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
317 --emit-stub-syms automatically when --emit-relocs.
318
7b89fa29
PB
3192004-09-24 Paul Brook <paul@codeosurcery.com>
320
321 * scripttempl/elf.sc: Keep .preinit_array, .init_array and
322 .fini_array sections.
323
e2a68bcc
AS
3242004-09-19 Andreas Schwab <schwab@suse.de>
325
326 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
327 base so that relro end is suitably aligned.
328
3674e28a
PB
3292004-09-17 Paul Brook <paul@codesourcery.com>
330
331 * ld.texinfo: Rename arm-specific section. Document --target*
332 * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
333 * emulparams/armelf_linux.sh: Ditto.
334 * emulparams/armelf_nbsd.sh: Ditto.
335 * emultempl/armelf.em: Set default for TARGET2_TYPE.
336 (target2_type): New variable.
337 (arm_elf_before_allocation): Don't pass target1_type.
338 (arm_elf_create_output_section_statements): New function.
339 (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
340 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
341 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
342 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
343 * emultempl/armelf_oabi.em (_before_allocation): Remove extra
344 argument to bfd_elf32_arm_process_before_allocation.
345
f6e332e6
AM
3462004-09-17 Alan Modra <amodra@bigpond.net.au>
347
348 * ldexp.c (fold_name): Update u.undef.next refs.
349 * emultempl/pe.em: Likewise.
350 * emultempl/sunos.em: Likewise.
351
9c933e04
AM
3522004-09-17 Alan Modra <amodra@bigpond.net.au>
353
354 * Makefile.am: Run "make dep-am".
355 * Makefile.in: Regenerate.
356 * config.in: Regenerate.
357 * configure: Regenerate.
358 * aclocal.m4: Regenerate.
359 * po/ld.pot: Regenerate.
360
1fa32646
TL
3612004-09-16 Tomer Levi <Tomer.Levi@nsc.com>
362
9c933e04
AM
363 * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
364 (.fini): Likewise.
365 (.jcr): Likewise.
1fa32646 366
b6ee372a
AM
3672004-09-16 Alan Modra <amodra@bigpond.net.au>
368
369 * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
370 to bfd_elf32_arm_process_before_allocation call.
371
9c504268
PB
3722004-09-13 Paul Brook <paul@codesourcery.com>
373
374 * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
375 * emultempl/armelf.em: Use TARGET1_IS_REL. Add --target1-{rel,abs}.
376
d15b04bd
L
3772004-09-07 H.J. Lu <hongjiu.lu@intel.com>
378
379 * configure: Regenerated with autconfig 2.13.
380
875c4330
AS
3812004-09-07 Andreas Schwab <schwab@suse.de>
382
383 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
384 alignment before adjusting DATA_SEGMENT_RELRO_END.
385
229fcec5
MM
3862004-09-06 Mark Mitchell <mark@codesourcery.com>
387
388 * emulparams/armsymbian.sh: Use armbpabi script.
389 * scripttempl/armbpabi.sc: New script.
390
e5a52504
MM
3912004-09-02 Mark Mitchell <mark@codesourcery.com>
392
393 * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
394 (earmsymbian.c): New target.
395 * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
396 * Makefile.in: Regenerated.
397 * aclocal.m4: Likewise.
398 * configure: Likewise.
399 * emulparams/armsymbian.sh: New file.
400
42851540
NC
4012004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
402
403 * scripttempl/elf32crx.sc: Edit file with comments.
404 (.init): Add new section.
405 (.fini): Likewise.
406 (.ctor): Control the linkage order.
407 (.dtor): Likewise.
408
c034e3e0
NC
4092004-08-27 Nick Clifton <nickc@redhat.com>
410
411 * emultempl/pe.em (after_open): Do not assume that either bfd is
9c933e04 412 an archive.
c034e3e0 413
688c58f3
AM
4142004-08-26 Alan Modra <amodra@bigpond.net.au>
415
416 * ldlang.c (lang_init): Don't compare with TRUE.
417
b18c562e
NC
4182004-08-25 Dmitry Diky <diwil@spec.ru>
419
420 * emulparams/msp430all.sh: Fix RAM sizes for all targets.
421 * scripttempl/elf32msp430.sc: Add .profiler section definition.
422
61f5d054
L
4232004-08-24 H.J. Lu <hongjiu.lu@intel.com>
424
425 * ldlang.c (wildcardp): Defined as a macro with strpbrk.
426
e77d3d77
MM
4272004-08-19 Mark Mitchell <mark@codesourcery.com>
428
429 * configure.tgt (arm*-*-symbianelf*): New target.
430 (arm*-*-eabi*): Likewise.
431
3f764659
JJ
4322004-08-19 Jakub Jelinek <jakub@redhat.com>
433
434 * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
435 (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
436 (OPTION_NON_OVERLAPPING_OPD): Define.
437 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
438 --non-overlapping-opd option.
439
a010d60f
AM
4402004-08-18 Alan Modra <amodra@bigpond.net.au>
441
442 PR 338
443 * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
444 was already on the undefs list.
445
c4e33880
AM
4462004-08-17 Alan Modra <amodra@bigpond.net.au>
447
448 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
449 prefix the symbol field too.
450
d003868e
AM
4512004-08-13 Alan Modra <amodra@bigpond.net.au>
452
453 * ldmain.c (link_callbacks): Remove "error_handler".
454 * ldmisc.c: Include elf-bfd.h.
455 (vfinfo): Sort comment. Handle %A. Use %A instead of
456 bfd_get_section_indent.
457 (error_handler): Delete.
458 * ldmisc.h (error_handler): Delete declaration.
459
99877b66
AM
4602004-08-10 Alan Modra <amodra@bigpond.net.au>
461
462 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
463 ppc64_elf_restore_symbols.
464
40e45c8b
AM
4652004-08-09 Alan Modra <amodra@bigpond.net.au>
466
467 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
468 .toc is too large on relocatable linking.
469
ccfa59ea
AM
4702004-08-09 Alan Modra <amodra@bigpond.net.au>
471
472 * emultempl/ppc64elf.em (ppc_after_open): Delete.
473 (LDEMUL_AFTER_OPEN): Don't define.
474
93fd0973
SC
4752004-08-02 Stephane Carrez <stcarrez@nerim.fr>
476
477 * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
478
f1b123db
SC
4792004-08-01 Stephane Carrez <stcarrez@nerim.fr>
480
481 * scripttempl/elfm68hc12.sc: Align text, rodata and data section
482 on power of 2.
483
e7fbc2bf
JT
4842004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
485
486 * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
487
c05e9f04
NC
4882004-07-26 Dmitry Diky <diwil@spec.ru>
489
490 * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
491 msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
492 msp430xG439.
493 * configure.tgt: Likewise.
494 * emulparams/msp430all.sh: Likewise.
495 * Makefile.in: Regenerate.
496
9f61903d
NC
4972004-07-23 Nick Clifton <nickc@redhat.com>
498
499 * emultempl/elf32.em (_place_orphan): Use an already existing
500 section name if that section does not have any flags set.
501
082b7297
L
5022004-07-21 H.J. Lu <hongjiu.lu@intel.com>
503
504 * ldlang.c (already_linked_hash_entry): Removed.
505 (already_linked): Likewise.
506 (already_linked_table): Likewise.
507 (section_already_linked): Call bfd_section_already_linked.
508 (lang_process): Replace already_linked_table_init with
509 bfd_section_already_linked_table_init and check return. Replace
510 already_linked_table_free with bfd_section_already_linked_table_free.
511
76d7af2d
NC
5122004-07-21 Nick Clifton <nickc@redhat.com>
513
514 * ldlang.c (init_os): Make sure that the newly allocated userdata
515 structure is zeroed out.
516
14b3c463
L
5172004-07-19 H.J. Lu <hongjiu.lu@intel.com>
518
519 * NEWS: Mention the new --add-needed/--no-add-needed and
520 --as-needed/--no-as-needed options.
521
e56f61be
L
5222004-07-19 H.J. Lu <hongjiu.lu@intel.com>
523
524 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
525 check the add_needed field.
526 (dt_needed): New struct.
527 (gld${EMULATION_NAME}_try_needed): Change the first argument
528 to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
529 bit in the file where the DT_NEEDED entry comes from.
530 (gld${EMULATION_NAME}_search_needed): Change the second
531 argument to a pointer to struct dt_needed.
532 (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
533 (gld${EMULATION_NAME}_after_open): Likewise.
534
535 * ld.texinfo: Add --add-needed document.
536 * ldlang.c (new_afile): Set p->add_needed.
537 * ldlang.h (lang_input_statement_type): Add add_needed field.
538 * ldmain.h (add_needed): Declare.
539 * ldmain.c (add_needed): New global var.
540 * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
541 OPTION_NO_ADD_NEEDED.
542 (ld_options): Likewise.
543 (parse_args): Handle them.
544
c99b8138
NC
5452004-07-13 Christof Petig <christof@petig-baender.de>
546
547 * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
548 for endian-ness of extracted addend.
549
13ed4151
NC
5502004-07-13 Danny Smith <dannysmith@usesr.sourceforge.net>
551
552 * pe-dll.c (auto_export): Filter on just the import prefix,
553 "_imp_", not "_imp__".
554
1a320fbb
NC
5552004-07-09 Nick Clifton <nickc@redhat.com>
556
557 * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
558
1fe1f39c
NC
5592004-07-06 Tomer Levi <Tomer.Levi@nsc.com>
560
561 * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
562 (eelf32crx.c): New target.
563 * Makefile.in: Regenerate.
564 * configure.tgt: Handle crx-*-elf*.
565 * emulparams/elf32crx.sh: New file.
566 * emultempl/crxelf.em: New file.
567 * scripttempl/elf32crx.sc: New file.
568 * NEWS: Mention new target.
569
85fbca6a
NC
5702004-07-06 Nick Clifton <nickc@redhat.com>
571
572 * Makefile.am: Add eshlsymbian.c.
573 * Makefile.in: Regenerate.
574 * configure.tgt: Add sh*-symbian-elf target.
575 * emulparams/shlsymbian.sh: New file. Configure the
576 sh-symbian-elf linker scripts.
577 * scripttemp/elf32sh-symbian.sc: New file. Linker script
578 template for the sh-symbian-elf target.
579
b71a5181
DA
5802004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
581
582 * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
583 * emulparams/hppalinux.sh: Likewise.
584 * scripttempl/elf.sc: Place .plt just before .got when .plt is in
585 data segment and PLT_BEFORE_GOT is defined.
586
c87db184
CF
5872004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
588
589 * ld.texinfo (WIN32): Document PE weak symbols.
590
f6a8ae81
KK
5912004-07-02 Kaz Kojima <kkojima@rr.iij4u.or.jp>
592
593 * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
594
b602c853
L
5952004-07-01 H.J. Lu <hongjiu.lu@intel.com>
596
597 * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
598 the section.
599
1a23a9e6
AM
6002004-06-29 Alan Modra <amodra@bigpond.net.au>
601
602 * ldlang.c (lang_reset_memory_regions): Save last relax pass section
603 size in rawsize.
604
eea6121a
AM
6052004-06-24 Alan Modra <amodra@bigpond.net.au>
606
607 * ldlang.c (print_output_section_statement): Don't print size before
608 relaxation.
609 (IGNORE_SECTION): Remove bfd arg. Update all callers.
610
611 * ldexp.c (fold_name): .. See below.
612 * ldlang.c (section_already_linked, print_output_section_statement,
613 print_input_section, insert_pad, size_input_section,
614 lang_check_section_addresses, lang_size_sections_1,
615 lang_size_sections, lang_do_assignments_1, lang_set_startof,
616 lang_one_common, lang_reset_memory_regions, lang_process,
617 lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
618 * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
619 * pe-dll.c (process_def_file, generate_reloc): ..
620 * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
621 gld${EMULATION_NAME}_before_allocation): ..
622 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
623 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
624 sh64_elf_${EMULATION_NAME}_after_allocation): ..
625 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
626 * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
627 ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
628 "size" instead of "_raw_size" and "_cooked_size". Expand
629 bfd_section_size macro invocations.
630
552f8272
CF
6312004-06-22 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
632
633 * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
634 ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
635 ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
636 ___crt_xt_end__.
637 (.tls): Define ___tls_start__ and ___tls_end__.
638
aee6f5b4
AO
6392004-06-21 Alexandre Oliva <aoliva@redhat.com>
640
641 * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
642
eea6121a 6432004-06-18 Adam Nemet <anemet@lnxw.com>
f234d5fe 644
eea6121a
AM
645 * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
646 * configure: Regenerate.
f234d5fe 647
dfff4fbe
JJ
6482004-06-15 Jakub Jelinek <jakub@redhat.com>
649
650 * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
651 .gcc_except_table output sections lost accidentally with
652 -z relro patch.
653
a9e0c0c6
AM
6542004-06-15 Alan Modra <amodra@bigpond.net.au>
655
656 * ldwrite.c (build_link_order): Use bfd_get_section_size
657 instead of bfd_get_section_size_before_reloc or _raw_size.
658 * pe-dll.c (process_def_file): Likewise.
659
7115639b
AM
6602004-06-14 Alan Modra <amodra@bigpond.net.au>
661
662 From Richard Wirth <r.wirth@wirthware.de>
663 * ldlang.c (lang_finish): Don't free lang_definedness_table.
664
9ca57817
AM
6652004-05-29 Alan Modra <amodra@bigpond.net.au>
666
667 * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
668 (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
669
f6f9408f
JR
6702004-05-28 Andrew Stubbs <andrew.stubbs@superh.com>
671
672 * testsuite/ld-sh/arch/arch.exp: New test script.
673 * testsuite/ld-sh/arch/arch_expected.txt: New file.
674 * testsuite/ld-sh/arch/sh.s: New file.
675 * testsuite/ld-sh/arch/sh2.s: New file.
676 * testsuite/ld-sh/arch/sh-dsp.s: New file.
677 * testsuite/ld-sh/arch/sh2e.s: New file.
678 * testsuite/ld-sh/arch/sh3-nommu.s: New file.
679 * testsuite/ld-sh/arch/sh3.s: New file.
680 * testsuite/ld-sh/arch/sh3-dsp.s: New file.
681 * testsuite/ld-sh/arch/sh3e.s: New file.
682 * testsuite/ld-sh/arch/sh4-nommu-nofpu.s: New file.
683 * testsuite/ld-sh/arch/sh4-nofpu.s: New file.
684 * testsuite/ld-sh/arch/sh4.s: New file.
685 * testsuite/ld-sh/arch/sh4a-nofpu.s: New file.
686 * testsuite/ld-sh/arch/sh4al-dsp.s: New file.
687 * testsuite/ld-sh/arch/sh4a.s: New file.
688
164e712d
AM
6892004-05-28 Alan Modra <amodra@bigpond.net.au>
690
6feb9908
AM
691 * ldlang.c: Formatting. Wrap long lines, expand bfd_get_section_flags
692 throughout file.
693 * lexsup.c: Formatting. Wrap long lines.
694 * ldwrite.c: Update copyright date.
695
164e712d
AM
696 * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
697 (output_section_callback): Nor SEC_KEEP here.
698 (gc_section_callback): Twiddle SEC_EXCLUDE here.
699 (lang_gc_wild): Delete. Fold into..
700 (lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage
701 collecting.
702 (lang_process): Always call lang_gc_sections.
703 (lang_place_orphans): Handle SEC_EXCLUDE sections.
704 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
705 SEC_EXCLUDE code.
706
b3096250
L
7072004-05-26 H.J. Lu <hongjiu.lu@intel.com>
708
709 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
710 SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
711 * ldlang.c (lang_add_section): Likewise.
712
e49f5022
AM
7132004-05-26 Alan Modra <amodra@bigpond.net.au>
714
715 * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
716 sections when doing a final link. Clear SEC_EXCLUDE when doing
717 a relocable link, except for SEC_DEBUGGING sections.
718 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
719 same condition here to drop SEC_EXCLUDE orphan sections.
720
57ceae94
AM
7212004-05-25 Alan Modra <amodra@bigpond.net.au>
722
723 * ldlang.c (lang_process): Call bfd_merge_sections later, and
724 only when not a relocatable link.
725 (print_input_section): Handle SEC_EXCLUDE sections.
726 (size_input_section): Don't update dot on SEC_EXCLUDE sections.
727 (lang_do_assignments_1): Likewise.
728 * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
729 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
730 * emultempl/hppaelf.em (build_section_lists): Likewise.
731 * emultempl/ppc64elf.em (build_toc_list): Likewise.
732 (build_section_lists): Likewise.
733
a85785bc
AS
7342004-05-23 Andreas Schwab <schwab@suse.de>
735
736 * ld.texinfo (Options): Fix typo in last change.
737
2d643429
NC
7382004-05-21 Andy Chittenden <achittenden@bluearc.com>
739
740 * ld.h (ld_config_type): Add new field: hash_table_size.
741 * ldmain.c: Initialise the new field to zero. If it is non-zero
742 after parsing the linker's command line call
743 bfd_hash_set_default_size.
744 * lexsup.c (option_values): Add OPTION_HASH_SIZE.
745 (ld_options): Add hash-size.
746 (parse_args): Parse --hash-size option. Allow
747 --reduce-memory-overheads to set the default hash table size as
748 well.
749 * ld.texinfo: Document the new switch. Also mention that
750 --reduce-memory-overheads can affect the hash table size.
751 * NEWS: Mention the new feature.
752
35835446
JR
7532004-05-19 J"orn Rennecke <joern.rennecke@superh.com>
754
755 * NEWS: Mention new linker map file generation and the
756 --reduce-memory-overheads option.
757 * ld.texinfo: Document --reduce-memory-overheads option.
758 * ld.h (map_symbol_def): New struct.
759 (struct user_section_struct, section_userdata_type): Rename to:
760 (struct lean_user_section_struct, lean_section_userdata_type).
761 (struct fat_user_section_struct, fat_section_userdata_type): New.
762 (SECTION_USERDATA_SIZE): Define.
763 (args_type): New member reduce_memory_overheads.
764 * ldlang.c (map_obstack): New static variable.
765 (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
766 (lang_map): Unless command_line.reduce_memory_overheads is set,
767 initialize lists of defined symbols for each section.
768 (print_input_section): Unless command_line.reduce_memory_overheads
769 is set, use print_all_symbols.
770 (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
771 * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
772 * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
773 (ld_options): Add entry for --reduce-memory-overheads.
774 (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
775
0841712e
JJ
7762004-05-19 Jakub Jelinek <jakub@redhat.com>
777
778 * ldgram.y (sect_constraint): New.
779 (ONLY_IF_RO, ONLY_IF_RW): New tokens.
780 (section): Add sect_constraint. Pass additional argument
781 to lang_enter_output_section_statement.
782 * mri.c (mri_draw_tree): Pass additional argument to
783 lang_enter_output_section_statement.
784 * emultempl/pe.em (place_orphan): Likewise.
785 (output_prev_sec_find): Disregard output section statements with
786 constraint == -1.
787 * emultempl/mmo.em (output_prev_sec_find): Likewise.
788 (mmo_place_orphan): Pass additional argument to
789 lang_enter_output_section_statement.
790 * emultempl/elf32.em (output_prev_sec_find): Disregard output section
791 statements with constraint == -1.
792 (place_orphan): Pass additional argument to
793 lang_enter_output_section_statement.
794 * ldlang.c (lang_enter_overlay_section): Likewise.
795 (lang_output_section_find_1): New.
796 (lang_output_section_find): Use it.
797 (lang_output_section_statement_lookup_1): New.
798 (lang_output_section_statement_lookup): Use it.
799 (check_section_callback, check_input_sections): New.
800 (map_input_to_output_sections): Check if all input sections
801 are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
802 (strip_excluded_output_sections): Disregard output section statements
803 with constraint == -1.
804 (lang_record_phdrs): Likewise.
805 (lang_enter_output_section_statement): Add constraint argument.
806 Use lang_output_section_statement_lookup_1.
807 * ldlang.h (lang_output_section_statement_type): Add constraint
808 and all_input_readonly fields.
809 (lang_enter_output_section_statement): Adjust prototype.
810 * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
811 * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
812 segment if all input sections are readonly.
813
eea6121a 8142004-05-19 Adam Nemet <anemet@lnxw.com>
f2c50328
NC
815
816 * scripttempl/i386lynx.sc: Remove file.
817
2a16d82a
BW
8182004-05-17 Bob Wilson <bob.wilson@acm.org>
819
820 * ld.texinfo (Output Section Address): Correct subsection name.
821
eea6121a 8222004-05-17 Adam Nemet <anemet@lnxw.com>
b2d65c0b
NC
823
824 * configure.tgt (powerpc-*-lynxos* case): New case.
825 * configure.host (i[3-7]86-*-lynxos* case): Remove case.
826 * emulparams/ppclynx.sh: New file.
827 * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
828 * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
829 (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
830 (eppclynx.c): New rule.
831 * Makefile.in: Regenerate.
832
4b363073
NC
8332004-05-13 Joel Sherrill <joel@oarcorp.com>
834
835 * configure.tgt (or32-*-rtems*): Switch to elf and
836 support versioned targets.
837
9598fbe5
NC
8382004-05-13 Nick Clifton <nickc@redhat.com>
839
840 * po/fr.po: Updated French translation.
841
8c37241b
JJ
8422004-05-11 Jakub Jelinek <jakub@redhat.com>
843
844 * genscripts.sh: Generate -z combreloc -z now -z relro scripts
845 for binaries, -shared and -pie.
846 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
847 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
848 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
849 (OTHER_RELRO_SECTIONS): ... this.
850 * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
851 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
852 -z relro and -z norelro.
853 (gld${EMULATION_NAME}_list_options): Add it to usage.
854 (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
855 -z relro scripts when appropriate.
856 * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
857 Create separate .got.plt section if SEPARATE_GOTPLT.
858 Move sections which are only written during relocation handling
859 to the beginning of RW segment. If NO_SMALL_DATA, move .got
860 before .data. Add DATA_SEGMENT_RELRO_END directive.
861 Include OTHER_RELRO_SECTIONS.
862 * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
863 * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
864 (fold_unary): Likewise.
865 (fold_binary): Handle -z relro.
866 * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
867 exp_dataseg_relro_adjust phases. Add relro_end field.
868 * ldmain.c (main): Initialize link_info.relro to FALSE.
869 * ldlang.c (lang_size_sections): Handle -z relro.
870
e21059f2
MM
8712004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
872
873 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
874
5f9b8920
JR
8752004-05-07 J"orn Rennecke <joern.rennecke@superh.com>
876
877 * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
878 before printing it with %W.
879
26d2d8a2 8802004-05-07 Brian Ford <ford@vss.fsi.com>
eea6121a 881 DJ Delorie <dj@redhat.com>
26d2d8a2
BF
882
883 * emultempl/pe.em (real_flags): New static.
884 (OPTION_LARGE_ADDRESS_AWARE): New define.
885 (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
886 (gld_${EMULATION_NAME}_list_options): Likewise.
887 (gld${EMULATION_NAME}_handle_option): Likewise.
888 (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
889 * ld.texinfo: Document it.
890 * NEWS: Mention it.
891
1b169501
BF
8922004-05-07 Brian Ford <ford@vss.fsi.com>
893
894 * NEWS: Mention DWARF 2 support for i386pe.
895
41cf0c62
AO
8962004-05-05 Alexandre Oliva <aoliva@redhat.com>
897
898 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
899 elf32-frvfdpic.
900
d0d6a25b
AM
9012004-04-30 Alan Modra <amodra@bigpond.net.au>
902
903 * ldlang.c (unique_section_p): Pass section parm, return true on
904 group sections.
905 (output_section_callback): Adjust.
906 * ldlang.h (unique_section_p): Update prototype.
907 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
908
755306be
EB
9092004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
910
eea6121a 911 * ld.texinfo (--gc-sections): Remove restriction for
755306be
EB
912 dynamic linking.
913
8a7140c3
NC
9142004-04-29 Brian Ford <ford@vss.fsi.com>
915
916 * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
917 for DWARF 2/3. Update stab section's syntax.
918
2f9636ba
AM
9192004-04-29 Alan Modra <amodra@bigpond.net.au>
920
921 * pe-dll.c: Revert changes accidentally committed 2004-03-08.
922 (fill_edata): Correct pointer arithmetic.
923
23867d67
CD
9242004-04-21 Chris Demetriou <cgd@broadcom.com>
925
926 * ld.texinfo: Remove MIPS --embedded-relocs documentation.
927 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
928 * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
929 (EXTRA_EM_FILE): Use mipsecoff.em
930 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
931 (EXTRA_EM_FILE): Use mipsecoff.em
932 * emultempl/mipsecoff.em: Restructure to be included as an
933 extra emulation file.
934 (check_sections, gld${EMULATION_NAME}_after_open)
935 (gld${EMULATION_NAME}_after_allocation)
936 (gld${EMULATION_NAME}_get_script)
937 (ld_${EMULATION_NAME}_emulation): Remove
938 (gld${EMULATION_NAME}_before_parse): Rename to...
939 (mipsecoff_before_parse): This.
940 (LDEMUL_BEFORE_PARSE): Define.
941 * emultempl/mipself.em: Remove file.
942 * scripttempl/mips.sc (.rel.sdata): Do not include in output.
943 (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
944 these symbols.
945 * Makefile.am: Remove dependencies on emultempl/mipself.em.
946 * Makefile.in: Regenerate.
947
1502569c
NC
9482004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
949
950 * ld.texinfo (synthesizing on H8/300): Information about linker
951 relaxation support for bit manipulation instructions and system
952 control instructions is added.
953
c894ddfb
HPN
9542004-04-21 Hans-Peter Nilsson <hp@axis.com>
955
956 * NEWS: Mention change in DEFINED semantics.
957
a85bf78e
EB
9582004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
959
960 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
961 (.data): Add KEEP for .gnu.linkonce.d.*personality*.
962 (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
963
58434bc1
BE
9642004-04-21 Ben Elliston <bje@au.ibm.com>
965
966 * ld.texinfo (Simple Example): Add missing punctuation.
967
7a7f4e42
CD
9682004-04-20 Chris Demetriou <cgd@broadcom.com>
969
970 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
971
3737f867
JJ
9722004-04-19 Jakub Jelinek <jakub@redhat.com>
973
974 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
975 specially.
976
3c17e4f7
DS
9772004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
978
979 * scriptempl/pe.sc: Put numbered .ctors.* after .ctors
980 with default priority. Likewise for dtors.
981
279500de
TS
9822004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
983
984 * configure.host: Remove mips*-dec-bsd* target.
985 * configure.tgt: Likewise.
986
52f89c0a
RS
9872004-04-08 Richard Sandiford <rsandifo@redhat.com>
988
989 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
990 * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
991 * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
992 * emultempl/irix.em: New file.
993 * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
994 dependencies.
995 * Makefile.in: Regenerate.
996
e489d0ae
PB
9972004-04-01 Paul Brook <paul@codesourcery.com>
998
999 * emultempl/armelf.em (byteswap_code): Add.
1000 (arm_elf_before_allocation): Pass extra parameter.
1001 (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
1002 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
1003 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
1004 * emultempl/armelf_oabi.em: Pass extra parameter.
1005 * ld.texinfo: Document --be8.
1006
7cc8057a
SS
10072004-03-30 Stan Shebs <shebs@apple.com>
1008
1009 Remove long-obsolete MPW support.
1010 * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
1011 * Makefile.am (mpw): Remove file-presynthesizing actions.
1012 * Makefile.in: Likewise.
1013 * ldfile.c (slash): Remove MPW case.
1014 * ldlex.l [MPW]: Remove unused definition.
1015
0949843d
NC
10162004-03-30 Galit Heller <Galit.Heller@nsc.com>
1017
1018 * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
1019 (eelf32cr16c.c): New target.
1020 * Makefile.in: Regenerate.
1021 * configure.tgt: Handle cr16c-*-elf*.
1022 * emulparams/elf32cr16c.sh: New file.
1023 * scripttempl/elfcr16c.sc: Likewise
1024 * NEWS: Mention support for new target.
1025
0a159ef8
NC
10262004-03-30 Nick Clifton <nickc@redhat.com>
1027
1028 * po/sv.po: Updated Swedish translation.
1029
7a945db6
AM
10302004-03-27 Alan Modra <amodra@bigpond.net.au>
1031
1032 * emultempl/elf32.em: Update new bfd_elf_discard_info name.
1033 * emultempl/hppaelf.em: Likewise.
1034 * emultempl/ppc64elf.em: Likewise.
1035 * emultempl/sh64elf.em: Likewise.
1036
5a580b3a
AM
10372004-03-25 Alan Modra <amodra@bigpond.net.au>
1038
1039 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
1040 size_dynamic_sections call.
1041
b9cf773d
AM
10422004-03-23 Alan Modra <amodra@bigpond.net.au>
1043
1044 PR 51.
1045 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
1046 link_info.wrap_char.
1047
59c2e50f
L
10482004-03-20 H.J. Lu <hongjiu.lu@intel.com>
1049
1050 * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
1051 or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
1052
44349745
AO
10532004-03-20 Alexandre Oliva <aoliva@redhat.com>
1054
1055 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
1056
81359a70
AM
10572004-03-19 Alan Modra <amodra@bigpond.net.au>
1058
1059 * config.in: Regenerate.
1060 * po/ld.pot: Regenerate.
1061
4a43e768
AM
10622004-03-18 Alan Modra <amodra@bigpond.net.au>
1063
1064 * ld.texinfo: Add --as-needed doco.
1065 * ldmain.c (as_needed): New global var.
1066 * ldmain.h (as_needed): Declare.
1067 * lexsup.c (option_values): Add OPTION_AS_NEEDED and
1068 OPTION_NO_AS_NEEDED.
1069 (ld_options): Likewise.
1070 (parse_args): Handle them.
1071 * ldlang.h (lang_input_statement_type): Add as_needed field.
1072 * ldlang.c (new_afile): Set p->as_needed.
1073 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
1074 (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
1075 (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
1076
1077 * ldlang.c (open_input_bfds): Remove useless cast.
1078 (lang_do_assignments_1): Likewise.
1079 (lang_for_each_input_section): Delete.
1080
9183ed4b
AM
10812004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1082
1083 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
1084
ee31fbd0
NC
10852004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
1086
1087 * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
1088 private when building implib.
1089
e5caec89
NS
10902004-03-05 Nathan Sidwell <nathan@codesourcery.com>
1091
1092 * ldlang.c (lang_add_section): Don't force SEC_LOAD on
1093 SEC_THREAD_LOCAL.
1094 (IGNORE_SECTION): Ignore .tbss sections too.
1095 (lang_size_sections_1): .tbss sections do not advance dot.
1096
cc2f008e
AS
10972004-03-01 Andreas Schwab <schwab@suse.de>
1098
1099 * ld.texinfo (Options): Fix example for --wrap.
1100
f5a95868
DS
11012004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
1102
1103 * pe-dll.c (fill_edata): Check that exported_symbol_sections is
1104 not NULL.
1105
177b729b
ILT
11062004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
1107
1108 * ldlang.c (lang_check): Use %P, not %E, in error message.
1109
1b493742
NS
11102004-02-23 Nathan Sidwell <nathan@codesourcery.com>
1111
1112 * ldlang.h (struct lang_output_section_state): Change processed
1113 field's type.
1114 * ldexp.c (check, invalid): Remove.
1115 (fold_name): Move valid_p assignments. Create undefined symbol
1116 when needed. Directly exampine section's processd flag.
1117 * ldlang.c (lang_output_section_statement_lookup): Adjust
1118 processed field init.
1119 (lang_size_sections_1): Allow LOADADDR when determining section's
1120 VMA. Adjust error message. Fold data statement's expr.
1121 (lang_size_sections): Correctly increment lang_statement_iteration.
1122
11232004-02-23 Alan Modra <amodra@bigpond.net.au>
1124
1125 * ldexp.c (fold_tree): Follow indirect symbols.
b9cf773d 1126
876f4090
NS
11272004-02-20 Nathan Sidwell <nathan@codesourcery.com>
1128
1129 * ldgram.y (exp): Add two operand ALIGN.
1130 * ldexp.c (fold_binary): Add ALIGN_K case.
1131 * ld.texinfo (ALIGN): Document two operand version.
1132
384d938f
NS
11332004-02-19 Nathan Sidwell <nathan@codesourcery.com>
1134
1135 * ldlang.c (map_input_to_output_sections): Initialize sections
1136 mentioned in a data statement expression.
1137 (lang_do_assignments_1): Add data statement's expression's
1138 section's vma.
1139
b6ca8815
NS
11402004-02-18 Nathan Sidwell <nathan@codesourcery.com>
1141
1142 * ldgram.y (statement_anywhere): Add assert rule.
1143 * ldlang.c (exp_init_os): Add assert case.
1144
c92c35e7
AC
11452004-02-14 Andrew Cagney <cagney@redhat.com>
1146
1147 * ldmain.c (remove_output): Call bfd_cache_close.
1148
9bf78c99
RS
11492004-02-14 Richard Sandiford <rsandifo@redhat.com>
1150
1151 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
1152 .MIPS.content* and .MIPS.events* sections.
1153
f3806916
DJ
11542004-02-09 Daniel Jacobowitz <drow@mvista.com>
1155
1156 * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
1157 .note.gnu.arm.ident to after allocated sections. Mark its
1158 address as 0.
1159
4c8e70d7
DJ
11602004-02-09 Daniel Jacobowitz <drow@mvista.com>
1161
1162 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
1163 * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
1164 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
1165 * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
1166 * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
1167
ff71f4f7
NC
11682004-02-05 Nick Clifton <nickc@redhat.com>
1169
1170 * emultempl/pe.em (_after_open): Fix typo in previous delta.
1171
07a68a80
NC
11722004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
1173
1174 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
1175
1dd3bf68
AM
11762004-01-28 Alan Modra <amodra@bigpond.net.au>
1177
586196d5
AM
1178 * genscripts.sh: Fix typo.
1179
1dd3bf68
AM
1180 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
1181
13d9421f
JJ
11822004-01-24 Jakub Jelinek <jakub@redhat.com>
1183
1184 * emulparams/elf64_ia64.sh: Put .rela.opd into
1185 OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
1186
4d8907ac
DS
11872004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
1188
1189 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
1190 * ld.texinfo (--omagic): Note that writable text section
1191 does not conform to published PE-COFF specs.
1192 (--enable-auto-import): Likewise.
1193
e5c60db5
AM
11942004-01-15 Alan Modra <amodra@bigpond.net.au>
1195
1196 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
1197
6bdafbeb
NC
11982004-01-13 Nick Clifton <nickc@redhat.com>
1199
1200 * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
1201 which if true will prevent the LMA region being used as a
1202 replacement for a default VMA region.
586196d5
AM
1203 (lang_leave_output_section_statement): Pass extra parameter.
1204 (lang_leave_overlay): Likewise.
1205 * ld.texinfo (Output Section LMA): Document that the LMA
6bdafbeb
NC
1206 region can be set to the VMA region if no VMA has been set.
1207 * ldlang.h (struct lang_output_section_phdr_list): Create a
1208 typedef for this type. Minor formatting fixes.
586196d5 1209
9dfc8ab2
NC
12102004-01-13 Nick Clifton <nickc@redhat.com>
1211
1212 * ldlang.c (lang_size_sections_1): If dot is advanced, then
1213 assume that the section should be allocated.
1214
8325c4dd
AM
12152004-01-13 Alan Modra <amodra@bigpond.net.au>
1216
1217 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
1218 sections. Do ignore SEC_NEVER_LOAD sections.
1219 (lang_size_sections_1): Remove test made redundant with the above.
1220
83490352
AM
12212004-01-09 Alan Modra <amodra@bigpond.net.au>
1222
1223 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
1224 program_header_size.
1225
005e1118
AO
12262004-01-06 Alexandre Oliva <aoliva@redhat.com>
1227
1228 2003-11-28 Alexandre Oliva <aoliva@redhat.com>
1229 * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
1230 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
1231 * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
1232 (MAXPAGESIZE): Set to 64Kb.
1233 (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
1234 __ROFIXUP_END__. Don't map .rofixup.got any more.
1235 * emulparams/elf32frv.sh (NOP): Set.
1236 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
1237 * configure.tgt: Add frv-*-*linux*.
1238 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
1239 * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
1240 (eelf32frvfd.c): New.
1241 * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
1242 * emulparams/elf32frv.sh: Reverted previous two patches.
1243 * emulparams/elf32frvfd.sh: New.
1244 * Makefile.in: Rebuilt.
1245 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
1246 * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
1247 .rofixup.got to .rofixup.
1248 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
1249 * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
1250 (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
1251
060feee5
JJ
12522004-01-05 Jakub Jelinek <jakub@redhat.com>
1253
1254 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
1255 * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
1256
5e2f1575
AM
12572004-01-03 Alan Modra <amodra@bigpond.net.au>
1258
e5caa5e0
AM
1259 * ldexp.c (align_n): Make static.
1260 * ldexp.h (align_n): Delete declaration.
1261 * ldlang.h (lang_enter_output_section_statement): Remove
1262 block_value param.
1263 * ldlang.c (lang_enter_output_section_statement): Likewise.
1264 (TO_ADDR, TO_SIZE): Define.
c2df3ea5 1265 (opb_shift): New var.
e5caa5e0
AM
1266 (init_opb): New function.
1267 (print_input_section): Call init_opb and use TO_ADDR.
1268 (print_data_statement, print_reloc_statement): Likewise.
1269 (print_padding_statement): Likewise.
c2df3ea5 1270 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
e5caa5e0
AM
1271 (lang_check_section_addresses): Likewise.
1272 (lang_size_sections_1): Likewise.
1273 (lang_do_assignments_1): Likewise.
1274 (lang_set_startof): Likewise.
c2df3ea5 1275 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
e5caa5e0 1276 (lang_process): Call init_opb.
c2df3ea5 1277 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
e5caa5e0
AM
1278 (lang_enter_overlay_section): Adjust
1279 lang_enter_output_section_statement call.
1280 * ldgram.y: Likewise.
1281 * mri.c (mri_draw_tree): Likewise.
1282 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1283 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1284 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1285
5e2f1575
AM
1286 * ldfile.c (ldfile_set_output_arch): Add defarch param.
1287 * ldfile.h (ldfile_set_output_arch): Ditto.
1288 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
1289 ldfile_set_output_arch.
1290 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1291 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
1292 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
1293 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1294 * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
1295 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1296 * ldgram.y: Adjust ldfile_set_output_arch call.
1297 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1298 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
1299 * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
1300 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
1301 * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
1302 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1303 * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1304
b50c15dc
NC
13052004-01-02 Bernardo Innocenti <bernie@develer.com>
1306
1307 * configure.tgt: Add m68k-uClinux target.
6edf0760 1308
c9e214e5 1309For older changes see ChangeLog-0203
252b5132
RH
1310\f
1311Local Variables:
1312mode: change-log
1313left-margin: 8
1314fill-column: 74
1315version-control: never
1316End:
This page took 0.379501 seconds and 4 git commands to generate.