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