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