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