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