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