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