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