Add __ImageBase symbol to pe.em and pep.em.
[external/binutils.git] / ld / ChangeLog
1 2007-11-06  Kai Tietz  <kai.tietz@onevision.com>
2
3         * emultempl/pe.em: (init): Add __ImageBase symbol.
4         (MSIMAGEBASEOFF): New.
5         (set_pe_name): Keep __image_base and __ImageBase value synch.
6         (_set_symbols): Likewise.
7         * emultempl/pep.em: Likewise.
8
9 2007-10-26  Alan Modra  <amodra@bigpond.net.au>
10
11         PR 5215
12         * genscripts.sh: Move bash script to..
13         * genscrba.sh: ..here.
14
15 2007-10-25  Pedro Alves  <pedro_alves@portugalmail.pt>
16
17         * pe-dll.c (autofilter_symbollist_generic)
18         (autofilter_symbollist_i386, autofilter_liblist)
19         (autofilter_objlist, autofilter_symbolprefixlist)
20         (autofilter_symbolsuffixlist): Don't use STRING_COMMA_LEN with
21         NULL.
22
23 2007-10-24  H.J. Lu  <hongjiu.lu@intel.com>
24
25         * configure.in: Move AM_PROG_LIBTOOL after AC_GNU_SOURCE.
26         * configure: Regenerated.
27
28 2007-10-24  Alan Modra  <amodra@bigpond.net.au>
29
30         * Makefile.am (INCLUDES): Remove -D_GNU_SOURCE.
31         * configure.in: Invoke AC_GNU_SOURCE.
32         * Makefile.in: Regenerate.
33         * config.in: Regenerate.
34         * configure: Regenerate.
35         * po/POTFILES.in: Regenerate.
36
37 2007-10-19  Nick Clifton  <nickc@redhat.com>
38
39         * configure.tgt: Add support for am34-linux-gnu target.
40
41 2007-10-17  Zack Weinberg  <zack@codesourcery.com>
42
43         * ldlang.c (lang_check_section_addresses): Also report size of
44         overflow for any overflowed memory regions.
45         (os_region_check): Diagnose an overflowed region only once per
46         region.  Do not reset region->current on overflow.
47
48 2007-10-04  Nick Clifton  <nickc@redhat.com>
49
50         PR linker/4844
51         * emultempl/pep.em (pep_find_data_imports): Issue a warning
52         message if auto importing is triggered without
53         --enable-auto-import having been specified on the command line.
54         * emultempl/pe.em (pe_find_data_imports): Likewise.
55
56         PR linker/5097
57         * emultempl/armelf.em (arm_elf_finish): Fix spelling typo.
58
59 2007-10-01  Nick Clifton  <nickc@redhat.com>
60
61         PR linker/4844
62         * genscripts.sh: Add support for generating a .xa script for use
63         with the --auto-import option.
64         * ld.texinfo: Document the new behaviour of the --auto-import
65         option.
66         * ldint.texinfo: Document new script generation.
67         * emulparams/i386pe.sh (GENERATE_AUTO_IMPORT): Define.
68         * emulparams/i386pe_posix.sh (GENERATE_AUTO_IMPORT): Define.
69         * emulparams/i386pep.sh (GENERATE_AUTO_IMPORT): Define.
70         * emultemp/pe.em (..._get_script): Support the use of the auto
71         import script.
72         * scripttempl/pe.sc: Put the .rdata input sections into the .data
73         output section when creating an auto import script.
74         * scripttempl/pep.sc: Likewise.
75
76 2007-09-26  Brian Watt  <bwatt@us.ibm.com>
77
78         * emultempl/spu_ovl.S: Add debug printf code.
79
80 2007-09-17  H.J. Lu  <hongjiu.lu@intel.com>
81
82         PR binutils/3281
83         PR binutils/5037
84         * ldexp.h (ldexp_control): Add relro, relro_start_stat and
85         relro_end_stat.
86
87         * ldexp.c (fold_binary): Set expld.dataseg.relro to
88         exp_dataseg_relro_start or exp_dataseg_relro_end when
89         seeing DATA_SEGMENT_ALIGN or DATA_SEGMENT_RELRO_END,
90         respectively.
91
92         * ldlang.c (lang_size_sections_1): Properly set
93         expld.dataseg.relro_start_stat and
94         expld.dataseg.relro_end_stat.
95         (find_relro_section_callback): New function.
96         (lang_find_relro_sections_1): Likewise.
97         (lang_find_relro_sections): Likewise.
98         (lang_process): Call lang_find_relro_sections for
99         non-relocatable link.
100
101 2007-09-17  Nick Clifton  <nickc@redhat.com>
102
103         * po/es.po: Updated Spanish translation.
104
105 2007-09-16  H.J. Lu  <hongjiu.lu@intel.com>
106
107         * emultempl/elf32.em: Check DF_BIND_NOW instead of DT_BIND_NOW.
108
109 2007-09-15  Alan Modra  <amodra@bigpond.net.au>
110
111         PR ld/5025
112         * emultempl/elf32.em (write_build_id_section): Correct test for
113         "missing" .note.gnu.build-id.  Downgrade error to a warning if
114         it has been discarded.
115
116 2007-09-08  Alan Modra  <amodra@bigpond.net.au>
117
118         * ldwrite.c (build_link_order <lang_padding_statement_enum>): Correct
119         condition under which we build a bfd_data_link_order.
120
121 2007-08-31  Tristan Gingold  <gingold@adacore.com>
122
123         * ldlang.c (lang_map): Increment lang_statement_iteration so that
124         DEFINED() expressions are correctly computed.
125
126 2007-08-31  Alan Modra  <amodra@bigpond.net.au>
127
128         * ldlang.c (lang_record_phdrs): Give a fatal error if no sections
129         assigned to phdrs.  Avoid multiple forward scans for a section
130         with phdr assignment.
131
132 2007-08-28  Mark Shinwell  <shinwell@codesourcery.com>
133             Joseph Myers  <joseph@codesourcery.com>
134
135         * ldlang.c (sort_sections_by_lma): Sort by internal id after lma
136         for stable sort.
137
138 2007-08-28  Robert Sebastian Gerus  <arachnist@gmail.com>
139
140         * configure.host: Add support for i[3-7]86-*-dragonfly*.
141         * configure.tgt: Likewise.
142
143 2007-08-18  Alan Modra  <amodra@bigpond.net.au>
144
145         * ld.texinfo (Input Section Basics): Correct EXCLUDE_FILE example.
146
147 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
148
149         * configure.host: Handle sparcv*-*-linux-* the same as
150         sparc-*-linux-*.  Change sparc64-*-linux-* to sparc64*-*-linux-*.
151
152 2007-08-17  Alan Modra  <amodra@bigpond.net.au>
153
154         * emultempl/alphaelf.em: Format option help.
155         * emultempl/armcoff.em: Likewise.
156         * emultempl/armelf.em: Likewise.
157         * emultempl/avrelf.em: Likewise.
158         * emultempl/elf32.em: Likewise.
159         * emultempl/hppaelf.em: Likewise.
160         * emultempl/ia64elf.em: Likewise.
161         * emultempl/m68hc1xelf.em: Likewise.
162         * emultempl/ppc32elf.em: Likewise.
163         * emultempl/ppc64elf.em: Likewise.
164         * emultempl/scoreelf.em: Likewise.
165         * emultempl/spuelf.em: Likewise.
166         * emultempl/ticoff.em: Likewise.
167         * emultempl/vxworks.em: Likewise.
168         * emultempl/xtensaelf.em: Likewise.
169
170 2007-08-17  Alan Modra  <amodra@bigpond.net.au>
171
172         * ldexp.c (exp_get_vma, exp_get_fill): Canonicalise error messages.
173         * lexsup.c (ld_options): Don't use tabs in help text.
174         * emultempl/armcoff.em (gld${EMULATION_NAME}_finish): Fix typo.
175         * emultempl/pe.em (gld${EMULATION_NAME}_finish): Fix typo.
176
177 2007-08-17  Alan Modra  <amodra@bigpond.net.au>
178
179         * po/Make-in: Add --msgid-bugs-address to xgettext invocation.
180
181 2007-08-15  Alan Modra  <amodra@bigpond.net.au>
182
183         PR 4923
184         * emultempl/elf32.em (after_open): Return immediately when
185         non-ELF output.
186
187 2007-08-12  Daniel Jacobowitz  <dan@codesourcery.com>
188
189         * configure.in (ALL_LINGUAS): Add fi.
190         * po/fi.po: New file.
191         * configure: Regenerated.
192
193 2007-08-10  Nick Clifton  <nickc@redhat.com>
194
195         * NEWS: Add a marker for the 2.18 features.
196
197 2007-08-10  Nick Clifton  <nickc@redhat.com>
198
199         * po/ga.po: Updated Irish translation.
200         * po/vi.po: Updated Vietnamese translation.
201
202 2007-08-10  H.J. Lu  <hongjiu.lu@intel.com>
203
204         * Makefile.am: Run "make dep-am".
205         * Makefile.in: Regenerate.
206
207 2007-08-10  H.J. Lu  <hongjiu.lu@intel.com>
208
209         PR ld/4875
210         * elf-hints-local.h: Include bfd_stdint.h.  Use uint32_t
211         instead of u_int32_t.
212
213         * sha1.h: Include bfd_stdint.h instead of <stdint.h>.
214
215 2007-08-09  Alan Modra  <amodra@bigpond.net.au>
216
217         PR 4515
218         * genscripts.sh: Delete all references to NONPAGED_TEXT_START_ADDR.
219         * ldint.texinfo: Likewise.
220         * emulparams/armaoutb.sh (NONPAGED_TEXT_START_ADDRESS): Delete.
221         * emulparams/armaoutl.sh: Likewise.
222         * emulparams/arcelf.sh (NONPAGED_TEXT_START_ADDR): Delete.
223         * emulparams/bfin.sh: Likewise
224         * emulparams/crisaout.sh: Likewise
225         * emulparams/elf32_sparc.sh: Likewise
226         * emulparams/elf32am33lin.sh: Likewise
227         * emulparams/elf32b4300.sh: Likewise
228         * emulparams/elf32bmip.sh: Likewise
229         * emulparams/elf32mcore.sh: Likewise
230         * emulparams/elf32xtensa.sh: Likewise
231         * emulparams/elf64_s390.sh: Likewise
232         * emulparams/elf64_sparc.sh: Likewise
233         * emulparams/elf64alpha.sh: Likewise
234         * emulparams/elf_i386.sh: Likewise
235         * emulparams/elf_i386_be.sh: Likewise
236         * emulparams/elf_i386_chaos.sh: Likewise
237         * emulparams/elf_i386_ldso.sh: Likewise
238         * emulparams/elf_i386_vxworks.sh: Likewise
239         * emulparams/elf_s390.sh: Likewise
240         * emulparams/elf_x86_64.sh: Likewise
241         * emulparams/i386aout.sh: Likewise
242         * emulparams/i386moss.sh: Likewise
243         * emulparams/i386msdos.sh: Likewise
244         * emulparams/i386nto.sh: Likewise
245         * emulparams/i386nw.sh: Likewise
246         * emulparams/m68kaout.sh: Likewise
247         * emulparams/m68kelf.sh: Likewise
248         * emulparams/ppcnw.sh: Likewise
249         * emulparams/sun4.sh: Likewise
250         * emulparams/tic80coff.sh: Likewise
251         * emulparams/vaxnbsd.sh: Likewise
252         * emulparams/armnbsd.sh (NONPAGED_TEXT_START_ADDR): Delete.
253         (TEXT_START_ADDR): Set for -n, -N.
254         * emulparams/coff_sparc.sh: Likewise
255         * emulparams/elf32vax.sh: Likewise
256         * emulparams/i386bsd.sh: Likewise
257         * emulparams/i386go32.sh: Likewise
258         * emulparams/i386linux.sh: Likewise
259         * emulparams/i386lynx.sh: Likewise
260         * emulparams/i386mach.sh: Likewise
261         * emulparams/m68k4knbsd.sh: Likewise
262         * emulparams/m68klinux.sh: Likewise
263         * emulparams/m68knbsd.sh: Likewise
264         * emulparams/ns32knbsd.sh: Likewise
265         * emulparams/pc532macha.sh: Likewise
266         * emulparams/ppclynx.sh: Likewise
267         * emulparams/scoreelf.sh: Likewise
268         * emulparams/sparcaout.sh: Likewise
269         * emulparams/sparclinux.sh: Likewise
270         * emulparams/sun3.sh: Likewise
271         * emulparams/vsta.sh: Likewise
272
273 2007-08-07  Ralf Corsépius <ralf.corsepius@rtems.org>
274
275         * configure.tgt: Add bfin-*rtems*.
276
277 2007-08-06  Kai Tietz  <kai.tietz@onevision.com>
278
279         * emultempl/pep.em: (pep_enable_stdcall_fixup): Set to value 1.
280         (gld_xxx_recognized_file): Use pep_bfd_is_dll for detection of
281         shared objects.
282         * pe-dll.c: (autofilter_symbollist_i386): Define set for amd64
283         mingw target.
284
285 2007-08-01  Nick Clifton  <nickc@redhat.com>
286
287         * po/ga.po: Updated Irish translation.
288
289 2007-07-29  Alan Modra  <amodra@bigpond.net.au>
290
291         * ldlang.c (lang_insert_orphan): When searching through linker
292         script to place an orphan, don't stop on statements that appear
293         outside of SECTIONS.
294         * emultempl/elf32.em (output_rel_find): Prefer read-only alloc
295         sections over read/write alloc sections.
296
297 2007-07-28  Jakub Jelinek  <jakub@redhat.com>
298
299         * scripttempl/elf.sc: Add .note.gnu.build-id.
300
301 2007-07-25  Nick Clifton  <nickc@redhat.com>
302
303         PR 4824
304         * ld.texinfo (Options): Extend the description of the -O command
305         line option.
306
307 2007-07-24  Kai Tietz  <kai.tietz@onevision.com>
308
309         * pep.sc: Correct ctor/dtor sentinels for 64-bit targets.
310
311 2007-07-21  Nick Clifton  <nickc@redhat.com>
312
313         * sha1.h: Change to use version 3 of the GNU General Public
314         License and tidy up formatting.
315         * sha1.c: Likewise.
316
317 2007-07-19  Roland McGrath  <roland@redhat.com>
318
319         * genscripts.sh (source_em, fragment): New sh functions.
320         Truncate e${EMULATION_NAME}.c file before .em script fills it.
321         Use source_em in place of . for the .em script.
322         * emultempl/generic.em: Use fragment and source_em functions.
323         * emultempl/aix.em: Likewise.
324         * emultempl/alphaelf.em: Likewise.
325         * emultempl/armcoff.em: Likewise.
326         * emultempl/armelf.em: Likewise.
327         * emultempl/avrelf.em: Likewise.
328         * emultempl/beos.em: Likewise.
329         * emultempl/cr16elf.em: Likewise.
330         * emultempl/crxelf.em: Likewise.
331         * emultempl/elf-generic.em: Likewise.
332         * emultempl/elf32.em: Likewise.
333         * emultempl/genelf.em: Likewise.
334         * emultempl/gld960.em: Likewise.
335         * emultempl/gld960c.em: Likewise.
336         * emultempl/hppaelf.em: Likewise.
337         * emultempl/ia64elf.em: Likewise.
338         * emultempl/irix.em: Likewise.
339         * emultempl/linux.em: Likewise.
340         * emultempl/lnk960.em: Likewise.
341         * emultempl/m68hc1xelf.em: Likewise.
342         * emultempl/m68kcoff.em: Likewise.
343         * emultempl/m68kelf.em: Likewise.
344         * emultempl/mipsecoff.em: Likewise.
345         * emultempl/mipself.em: Likewise.
346         * emultempl/mmix-elfnmmo.em: Likewise.
347         * emultempl/mmixelf.em: Likewise.
348         * emultempl/mmo.em: Likewise.
349         * emultempl/needrelax.em: Likewise.
350         * emultempl/netbsd.em: Likewise.
351         * emultempl/pe.em: Likewise.
352         * emultempl/pep.em: Likewise.
353         * emultempl/ppc32elf.em: Likewise.
354         * emultempl/ppc64elf.em: Likewise.
355         * emultempl/scoreelf.em: Likewise.
356         * emultempl/sh64elf.em: Likewise.
357         * emultempl/spuelf.em: Likewise.
358         * emultempl/sunos.em: Likewise.
359         * emultempl/ticoff.em: Likewise.
360         * emultempl/vanilla.em: Likewise.
361         * emultempl/vxworks.em: Likewise.
362         * emultempl/xtensaelf.em: Likewise.
363         * emultempl/z80.em: Likewise.
364
365 2007-07-18  Roland McGrath  <roland@redhat.com>
366
367         * emultempl/elf32.em (gld${EMULATION_NAME}_write_build_id_section):
368         Use ASEC->contents for CONTENTS when missing, and allocate
369         ASEC->size if needed.
370
371 2007-07-13  Roland McGrath  <roland@redhat.com>
372
373         * emultempl/elf32.em (struct build_id_info): New type.
374         (gld${EMULATION_NAME}_id_note_section_size): New function.
375         (gld${EMULATION_NAME}_write_build_id_section): New function.
376         (gld${EMULATION_NAME}_after_open): Use them.
377         (DEFAULT_BUILD_ID_STYLE): Change to "sha1".
378         * ld.texinfo (Options): Mention --build-id=sha1.
379
380         * sha1.h: New file (from gnulib).
381         * sha1.c: New file (from gnulib).
382         * Makefile.am (CFILES, HFILES, OFILES, ld_new_SOURCES): Add them.
383         (sha1.o): New target.
384         * Makefile.in: Regenerated.
385
386 2007-07-13  Alan Modra  <amodra@bigpond.net.au>
387
388         * ldlang.c (strip_excluded_output_sections): Don't ignore sections
389         with update_dot_tree.
390
391 2007-07-12  Nathan Sidwell  <nathan@codesourcery.com>
392
393         * scripttempl/pe.sc: Don't include .gcc_except_table and
394         .eh_frame on partial links.
395         * scripttempl/pep.sc: Likewise.
396
397 2007-07-12  Alan Modra  <amodra@bigpond.net.au>
398
399         PR 4782
400         * ldlang.c (lang_size_sections_1 <output_section_statement>): Only
401         use expld.result when valid.
402
403 2007-07-12  Alan Modra  <amodra@bigpond.net.au>
404
405         * emultempl/spuelf.em (embedded_spu_file): Test for NULL path
406         before calling base_name, not after.
407
408 2007-07-10  Alan Modra  <amodra@bigpond.net.au>
409
410         * scripttempl/elf.sc (DISCARDED): Renamed from STACKNOTE.  Add
411         .gnu.debuglink.
412         * scripttempl/armbpabi.sc: Likewise.
413         * scripttempl/elf32sh-symbian.sc: Likewise.
414         * scripttempl/elfxtensa.sc: Likewise.
415         * scripttempl/mep.sc: Likewise.
416
417 2007-07-09  Roland McGrath  <roland@redhat.com>
418
419         * emultempl/elf32.em (gld${EMULATION_NAME}_add_option): Add --build-id.
420         (gld${EMULATION_NAME}_handle_option): Handle --build-id.
421         (gld${EMULATION_NAME}_list_options): List --build-id.
422         (gld${EMULATION_NAME}_after_open): If --build-id was given,
423         synthesize a ".note.gnu.build-id" section and cache it in elf_tdata.
424         * ld.texinfo (Options): Describe --build-id.
425         * NEWS: Mention --build-id.
426
427 2007-07-06  Nick Clifton  <nickc@redhat.com>
428
429         * deffile.h: Update copyright notice to refer to GPLv3.
430         * deffilep.y, ldcref.c, ldctor.c, ldctor.h, ldemul.c, ldemul.h,
431         ldexp.c, ldexp.h, ldfile.c, ldfile.h, ldgram.y, ld.h, ldlang.c,
432         ldlang.h, ldlex.h, ldlex.l, ldmain.c, ldmain.h, ldmisc.c,
433         ldmisc.h, ldver.c, ldver.h, ldwrite.c, ldwrite.h, lexsup.c, mri.c,
434         mri.h, pe-dll.c, pe-dll.h, pep-dll.c, pep-dll.h, stamp-h.in,
435         sysdep.h, emultempl/aix.em, emultempl/alphaelf.em,
436         emultempl/armcoff.em, emultempl/armelf.em, emultempl/avrelf.em,
437         emultempl/beos.em, emultempl/cr16elf.em, emultempl/crxelf.em,
438         emultempl/elf32.em, emultempl/elf-generic.em, emultempl/genelf.em,
439         emultempl/generic.em, emultempl/gld960c.em, emultempl/gld960.em,
440         emultempl/hppaelf.em, emultempl/ia64elf.em, emultempl/irix.em,
441         emultempl/linux.em, emultempl/lnk960.em, emultempl/m68hc1xelf.em,
442         emultempl/m68kcoff.em, emultempl/m68kelf.em,
443         emultempl/mipsecoff.em, emultempl/mipself.em,
444         emultempl/mmixelf.em, emultempl/mmix-elfnmmo.em, emultempl/mmo.em,
445         emultempl/needrelax.em, emultempl/pe.em, emultempl/pep.em,
446         emultempl/ppc32elf.em, emultempl/ppc64elf.em,
447         emultempl/scoreelf.em, emultempl/sh64elf.em, emultempl/spuelf.em,
448         emultempl/spu_ovl.S, emultempl/sunos.em, emultempl/ticoff.em,
449         emultempl/vanilla.em, emultempl/xtensaelf.em: Likewise.
450         * genscripts.sh: Add copyright notice.
451         * emultempl/netbsd.em, emultempl/vxworks.em, emultempl/z80.em:
452         Likewise.
453         * NEWS: Mention that the sources are now under GPLv3.
454         * configure: Regenerate.
455
456 2007-07-05  Danny Smith  <dannysmith@users.sourceforge.net>
457
458         * ld.texinfo (--heap): Replace 'amount' with 'number of bytes'.
459         (--stack): Likewise.
460
461 2007-07-03  Matthias Klose  <doko@ubuntu.com>
462
463         * emultempl/spuelf.em (base_name): Correct backslash quoting.
464
465 2007-07-02  Alan Modra  <amodra@bigpond.net.au>
466
467         * Makefile.in: Regenerate.
468         * aclocal.m4: Regenerate.
469         * config.in: Regenerate.
470         * po/ld.pot: Regenerate.
471
472 2007-06-30  H.J. Lu  <hongjiu.lu@intel.com>
473
474         * aclocal.m4: Regenerated.
475         * Makefile.in: Likewise.
476
477 2007-06-29  H.J. Lu  <hongjiu.lu@intel.com>
478
479         * NEWS: Remove a line with '*' only.
480
481 2007-06-29  Joseph Myers  <joseph@codesourcery.com>
482
483         * emulparams/armelf.sh (OTHER_SECTIONS): Remove .ARM.attributes.
484         (ATTRS_SECTIONS): Define.
485         * scripttempl/elf.sc, scripttempl/elf32sh-symbian.sc,
486         scripttempl/elf_chaos.sc, scripttempl/elfi370.sc,
487         scripttempl/elfxtensa.sc: Handle ATTRS_SECTIONS.
488
489 2007-06-29  M R Swami Reddy  <MR.Swami.Reddy@nsc.com>
490
491         * scripttemp/elf32cr16.sc: Default linker script.
492         * emulparams/elf32cr16.sh: Emulation script.
493         * emultempl/cr16elf.em: Emulation script.
494         * Makefile.am: Add entry to make cr16 target.
495         * Makefile.in: Regenerate.
496         * configure.tgt: Specify default and other emulation parameters
497         for cr16.
498         * ChangeLog: Added CR16 target entry.
499         * NEWS: Announce the support for the CR16 new target.
500
501 2007-06-27  Alan Modra  <amodra@bigpond.net.au>
502
503         * pe-dll.c: Rename uses of bfd.next to bfd.archive_next throughout.
504
505 2007-06-20  Alan Modra  <amodra@bigpond.net.au>
506
507         * emulparams/elf32_spu.sh (OTHER_SECTIONS): KEEP .note.spu_name.
508
509 2007-06-18  Nathan Sidwell  <nathan@codesourcery.com>
510
511         * ldlex.l, ldgram.y: Add ALIGNOF.
512         * ldexp.c (exp_print_token, foldname): Likewise.
513         * ld.texinfo: Likewise.
514
515 2007-06-18  Alan Modra  <amodra@bigpond.net.au>
516
517         * Makefile.am: Add eelf32_spu.o rule.
518         * Makefile.in: Regenerate.
519         * emultempl/spuelf.em: Revert last change.  Instead use EMBEDSPU
520         defined in Makefile for embedspu name.
521
522 2007-06-18  Alan Modra  <amodra@bigpond.net.au>
523
524         * emultempl/spuelf.em (embedded_spu_file): Deduce embedspu program
525         name prefix from that of ld.
526
527 2007-06-14  H.J. Lu  <hongjiu.lu@intel.com>
528
529         * Makefile.am (ACLOCAL_AMFLAGS): Add -I ../config -I ../bfd.
530
531         * acinclude.m4: Removed.
532
533         * Makefile.in: Regenerated.
534         * aclocal.m4: Likewise.
535         * configure: Likewise.
536
537 2007-06-14  Alan Modra  <amodra@bigpond.net.au>
538
539         * emultempl/spu_ovl.S: Don't trash lr on tail call from one
540         overlay to another.
541         * emultempl/spu_ovl.o: Regenerate.
542
543 2007-06-11  Bob Wilson  <bob.wilson@acm.org>
544
545         * emulparams/elf32xtensa.sh (OTHER_READONLY_SECTIONS): Add ONLY_IF_RO
546         for .xt_except_table.
547         (OTHER_RELRO_SECTIONS): New.
548
549 2007-06-11  Sterling Augustine  <sterling@tensilica.com>
550             Bob Wilson  <bob.wilson@acm.org>
551
552         * emultempl/xtensaelf.em (replace_insn_sec_with_prop_sec): Use renamed
553         XTENSA_PROP_NO_TRANSFORM flag instead of XTENSA_PROP_INSN_NO_TRANSFORM.
554
555 2007-06-01  Noah Misch  <noah@cs.caltech.edu>
556             Alan Modra  <amodra@bigpond.net.au>
557
558         * ldlang.c (ldlang_add_file): Use input_bfds_tail.
559         * ldmain.c (main): Init input_bfds_tail.  Sort link_info
560         initialization.
561
562 2007-05-29  Alan Modra  <amodra@bigpond.net.au>
563
564         * emultempl/spuelf.em (base_name): New function, split out from..
565         (embedded_spu_file) ..here.  Pass -fPIC or -fpie to embedspu
566         invocation if we deduce a shared lib or position independent
567         executable build by looking at ctrbegin* linker input files.
568
569 2007-05-29  Alan Modra  <amodra@bigpond.net.au>
570
571         * emultempl/spu_ovl.S (__rv_pattern, __cg_pattern): Set symbol
572         types and sizes.
573         * emultempl/spu_ovl.o: Regenerate.
574
575 2007-05-24  Steve Ellcey  <sje@cup.hp.com>
576
577         * Makefile.in: Regnerate.
578         * configure: Regenerate.
579         * aclocal.m4: Regenerate.
580
581 2007-05-24  Nathan Sidwell  <nathan@codesourcery.com>
582
583         * ldlex.l: ASSERT is recognized in SCRIPT env.  NAMES cannot
584         contain commas in EXP env.
585         * ldgram.y (extern_name_list): Push to EXP env, move body to ...
586         (extern_name_list_body): ... here.
587         (script_file, ifile_list): Reformat.
588         (statement): Add ASSERT.
589
590 2007-05-22  Nick Clifton  <nickc@redhat.com>
591
592         * ld.texinfo: Use @copying around the copyright notice.
593         * ldint.texinfo: Likewise.
594
595 2007-05-18  Richard Sandiford  <richard@codesourcery.com>
596
597         * emulparams/elf32ebmipvxworks.sh (OTHER_READONLY_SECTIONS)
598         (OTHER_READWRITE_SECTIONS): Define.  Add .rdata sections.
599
600 2007-05-16  Richard Sandiford  <richard@codesourcery.com>
601
602         * configure.in: Allow sysroots to be relocated under $prefix as
603         well as $exec_prefix.
604         * configure: Regenerate.
605
606 2007-05-14  Andreas Schwab  <schwab@suse.de>
607
608         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern):
609         Handle null pattern.
610
611 2007-05-11  Alan Modra  <amodra@bigpond.net.au>
612
613         * emultempl/ppc32elf.em (plt_style): New variable.
614         (old_plt): Delete.
615         (ppc_after_open): Adjust ppc_elf_select_plt_layout call.
616         (PARSE_AND_LIST_PROLOGUE): Define OPTION_NEW_PLT, renumber
617         OPTION_OLD_PLT, OPTION_OLD_GOT and OPTION_STUBSYMS.
618         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add secure-plt.
619         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NEW_PLT.
620         * ld.texinfo (--secure-plt): Document.
621
622 2007-05-08  Alan Modra  <amodra@bigpond.net.au>
623
624         * ld.h (args_type, ld_config_type): Reorder fields.
625         * ldmain.c (main): Don't initialise a bunch of vars we know are
626         zero already.
627
628 2007-05-05  Anatoly Sokolov <aesok@post.ru>
629
630         * multempl/avrelf.em (PARSE_AND_LIST_ARGS_CASES): Add new value for
631         "--pmem-wrap-around".
632         (PARSE_AND_LIST_OPTIONS): Describe new value for "--pmem-wrap-around".
633
634 2007-05-03  Bob Wilson  <bob.wilson@acm.org>
635
636         * scripttempl/elfxtensa.sc: Merge changes from elf.sc.
637
638 2007-05-03  Alan Modra  <amodra@bigpond.net.au>
639
640         * ld.texinfo (--no-warn-search-mismatch): Document.
641         * ldfile.c (ldfile_try_open_bfd): Don't warn about skipping
642         incompatible libraries if --no-warn-search-mismatch.
643         * ld.h (args_type): Add warn_search_mismatch.
644         * ldmain.c (main): Init it.
645         * lexsup.c (enum option_values): Add OPTION_NO_WARN_SEARCH_MISMATCH.
646         (ld_options): Add entry for --no-warn-search-mismatch.
647         (parse_args): Handle OPTION_NO_WARN_SEARCH_MISMATCH.
648
649 2007-05-03  Alan Modra  <amodra@bigpond.net.au>
650
651         * scripttempl/elf.sc: Add .debug_pubtypes and .debug_ranges.
652
653 2007-05-01  Robert Millan  <rmh@aybabtu.com>
654
655         * ldlang.c (lang_check): Error on architecture mismatch.
656
657 2007-04-30  Alan Modra  <amodra@bigpond.net.au>
658
659         * ldmain.c (link_callbacks): Init info and minfo fields.
660         * ldmisc.c (minfo): Do nothing if no map file.
661         * emultempl/spuelf.em (stack_analysis, emit_stack_syms): New vars.
662         (spu_after_open): Adjust spu_elf_create_sections call.
663         (spu_before_allocation): Likewise for spu_elf_size_stubs.
664         (OPTION_SPU_STACK_ANALYSIS, OPTION_SPU_STACK_SYMS): Define.
665         (PARSE_AND_LIST_LONGOPTS): Add new entries.
666         (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
667         * gen-doc.texi: Add @set for SPU and other missing targets.
668         * ld.texinfo: Update man page selection to match gen-doc.texi.
669         Document SPU features.
670
671 2007-04-28  Alan Modra  <amodra@bigpond.net.au>
672
673         * ldcref.c (struct cref_hash_entry): Make "demangled" const.
674         (cref_fill_array): Adjust for changed demangler.
675         * ldlang.c (lang_one_common): Likewise.
676
677 2007-04-27  Nathan Froyd  <froydnj@codesourcery.com>
678
679         * emulparams/elf32_sparc.sh: Update comments.
680         * emulparams/elf32bmip.sh: Likewise.
681         * emulparams/elf32ppc.sh: Likewise.
682         * emulparams/vxworks.sh: Likewise.
683
684 2007-04-27  Alan Modra  <amodra@bigpond.net.au>
685
686         Many files: Include sysdep.h first.  Remove duplicate headers.
687         * Makefile.am: Run "make dep-am".
688         * Makefile.in: Regenerate.
689
690 2007-04-24  Alan Modra  <amodra@bigpond.net.au>
691
692         * Makefile.in: Regenerate.
693
694 2007-04-19  Alan Modra  <amodra@bigpond.net.au>
695
696         * ldcref.c (cref_fill_array): Call bfd_demangle rather than demangle.
697         * ldlang.c (lang_one_common): Likewise.
698         * ldmisc.c (vfinfo): Likewise.
699         (demangle): Delete.
700         * ldmisc.h (demangle): Delete.
701         * Makefile.am: Run "make dep-am".
702         * Makefile.in: Regenerate.
703
704 2007-04-18  Alan Modra  <amodra@bigpond.net.au>
705
706         * ldlang.h (enum section_type): Add overlay_section.
707         * ldlang.c (lang_add_section): Handle flags for overlay_section
708         as per normal_section.
709         (lang_size_sections_1): When setting lma, detect overlays by
710         os->sectype rather than by looking for overlapping vmas.
711         (lang_enter_overlay_section): Use overlay_section type.
712         (lang_leave_overlay): Set first overlay section to normal.
713
714 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
715
716         * Makefile.am: Add ACLOCAL_AMFLAGS.
717         * Makefile.in: Regenerate.
718
719 2007-04-12  Bob Wilson  <bob.wilson@acm.org>
720
721         * emulparams/elf32xtensa.sh (OTHER_SECTIONS): KEEP property sections.
722
723 2007-04-10  Richard Henderson  <rth@redhat.com>
724
725         * ldlang.c (relax_sections): Initialize and increment
726         link_info.relax_trip.
727
728 2007-04-04  Paul Brook  <paul@codesourcery.com>
729
730         * configure.tgt: Loosen checks for arm uclinux eabi targets.
731
732 2007-04-02  H.J. Lu  <hongjiu.lu@intel.com>
733
734         PR ld/4090
735         * ldexp.h (node_type): Add lineno.
736         * ldexp.c: Include "ldlex.h".
737         (exp_intop): Set the lineno field from lineno.
738         (exp_bigintop): Likewise.
739         (exp_relop): Likewise.
740         (exp_nameop): Likewise.
741         (exp_binop): Set the lineno field from lineno of lhs.
742         (exp_trinop): Likewise.
743         (exp_unop): Set the lineno field from lineno of child.
744         (exp_assop): Set the lineno field from lineno of src.
745         (exp_provide): Likewise.
746         (exp_assert): Set the lineno field from lineno of exp.
747         (exp_get_abs_int): Set lineno from lineno of nonconstant
748         expression when report problem.
749
750 2007-03-29  Richard Sandiford  <richard@codesourcery.com>
751             Daniel Jacobowitz  <dan@codesourcery.com>
752
753         * NEWS: Mention -l:foo.
754         * ld.texinfo: Document it.
755         * ldlang.c (new_afile): If a lang_input_file_is_l_enum
756         entry as a name beginning with a coloh, convert it to a
757         lang_input_file_is_search_file_enum entry without the colon.
758
759 2007-03-28  Richard Sandiford  <richard@codesourcery.com>
760
761         * ld.h (ld_config_type): Add rpath_separator.
762         * ldmain.c (main): Initialize it.
763         * lexsup.c (parse_args): Honor config.rpath_separator.
764         * emultempl/elf32.em (gld${EMULATION_NAME}_search_needed): Likewise.
765         (gld${EMULATION_NAME}_add_sysroot): Likewise.
766         (gld${EMULATION_NAME}_parse_ld_so_conf): Use config.rpath_separator
767         rather than ':' when building the path.
768         * emultempl/vxworks.em (vxworks_before_parse): New function.
769         Override config.rpath_separator.
770         (LDEMUL_AFTER_OPEN): Do not change if EXTRA_EM_FILE has been
771         set to gld${EMULATION_NAME}_after_open; #define that identifier
772         to vxworks_foo instead.
773         (LDEMUL_BEFORE_PARSE): Override in the same way as LDEMUL_AFTER_OPEN.
774
775 2007-03-28  Richard Sandiford  <richard@codesourcery.com>
776             Phil Edwards  <phil@codesourcery.com>
777
778         * ld.texinfo: Put the contents after the title page rather
779         than at the end of the document.
780
781 2007-03-26  Alan Modra  <amodra@bigpond.net.au>
782
783         * Makefile.am: Add dependency on ldemul-list.h for powerpc and
784         spu target emul files.
785         * configure.in: Check for mkstemp and waitpid.
786         * Makefile.in: Regenerate.
787         * configure: Regenerate.
788         * config.in: Regenerate.
789         * ldlang.c (input_file_chain): Make global.
790         (lang_add_input_file): Don't set lang_has_input_file here.
791         * ldlang.h (input_file_chain): Declare.
792         * emultempl/ppc32elf.em (ppc_recognized_file): New function.
793         (LDEMUL_RECOGNIZED_FILE): Define.
794         * emultempl/ppc64elf.em (ppc64_recognized_file): New function.
795         (LDEMUL_RECOGNIZED_FILE): Define.
796         * emultempl/spuelf.em (struct tflist): New.
797         (tmp_file_list): New var.
798         (clean_tmp, embedded_spu_file): New functions.
799
800 2007-03-24  Alan Modra  <amodra@bigpond.net.au>
801
802         * ldlang.c (lang_insert_orphan): Provide start/stop loadaddr syms
803         rather than defining unconditionally.
804         (lang_leave_overlay_section): Likewise.
805         * ld.texinfo (Overlay Description): Update description and examples
806         for start/stop syms.
807
808 2007-03-22  Joseph Myers  <joseph@codesourcery.com>
809
810         * ld.texinfo: Include VERSION_PACKAGE when reporting version.
811
812 2007-03-20  Paul Brook  <paul@codesourcery.com>
813
814         * emultempl/armelf.em (pic_veneer): New variable.
815         (PARSE_AND_LIST_PROLOGUE): Add OPTION_PIC_VENEER.
816         (PARSE_AND_LIST_ARGS_CASES): Ditto.
817         (PARSE_AND_LIST_LONGOPTS): Add "pic-veneer".
818         (PARSE_AND_LIST_OPTIONS): Ditto.
819         * ld.texinfo: Document --pic-veneer.
820
821 2007-03-18  Mark Shinwell  <shinwell@codesourcery.com>
822
823         * ld.texinfo: Document --no-enum-size-warning.
824         * emultempl/armelf.em (no_enum_size_warning): New.
825         (arm_elf_create_output_section_statements): Correct typo
826         in comment.  Pass no_enum_size_warning to
827         bfd_elf32_arm_set_target_relocs.
828         (PARSE_AND_LIST_PROLOGUE): Define OPTION_NO_ENUM_SIZE_WARNING.
829         (PARSE_AND_LIST_OPTIONS): Document --no-enum-size-warning.
830         (PARSE_AND_LIST_ARGS_CASES): Add OPTION_NO_ENUM_SIZE_WARNING
831         case.
832
833 2007-03-19  Bernd Schmidt  <bernd.schmidt@analog.com>
834
835         * configure.tgt (bfin-*-elf, bfin-*-uclinux*): Add targ_extra_libpath.
836         (bfin-*-linux-uclibc*): New target.
837
838 2007-03-16  Kai Tietz  <Kai.Tietz@onevision.com>
839
840         * pe-dll.c (make_one): Use pc-relative relocation instead of an
841         absolute relocation for x86_64-pc-mingw32 target.
842
843 2007-03-15  H.J. Lu  <hongjiu.lu@intel.com>
844
845         * Makefile.am (ld_TEXINFOS): Remove ldver.texi.
846         (AM_MAKEINFOFLAGS): Add -I ../../bfd/doc.
847         (TEXI2DVI): Likewise.
848         (REPORT_BUGS_TO): Removed.
849         (INCLUDES): Remove -DREPORT_BUGS_TO.
850         (ldver.texi): Likewise.
851         (ld.1): Don't depend on ldver.texi.
852         (MOSTLYCLEANFILES): Remove ldver.texi.
853         * Makefile.in: Regenerated.
854
855         * configure.in (--with-bugurl): Removed.
856         * configure: Regenerated.
857
858         * lexsup.c: Include bfdver.h.
859
860         * ld.texinfo: Include bfdver.texi instead of ldver.texi.
861
862 2007-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
863
864         * emultempl/mmixelf.em: Remove incorrect '#line' directive.
865
866 2007-03-08  Alan Modra  <amodra@bigpond.net.au>
867
868         * ldlang.c (lang_size_sections_1): Correct backwards dot move
869         test to not trigger on overlays.  Only warn on backwards move
870         if non-default lma.
871
872 2007-03-07  Joseph Myers  <joseph@codesourcery.com>
873
874         * configure.in (REPORT_BUGS_TEXI): Define to Texinfo version of
875         bug-reporting URL.
876         * Makefile.am (ldver.texi): Define BUGURL.
877         * ld.texinfo: Use BUGURL.
878         * Makefile.in, configure: Regenerate.
879
880 2007-03-07  Nick Clifton  <nickc@redhat.com>
881
882         PR ld/4023
883         * emultempl/aix.em (..._before_allocation): Strip sysroot prefix
884         from any paths being inserted into the output binary's DT_RPATH.
885
886 2007-03-02  Nathan Sidwell  <nathan@codesourcery.com>
887
888         * emulparams/shelf_uclinux.sh: New. Missed in 2007-02-28 commit.
889
890 2007-03-01  Joseph Myers  <joseph@codesourcery.com>
891
892         * ldver.c (ldversion): Remove word "version" from output.  Update
893         copyright date.
894
895 2007-02-28  Nathan Sidwell  <nathan@codesourcery.com>
896
897         * Makefile.am (ALL_EMULATIONS): Add eshelf_uclinux.o
898         (eshelf_uclinux.c): New target.
899         * Makefile.in: Rebuilt.
900         * configure.tgt (sh-*-uclinux* | sh[12]-*-uclinux*): New stanza.
901         * emulparams/shelf_uclinux.sh: New.
902
903 2007-02-28  Alan Modra  <amodra@bigpond.net.au>
904
905         * configure.tgt: Fix type last change.
906         * configure.tgt (spu-*-elf*): Delete targ_extra_ofiles.
907
908 2007-02-27  Alan Modra  <amodra@bigpond.net.au>
909
910         * Makefile.am (ALL_EMUL_EXTRA_OFILES): Remove spu_inc.o.
911         (eelf32_spu.c): Adjust dependencies.
912         * Makefile.in: Regenerate.
913         * emultempl/spuelf.em (ovl_mgr): New array.  Insert spu_ovl.o
914         code using bin2c.
915         (_binary_spu_ovl_o_start, _binary_spu_ovl_o_end): Delete.
916         (ovl_mgr_stream): Update.
917         * emultempl/spu_inc.s: Delete.
918         * emultempl/spu_none.s: Delete.
919
920 2007-02-26  Alan Modra  <amodra@bigpond.net.au>
921
922         * emultempl/spuelf.em (_binary_builtin_ovl_mgr_start): Rename
923         to _binary_spu_ovl_o_start.
924         (_binary_builtin_ovl_mgr_end): Rename to _binary_spu_ovl_o_end.
925         (spu_elf_load_ovl_mgr): Fatal error on missing overlay manager.
926         * emultempl/spu_inc.s: Rename symbols.
927         * emultempl/spu_none.s: New file.
928         * emultempl/spu_ovl.S: Update copyright.
929         * Makefile.am (spu_inc.o): Try building with ld -r first, then
930         gas incbin, then build without overlay manager.
931         * Makefile.in: Regenerate.
932
933 2007-02-22  Joseph Myers  <joseph@codesourcery.com>
934
935         * configure.tgt (mips64*el-*-linux-*, mips64*-*-linux-*,
936         mips*el-*-linux-*, mips*-*-linux-*): Set
937         targ_extra_libpath=$targ_extra_emuls.
938
939 2007-02-21  Nick Clifton  <nickc@redhat.com>
940
941         * ldlang.c (ldlang_override_segment_assignment): New function.
942         * ldlang.h (ldlang_override_segment_assignment): Prototype.
943         * ldmain.c (link_callbacks): Add
944         ldlang_override_segment_assignment.
945
946 2007-02-20  Alan Modra  <amodra@bigpond.net.au>
947
948         * ldexp.c (fold_name <LOADADDR>): Ensure result is always absolute.
949
950 2007-02-17  Mark Mitchell  <mark@codesourcery.com>
951             Nathan Sidwell  <nathan@codesourcery.com>
952             Vladimir Prus  <vladimir@codesourcery.com
953             Joseph Myers  <joseph@codesourcery.com>
954
955         * configure.in (--with-bugurl): New option.
956         * configure: Regenerate.
957         * Makefile.am (REPORT_BUGS_TO): Define.
958         (INCLUDES): Define REPORT_BUGS_TO.
959         Regenerate dependencies.
960         * Makefile.in: Regenerate.
961         * ld.h: Remove include of bin-bugs.h.
962         * lexsup.c (help): Don't print empty REPORT_BUGS_TO.
963
964 2007-02-17  Alan Modra  <amodra@bigpond.net.au>
965
966         * ldcref.c (check_reloc_refs): Compare section for local syms.
967
968 2007-02-13  Alan Modra  <amodra@bigpond.net.au>
969
970         * emultempl/spu_ovl.S (__ovly_return, __ovly_load): Set sym size.
971         (__ovly_load_event): Define.
972         (size): Rename to osize.
973         * emultempl/spu_ovl.o: Regenerate.
974
975 2007-02-13  Alan Modra  <amodra@bigpond.net.au>
976
977         * emulparams/elf64ppc.sh (OTHER_READWRITE_SECTIONS): Add ".branch_lt".
978         * emultempl/ppc64elf.em (ppc_add_stub_section): Create without
979         SEC_RELOC flag set.
980
981 2007-02-09  H.J. Lu  <hongjiu.lu@intel.com>
982
983         * configure.in (targ_extra_emuls): Add $targ64_extra_emuls if
984         want64 is true.
985         (targ_extra_libpath): Add $targ64_extra_libpath if want64 is
986         true
987         * configure: Regenerated.
988
989         * configure.tgt (targ_extra_libpath): Initialize.
990         (targ64_extra_emuls): New. Document. Initialize.
991         (targ64_extra_libpath): Likewise.
992         (i[3-7]86-*-linux-*): Set targ64_extra_emuls and
993         targ64_extra_libpath.
994         (powerpc*-*-linux*): Likewise.
995         (s390-*-linux*): Likewise.
996
997 2007-02-07  Paul Brook  <paul@codesourcery.com>
998
999         * configure.tgt: Add arm*-*-uclinux-*eabi.
1000
1001 2007-02-06  H.J. Lu  <hongjiu.lu@intel.com>
1002
1003         * ldlang.c (lang_size_sections_1): Add a missing `)'.
1004
1005 2007-02-06  Alan Modra  <amodra@bigpond.net.au>
1006
1007         PR ld/3966
1008         * ldlang.c (lang_size_sections_1): Don't warn on backwards dot
1009         move unless section size is non-zero.
1010
1011 2007-02-05  Dave Brolley  <brolley@redhat.com>
1012
1013         * Makefile.am (ALL_EMULATIONS): Add support for Toshiba MeP.
1014         * configure.tgt: Likewise.
1015         * scripttempl/mep.sc: New file.
1016         * emulparams/elf32mep.sh: New file.
1017         * Makefile.in: Regenerate.
1018
1019 2006-01-29  Julian Brown  <julian@codesourcery.com>
1020
1021         * NEWS: Mention --vfp11-denorm-fix option.
1022         * ld.texinfo: Document above.
1023         * emulparams/armelf_linux.sh (OTHER_TEXT_SECTIONS): Add
1024         .vfp11_veneer section.
1025         * emulparams/armelf.sh (OTHER_TEXT_SECTIONS): Likewise.
1026         * emultempl/armelf.em (vfp11_denorm_fix): New static variable.
1027         (arm_elf_before_allocation): Call bfd_elf32_arm_set_vfp11_fix,
1028         bfd_elf32_arm_init_maps and bfd_elf32_arm_vfp11_erratum_scan.
1029         (arm_elf_after_allocation): New function. Call
1030         bfd_elf32_arm_vfp11_fix_veneer_locations for all input statements.
1031         (arm_elf_create_output_section_statements): Pass vfp11 fix command
1032         line option to BFD.
1033         (OPTION_VFP11_DENORM_FIX): New option.
1034         (PARSE_AND_LIST_LONGOPTS): Handle new option.
1035         (PARSE_AND_LIST_OPTIONS): Likewise.
1036         (PARSE_AND_LIST_ARGS_CASES): Likewise.
1037         (LDEMUL_AFTER_ALLOCATION): Define.
1038
1039 2007-01-24  H.J. Lu  <hongjiu.lu@intel.com>
1040
1041         * ldgram.y (SIZEOF_HEADERS): Remove duplicated one.
1042         (DEFSYMEND): Likewise.
1043         (NAME): Likewise.
1044         (LNAME): Likewise.
1045
1046 2007-01-19  Murali Vemulapati  <murali.vemulapati@gmail.com>
1047
1048         * pe-dll.c: (make_one) Conditionally include jump stubs.
1049         * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Identify
1050         redundant jump stubs from import libraries and exclude them from
1051         link.
1052
1053 2007-01-19  H.J. Lu  <hongjiu.lu@intel.com>
1054
1055         * ld.h (args_type): Add new symbolic and dynamic_list fields.
1056
1057         * ld.texinfo: Update -Bsymbolic-functions.
1058
1059         * ldmain.c (main): Initialize command_line.symbolic to
1060         symbolic_unset and command_line.dynamic_list to
1061         dynamic_list_unset.  Check -Bsymbolic, -Bsymbolic-functions and
1062         --dynamic-list* before setting link_info.symbolic,
1063         link_info.dynamic and link_info.dynamic_data.
1064
1065         * lexsup.c (option_values): Add OPTION_SYMBOLIC_FUNCTIONS.
1066         (ld_options): Use OPTION_SYMBOLIC_FUNCTIONS with
1067         -Bsymbolic-functions.
1068         (parse_args): Handle -Bsymbolic-functions.  Don't set
1069         link_info.dynamic, link_info.dynamic_data and link_info.symbolic
1070         here.  Set command_line.symbolic for -Bsymbolic.  Set
1071         command_line.dynamic_list and command_line.symbolic for
1072         --dynamic-list-data, --dynamic-list-cpp-new,
1073         --dynamic-list-cpp-typeinfo and --dynamic-list.
1074
1075 2007-01-19  Jakub Jelinek  <jakub@redhat.com>
1076             H.J. Lu  <hongjiu.lu@intel.com>
1077
1078         * emultempl/elf32.em (handle_option): Make sure -z max-page-size
1079         or -z common-page-size argument is a power of 2.  Call
1080         bfd_emul_set_maxpagesize and bfd_emul_set_commonpagesize.
1081
1082 2007-01-19  H.J. Lu  <hongjiu.lu@intel.com>
1083
1084         * ldmain.c (main): Don't call bfd_emul_set_maxpagesize nor
1085         bfd_emul_set_commonpagesize.
1086
1087 2007-01-19  H.J. Lu  <hongjiu.lu@intel.com>
1088
1089         * NEWS: Mention --default-script/-dT.
1090
1091         * ld.h (args_type): Add a default_script field.
1092
1093         * ld.texinfo: Document --default-script/-dT.
1094
1095         * ldmain.c (main): Handle command_line.default_script.
1096
1097         * lexsup.c (option_values): Add OPTION_DEFAULT_SCRIPT.
1098         (ld_options): Add entries for --default-script and -dT.
1099         (parse_args): Handle --default-script/-dT.
1100
1101 2007-01-16  H.J. Lu  <hongjiu.lu@intel.com>
1102
1103         PR ld/3831
1104         * NEWS: Mention -Bsymbolic-functions, --dynamic-list-data and
1105         --dynamic-list-cpp-new.
1106
1107         * ld.texinfo: Document -Bsymbolic-functions, --dynamic-list-data
1108         and --dynamic-list-cpp-new.
1109
1110         * ldlang.c (lang_append_dynamic_list_cpp_new): New.
1111         (lang_process): Change link_info.dynamic to
1112         link_info.dynamic_list.
1113         (lang_append_dynamic_list): Likewise.
1114         * ldmain.c (main): Likewise.  Initialize link_info.dynamic and
1115         link_info.dynamic_data to FALSE.
1116
1117         * ldlang.h (lang_append_dynamic_list_cpp_new): New.
1118
1119         * lexsup.c (option_values): Add OPTION_DYNAMIC_LIST_DATA and
1120         OPTION_DYNAMIC_LIST_CPP_NEW.
1121         (ld_options): Add entries for -Bsymbolic-functions,
1122         --dynamic-list-data and --dynamic-list-cpp-new.  Make
1123         -Bsymbolic-functions an alias of --dynamic-list-data.
1124         (parse_args): Change link_info.dynamic to link_info.dynamic_list.
1125         Set link_info.dynamic to TRUE for --dynamic-list and
1126         --dynamic-list-cpp-typeinfo.  Handle --dynamic-list-data and
1127         --dynamic-list-cpp-new.
1128
1129 2007-01-11  Nathan Sidwell  <nathan@codesourcery.com>
1130
1131         * emultempl/elf-generic.em (gdl_map_segments): Only allow header
1132         shrinkage for the first few iterations.
1133
1134 2007-01-08  Kai Tietz   <kai.tietz@onevision.com>
1135
1136         * configure.tgt: Renamed target x86_64-*-mingw64 to
1137         x86_64-*-mingw*.
1138
1139 2007-01-08  Pedro Alves  <pedro_alves@portugalmail.pt>
1140
1141         * configure.host: Add i[3-7]86-*-mingw* case.
1142
1143 2007-01-08  Nick Clifton  <nickc@redhat.com>
1144
1145         * pep-dll.h (pep_bfd_is_dll): Add prototype.
1146
1147 2007-01-08  Aurelien Jarno  <aurelien@aurel32.net>
1148
1149         PR ld/3843
1150         * configure.tgt (x86_64_[k]freebsd*): Add targ_extra_libpath and
1151         tdir_elf_i386_fbsd.
1152
1153 2007-01-06  Nathan Sidwell  <nathan@codesourcery.com>
1154
1155         * ldexp.c (fold_name): Issue error on undefined sections.
1156
1157 2007-01-02  Alan Modra  <amodra@bigpond.net.au>
1158
1159         * pe-dll.c: Include pe-dll.h.
1160         * pep-dll.c (pe_bfd_is_dll): Define.
1161
1162 For older changes see ChangeLog-2006
1163 \f
1164 Local Variables:
1165 mode: change-log
1166 left-margin: 8
1167 fill-column: 74
1168 version-control: never
1169 End: