Commit | Line | Data |
---|---|---|
3516e984 L |
1 | 2009-03-13 H.J. Lu <hongjiu.lu@intel.com> |
2 | ||
3 | PR binutils/9945 | |
4 | * elf.c (assign_section_numbers): Generate symbol table if there | |
5 | is any relocation in output. | |
6 | (_bfd_elf_compute_section_file_positions): Likewise. | |
7 | ||
ce98a316 NC |
8 | 2009-03-13 Nick Clifton <nickc@redhat.com> |
9 | ||
10 | PR 9934 | |
11 | * elf-bfd.h (NUM_SHDR_ENTRIES): Cope with an empty section. | |
12 | * elflink.c (elf_link_read_relocs_from_section): Use | |
13 | NUM_SHDR_ENTRIES. Gracefully handle the case where there are | |
14 | relocs but no symbol table. | |
15 | * elf32-arm.c (elf32_arm_check_relocs): Likewise. | |
16 | ||
c4fb387b L |
17 | 2009-03-12 H.J. Lu <hongjiu.lu@intel.com> |
18 | ||
19 | PR ld/9938 | |
20 | * elf32-i386.c (elf_i386_check_tls_transition): Use strncmp | |
21 | to check ___tls_get_addr. | |
22 | ||
23 | * elf64-x86-64.c (elf64_x86_64_check_tls_transition): Use | |
24 | strncmp to check __tls_get_addr. | |
25 | ||
53638231 AS |
26 | 2009-03-12 Andrew Stubbs <ams@codesourcery.com> |
27 | ||
28 | * dwarf2.c (read_section): Always check the offset, even when the | |
29 | section has been read before. | |
30 | ||
09e8c3bf L |
31 | 2009-03-11 H.J. Lu <hongjiu.lu@intel.com> |
32 | ||
33 | * elf32-i386.c (elf_i386_check_tls_transition): Fix a typo in | |
34 | comments. | |
35 | ||
36e4dce6 CD |
36 | 2009-03-11 Chris Demetriou <cgd@google.com> |
37 | ||
38 | * bfd.c (BFD_DETERMINISTIC_OUTPUT): New flag. | |
39 | * bfd-in2.h: Regenerate. | |
40 | * archive.c (bfd_ar_hdr_from_filesystem): If BFD_DETERMINISTIC_OUTPUT | |
41 | flag is set, use 0 for uid, gid, and timestamp, and use 0644 for file | |
42 | mode. | |
43 | (bsd_write_armap): Likewise. | |
44 | (_bfd_archive_bsd_update_armap_timestamp): If BFD_DETERMINISTIC_OUTPUT | |
45 | flag is set, do nothing. | |
46 | (coff_write_armap): If BFD_DETERMINISTIC_OUTPUT flag is set, use 0 | |
47 | for timestamp. | |
48 | ||
9b175a76 UW |
49 | 2009-03-11 Ulrich Weigand <uweigand@de.ibm.com> |
50 | ||
51 | * elf32-spu.c (find_function_stack_adjust): Handle sf instruction | |
52 | used to update stack pointer. | |
53 | ||
f501de17 DA |
54 | 2009-03-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
55 | ||
56 | PR binutils/9921 | |
57 | * som.c (som_bfd_derive_misc_symbol_info): Set symbol type ST_ABSOLUTE | |
58 | for unknown symbols in absolute section. | |
59 | ||
d11fd249 NC |
60 | 2009-03-06 Nick Clifton <nickc@redhat.com> |
61 | ||
62 | * po/es.po: Updated Spanish translation. | |
63 | ||
8cd931b7 CL |
64 | 2009-03-05 Christophe Lyon <christophe.lyon@st.com> |
65 | ||
66 | * elf32-arm.c (group_sections): Take next section size into | |
67 | account before accepting to group it. | |
68 | ||
5fa9e92f CL |
69 | 2009-03-05 Christophe Lyon <christophe.lyon@st.com> |
70 | ||
71 | * elf32-arm.c (arm_type_of_stub): Handle long branches targetting | |
72 | PLT entries. | |
73 | (elf32_arm_final_link_relocate): Likewise. | |
74 | ||
b92997d6 AM |
75 | 2009-03-05 Moritz Kroll <Moritz.Kroll@gmx.de> |
76 | ||
77 | PR 9923 | |
78 | * peXXigen.c (_bfd_XXi_final_link_postscript): Check h->root.type. | |
79 | ||
727fc41e AM |
80 | 2009-03-04 Alan Modra <amodra@bigpond.net.au> |
81 | ||
82 | * reloc.c (BFD_RELOC_PPC_TLSGD, BFD_RELOC_PPC_TLSLD): New. | |
83 | * section.c (struct bfd_section): Add has_tls_get_addr_call. | |
84 | (BFD_FAKE_SECTION): Init new flag. | |
85 | * ecoff.c (bfd_debug_section): Likewise. | |
86 | * bfd-in2.h: Regenerate. | |
87 | * libbfd.h: Regenerate. | |
88 | * elf32-ppc.c (ppc_elf_howto_raw): Add R_PPC_TLSGD and R_PPC_TLSLD. | |
89 | (ppc_elf_reloc_type_lookup): Handle new relocs. | |
90 | (ppc_elf_check_relocs): Set has_tls_get_addr_call on finding such | |
91 | without marker relocs. | |
92 | (ppc_elf_tls_optimize): Allow out-of-order __tls_get_addr relocs | |
93 | if section has no old-style calls. | |
94 | (ppc_elf_relocate_section): Set tls_mask for non-tls relocs too. | |
95 | Don't try to optimize new-style __tls_get_addr call when handling | |
96 | arg setup relocs. Instead do so for R_PPC_TLSGD and R_PPC_TLSLD | |
97 | relocs. | |
98 | * elf64-ppc.c (ppc64_elf_howto_raw): Add R_PPC64_TLSGD, R_PPC64_TLSLD. | |
99 | (ppc64_elf_reloc_type_lookup): Handle new relocs. | |
100 | (ppc64_elf_check_relocs): Set has_tls_get_addr_call on finding such | |
101 | without marker relocs. | |
102 | (ppc64_elf_tls_optimize): Allow out-of-order __tls_get_addr relocs | |
103 | if section has no old-style calls. Set toc_ref for new relocs as | |
104 | appropriate. | |
105 | (ppc64_elf_relocate_section): Set tls_mask for non-tls relocs too. | |
106 | Don't try to optimize new-style __tls_get_addr call when handling | |
107 | arg setup relocs. Instead do so for R_PPC_TLSGD and R_PPC_TLSLD | |
108 | relocs. | |
109 | ||
51dec227 AM |
110 | 2009-03-04 Alan Modra <amodra@bigpond.net.au> |
111 | ||
112 | PR 6768 | |
113 | * configure.in: Test for ld --as-needed support. Link shared | |
114 | libbfd against libm. | |
115 | * configure: Regenerate. | |
116 | ||
a1f7ca36 AM |
117 | 2009-03-03 Alan Modra <amodra@bigpond.net.au> |
118 | ||
119 | * Makefile.am: Run "make dep-am". | |
120 | * Makefile.in: Regenerate. | |
121 | ||
c3b7224a NC |
122 | 2009-03-02 Qinwei <qinwei@sunnorth.com.cn> |
123 | ||
124 | * elf32-score7.c: New file. | |
125 | * elf32-score.h: New file. | |
126 | * elf32-score.c: Add code to support score 7. Set score7 as the | |
127 | default. | |
128 | * cpu-score.c: Add score7 architecure. | |
129 | (compatibile): New function. | |
130 | * Makefile.am: Add rules for building elf32-score7 object. | |
131 | * Makefile.in: Regenerate. | |
132 | * configure.in: Add elf32-score7 object to score vectors. | |
133 | * configure: Regenerate. | |
134 | * reloc.c: Add score7 relocs. | |
135 | * archures.c: Add score3 and score7 machine numbers. | |
136 | * bfd-in2.h: Regenerate. | |
137 | * libbfd.h: Regenerate. | |
138 | ||
58e24671 RW |
139 | 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
140 | ||
141 | * configure: Regenerate. | |
142 | ||
5887528b DA |
143 | 2009-03-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
144 | ||
d45b7d74 DA |
145 | * elf32-hppa.c (hppa32_elf_local_refcounts): New function. |
146 | (elf32_hppa_check_relocs): Use it. | |
147 | ||
5887528b DA |
148 | * elf_hppa_add_symbol_hook (elf_hppa_add_symbol_hook): Move to |
149 | elf64-hppa.c. | |
150 | (elf_hppa_unmark_useless_dynamic_symbols): Likewise. | |
151 | (elf_hppa_remark_useless_dynamic_symbols): Likewise. | |
152 | (elf_hppa_is_dynamic_loader_symbol): Likewise. | |
153 | (elf_hppa_record_segment_addrs): Likewise. | |
154 | (elf_hppa_final_link): Likewise. | |
155 | (elf_hppa_relocate_insn): Likewise. | |
156 | (elf_hppa_final_link_relocate): Likewise. | |
157 | (elf64_hppa_relocate_section): Likewise. | |
158 | * elf64-hppa.c: Insert above. | |
159 | ||
a03bd320 DA |
160 | 2009-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
161 | ||
162 | * elf-hppa.h (elf_hppa_final_link): Use elf_hppa_final_link. | |
163 | (elf_hppa_final_link_relocate ): Rewrite eliminating dynamic hash table. | |
164 | (elf_hppa_relocate_section): Likewise. | |
165 | * elf64-hppa.c (struct elf64_hppa_link_hash_entry): Change to derive | |
166 | from struct elf_link_hash_entry. Add count field. | |
167 | (struct elf64_hppa_dyn_hash_table): Delete. | |
168 | (struct elf64_hppa_link_hash_table): Delete dyn_hash_table field. | |
169 | (elf64_hppa_hash_table): Rename to hppa_link_hash_table. | |
170 | (hppa_elf_hash_entry, eh_name): Define. | |
171 | (elf64_hppa_new_dyn_hash_entry): Delete. | |
172 | (elf64_hppa_dyn_hash_lookup): Delete. | |
173 | (elf64_hppa_dyn_hash_traverse): Delete. | |
174 | (get_dyn_name): Delete. | |
175 | (elf64_hppa_finalize_opd): Use struct elf_link_hash_entry * instead | |
176 | of struct elf64_hppa_dyn_hash_entry *. | |
177 | (elf64_hppa_finalize_dlt, llocate_global_data_dlt, | |
178 | allocate_global_data_plt, allocate_global_data_stub, | |
179 | allocate_global_data_opd, count_dyn_reloc, allocate_dynrel_entries): | |
180 | Likewise. | |
181 | (hppa64_link_hash_newfunc): New. | |
182 | (elf64_hppa_hash_table_create): Rework. | |
183 | (count_dyn_reloc): Likewise. | |
184 | (hppa64_elf_local_refcounts): New. | |
185 | (elf64_hppa_check_relocs): Rework using standard technique for recording | |
186 | local DLT, PLT and OPD reference counts. | |
187 | (elf64_hppa_dynamic_symbol_p): Revise using "eh" for struct | |
188 | elf_link_hash_entry *. | |
189 | (elf64_hppa_mark_exported_functions, allocate_global_data_dlt, | |
190 | allocate_global_data_plt, allocate_global_data_stub, | |
191 | allocate_global_data_opd, allocate_dynrel_entries, | |
192 | elf64_hppa_adjust_dynamic_symbol, | |
193 | elf64_hppa_mark_milli_and_exported_functions): Likewise. | |
194 | (elf64_hppa_create_dynamic_sections, elf64_hppa_size_dynamic_sections): | |
195 | Use hppa_link_hash_table. Rework. | |
196 | (elf64_hppa_link_output_symbol_hook): Rework. | |
197 | (elf64_hppa_finish_dynamic_symbol, elf64_hppa_finalize_opd, | |
198 | elf64_hppa_finalize_dlt, elf64_hppa_finalize_dynreloc, | |
199 | elf64_hppa_finish_dynamic_sections): Likewise. | |
200 | ||
ebe24dd4 CL |
201 | 2009-02-26 Christophe Lyon <christophe.lyon@st.com> |
202 | ||
203 | * elf32-arm.c (stub_reloc_type): Removed. | |
204 | (insn_sequence): Renamed reloc_type field to r_type. | |
205 | (elf32_arm_stub_long_branch_v4t_arm_thumb_pic): New stub. | |
206 | (elf32_arm_stub_long_branch_v4t_thumb_arm_pic): Likewise. | |
207 | (elf32_arm_stub_long_branch_thumb_only_pic): Likewise. | |
208 | (elf32_arm_stub_type): Add new enum entries for the new stubs. | |
209 | (arm_stub_is_thumb): Catch new stubs. | |
210 | (arm_type_of_stub): Handle new stubs. | |
211 | (arm_size_one_stub): Use ARRAY_SIZE. Handle new stubs. | |
212 | (bfd_elf32_arm_process_before_allocation): Remove useless | |
213 | condition. | |
214 | ||
b9d678e0 L |
215 | 2009-02-25 H.J. Lu <hongjiu.lu@intel.com> |
216 | ||
217 | * elf.c (elf_find_function): Use is_function_type to check | |
218 | function symbol. | |
219 | ||
56fb3749 SA |
220 | 2009-02-24 Sterling Augustine <sterling@jaw.hq.tensilica.com> |
221 | ||
222 | * xtensa-modules.c: Revert to previous version 1.11 due | |
223 | to inadvertant commit. | |
224 | ||
658ff993 SA |
225 | 2009-02-24 Sterling Augustine <sterling@tensilica.com> |
226 | ||
227 | * elf32-xtensa.c (text_action_add): Separate test for action | |
228 | type. Break if saved action is ta_widen_insn at same offset. | |
229 | ||
cf3eccff DJ |
230 | 2009-02-24 Daniel Jacobowitz <dan@codesourcery.com> |
231 | ||
232 | * elf32-arm.c (elf32_arm_stub_long_branch_any_any_pic): Rename | |
233 | to elf32_arm_stub_long_branch_any_arm_pic. | |
234 | (elf32_arm_stub_long_branch_any_thumb_pic): New. | |
235 | (enum elf32_arm_stub_type, arm_type_of_stub) | |
236 | (arm_size_one_stub): Handle any to ARM PIC and any to Thumb PIC | |
237 | separately. | |
238 | ||
07d72278 DJ |
239 | 2009-02-24 Joseph Myers <joseph@codesourcery.com> |
240 | ||
241 | * elf32-arm.c (PREV_SEC): Update comment. | |
242 | (group_sections): Rename argument to stubs_always_after_branch. | |
243 | Reverse the list and place stubs at the end of input sections. | |
244 | Undefine NEXT_SEC. | |
245 | (elf32_arm_size_stubs): Update to use stubs_always_after_branch. | |
246 | ||
4e31c731 DJ |
247 | 2009-02-23 Daniel Jacobowitz <dan@codesourcery.com> |
248 | ||
249 | * elf32-arm.c (arm_build_one_stub): Initialize stub_reloc_offset. | |
250 | Fix formatting. | |
251 | (arm_size_one_stub): Remove unnecessary break. | |
252 | (arm_map_one_stub): Fix formatting. Return after BFD_FAIL. | |
253 | ||
254 | 2009-02-23 Christophe Lyon <christophe.lyon@st.com> | |
461a49ca DJ |
255 | |
256 | * elf32-arm.c (stub_insn_type): New type. | |
257 | (stub_reloc_type): Likewise. | |
258 | (insn_sequence): Likewise. | |
259 | (elf32_arm_stub_long_branch_any_any): Encode using insn_sequence. | |
260 | (elf32_arm_stub_long_branch_v4t_arm_thumb): Likewise. | |
261 | (elf32_arm_stub_long_branch_thumb_only): Likewise. | |
262 | (elf32_arm_stub_long_branch_v4t_thumb_arm): Likewise. | |
263 | (elf32_arm_stub_short_branch_v4t_thumb_arm): Likewise. | |
264 | (elf32_arm_stub_long_branch_any_any_pic): Likewise. | |
265 | (elf32_arm_stub_hash_entry): Add new helper fields. | |
266 | (stub_hash_newfunc): Initialize these new fields. | |
267 | (arm_build_one_stub): Encode Arm and Thumb instructions separately | |
268 | to take endianness into account. | |
269 | (arm_size_one_stub): Compute size of stubs using insn_sequence. | |
270 | (arm_map_one_stub): Code is now more generic, thanks to | |
271 | insn_sequence. | |
272 | ||
c2b4a39d CL |
273 | 2009-02-23 Christophe Lyon <christophe.lyon@st.com> |
274 | ||
275 | * elf32-arm.c (elf32_arm_stub_long_branch_thumb_only): Fix stub | |
276 | code. | |
277 | (elf32_arm_stub_long_branch_v4t_thumb_arm): Likewise. | |
278 | (arm_type_of_stub): Use Thumb-only long branch stub (non-PIC) when | |
279 | BLX is not available. Fix typo in warning message. Add comments | |
280 | and improve formatting. | |
281 | (arm_build_one_stub): Adjust to new | |
282 | elf32_arm_stub_long_branch_v4t_thumb_arm stub. | |
283 | (arm_map_one_stub): Likewise. | |
284 | ||
0c376465 | 285 | 2009-02-23 Tristan Gingold <gingold@adacore.com> |
a60a89d6 TG |
286 | Eric Botcazou <ebotcazou@adacore.com> |
287 | Douglas B Rupp <rupp@gnat.com> | |
0c376465 TG |
288 | |
289 | * vms.h: Update copyright year, fix comments, reorder declarations. | |
290 | (_bfd_save_vms_section): Remove the prototype. | |
291 | (EGPS_S_V_NO_SHIFT): New constant. | |
292 | (bfd_vms_set_section_flags): New prototype. | |
293 | (EGPS_S_B_ALIGN, EGPS_S_W_FLAGS, EGPS_S_L_ALLOC, EGPS_S_B_NAMLNG): New | |
294 | constants. | |
295 | (EGSY_S_W_FLAGS): Ditto. | |
296 | (EGSY_S_V_QUAD_VAL): Ditto. | |
297 | (ESDF_S_L_VALUE, ESDF_S_L_PSINDX, ESDF_S_B_NAMLNG): Ditto. | |
298 | (EGST_S_W_FLAGS, EGST_S_Q_LP_1, EGST_S_Q_LP_2, EGST_S_L_PSINDX, | |
299 | EGST_S_B_NAMLNG): Ditto. | |
300 | (ESRF_S_B_NAMLNG): Ditto. | |
301 | (ETIR_S_C_HEADER_SIZE): Ditto. | |
302 | (EGPS_S_V_ALLOC_64BIT): Ditto. | |
303 | (DST_S_C_EPILOG): Ditto. | |
304 | (DST_S_C_SRC_SETLNUM_L, DST_S_C_SRC_SETLNUM_W) : Ditto. | |
305 | (DST_S_C_SRC_INCRLNUM_B): Ditto. | |
306 | (DST_S_B_PCLINE_UNSBYTE, DST_S_W_PCLINE_UNSWORD): Ditto. | |
307 | (DST_S_L_PCLINE_UNSLONG): Ditto. | |
308 | (DST_S_B_MODBEG_NAME, DST_S_L_RTNBEG_ADDRESS) : Ditto | |
309 | (DST_S_B_RTNBEG_NAME, DST_S_L_RTNEND_SIZE): Ditto | |
310 | (DST_S_C_SOURCE_HEADER_SIZE): Ditto. | |
311 | (DST_S_B_SRC_DF_LENGTH, DST_S_W_SRC_DF_FILEID): Ditto. | |
312 | (DST_S_B_SRC_DF_FILENAME, DST_S_B_SRC_UNSBYTE): Ditto. | |
313 | (DST_S_B_SRC_UNSBYTE): Ditto. | |
314 | (DST_S_W_SRC_UNSWORD, DST_S_L_SRC_UNSLONG): Ditto. | |
315 | Add prototypes. | |
316 | (vms_section, vms_reloc): Remove types. | |
317 | (hdr_struc): Replaced by ... | |
318 | (hdr_struct): ... new type. | |
319 | (EMH_S_W_HDRTYP, EMH_S_B_STRLVL, EMH_S_L_ARCH1): New constants. | |
320 | (EMH_S_L_ARCH2, EMH_S_L_RECSIZ, EMH_S_B_NAMLNG): Ditto. | |
321 | (EMH_DATE_LENGTH): Ditto. | |
322 | (eom_struc): Replaced by ... | |
323 | (eom_struct): ... new type. | |
324 | (EEOM_S_L_TOTAL_LPS, EEOM_S_W_COMCOD, EEOM_S_B_TFRFLG): New constants. | |
325 | (EEOM_S_L_PSINDX, EEOM_S_L_TFRADR): Ditto. | |
326 | (EIHD_S_K_MAJORID, EIHD_S_K_MINORID, EIHD_S_K_EXE): Ditto. | |
327 | (EIHD_S_L_SIZE, EIHD_S_L_ISDOFF, EIHD_S_L_SYMDBGOFF): Ditto. | |
328 | (EIHD_S_Q_SYMVVA, EIHD_S_L_IMGTYPE): Ditto. | |
329 | (EISD_S_L_EISDSIZE, EISD_S_L_SECSIZE, EISD_S_Q_VIR_ADDR): Ditto. | |
330 | (EISD_S_L_FLAGS, EISD_S_L_VBN, EISD_S_R_CONTROL): Ditto. | |
331 | (EISD_S_L_IDENT, EISD_S_T_GBLNAM): Ditto. | |
332 | (EISD_S_M_GBL, EISD_S_M_CRF, EISD_S_M_DZRO, EISD_S_M_WRT): Ditto. | |
333 | (EISD_S_M_INITALCODE, EISD_S_M_BASED, EISD_S_M_FIXUPVEC): Ditto. | |
334 | (EISD_S_M_RESIDENT, EISD_S_M_VECTOR, EISD_S_M_PROTECT): Ditto. | |
335 | (EISD_S_M_LASTCLU, EISD_S_M_EXE, EISD_S_M_NONSHRADR): Ditto. | |
336 | (EISD_S_M_QUAD_LENGTH, EISD_S_M_ALLOC_64BIT): Ditto. | |
337 | (EIHS_S_L_DSTVBN, EIHS_S_L_DSTSIZE, EIHS_S_L_GSTVBN): Ditto. | |
338 | (EIHS_S_L_GSTSIZE, EIHS_S_L_DMTVBN, EIHS_S_L_DMTBYTES): Ditto. | |
339 | (DBG_S_L_DMT_MODBEG, DBG_S_L_DST_SIZE): Ditto. | |
340 | (DBG_S_W_DMT_PSECT_COUNT, DBG_S_C_DMT_HEADER_SIZE): Ditto. | |
341 | (DBG_S_L_DMT_PSECT_START, DBG_S_L_DMT_PSECT_LENGTH) | |
342 | (DBG_S_C_DMT_PSECT_SIZE): Ditto. | |
343 | (enum file_type_enum): New type. | |
344 | (struct location_struct): Removed. | |
345 | (struct fileinfo, struct srecinfo, struct lineinfo): New types. | |
346 | (struct funcinfo, struct module): Ditto. | |
347 | (struct vms_private_data_struct): Update fields. | |
348 | (struct vms_section_data_struct): New type. | |
349 | ||
350 | * vms.c: Update copyright year, fix comments, | |
351 | Fix includes for DECC, add prototypes. | |
352 | (vms_initialize): Use bfd_alloc instead of bfd_zalloc and remove | |
353 | some initializers. | |
354 | Use flavour to set is_vax, location_stack is removed. | |
355 | (struct pair): Declare. | |
356 | (fill_section_ptr): Initialize variables at declaration. | |
357 | Add guard to set SECTION_SYM flag, handlde und section. | |
358 | (vms_fixup_sections): Use struct pair for fill_section_ptr argument. | |
359 | (_bfd_vms_slurp_object_records): New function, replaces previous | |
360 | vms_object_p. | |
361 | (vms_slurp_module): New function. | |
362 | (vms_slurp_image): Ditto. | |
363 | (vms_object_p): Complete rewrite. | |
364 | (vms_mkobject): Use is_vax field to slect architecture. | |
365 | (free_reloc_stream): New function. | |
366 | (vms_convert_to_var): Ditto. | |
367 | (vms_convert_to_var_1): Ditto. | |
368 | (vms_convert_to_var_unix_filename): Ditto. | |
369 | (vms_close_and_cleanup): Call free_reloc_stream, convert file to | |
370 | VAR format on VMS. | |
371 | (vms_new_section_hook): Set alignment to 0, allocate private data. | |
372 | (vms_get_section_contents): Load content. | |
373 | (vms_get_symbol_info): Handle undefined section. | |
374 | (vms_find_nearest_line): Handle. | |
375 | (alloc_reloc_stream): New function. | |
376 | (vms_slurp_reloc_table): Ditto. | |
377 | (vms_get_reloc_upper_bound): Make it real. | |
378 | (vms_canonicalize_reloc): Do the real work. | |
379 | (alpha_howto_table): Add ALPHA_R_NOP, ALPHA_R_BSR, ALPHA_R_LDA, | |
380 | ALPHA_R_BOH. | |
381 | (vms_bfd_reloc_type_lookup): Handle NOP, BSR, LDA and BOH. | |
382 | (vms_set_arch_mach): Check arch. | |
383 | (vms_set_section_contents): Copy the content after allocation. | |
384 | (vms_alpha_vec): Update object flags. | |
385 | ||
386 | * vms-tir.c: Update copyright year, fix comments, | |
387 | add prototypes for new functions. | |
388 | (dst_define_location): New function. | |
389 | (dst_restore_location): New function. | |
390 | (dst_retrieve_location): New function. | |
391 | (dst_check_allocation): New function. | |
392 | (image_dump): Call dst_check_allocation. | |
393 | (image_write_b): Ditto. | |
394 | (image_write_w): Ditto. | |
395 | (image_write_l): Ditto. | |
396 | (image_write_q): Ditto. | |
397 | (cmd_name): Handle STA_LW, STA_QW, STO_OFF, STO_IMM, STO_IMMR, STO_LW, | |
398 | STO_QW, OPR_ADD, CTL_SETRB, STC_LP_PSB, CTL_DFLOC, CTL_STLOC, | |
399 | CTL_STKDL. | |
400 | Call error handler instead of abort if name is not known. | |
401 | (etir_sta): Add quarter_relocs argument and set it. | |
402 | Fix cast. | |
403 | (etir_sto): Ditto. | |
404 | (etir_opr): Ditto, return FALSE in case of error. | |
405 | (etir_ctl): Add quarter_relocs argument and set it, fix cast. | |
406 | Fix CTL_DFLOC, CTL_STLOC, CTL_STKDL. | |
407 | (etir_stc): Add quarter_relocs argument and set it, fix cast. | |
408 | Fix STC_LP, STC_LP_PSB, STC_GBL and STC_CGA. | |
409 | Handle STC_LP_PSB, STC_BSR_GBL, STC_LDA_GBL, STC_BOH_GBL. | |
410 | Move STC_NOP_PS, STC_BSR_PS, STC_LDA_PS, STC_BOH_PS, STC_NBH_PS. | |
411 | Return FALSE in case of error. | |
412 | (tir_sta): Change sign of psect. | |
413 | (tir_ctl): Ditto. | |
414 | (tir_cmd): Fix cast. Makes tir_table static const. | |
415 | (etir_cmd): Add quarter_relocs argument, makes etir_table const, | |
416 | add argument to explain. | |
417 | (analyze_etir): Initialize maxptr, add quarter_relocs | |
418 | declaration, move some declarations into inner scopes. | |
419 | Handle quarter_relocs and STO_IMM. | |
420 | (_bfd_vms_slurp_tir): Use constant instead of hard-coded values. | |
421 | (_bfd_vms_slurp_relocs): New function. | |
422 | (_bfd_vms_decode_relocs): New function. | |
423 | (sto_imm): Rewritten. | |
424 | (start_first_etbt_record): New function. | |
425 | (start_another_etbt_record): Ditto. | |
426 | (etir_output_check): Ditto. | |
427 | (defer_reloc_p): Ditto. | |
428 | (_bfd_vms_write_tir): Remove nextoffset, convert a while-loop to | |
429 | a for-loop. Correctly deals with contents, deals with .vmsdebug, | |
430 | rewritte relocations handling. | |
431 | (_bfd_vms_write_tbt): Removed. | |
432 | (_bfd_vms_write_dbg): Ditto. | |
433 | ||
434 | * vms-misc.c: Update copyright year, Fix comments. | |
435 | (_bfd_vms_get_header_values): Use 'size' instead of 'length'. | |
436 | (maybe_adjust_record_pointer_for_object): New function. | |
437 | (_bfd_vms_get_first_record): New function, replaces ... | |
438 | (_bfd_vms_get_record): .. removed. | |
439 | (_bfd_vms_get_object_record): New function. | |
440 | (_bfd_vms_get_object_record): New function. | |
441 | (vms_get_remaining_object_record): New function, replaces ... | |
442 | (_bfd_vms_get_next_record): ... removed. | |
443 | (add_new_contents): Removed. | |
444 | (_bfd_save_vms_section): Removed. | |
445 | (_bfd_get_vms_section): Removed. | |
446 | (_bfd_vms_output_flush): Write in VAR format. | |
447 | (new_symbol): Don't make UND section. | |
448 | ||
449 | * vms-hdr.c: Update copyright year, update list of record handled. | |
450 | (_bfd_vms_slurp_hdr): rec_length renamed to rec_size. | |
451 | (_bfd_vms_write_hdr): Strip vms and unix patches, | |
452 | add comments, truncate module name at 31 characters, | |
453 | use constants instead of hard-coded value, | |
454 | write BFD version instead of a fixed string. | |
455 | (_bfd_vms_slurp_ihd): New function. | |
456 | (_bfd_vms_slurp_isd): Ditto. | |
457 | (_bfd_vms_slurp_ihs): Ditto. | |
458 | (new_module): Ditto. | |
459 | (parse_module): Ditto | |
460 | (build_module_list): Ditto. | |
461 | (module_find_nearest_line): Ditto. | |
462 | (_bfd_vms_find_nearest_dst_line): Ditto. | |
463 | (vms_slurp_debug): Ditto. | |
464 | (_bfd_vms_slurp_dbg): Ditto. | |
465 | (_bfd_vms_slurp_tbt): Ditto. | |
466 | (_bfd_vms_write_dbg): Ditto. | |
467 | (_bfd_vms_write_tbt): Ditto. | |
468 | ||
469 | * vms-gsd.c: Update copyright year, update list of records handled. | |
470 | (EVAX_LITERALS_NAME): New macro. | |
471 | (evax_section_flags): Add an entry for EVAX_LITERALS_NAME. | |
472 | (gpsflagdesc, gsyflagdesc): Moved out of _bfd_vms_slurp_gsd. | |
473 | (register_universal_symbol): New function and prototype. | |
474 | (_bfd_vms_slurp_gsd): Fix indentations and casts, | |
475 | improve debug messages, | |
476 | use constants instead of hard-coded value, | |
477 | fix missing endianness conversion, | |
478 | handle global symbol (SYMG). | |
479 | (bfd_vms_set_section_flags): New function. | |
480 | (_bfd_vms_write_gsd): Don't write .vmsdebug section, | |
481 | handle section literals, | |
482 | fix indentation, | |
483 | handle section bfd and vms flags, | |
484 | don't output LIB$INITIALIZE symbol, | |
485 | fix handling of weak symbols, | |
486 | fix evax vs vax procedure descriptor, | |
487 | handle absolute symbols. | |
488 | ||
489 | * reloc.c (BFD_RELOC_ALPHA_NOP, BFD_RELOC_ALPHA_BSR, | |
490 | BFD_RELOC_ALPHA_LDA, BFD_RELOC_ALPHA_BOH): New relocations. | |
491 | ||
492 | * makefile.vms (DEFS): Fix flags for VMS. | |
493 | ||
494 | * bfdio.c (real_fopen): Handle multiple VMS fopen attributes. | |
495 | ||
496 | * bfd-in2.h: Regenerated. | |
497 | * libbfd.h: Regenerated. | |
498 | ||
47149254 CC |
499 | 2009-02-20 Cary Coutant <ccoutant@google.com> |
500 | ||
501 | * vmsutil.c (vms_file_stats_name): Fix incorrect use of st_mtime | |
502 | in struct stat. | |
503 | ||
6b1cecf3 DK |
504 | 2009-18-02 Dave Korn <dave.korn.cygwin@gmail.com> |
505 | ||
506 | PR gas/7059 | |
507 | * coffcode.h (coff_write_object_contents): Don't let the string | |
508 | table offset overflow the s_name field when using long section names. | |
509 | ||
88183869 DK |
510 | 2009-18-02 Dave Korn <dave.korn.cygwin@gmail.com> |
511 | ||
512 | * coff-alpha.c (alpha_ecoff_backend_data): Initialise fields which | |
513 | control long section name handling with ECOFF_NO_LONG_SECTION_NAMES. | |
514 | * coff-mips.c (mips_ecoff_backend_data): Likewise. | |
515 | * coff-rs6000.c (bfd_xcoff_backend_data): Initialise fields which | |
516 | control long section name handling with XCOFF_NO_LONG_SECTION_NAMES. | |
517 | (bfd_pmac_xcoff_backend_data): Likewise. | |
518 | * coff64-rs6000.c (bfd_xcoff_backend_data): Likewise. | |
519 | (bfd_xcoff_aix5_backend_data): Likewise. | |
520 | (xcoff64_write_object_contents): Delete unused long_section_names | |
521 | local variable. | |
522 | * coff-sh.c (bfd_coff_small_swap_table): Initialise long section | |
523 | name members using COFF_DEFAULT_LONG_SECTION_NAMES and make entire | |
524 | struct non-const. | |
525 | * coffcode.h (documentation): Update to describe long section names. | |
526 | (COFFLONGSECTIONCATHELPER): New helper macro. | |
527 | (BLANKOR1TOODD): Likewise. | |
528 | (COFF_ENABLE_LONG_SECTION_NAMES): Likewise. | |
529 | (COFF_LONG_SECTION_NAMES_SETTER): Likewise. | |
530 | (COFF_DEFAULT_LONG_SECTION_NAMES): Likewise. | |
531 | (bfd_coff_set_long_section_names_allowed): New function. | |
532 | (bfd_coff_set_long_section_names_disallowed): Likewise. | |
533 | (struct bfd_coff_backend_data): Add new backend hook function | |
534 | pointer _bfd_coff_set_long_section_names. | |
535 | (bfd_coff_set_long_section_names): New backend hook. | |
536 | (coff_write_object_contents): Only generate long section names if | |
537 | bfd_coff_long_section_names() indicates they are currently enabled. | |
538 | (bfd_coff_std_swap_table): Make non-const, and initialise long | |
539 | section name fields using COFF_DEFAULT_LONG_SECTION_NAMES. | |
540 | (ticoff0_swap_table): Likewise to both. | |
541 | (ticoff1_swap_table): Again, likewise to both. | |
542 | * coffgen.c (make_a_section_from_file): Allow long section names | |
543 | as inputs even if not currently allowed for outputs. | |
544 | * ecoff.c (_bfd_ecoff_no_long_sections): New function. | |
545 | * efi-app-ia32.c (COFF_LONG_SECTION_NAMES): Define to 0, not blank. | |
546 | * efi-app-ia64.c (COFF_LONG_SECTION_NAMES): Likewise. | |
547 | * efi-app-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise. | |
548 | * efi-bsdrv-ia32.c (COFF_LONG_SECTION_NAMES): Likewise. | |
549 | * efi-bsdrv-ia64.c (COFF_LONG_SECTION_NAMES): Likewise. | |
550 | * efi-bsdrv-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise. | |
551 | * efi-rtdrv-ia32.c (COFF_LONG_SECTION_NAMES): Likewise. | |
552 | * efi-rtdrv-ia64.c (COFF_LONG_SECTION_NAMES): Likewise. | |
553 | * efi-rtdrv-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise. | |
554 | * pei-arm.c (COFF_LONG_SECTION_NAMES): Likewise. | |
555 | * pei-i386.c (COFF_LONG_SECTION_NAMES): Likewise. | |
556 | * pei-mcore.c (COFF_LONG_SECTION_NAMES): Likewise. | |
557 | * pei-mips.c (COFF_LONG_SECTION_NAMES): Likewise. | |
558 | * pei-ppc.c (COFF_LONG_SECTION_NAMES): Likewise. | |
559 | * pei-sh.c (COFF_LONG_SECTION_NAMES): Likewise. | |
560 | * pei-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise. | |
561 | * libcoff-in.h: Update copyright year to cause updated copyright | |
562 | year in generated libcoff.h, and fix typo. | |
563 | * libcoff.h: Regenerated. | |
564 | * libecoff.h (ECOFF_NO_LONG_SECTION_NAMES): New macro. | |
565 | (_bfd_ecoff_no_long_sections): Add prototype. | |
566 | * libxcoff.h (XCOFF_NO_LONG_SECTION_NAMES): New macro. | |
567 | * pe-mips.c (COFF_LONG_SECTION_NAMES): Define empty if not already | |
568 | defined by an including .c file. | |
569 | * ticoff.h (ticoff0_swap_table): Make non-const, and initialise | |
570 | long section name fields using COFF_DEFAULT_LONG_SECTION_NAMES. | |
571 | (ticoff1_swap_table): Likewise to both. | |
572 | ||
90d8a22c CL |
573 | 2009-02-18 Christophe Lyon <christophe.lyon@st.com> |
574 | ||
575 | * elf32-arm.c (arm_build_one_stub): Fix relocation target for pic | |
576 | stub. Catch default case error. | |
577 | (arm_map_one_stub): Add missing Thumb mapping symbol. | |
578 | ||
12123067 NC |
579 | 2009-02-18 Bjoern Haase <bjoern.m.haase@web.de> |
580 | ||
581 | PR 9841 | |
582 | * elf32-avr.c: Handle case where no local symbos exist correctly. | |
583 | ||
fea2b4d6 CL |
584 | 2009-02-16 Christophe Lyon <christophe.lyon@st.com> |
585 | ||
586 | bfd/ | |
587 | * elf32-arm.c (arm_long_branch_stub, | |
588 | arm_thumb_v4t_long_branch_stub, | |
589 | arm_thumb_thumb_long_branch_stub, | |
590 | arm_thumb_arm_v4t_long_branch_stub, | |
591 | arm_thumb_arm_v4t_short_branch_stub, | |
592 | arm_pic_long_branch_stub): | |
593 | Renamed to elf32_arm_stub_long_branch_any_any, | |
594 | elf32_arm_stub_long_branch_v4t_arm_thumb, | |
595 | elf32_arm_stub_long_branch_thumb_only, | |
596 | elf32_arm_stub_long_branch_v4t_thumb_arm, | |
597 | elf32_arm_stub_short_branch_v4t_thumb_arm, | |
598 | elf32_arm_stub_long_branch_any_any_pic. | |
599 | (arm_stub_long_branch, arm_thumb_v4t_stub_long_branch, | |
600 | arm_thumb_thumb_stub_long_branch, | |
601 | arm_thumb_arm_v4t_stub_long_branch, | |
602 | arm_thumb_arm_v4t_stub_short_branch, arm_stub_pic_long_branch): | |
603 | Renamed to arm_stub_long_branch_any_any, | |
604 | arm_stub_long_branch_v4t_arm_thumb, | |
605 | arm_stub_long_branch_thumb_only, | |
606 | arm_stub_long_branch_v4t_thumb_arm, | |
607 | arm_stub_short_branch_v4t_thumb_arm, | |
608 | arm_stub_long_branch_any_any_pic. | |
609 | ||
13e0a874 DA |
610 | 2009-02-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
611 | ||
612 | * elf-hppa.h (elf_hppa_final_link_relocate): Correct addend value used | |
613 | in branch offset check. | |
614 | ||
3a71aa26 AM |
615 | 2009-02-15 Alan Modra <amodra@bigpond.net.au> |
616 | ||
617 | * elf64-ppc.c (struct _ppc64_elf_section_data): Delete t_symndx, | |
618 | add toc.symndx and toc.add. | |
619 | (ppc64_elf_check_relocs): Don't set htab->tls_get_addr here. | |
620 | Set up toc.add. | |
621 | (get_tls_mask): Add toc_addend param, set from toc.add. Adjust all | |
622 | callers. | |
623 | (ppc64_elf_tls_setup): Set htab->tls_get_addr and tls_get_addr_fd. | |
624 | (branch_reloc_hash_match): New function, extracted from.. | |
625 | (ppc64_elf_tls_optimize): ..here. | |
626 | (ppc64_elf_relocate_section): Properly set addends when optimizing | |
627 | tls sequences. Avoid unnecessary reading and writing of insns. | |
628 | Only redo reloc when symbol changed. Bypass symbol checks when | |
629 | using tlsld_got. | |
630 | * elf32-ppc.c (ppc_elf_tls_setup): Correct comment. | |
631 | (branch_reloc_hash_match): New function, extracted from.. | |
632 | (ppc_elf_tls_optimize): ..here. | |
633 | (ppc_elf_relocate_section): Avoid unnecessary reading of insns. | |
634 | Don't clear addend on zapped __tls_get_addr reloc. | |
635 | ||
2c2b4ed4 NC |
636 | 2009-02-12 Nick Clifton <nickc@redhat.com> |
637 | ||
638 | PR 9827 | |
639 | * elflink.c (bfd_elf_final_link): When counting the relocations, | |
640 | if the header size has not been set yet then assume that it will | |
641 | match the output section's reloc type. | |
642 | ||
453f5985 NS |
643 | 2009-02-12 Nathan Sidwell <nathan@codesourcery.com> |
644 | ||
645 | * elf32-mips.c (mips_elf_final_gp): Don't add 0x4000 offset for | |
646 | relocatable link. | |
647 | ||
3209bffa AM |
648 | 2009-02-09 Alan Modra <amodra@bigpond.net.au> |
649 | ||
650 | * elf32-spu.c (spu_elf_find_overlays): Call bfd_set_error on errors. | |
651 | (find_function): Likewise. | |
652 | (pasted_function): Don't error if no prior function found. | |
653 | (discover_functions): Revert 2008-12-10 change. Extend first | |
654 | function range to start of section. | |
655 | ||
813c8a3c DA |
656 | 2009-02-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
657 | ||
658 | * elf64-hppa.c: Remove PARAMS macro. Replace PTR with void *. Convert | |
659 | functions to C90. | |
660 | * elf64-hppa.h: Likewise. | |
661 | ||
2d0f9ad9 JM |
662 | 2009-02-06 Joseph Myers <joseph@codesourcery.com> |
663 | ||
664 | * elfxx-mips.c (_bfd_mips_elf_section_processing): Remove special | |
665 | .sbss handling. | |
666 | ||
50e00962 AM |
667 | 2009-02-04 Alan Modra <amodra@bigpond.net.au> |
668 | ||
669 | * elf32-spu.c (spu_elf_build_stubs): Define __icache_neg_log2_linesize. | |
670 | Define __icache_ptr_handler*, not __icache_ptr___icache_bi_handler*. | |
671 | ||
52b6b6b9 JM |
672 | 2009-02-03 Sandip Matte <sandip@rmicorp.com> |
673 | ||
674 | * aoutx.h (NAME (aout, machine_type)): Handle bfd_mach_mips_xlr. | |
675 | * archures.c (bfd_mach_mips_xlr): Define. | |
676 | * bfd-in2.h: Regenerate. | |
677 | * cpu-mips.c (I_xlr): Define. | |
678 | (arch_info_struct): Add XLR entry. | |
679 | * elfxx-mips.c (_bfd_elf_mips_mach): Handle E_MIPS_MACH_XLR. | |
680 | (mips_set_isa_flags): Handle bfd_mach_mips_xlr | |
681 | (mips_mach_extensions): Add XLR entry. | |
682 | ||
654c3c9f EW |
683 | 2009-02-03 Eric B. Weddington <eric.weddington@atmel.com> |
684 | ||
685 | * elf32-avr.c (avr_final_link_relocate): Allow avr25 to wraparound. | |
686 | ||
31dd3154 JM |
687 | 2009-02-03 Carlos O'Donell <carlos@codesourcery.com> |
688 | ||
689 | * configure.in: AC_SUBST pdfdir. | |
690 | * Makefile.am: Add install-pdf, install-pdf-am | |
691 | and install-pdf-recursive targets. Define pdfdir. | |
692 | * doc/Makefile.am: Define pdf__strip_dir. Add | |
693 | install-pdf and install-pdf-am targets. | |
694 | * po/Make-in: Add install-pdf target. | |
695 | * configure: Regenerate. | |
696 | * Makefile.in: Regenerate | |
697 | * doc/Makefile.in: Regenerate. | |
698 | ||
cf869cce NC |
699 | 2009-02-03 Maxim Kuvyrkov <maxim@codesourcery.com> |
700 | ||
701 | * bfd-in2.h: Regenerate. | |
702 | * elf32-m68k.c: Handle 2-slot GOT entries. Rename variables and | |
703 | fields from n_entries to n_slots where appropriate, update comments. | |
704 | (HOWTO): Add TLS relocations. | |
705 | (reloc_map): Map BFD_RELOC_68K_TLS_* to R_68K_TLS_*. | |
706 | (enum elf_m68k_got_offset_size): New enum. | |
707 | (struct elf_m68k_got_entry.type): Move field to ... | |
708 | (struct elf_m68k_got_entry_key): ... here. Update all uses. | |
709 | (elf_m68k_reloc_got_type, elf_m68k_reloc_got_offset_size): New static | |
710 | functions. | |
711 | (elf_m68k_reloc_got_n_entries, elf_m68k_reloc_tls_p): New static | |
712 | functions. | |
713 | (struct elf_m68k_got): merge rel_8o_n_entries and rel_8o_16o_n_entries | |
714 | fields into n_entries array. Update comments. | |
715 | (elf_m68k_init_got): Simplify, update all uses. | |
716 | (elf_m68k_init_got_entry_key): Handle R_68K_TLS_LDM32 reloc, update. | |
717 | (ELF_M68K_REL_8O_MAX_N_ENTRIES_IN_GOT): Adjust to handle 2-slot | |
718 | GOT entries; update name, update all uses. | |
719 | (ELF_M68K_REL_8O_16O_MAX_N_ENTRIES_IN_GOT): Ditto. | |
720 | (elf_m68k_get_got_entry): Update. | |
721 | (elf_m68k_update_got_entry_type): Rewrite to handle TLS GOT entries, | |
722 | simplify. | |
723 | (elf_m68k_remove_got_entry_type): Simplify. | |
724 | (elf_m68k_add_entry_to_got, elf_m68k_can_merge_gots_1): Update. | |
725 | (elf_m68k_can_merge_gots): Update. | |
726 | (elf_m68k_merge_gots_1, elf_m68k_merge_gots): Update. | |
727 | (struct elf_m68k_finalize_got_offsets_arg): Rewrite to handle 2-slot | |
728 | GOT entries, simplify. | |
729 | (elf_m68k_finalize_got_offsets_1, elf_m68k_finalize_got_offsets): Same. | |
730 | (struct elf_m68k_partition_multi_got_arg): Add slots_relas_diff | |
731 | field, remove obsoleted local_n_entries field. | |
732 | (elf_m68k_partition_multi_got_2): New static function. | |
733 | (elf_m68k_partition_multi_got_1, elf_m68k_partition_multi_got): Use it; | |
734 | update. | |
735 | (elf_m68k_remove_got_entry_type): Update. | |
736 | (elf_m68k_install_rela, dtpoff_base, tpoff): New static functions. | |
737 | (elf_m68k_check_relocs): Handle TLS relocations. Remove unnecessary | |
738 | update of sgot->size and srelgot->size. | |
739 | (elf_m68k_gc_sweep_hook): Update. | |
740 | (elf_m68k_install_rela, dtpoff_base, tpoff): New static functions. | |
741 | (elf_m68k_relocate_section, elf_m68k_finish_dynamic_symbol): Handle | |
742 | TLS relocations. | |
743 | * reloc.c (BFD_RELOC_68K_TLS_*): Declare TLS relocations. | |
744 | * libbfd.h (bfd_reloc_code_real_names): Add BFD_RELOC_68K_TLS_*. | |
745 | ||
c1a0a41f DD |
746 | 2009-02-02 DJ Delorie <dj@redhat.com> |
747 | ||
748 | * elf32-mep.c (config_names): Regenerate configuration. | |
749 | ||
72a80a16 AM |
750 | 2009-02-02 Alan Modra <amodra@bigpond.net.au> |
751 | ||
752 | * elf-bfd.h (bfd_elf_get_str_section): Don't declare. | |
753 | (bfd_elf_find_section, _sh_elf_set_mach_from_flags): Likewise. | |
754 | * elf.c (bfd_elf_get_str_section): Make static. | |
755 | (bfd_elf_find_section): Delete. | |
756 | * libbfd.h: Regenerate. | |
757 | ||
273f4430 JK |
758 | 2009-02-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
759 | ||
760 | * elf-eh-frame.c (REQUIRE_CLEARED_RELOCS) Remove. | |
761 | (_bfd_elf_parse_eh_frame): Do not check relocations for removed FDEs. | |
762 | ||
010e5ae2 AM |
763 | 2009-01-31 Alan Modra <amodra@bigpond.net.au> |
764 | ||
765 | * elflink.c (on_needed_list): New function. | |
766 | (elf_link_add_object_symbols): Link in --as-needed libs if they | |
767 | satisfy undefined symbols in other libs. | |
768 | ||
33a7ffc2 JM |
769 | 2009-01-30 Julian Brown <julian@codesourcery.com> |
770 | ||
771 | * elf32-arm.c (bfd_elf32_arm_vfp11_erratum_scan): Skip BFDs with | |
772 | EXEC_P or DYNAMIC flags, and skip sections which are being linked | |
773 | with --just-symbols (-R). | |
774 | ||
13d72a14 AN |
775 | 2009-01-29 Adam Nemet <anemet@caviumnetworks.com> |
776 | ||
777 | * dwarf2.c (read_rangelist): Use read_address to read low_pc and | |
778 | high_pc in order to properly sign-extend VMAs. | |
779 | ||
d334575b JM |
780 | 2009-01-29 Daniel Jacobowitz <dan@codesourcery.com> |
781 | Mark Shinwell <shinwell@codesourcery.com> | |
782 | Catherine Moore <clm@codesourcery.com> | |
783 | ||
784 | * elf-attrs.c, elflink.c, elfxx-mips.c: Correct typos in comments. | |
785 | ||
528aeb62 CM |
786 | 2009-01-28 Catherine Moore <clm@codesourcery.com> |
787 | ||
788 | * elf32-arm.c (elf32_arm_check_relocs): Set SEC_ALLOC and | |
789 | SEC_LOAD for dynamic relocation sections. | |
790 | ||
f6f05983 HPN |
791 | 2009-01-27 Hans-Peter Nilsson <hp@axis.com> |
792 | ||
793 | * elf32-cris.c (cris_elf_relocate_section): Use elf_hash_table | |
794 | (info)->tls_size, not elf_hash_table (info)->tls_sec->size for | |
795 | the size of local TLS data. | |
796 | ||
27cc28f9 AS |
797 | 2009-01-27 Andreas Schwab <schwab@suse.de> |
798 | ||
799 | * mach-o.c (bfd_mach_o_archive_p): Restrict the number of | |
800 | architectures in the archive. | |
801 | ||
b3bf42d8 HPN |
802 | 2009-01-27 Hans-Peter Nilsson <hp@axis.com> |
803 | ||
f551b6f0 HPN |
804 | * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_16_DTPREL> |
805 | <R_CRIS_32_DTPREL>: Correct relocation value. | |
806 | ||
b3bf42d8 HPN |
807 | * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_8> |
808 | <R_CRIS_16, R_CRIS_32>: Don't call BFD_ASSERT for weak undefined | |
809 | symbols with non-default visibility. | |
810 | ||
9bc4e62b NS |
811 | 2009-01-26 Nathan Sidwell <nathan@codesourcery.com> |
812 | ||
813 | * elf32-ppc.c (ppc_elf_relax_section): Add space for relocs | |
814 | describing the trampolines. | |
815 | (ppc_elf_relocate_section): Update relocs to describe the | |
816 | trampolines. | |
817 | ||
aeaf6540 DA |
818 | 2009-01-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
819 | ||
820 | * elf-hppa.h (elf_hppa_final_link_relocate): Add check to ensure that | |
821 | branch targets can be reached for R_PARISC_PCREL22F, R_PARISC_PCREL17F | |
822 | and R_PARISC_PCREL12F relocations. | |
823 | ||
1e8fa21e AM |
824 | 2009-01-24 Alan Modra <amodra@bigpond.net.au> |
825 | ||
826 | PR 6022 | |
827 | * elflink.c (find_version_for_sym): New function split out from, | |
828 | but without export_dynamic test, .. | |
829 | (_bfd_elf_link_assign_sym_version): ..here. | |
830 | (_bfd_elf_export_symbol): Use it. | |
831 | ||
28caa186 AM |
832 | 2009-01-23 Alan Modra <amodra@bigpond.net.au> |
833 | ||
834 | * elf-bfd.h (struct elf_assign_sym_version_info): Delete. | |
835 | (struct elf_info_failed, struct elf_find_verdep_info): Move to.. | |
836 | * elflink.c: ..here, somewhat modified. | |
837 | * elf-bfd.h (_bfd_elf_add_default_symbol, _bfd_elf_export_symbol, | |
838 | _bfd_elf_link_find_version_dependencies, | |
839 | _bfd_elf_link_assign_sym_version, _bfd_elf_link_size_reloc_section, | |
840 | _bfd_elf_fix_symbol_flags, _bfd_elf_adjust_dynamic_symbol, | |
841 | _bfd_elf_link_sec_merge_syms, bfd_elf_link_mark_dynamic_symbol): Don't | |
842 | declare.. | |
843 | * elflink.c: ..and make static here. | |
844 | (_bfd_elf_link_find_version_dependencies): Adjust for removal | |
845 | of output_bfd from struct elf_find_verdep_info. | |
846 | (_bfd_elf_link_assign_sym_version): Similarly adjust to use | |
847 | struct elf_info_failed. | |
848 | (bfd_elf_size_dynamic_sections): Adjust. | |
849 | ||
be04437d AM |
850 | 2009-01-22 Alan Modra <amodra@bigpond.net.au> |
851 | ||
852 | PR 6832 | |
853 | * dwarf2.c (find_line): Don't update stash->sec_info_ptr until | |
854 | after comp_unit_find_line call. | |
855 | ||
58f9615c NC |
856 | 2009-01-21 Nick Clifton <nickc@redhat.com> |
857 | ||
858 | PR 9769 | |
859 | * vmsutil.c (vms_file_stats_name): Remove use of unsupported | |
860 | tm_gmtoff field in struct tm. | |
861 | ||
fb266b8b AM |
862 | 2009-01-21 Alan Modra <amodra@bigpond.net.au> |
863 | ||
864 | * elf32-spu.h (struct spu_elf_params): Add non_ia_text. | |
865 | * elf32-spu.c (mark_overlay_section): Only include .text.ia.* | |
866 | sections in soft-icache lines unless non_ia_text. Don't add | |
867 | rodata if doing so would exceed line size. | |
868 | ||
451ffe63 HPN |
869 | 2009-01-19 Hans-Peter Nilsson <hp@axis.com> |
870 | ||
871 | * elf32-cris.c (elf_cris_copy_indirect_symbol): For other symbol | |
872 | types than bfd_link_hash_indirect, before early return, call | |
873 | _bfd_elf_link_hash_copy_indirect. | |
874 | ||
5aa6ff7c AS |
875 | 2009-01-19 Andrew Stubbs <ams@codesourcery.com> |
876 | ||
877 | * elf-attrs.c (vendor_set_obj_attr_contents): Support tag ordering. | |
878 | * elf-bfd.h (elf_backend_data): Add obj_attrs_order. | |
879 | * elf32-arm.c (elf32_arm_obj_attrs_order): New function. | |
880 | (elf_backend_obj_attrs_order): New define. | |
881 | * elfxx-target.h (elf_backend_obj_attrs_order): New define. | |
882 | (elfNN_bed): Add elf_backend_obj_attrs_order. | |
883 | ||
3483fe2e AS |
884 | 2009-01-19 Andrew Stubbs <ams@codesourcery.com> |
885 | ||
886 | * elf-attrs.c (is_default_attr): Substitute magic numbers with macros. | |
887 | (obj_attr_size): Likewise. | |
888 | (write_obj_attribute): Likewise. | |
889 | (_bfd_elf_copy_obj_attributes): Likewise. | |
890 | (_bfd_elf_parse_attributes): Likewise. | |
891 | * elf-bfd.h (ATTR_TYPE_FLAG_INT_VAL): New define. | |
892 | (ATTR_TYPE_FLAG_STR_VAL, ATTR_TYPE_FLAG_NO_DEFAULT): New defines. | |
893 | (ATTR_TYPE_HAS_INT_VAL, ATTR_TYPE_HAS_STR_VAL): New defines. | |
894 | (ATTR_TYPE_HAS_NO_DEFAULT): New define. | |
895 | * elf32-arm.c (elf32_arm_obj_attrs_arg_type): Replace magic numbers | |
896 | with macros. | |
897 | ||
2d0bb761 AS |
898 | 2009-01-19 Andrew Stubbs <ams@codesourcery.com> |
899 | ||
900 | * elf-attrs.c (is_default_attr): Support defaultless attributes. | |
901 | (bfd_elf_add_obj_attr_int): Get type from _bfd_elf_obj_attrs_arg_type. | |
902 | (bfd_elf_add_obj_attr_string): Likewise. | |
903 | (bfd_elf_add_obj_attr_int_string): Likewise. | |
904 | (_bfd_elf_parse_attributes): Allow for unknown flag bits in type. | |
905 | * elf-bfd.h (struct obj_attribute): Document new flag bit. | |
906 | * elf32-arm.c (elf32_arm_obj_attrs_arg_type): Specify that | |
907 | Tag_nodefaults has no default value. | |
908 | (elf32_arm_merge_eabi_attributes): Modify the Tag_nodefaults | |
909 | comment to reflect the new state. | |
910 | ||
a77e83b7 AM |
911 | 2009-01-19 Alan Modra <amodra@bigpond.net.au> |
912 | ||
913 | PR 9695 | |
914 | * pdp11.c (N_BADMAG): True for anything but OMAGIC, NMAGIC, ZMAGIC. | |
915 | (some_aout_object_p): Delete dead code handling QMAGIC and BMAGIC. | |
916 | (adjust_z_magix): Delete dead code handling QMAGIC. | |
917 | ||
f6d29e26 KT |
918 | 2009-01-16 Kai Tietz <kai.tietz@onevision.com> |
919 | ||
920 | * coffcode.h (styp_to_sec_flags): Correct interpretation of | |
921 | IMAGE_SCN_MEM_DISCARDABLE. | |
922 | ||
29670fb9 AM |
923 | 2009-01-16 Alan Modra <amodra@bigpond.net.au> |
924 | ||
925 | * Makefile.am (libbfd_la_LIBADD, libbfd_la_LDFLAGS): Substitute | |
926 | SHARED_LIBADD and SHARED_LDFLAGS rather than WIN32LIBADD, WIN32LDFLAGS. | |
927 | * configure.in (commonbfdlib): Delete. | |
928 | (SHARED_LDFLAGS): Rename from WIN32LDFLAGS/ | |
929 | (SHARED_LIBADD): Rename from WIN32LIBADD. Add pic libiberty if such | |
930 | is available, not just for linux. | |
931 | * po/SRC-POTFILES.in: Regenerate. | |
932 | * Makefile.in: Regenerate. | |
933 | * configure: Regenerate. | |
934 | ||
91e22acd AS |
935 | 2009-01-15 Andrew Stubbs <ams@codesourcery.com> |
936 | Julian Brown <julian@codesourcery.com> | |
937 | ||
938 | * elf-bfd.h (NUM_KNOWN_OBJ_ATTRIBUTES): Set to 71 to include all known | |
939 | ARM attributes in ABI 2.07. | |
940 | * elf32-arm.c (get_secondary_compatible_arch): New function. | |
941 | (set_secondary_compatible_arch): New function. | |
942 | (tag_cpu_arch_combine): New function. | |
943 | (elf32_arm_copy_one_eabi_other_attribute): Delete function. | |
944 | (elf32_arm_copy_eabi_other_attribute_list): Delete function. | |
945 | (elf32_arm_merge_eabi_attributes): Rename order_312 to order_021 to | |
946 | make it fit with order_01243. | |
947 | Add support for Tag_also_compatible_with, | |
948 | Tag_CPU_unaligned_access, Tag_T2EE_use, Tag_Virtualization_use, | |
949 | Tag_MPextension_use, Tag_nodefaults and Tag_conformance. | |
950 | Improve/tidy up support for Tag_CPU_raw_name, Tag_CPU_name, | |
951 | Tag_CPU_arch, Tag_ABI_HardFP_use, Tag_VFP_HP_extension, | |
952 | Tag_ABI_FP_denormal, Tag_ABI_PCS_GOT_use, Tag_ABI_align8_needed, | |
953 | Tag_VFP_arch and Tag_ABI_FP_16bit_format. | |
954 | Rework the way unknown attributes are handled. | |
955 | Defer errors until all attributes have been processed. | |
956 | ||
7b86a9fa AS |
957 | 2009-01-15 Andrew Stubbs <ams@codesourcery.com> |
958 | ||
959 | * elf-attrs.c (bfd_elf_add_obj_attr_compat): Rename to | |
960 | bfd_elf_add_obj_attr_int_string. | |
961 | Read Tag_compatibility from its new location in the attribute array, | |
962 | rather than the attribute list. | |
963 | (_bfd_elf_copy_obj_attributes): bfd_elf_add_obj_attr_compat -> | |
964 | bfd_elf_add_obj_attr_int_string. | |
965 | (_bfd_elf_parse_attributes): Likewise. | |
966 | (_bfd_elf_merge_object_attributes): There's now only one | |
967 | Tag_compatibility, and it's in the array, not the list. | |
968 | * elf-bfd.h (NUM_KNOWN_OBJ_ATTRIBUTES): Set to 33 to include | |
969 | Tag_compatibility. | |
970 | (bfd_elf_add_obj_attr_compat): Rename to | |
971 | bfd_elf_add_obj_attr_int_string. | |
972 | (bfd_elf_add_proc_attr_compat): Rename to | |
973 | bfd_elf_add_proc_attr_int_string. | |
974 | * elf32-arm.c (elf32_arm_merge_eabi_attributes): Explicitly don't handle | |
975 | Tag_compatibility. | |
976 | ||
01e1a5bc NC |
977 | 2009-01-15 Douglas B Rupp <rupp@gnat.com> |
978 | ||
979 | * Makefile.am (BFD32_BACKENDS): Add new object vmsutil.lo | |
980 | (BFD32_BACKENDS_CFILES): Add new file vmsutil.c | |
981 | (vmsutil.lo): Add dependency rule. | |
982 | * Makefile.in: Regenerate. | |
983 | * config.bfd (ia64*-*-*vms*): Add case. | |
984 | * configure.in (bfd_elf64_ia64_vms_vec): Add case. | |
985 | * configure: Regenerate. | |
986 | * vmsutil.c: New file. | |
987 | * vmsutil.h: New file. | |
988 | * elf-bfd.h (struct bfd_elf_special_section): Change type of | |
989 | attr to bfd_vma. | |
990 | * elfxx-ia64.c (elfNN_vms_post_process_headers, | |
991 | elfNN_vms_section_processing, elfNN_vms_final_write_processing, | |
992 | elfNN_vms_close_and_cleanup, elfNN_vms_section_from_shdr, | |
993 | elfNN_vms_object_p): New functions | |
994 | * targets.c (bfd_elf64_ia64_vms_vec): New target. | |
995 | ||
a33dafc3 L |
996 | 2009-01-14 H.J. Lu <hongjiu.lu@intel.com> |
997 | ||
998 | PR ld/9727 | |
999 | * elflink.c (elf_gc_sweep): Exclude the group section if the | |
1000 | first member of the section group is excluded. | |
1001 | ||
13c0e967 AM |
1002 | 2009-01-14 Alan Modra <amodra@bigpond.net.au> |
1003 | ||
1004 | PR 9735 | |
1005 | * syms.c (_bfd_stab_section_find_nearest_line): Don't free | |
1006 | saved filename, use bfd_alloc rather than bfd_malloc for it. | |
1007 | ||
460e679b AM |
1008 | 2009-01-13 Alan Modra <amodra@bigpond.net.au> |
1009 | ||
1010 | * elf32-spu.c (spu_elf_build_stubs): Make __icache_base absolute. | |
1011 | ||
25076afa AM |
1012 | 2009-01-13 Alan Modra <amodra@bigpond.net.au> |
1013 | ||
1014 | * elf32-spu.c (remove_cycles): Always set call->max_depth. | |
1015 | ||
37107878 AM |
1016 | 2009-01-12 Alan Modra <amodra@bigpond.net.au> |
1017 | ||
1018 | * elf32-spu.c (spu_elf_auto_overlay): Correct vma mask. | |
1019 | ||
cd4a7468 AM |
1020 | 2009-01-12 Alan Modra <amodra@bigpond.net.au> |
1021 | ||
1022 | * elf32-spu.c (struct spu_link_hash_table): Add init, line_size_log2, | |
1023 | num_lines_log2. | |
1024 | (struct got_entry): Add br_addr. | |
1025 | (struct call_info): Add priority. | |
1026 | (struct function_info): Add lr_store and sp_adjust. | |
1027 | (spu_elf_setup): Init line_size_log2 and num_lines_log2. | |
1028 | (spu_elf_find_overlays): For soft-icache, mark any section within cache | |
1029 | area as an overlay, and check that no other overlays exist. Look up | |
1030 | icache overlay manager entry sym. | |
1031 | (BRA_STUBS, BRA, BRASL): Define. | |
1032 | (enum _stub_type): Replace ovl_stub with call_ovl_stub and br*_ovl_stub. | |
1033 | (needs_ovl_stub): Adjust for soft-icache. Return priority encoded | |
1034 | in branch insn. | |
1035 | (count_stub, build_stub): Support soft-icache. | |
1036 | (build_spuear_stubs, process_stubs): Adjust build_stub call. | |
1037 | (spu_elf_size_stubs): Size soft-icache stubs. | |
1038 | (overlay_index): New function. | |
1039 | (spu_elf_build_stubs): Make static. Support soft-icache. | |
1040 | (spu_elf_check_vma): Don't turn off auto_overlay if soft-icache. | |
1041 | (find_function_stack_adjust): Save lr store and stack adjust insn | |
1042 | offsets. | |
1043 | (maybe_insert_function): Adjust find_function_stack_adjust call. | |
1044 | (mark_functions_via_relocs): Retrieve priority. | |
1045 | (remove_cycles): Only warn about pruned arcs when stack_analysis. | |
1046 | (sort_calls): Sort by priority first. | |
1047 | (mark_overlay_section): Ignore .ovl.init. | |
1048 | (sum_stack): Only print when stack_analysis. | |
1049 | (print_one_overlay_section): New function, extracted from.. | |
1050 | (spu_elf_auto_overlay): ..here. Support soft-icache overlays. | |
1051 | (spu_elf_stack_analysis): Only print when htab->stack_analysis. | |
1052 | (spu_elf_final_link): Call spu_elf_stack_analysis for lrlive | |
1053 | analysis. Call spu_elf_build_stubs. | |
1054 | (spu_elf_relocate_section): For soft-icache encode overlay index | |
1055 | into addresses. | |
1056 | (spu_elf_output_symbol_hook): Support soft-icache. | |
1057 | (spu_elf_modify_program_headers: Likewise. | |
37107878 | 1058 | |
cd4a7468 AM |
1059 | * elf32-spu.h (struct spu_elf_params): Add lrlive_analysis. Rename |
1060 | num_regions to num_lines. Add line_size and max_branch. | |
1061 | (enum _ovly_flavour): Add ovly_soft_icache. | |
1062 | (spu_elf_build_stubs): Delete. | |
1063 | ||
80c29487 JK |
1064 | 2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
1065 | ||
1066 | * elflink.c (_bfd_elf_section_already_linked): Handle g++-3.4 | |
1067 | relocations in `.gnu.linkonce.r.*' referencing its `.gnu.linkonce.t.*'. | |
1068 | ||
1bc86aea HPN |
1069 | 2009-01-07 Hans-Peter Nilsson <hp@axis.com> |
1070 | ||
1071 | * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD> | |
1072 | <case R_CRIS_16_GOT_GD, R_CRIS_32_GOT_GD>: For a symbol defined in | |
1073 | the program, the known offset starts at the negative size of the | |
1074 | TLS section. | |
1075 | <case R_CRIS_32_IE, R_CRIS_32_GOT_TPREL, R_CRIS_16_GOT_TPREL>: | |
1076 | Similar. | |
1077 | ||
3baa454d | 1078 | 2009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com> |
75606e85 | 1079 | |
3baa454d | 1080 | * config.bfd: Add lm32-*-rtems*. |
75606e85 | 1081 | |
9dbe8890 L |
1082 | 2009-01-03 H.J. Lu <hongjiu.lu@intel.com> |
1083 | ||
1084 | * coff-ppc.c: Add 2009 to Copyright. | |
1085 | * elf32-cris.c: Likewise. | |
1086 | * elflink.c: Likewise. | |
1087 | ||
0bdf8d40 HPN |
1088 | 2009-01-03 Hans-Peter Nilsson <hp@axis.com> |
1089 | ||
1090 | * elf32-cris.c (elf_cris_finish_dynamic_symbol): Rename | |
1091 | gotplt_index to rela_plt_index. Adjust for R_CRIS_DTPMOD entry. | |
1092 | ||
54ac0771 L |
1093 | 2009-01-02 H.J. Lu <hongjiu.lu@intel.com> |
1094 | ||
1095 | PR ld/9679 | |
1096 | * elflink.c (elf_merge_st_other): New. | |
1097 | (_bfd_elf_merge_symbol): Use it on skipped weak definitions and | |
1098 | hide them if needed. | |
1099 | (elf_link_add_object_symbols): Updated. | |
1100 | ||
d8880531 L |
1101 | 2009-01-02 H.J. Lu <hongjiu.lu@intel.com> |
1102 | ||
1103 | PR ld/9676 | |
1104 | * elflink.c (elf_link_add_object_symbols): Update def_dynamic, | |
1105 | ref_dynamic and dynamic_def fields when setting def_regular | |
1106 | to 1. | |
1107 | ||
b70b5c14 NC |
1108 | 2009-01-02 Curtis Mackie <curtmackevo@gmail.com> |
1109 | ||
1110 | PR 9682 | |
1111 | * coff-ppc.c (dump_toc): Fix up calls to fprintf without a string | |
1112 | literal. | |
1113 | ||
d8880531 | 1114 | For older changes see ChangeLog-2008 |
56882138 AM |
1115 | \f |
1116 | Local Variables: | |
1117 | mode: change-log | |
1118 | left-margin: 8 | |
1119 | fill-column: 74 | |
1120 | version-control: never | |
1121 | End: |