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