4 * emultempl/pep.em (compute_dll_image_base): Use bfd_vma instead of long
5 and change return type to bfd_vma.
6 (definfo): Change type of address from long to bfd_vma.
7 (set_pep_value): Replace strtoul to strtoull.
8 (gld_${EMULATION_NAME}_set_symbols): use bfd_vma instead of long..
9 * pe-dll.c (pe_dll_generate_def_file): Use fprintf_vma to print ImageBase.
10 (quick_reloc): Change argument address from int to bfd_size_type.
14 * ld.texinfo (PowerPC64 ELF64): Fix typo.
18 * elf32_spu.sh (OTHER_SECTIONS): Add "._ea".
19 * elf32ppc.sh: If building with spu support, put ".data.spehandle"
20 sections at the start of ".data" and provide a symbol to locate
21 the directory of embedded spe programs.
25 * ldexp.c (exp_print_token): Add ABSOLUTE, MIN_K, ASSERT_K. Correct
27 (fold_binary <SEGMENT_START>): Set expld.result.section to
28 current section. Expand comment. Formatting.
29 (fold_name <DEFINED>): Set expld.result.section to current section.
33 * ldlang.c (lang_size_sections_1): Don't check LMA overflow on
38 * configure.tgt (bfin-*-linux-uclibc*): Set targ_emul to elf32bfinfd
39 and targ_extra_emuls to elf32bfin.
43 * aclocal.m4: Regenerate.
44 * configure: Regenerate.
48 * scripttempl/pep.sc: Align start of symbol __CTOR_LIST__.
52 * po/POTFILES.in: Regenerate.
56 * emultempl/spuelf.em (auto_overlay, auto_overlay_file,
57 auto_overlay_fixed, auto_overlay_reserved, my_argc, my_argv): New vars.
58 (spu_before_allocation): Warn on --auto-overlay and existing overlays.
59 (struct tflist, clean_tmp): Move.
60 (new_tmp_file): New function, extracted from..
61 (embedded_spu_file): ..here.
62 (spu_elf_open_overlay_script, spu_elf_relink): New function.
63 (gld${EMULATION_NAME}_finish): Pass a bunch of --auto-overlay params.
64 Warn on --auto-overlay and zero local store.
65 (gld${EMULATION_NAME}_choose_target): New function to stash argv.
66 (OPTION_SPU_AUTO_OVERLAY, OPTION_SPU_AUTO_RELINK,
67 OPTION_SPU_OVERLAY_RODATA, OPTION_SPU_FIXED_SPACE,
68 OPTION_SPU_RESERVED_SPACE, OPTION_SPU_NO_AUTO_OVERLAY): Define.
69 (PARSE_AND_LIST_LONGOPTS): Add entries for new options.
70 (PARSE_AND_LIST_OPTIONS): Likewise.
71 (PARSE_AND_LIST_ARGS_CASES): Likewise.
72 (LDEMUL_CHOOSE_TARGET): Define.
77 * pe-dll.c (make_head): Fix iat and thunk addend offset.
81 * po/fr.po: Updated French translation.
85 The sha1 code is now in libiberty.
88 * Makefile.am (CFILES): Remove sha1.c.
89 (HFILES): Remove sha1.h.
90 (OFILES): Remove sha1.o.
91 (ld_new_SOURCES): Remove sha1.c.
92 (sha1.o): Remove target.
93 * Makefile.in: Rebuild.
97 * emultempl/spuelf.em: Update calls to elf32-spu.c funcs.
101 * aclocal.m4: Regenerate.
102 * configure: Likewise.
103 * Makefile.in: Likewise.
107 * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Protect
108 spu_elf_build_stubs with is_spu_target.
112 * Makefile.am: Run "make dep-am".
113 * Makefile.in: Regenerate.
114 * configure: Regenerate.
119 * emulparams/m68kelf.sh (GENERATE_PIE_SCRIPT): Define.
120 (COMMONPAGESIZE): Define.
125 * ldlang.c (lang_size_sections_1): Honour the setting of an
126 lma_region even if there is no vma region set, or the vma region
127 is the same as the lma region.
131 * scripttempl/armbpabi.sc (ENTRY): Do not define when performing a
133 * scripttempl/elf32cr16.sc: Likewise.
134 * scripttempl/elf32cr16c.sc: Likewise.
135 * scripttempl/elf32crx.sc: Likewise.
136 * scripttempl/elf32sh-symbian.sc: Likewise.
137 * scripttempl/elf_chaos.sc: Likewise.
138 * scripttempl/elfd10v.sc: Likewise.
139 * scripttempl/elfi370.sc: Likewise.
140 * scripttempl/elfm68hc11.sc: Likewise.
141 * scripttempl/elfm68hc12.sc: Likewise.
142 * scripttempl/ip2k.sc: Likewise.
143 * scripttempl/iq2000.sc: Likewise.
144 * scripttempl/mep.sc: Likewise.
145 * scripttempl/v850.sc: Likewise.
146 * scripttempl/xstormy16.sc: Likewise.
151 * ldexp.c (fold_name <LOADADDR>): Check result of evaluating
152 load_base before calling make_abs.
156 * emultempl/alphaelf.em (alpha_after_open): Use elf_object_id.
157 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
159 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
161 * emultempl/ppc32elf.em (is_ppc_elf32_vec): Delete. Replace all
163 (is_ppc_elf): ..this new macro.
167 * ldmain.h (output_bfd): Delete.
168 * ldmain.c (output_bfd): Delete.
169 Replace all occurrences of output_bfd with link_info.output_bfd.
170 * ldcref.c: Likewise.
171 * ldctor.c: Likewise.
172 * ldemul.c: Likewise.
174 * ldfile.c: Likewise.
175 * ldlang.c: Likewise.
176 * ldmisc.c: Likewise.
177 * ldwrite.c: Likewise.
178 * pe-dll.c: Likewise.
179 * emultempl/aix.em: Likewise.
180 * emultempl/alphaelf.em: Likewise.
181 * emultempl/armcoff.em: Likewise.
182 * emultempl/armelf.em: Likewise.
183 * emultempl/avrelf.em: Likewise.
184 * emultempl/beos.em: Likewise.
185 * emultempl/elf-generic.em: Likewise.
186 * emultempl/elf32.em: Likewise.
187 * emultempl/gld960.em: Likewise.
188 * emultempl/hppaelf.em: Likewise.
189 * emultempl/irix.em: Likewise.
190 * emultempl/linux.em: Likewise.
191 * emultempl/lnk960.em: Likewise.
192 * emultempl/m68hc1xelf.em: Likewise.
193 * emultempl/mmix-elfnmmo.em: Likewise.
194 * emultempl/mmo.em: Likewise.
195 * emultempl/pe.em: Likewise.
196 * emultempl/pep.em: Likewise.
197 * emultempl/ppc32elf.em: Likewise.
198 * emultempl/ppc64elf.em: Likewise.
199 * emultempl/scoreelf.em: Likewise.
200 * emultempl/sh64elf.em: Likewise.
201 * emultempl/spuelf.em: Likewise.
202 * emultempl/sunos.em: Likewise.
203 * emultempl/vanilla.em: Likewise.
204 * emultempl/vxworks.em: Likewise.
205 * emultempl/xtensaelf.em: Likewise.
206 * emultempl/z80.em: Likewise.
207 * ldlang.c (open_output): Don't return output, instead write
208 link_info_output_bfd directly.
209 * emultempl/alphaelf.em: Replace occurrences of link_info.hash->creator
210 with link_info.output_bfd->xvec.
211 * emultempl/hppaelf.em: Likewise.
212 * emultempl/ppc32elf.em: Likewise.
213 * emultempl/ppc64elf.em: Likewise.
214 * emultempl/spuelf.em: Likewise.
218 * ldlang.c (new_afile): Don't pass unadorned NULL to concat.
219 * ldfile.c (ldfile_add_library_path): Likewise.
220 * emultempl/elf32.em (check_ld_elf_hints, check_ld_so_conf): Likewise.
221 * emultempl/lnk960.em (lnk960_before_parse): Likewise.
222 * emultempl/spuelf.em (embedded_spu_file): Likewise.
226 * emultempl/spu_ovl.S: Use low bit of _ovly_table.size as
227 a "present" bit rather than low bit of .buf. Correct indexing
228 into _ovly_buf_table. Use relative loads and stores to access
229 overlay manager local vars.
230 * emultempl/spu_ovl.o: Regenerate.
235 * configure: Regenerated.
239 * configure.tgt (xtensa*-*-*): Recognize processor variants.
243 * configure.tgt (x86_64-*-solaris2): Add support for this target.
248 * genscripts.sh: Check for the existence of BASH_LINENO not just
249 the BASH shell before generating line numbers in the emulation
254 * emultempl/spu_ovl.S: Rewrite.
255 * emultempl/spu_ovl.o: Regenerate.
256 * emultempl/spuelf.em (toe): Delete.
257 (spu_place_special_section): Add param to control section placement.
259 (spu_elf_load_ovl_mgr): Adjust for struct _spu_elf_section_data
261 (spu_before_allocation): Adjust spu_elf_size_stubs call.
262 (gld${EMULATION_NAME}_finish): Adjust spu_elf_build_stubs call.
267 * ldlang.c (process_insert_statements): Silence gcc 4.1 alias
272 * ld.texinfo (INSERT): Describe.
273 * ldgram.y (ldgram_in_script, ldgram_had_equals): Delete.
274 (INSERT_K, AFTER, BEFORE): Add as tokens.
275 (ifile_p1): Handle INSERT statements.
276 (saved_script_handle, force_make_executable): Move to..
278 (previous_script_handle): New global var.
279 * ldmain.h (saved_script_handle, force_make_executable): Declare.
280 (previous_script_handle): Likewise.
281 * ldlex.l (INSERT_K, AFTER, BEFORE): Add tokens.
282 * lexsup.c (parge_args <-T>): Set previous_script_handle.
283 * ldlang.c (lang_for_each_statement_worker): Handle insert statement.
284 (map_input_to_output_sections, print_statement): Likewise.
285 (lang_size_sections_1, lang_do_assignments_1): Likewise.
286 (insert_os_after): New function, extracted from..
287 (lang_insert_orphan): ..here.
288 (process_insert_statements): New function.
289 (lang_process): Call it.
290 (lang_add_insert): New function.
291 * ldlang.h (lang_insert_statement_enum): New.
292 (lang_insert_statement_type): New.
293 (lang_statement_union_type): Add insert_statement.
294 (lang_add_insert): Declare.
298 * scripttempl/elfxtensa.sc: Merge ENTRY and .note.gnu.build-id
303 * ldlang.c (lang_size_sections_1): Simplify SEC_NEVER_LOAD test.
307 * ldlang.h (lang_afile_asection_pair_statement_enum): Delete.
308 (lang_afile_asection_pair_statement_type): Delete.
309 (lang_statement_union_type): Delete afile_asection_pair_statement.
310 * ldlang.c (lang_insert_orphan): Delete case handling the above.
311 (map_input_to_output_sections, print_statement): Likewise.
315 * emulparams/shlelf_linux.sh (DATA_START_SYMBOLS): Use PROVIDE
317 * emulparams/shelf_nbsd.sh (DATA_START_SYMBOLS): Likewise.
322 * ldlang.c (lang_gc_sections): Move code to set SEC_KEEP on entry
323 syms to _bfd_elf_gc_keep.
324 * emultempl/ppc64elf.em (ppc_before_allocation): Don't call
325 ppc64_elf_edit_opd if no_opd_opt.
330 * ldlang.c (lang_end): Warns if the entry point is not found when
332 Emit an error if no root is specified when --gc-sections -r.
333 * ld.texinfo (Options): Document that --gc-sections is compatible
335 * ldmain.c (main): Do not error out if -r and --gc-sections.
336 * scripttempl/elf.sc: Emit ENTRY command only if relocating.
341 * ldlang.c (lang_end): Issue a warning for a missing start symbol
342 of a shared library if the symbol was specified on the command
347 * ld.texinfo (--gc-sections): Describe linker behaviour.
349 For older changes see ChangeLog-2007
355 version-control: never