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