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