[patch]: ctor/dtor section must start at alignment of 8 for x86_64-pc-mingw32.
[binutils-gdb.git] / ld / ChangeLog
1 2008-04-03 Kai Tietz <kai.tietz@onevision.com>
2
3 * scripttempl/pep.sc: Align start of symbol __CTOR_LIST__.
4
5 2008-04-08 Alan Modra <amodra@bigpond.net.au>
6
7 * po/POTFILES.in: Regenerate.
8
9 2008-04-08 Alan Modra <amodra@bigpond.net.au>
10
11 * emultempl/spuelf.em (auto_overlay, auto_overlay_file,
12 auto_overlay_fixed, auto_overlay_reserved, my_argc, my_argv): New vars.
13 (spu_before_allocation): Warn on --auto-overlay and existing overlays.
14 (struct tflist, clean_tmp): Move.
15 (new_tmp_file): New function, extracted from..
16 (embedded_spu_file): ..here.
17 (spu_elf_open_overlay_script, spu_elf_relink): New function.
18 (gld${EMULATION_NAME}_finish): Pass a bunch of --auto-overlay params.
19 Warn on --auto-overlay and zero local store.
20 (gld${EMULATION_NAME}_choose_target): New function to stash argv.
21 (OPTION_SPU_AUTO_OVERLAY, OPTION_SPU_AUTO_RELINK,
22 OPTION_SPU_OVERLAY_RODATA, OPTION_SPU_FIXED_SPACE,
23 OPTION_SPU_RESERVED_SPACE, OPTION_SPU_NO_AUTO_OVERLAY): Define.
24 (PARSE_AND_LIST_LONGOPTS): Add entries for new options.
25 (PARSE_AND_LIST_OPTIONS): Likewise.
26 (PARSE_AND_LIST_ARGS_CASES): Likewise.
27 (LDEMUL_CHOOSE_TARGET): Define.
28
29 2008-04-03 Kai Tietz <kai.tietz@onevision.com>
30
31 PR ld/6026
32 * pe-dll.c (make_head): Fix iat and thunk addend offset.
33
34 2008-03-31 Nick Clifton <nickc@redhat.com>
35
36 * po/fr.po: Updated French translation.
37
38 2008-03-24 Ian Lance Taylor <iant@google.com>
39
40 The sha1 code is now in libiberty.
41 * sha1.c: Remove.
42 * sha1.h: Remove.
43 * Makefile.am (CFILES): Remove sha1.c.
44 (HFILES): Remove sha1.h.
45 (OFILES): Remove sha1.o.
46 (ld_new_SOURCES): Remove sha1.c.
47 (sha1.o): Remove target.
48 * Makefile.in: Rebuild.
49
50 2008-03-20 Alan Modra <amodra@bigpond.net.au>
51
52 * emultempl/spuelf.em: Update calls to elf32-spu.c funcs.
53
54 2008-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
55
56 * aclocal.m4: Regenerate.
57 * configure: Likewise.
58 * Makefile.in: Likewise.
59
60 2008-03-14 Alan Modra <amodra@bigpond.net.au>
61
62 * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Protect
63 spu_elf_build_stubs with is_spu_target.
64
65 2008-03-13 Alan Modra <amodra@bigpond.net.au>
66
67 * Makefile.am: Run "make dep-am".
68 * Makefile.in: Regenerate.
69 * configure: Regenerate.
70
71 2008-03-06 Joseph Myers <joseph@codesourcery.com>
72 Roman Zippel <zippel@linux-m68k.org>
73
74 * emulparams/m68kelf.sh (GENERATE_PIE_SCRIPT): Define.
75 (COMMONPAGESIZE): Define.
76
77 2008-02-22 Nick Clifton <nickc@redhat.com>
78
79 PR ld/5785
80 * ldlang.c (lang_size_sections_1): Honour the setting of an
81 lma_region even if there is no vma region set, or the vma region
82 is the same as the lma region.
83
84 2008-02-18 Nick Clifton <nickc@redhat.com>
85
86 * scripttempl/armbpabi.sc (ENTRY): Do not define when performing a
87 relocatable link.
88 * scripttempl/elf32cr16.sc: Likewise.
89 * scripttempl/elf32cr16c.sc: Likewise.
90 * scripttempl/elf32crx.sc: Likewise.
91 * scripttempl/elf32sh-symbian.sc: Likewise.
92 * scripttempl/elf_chaos.sc: Likewise.
93 * scripttempl/elfd10v.sc: Likewise.
94 * scripttempl/elfi370.sc: Likewise.
95 * scripttempl/elfm68hc11.sc: Likewise.
96 * scripttempl/elfm68hc12.sc: Likewise.
97 * scripttempl/ip2k.sc: Likewise.
98 * scripttempl/iq2000.sc: Likewise.
99 * scripttempl/mep.sc: Likewise.
100 * scripttempl/v850.sc: Likewise.
101 * scripttempl/xstormy16.sc: Likewise.
102
103 2008-02-16 Alan Modra <amodra@bigpond.net.au>
104
105 PR ld/5761
106 * ldexp.c (fold_name <LOADADDR>): Check result of evaluating
107 load_base before calling make_abs.
108
109 2008-02-15 Alan Modra <amodra@bigpond.net.au>
110
111 * emultempl/alphaelf.em (alpha_after_open): Use elf_object_id.
112 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
113 Likewise.
114 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
115 Likewise.
116 * emultempl/ppc32elf.em (is_ppc_elf32_vec): Delete. Replace all
117 uses with..
118 (is_ppc_elf): ..this new macro.
119
120 2008-02-15 Alan Modra <amodra@bigpond.net.au>
121
122 * ldmain.h (output_bfd): Delete.
123 * ldmain.c (output_bfd): Delete.
124 Replace all occurrences of output_bfd with link_info.output_bfd.
125 * ldcref.c: Likewise.
126 * ldctor.c: Likewise.
127 * ldemul.c: Likewise.
128 * ldexp.c: Likewise.
129 * ldfile.c: Likewise.
130 * ldlang.c: Likewise.
131 * ldmisc.c: Likewise.
132 * ldwrite.c: Likewise.
133 * pe-dll.c: Likewise.
134 * emultempl/aix.em: Likewise.
135 * emultempl/alphaelf.em: Likewise.
136 * emultempl/armcoff.em: Likewise.
137 * emultempl/armelf.em: Likewise.
138 * emultempl/avrelf.em: Likewise.
139 * emultempl/beos.em: Likewise.
140 * emultempl/elf-generic.em: Likewise.
141 * emultempl/elf32.em: Likewise.
142 * emultempl/gld960.em: Likewise.
143 * emultempl/hppaelf.em: Likewise.
144 * emultempl/irix.em: Likewise.
145 * emultempl/linux.em: Likewise.
146 * emultempl/lnk960.em: Likewise.
147 * emultempl/m68hc1xelf.em: Likewise.
148 * emultempl/mmix-elfnmmo.em: Likewise.
149 * emultempl/mmo.em: Likewise.
150 * emultempl/pe.em: Likewise.
151 * emultempl/pep.em: Likewise.
152 * emultempl/ppc32elf.em: Likewise.
153 * emultempl/ppc64elf.em: Likewise.
154 * emultempl/scoreelf.em: Likewise.
155 * emultempl/sh64elf.em: Likewise.
156 * emultempl/spuelf.em: Likewise.
157 * emultempl/sunos.em: Likewise.
158 * emultempl/vanilla.em: Likewise.
159 * emultempl/vxworks.em: Likewise.
160 * emultempl/xtensaelf.em: Likewise.
161 * emultempl/z80.em: Likewise.
162 * ldlang.c (open_output): Don't return output, instead write
163 link_info_output_bfd directly.
164 * emultempl/alphaelf.em: Replace occurrences of link_info.hash->creator
165 with link_info.output_bfd->xvec.
166 * emultempl/hppaelf.em: Likewise.
167 * emultempl/ppc32elf.em: Likewise.
168 * emultempl/ppc64elf.em: Likewise.
169 * emultempl/spuelf.em: Likewise.
170
171 2008-02-07 Alan Modra <amodra@bigpond.net.au>
172
173 * ldlang.c (new_afile): Don't pass unadorned NULL to concat.
174 * ldfile.c (ldfile_add_library_path): Likewise.
175 * emultempl/elf32.em (check_ld_elf_hints, check_ld_so_conf): Likewise.
176 * emultempl/lnk960.em (lnk960_before_parse): Likewise.
177 * emultempl/spuelf.em (embedded_spu_file): Likewise.
178
179 2008-02-07 Alan Modra <amodra@bigpond.net.au>
180
181 * emultempl/spu_ovl.S: Use low bit of _ovly_table.size as
182 a "present" bit rather than low bit of .buf. Correct indexing
183 into _ovly_buf_table. Use relative loads and stores to access
184 overlay manager local vars.
185 * emultempl/spu_ovl.o: Regenerate.
186
187 2008-02-04 H.J. Lu <hongjiu.lu@intel.com>
188
189 PR 5715
190 * configure: Regenerated.
191
192 2008-01-31 Marc Gauthier <marc@tensilica.com>
193
194 * configure.tgt (xtensa*-*-*): Recognize processor variants.
195
196 2008-01-28 Fabian Groffen <grobian@gentoo.org>
197
198 * configure.tgt (x86_64-*-solaris2): Add support for this target.
199
200 2008-01-28 Vincent Riviere <vincent.riviere@freesbee.fr>
201
202 PR ld/5652
203 * genscripts.sh: Check for the existence of BASH_LINENO not just
204 the BASH shell before generating line numbers in the emulation
205 file.
206
207 2008-01-28 Alan Modra <amodra@bigpond.net.au>
208
209 * emultempl/spu_ovl.S: Rewrite.
210 * emultempl/spu_ovl.o: Regenerate.
211 * emultempl/spuelf.em (toe): Delete.
212 (spu_place_special_section): Add param to control section placement.
213 Adjust callers.
214 (spu_elf_load_ovl_mgr): Adjust for struct _spu_elf_section_data
215 changes.
216 (spu_before_allocation): Adjust spu_elf_size_stubs call.
217 (gld${EMULATION_NAME}_finish): Adjust spu_elf_build_stubs call.
218
219 2008-01-25 H.J. Lu <hongjiu.lu@intel.com>
220
221 PR ld/5670
222 * ldlang.c (process_insert_statements): Silence gcc 4.1 alias
223 warning.
224
225 2008-01-25 Alan Modra <amodra@bigpond.net.au>
226
227 * ld.texinfo (INSERT): Describe.
228 * ldgram.y (ldgram_in_script, ldgram_had_equals): Delete.
229 (INSERT_K, AFTER, BEFORE): Add as tokens.
230 (ifile_p1): Handle INSERT statements.
231 (saved_script_handle, force_make_executable): Move to..
232 * ldmain.c: ..here.
233 (previous_script_handle): New global var.
234 * ldmain.h (saved_script_handle, force_make_executable): Declare.
235 (previous_script_handle): Likewise.
236 * ldlex.l (INSERT_K, AFTER, BEFORE): Add tokens.
237 * lexsup.c (parge_args <-T>): Set previous_script_handle.
238 * ldlang.c (lang_for_each_statement_worker): Handle insert statement.
239 (map_input_to_output_sections, print_statement): Likewise.
240 (lang_size_sections_1, lang_do_assignments_1): Likewise.
241 (insert_os_after): New function, extracted from..
242 (lang_insert_orphan): ..here.
243 (process_insert_statements): New function.
244 (lang_process): Call it.
245 (lang_add_insert): New function.
246 * ldlang.h (lang_insert_statement_enum): New.
247 (lang_insert_statement_type): New.
248 (lang_statement_union_type): Add insert_statement.
249 (lang_add_insert): Declare.
250
251 2008-01-18 Bob Wilson <bob.wilson@acm.org>
252
253 * scripttempl/elfxtensa.sc: Merge ENTRY and .note.gnu.build-id
254 changes from elf.sc.
255
256 2008-01-16 Alan Modra <amodra@bigpond.net.au>
257
258 * ldlang.c (lang_size_sections_1): Simplify SEC_NEVER_LOAD test.
259
260 2008-01-16 Alan Modra <amodra@bigpond.net.au>
261
262 * ldlang.h (lang_afile_asection_pair_statement_enum): Delete.
263 (lang_afile_asection_pair_statement_type): Delete.
264 (lang_statement_union_type): Delete afile_asection_pair_statement.
265 * ldlang.c (lang_insert_orphan): Delete case handling the above.
266 (map_input_to_output_sections, print_statement): Likewise.
267
268 2008-01-15 Kaz Kojima <kkojima@rr.iij4u.or.jp>
269
270 * emulparams/shlelf_linux.sh (DATA_START_SYMBOLS): Use PROVIDE
271 with __data_start.
272 * emulparams/shelf_nbsd.sh (DATA_START_SYMBOLS): Likewise.
273
274 2008-01-15 Alan Modra <amodra@bigpond.net.au>
275
276 PR 5604
277 * ldlang.c (lang_gc_sections): Move code to set SEC_KEEP on entry
278 syms to _bfd_elf_gc_keep.
279 * emultempl/ppc64elf.em (ppc_before_allocation): Don't call
280 ppc64_elf_edit_opd if no_opd_opt.
281
282 2008-01-11 Tristan Gingold <gingold@adacore.com>
283 Eric Botcazou <ebotcazou@adacore.com>
284
285 * ldlang.c (lang_end): Warns if the entry point is not found when
286 --gc-sections.
287 Emit an error if no root is specified when --gc-sections -r.
288 * ld.texinfo (Options): Document that --gc-sections is compatible
289 with -r and -q.
290 * ldmain.c (main): Do not error out if -r and --gc-sections.
291 * scripttempl/elf.sc: Emit ENTRY command only if relocating.
292
293 2008-01-10 Daniel Jacobowitz <drow@sources.redhat.com>
294
295 PR ld/5533
296 * ldlang.c (lang_end): Issue a warning for a missing start symbol
297 of a shared library if the symbol was specified on the command
298 line.
299
300 2008-01-10 Alan Modra <amodra@bigpond.net.au>
301
302 * ld.texinfo (--gc-sections): Describe linker behaviour.
303
304 For older changes see ChangeLog-2007
305 \f
306 Local Variables:
307 mode: change-log
308 left-margin: 8
309 fill-column: 74
310 version-control: never
311 End: