]>
Commit | Line | Data |
---|---|---|
f56d634e ILT |
1 | Fri Mar 14 16:43:22 1997 Ian Lance Taylor <[email protected]> |
2 | ||
3 | * elfcode.h (elf_slurp_symbol_table): Don't try to read the | |
4 | version symbols if there aren't any. | |
5 | ||
4507d858 FF |
6 | start-sanitize-tic80 |
7 | Thu Mar 13 16:38:30 1997 Fred Fish <[email protected]> | |
8 | ||
9 | * coff-tic80.c (coff_rtype_to_howto): Define | |
10 | (coff_tic80_rtype_to_howto): Clone generic coff version and | |
11 | add code to handle the funky TI "internal relocations". | |
12 | ||
13 | end-sanitize-tic80 | |
94ba939a ILT |
14 | Thu Mar 13 14:08:53 1997 Ian Lance Taylor <[email protected]> |
15 | ||
37897db0 ILT |
16 | * elflink.h (elf_link_add_object_symbols): Don't warn about type |
17 | or size changes because of a weak symbol. | |
18 | ||
94ba939a ILT |
19 | * cisco-core.c (SIGEMT): Define if not defined. |
20 | ||
e549b1d2 ILT |
21 | Wed Mar 12 21:36:05 1997 Ian Lance Taylor <[email protected]> |
22 | ||
23 | * elflink.h (elf_link_add_object_symbols): Use extsymoff when | |
24 | setting ever. Sanity check the version number. Sort out copying | |
25 | flags and other information when adding an indirect symbol. | |
26 | (NAME(bfd_elf,size_dynamic_sections)): Preserve any dynamic | |
27 | symbols added by the backend. Clear the entire contents of the | |
28 | versym section. | |
29 | (elf_export_symbol): Ignore indirect symbols. | |
30 | (elf_link_output_extsym): Accept a section without an owner in an | |
31 | assert. | |
32 | * elfcode.h (elf_slurp_symbol_table): Add a sanity check on the | |
33 | version count. Correct the allocation of x_versymp. | |
34 | ||
35 | * elf32-mips.c (mips_elf_add_symbol_hook): Don't set the owner of | |
36 | the magic sections used for SHN_MIPS_TEXT and SHN_MIPS_DATA. | |
37 | Don't return bfd_und_section_ptr when info->shared. | |
38 | (mips_elf_final_link): Set the alignment of .rtproc to 4, not 12. | |
39 | (mips_elf_create_dynamic_sections): Correct type: ^= for &=. | |
40 | (mips_elf_check_relocs): Resolve an indirect symbol in | |
41 | sym_hashes. | |
42 | (mips_elf_finish_dynamic_symbol): Don't change SHN_ABS into | |
43 | SHN_MIPS_TEXT or SHN_MIPS_DATA. | |
44 | ||
45 | * elf.c (bfd_elf_print_symbol): Tweak version output slightly. | |
46 | ||
47 | Tue Mar 11 01:38:36 1997 Ian Lance Taylor <[email protected]> | |
48 | ||
49 | From Eric Youngdale <[email protected]>: | |
50 | * elf-bfd.h (ELF_LINK_FORCED_LOCAL): Define. | |
51 | * elf.c (bfd_elf_print_symbol): Correct errors in last change. | |
52 | * elflink.h (elf_link_add_object_symbols): Handle cases in which a | |
53 | versioned symbol appears in both a regular and a shared object. | |
54 | (elf_link_assign_sym_version): Set ELF_LINK_FORCED_LOCAL when | |
55 | appropriate. Improve error message. | |
56 | (struct elf_outext_info): Rename from elf_finfo_failed. Change | |
57 | all uses. Add localsyms field. | |
58 | (elf_bfd_final_link): When generating a shared library, call | |
59 | elf_link_output_extsym to output all local symbols. | |
60 | (elf_link_output_extsym): Handle symbols which were forced to | |
61 | become local. | |
62 | ||
d6bfcdb5 ILT |
63 | Sun Mar 9 23:08:49 1997 Ian Lance Taylor <[email protected]> |
64 | ||
65 | From Eric Youngdale <[email protected]>: | |
66 | * elf-bfd.h (elf_symbol_type): Add version field. | |
67 | * elfcode.h (elf_slurp_symbol_table): Set version field. | |
68 | * elflink.h (elf_link_add_object_symbols): When creating an | |
69 | indirect symbol for a default version symbol, set DEF_DYNAMIC if | |
70 | appropriate. Set up an indirection from the nondefault version of | |
71 | the symbol as well. | |
72 | (NAME(bfd_elf,size_dynamic_sections)): Call | |
73 | elf_link_assign_sym_version before checking whether there are any | |
74 | versions. Always record the version name as a dynamic symbol. | |
75 | Initialize counters. | |
76 | (elf_link_assign_sym_version): After finding a version, see if a | |
77 | symbol should be forced to local scope. Create a new version | |
78 | definition if appropriate. | |
79 | (elf_link_output_extsym): Correct indirect symbol handling. | |
80 | * elf.c (bfd_elf_print_symbol): Print version information. | |
81 | (bfd_section_from_shdr): Turn version sections into BFD sections. | |
82 | (elf_fake_sections): Only copy cverdefs and cverrefs into sh_info | |
83 | if sh_info is not already set. | |
84 | (_bfd_elf_copy_private_section_data): Copy sh_info for version | |
85 | sections. | |
86 | * elflink.c (_bfd_elf_link_record_dynamic_symbol): Tell | |
87 | _bfd_stringtab_add to copy the name into permanent memory if | |
88 | appropriate. | |
89 | ||
7debe20c ILT |
90 | Fri Mar 7 11:55:31 1997 H.J. Lu <[email protected]> |
91 | ||
92 | * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Fully parenthesize. | |
93 | ||
358bb592 ILT |
94 | Fri Mar 7 10:37:30 1997 Ian Lance Taylor <[email protected]> |
95 | ||
ccd0e5e2 ILT |
96 | * coffcode.h (bfd_coff_backend_data): Change |
97 | _bfd_coff_compute_section_file_positions to return a boolean | |
98 | value. Change all callers. | |
99 | (coff_compute_section_file_positions): Change return type to | |
100 | boolean. If the size of the last section changed, then output a | |
101 | zero byte at the end of the file. | |
102 | * libcoff.h: Rebuild. | |
103 | ||
e8c4696e ILT |
104 | * xcofflink.c (_bfd_xcoff_bfd_final_link): Always allocate space |
105 | for at least 6 output symbols. | |
106 | (xcoff_write_global_symbol): When emitting TOC entry relocs, also | |
107 | emit a TC csect to represent the space they take up. For an XO | |
108 | symbol, just emit a reference, not a csect. | |
109 | ||
4104dff6 ILT |
110 | * Makefile.in ($(SHLINK)): Just use ln -s, not ln -sf, since |
111 | Solaris doesn't like the combined options, and the -f is | |
112 | unnecessary. | |
5bd7c941 | 113 | (stamp-tshlink, install): Likewise. |
4104dff6 | 114 | |
358bb592 ILT |
115 | * elf32-mips.c (mips_elf_relocate_section): Correct R_MIPS16_26 |
116 | handling when little endian. | |
117 | ||
77bf22e6 JL |
118 | Thu Mar 6 13:51:51 1997 Jeffrey A Law ([email protected]) |
119 | ||
5847e6dd JL |
120 | * elf32-mn10300.c (mn10300_elf_final_link_relocate): New function. |
121 | (mn10300_elf_relocate_section): Likewise. | |
122 | (elf_backend_relocate_section): Define. | |
123 | ||
77bf22e6 JL |
124 | * elf32-mn10300.c (reloc_type): Remove PCREL{8,16,32}_{1,2}BYTE |
125 | relocs. Replace them with generic PCREL_{8,16,32} relocs. | |
126 | (elf32_mn10300_howto_table): Likewise. | |
127 | (elf32_mn10300_reloc_map): Likewise. | |
128 | (bfd_elf32_mn10300_reloc): Delete unused function. | |
129 | ||
13b58694 FF |
130 | Thu Mar 6 12:19:59 1997 Fred Fish <[email protected]> |
131 | ||
132 | start-sanitize-tic80 | |
133 | * coff-tic80.c (rtype2howto): If passed a relocation type we don't | |
134 | understand, just set the howto field to NULL, and the caller will | |
135 | print an appropriate error message. | |
136 | end-sanitize-tic80 | |
137 | * coffcode.h (coff_slurp_reloc_table): Pull duplicate declarations and | |
138 | code fragment out of both legs of #ifdef RELOC_PROCESSING ... #endif | |
139 | block. Use NULL for initializations of "ptr" rather than bare 0. | |
140 | * coff-h8300.c: Fix typo in comment. | |
141 | * coff-h8500.c: Ditto. | |
142 | * coff-w65.c: Ditto | |
143 | * coff-z8k.c: Ditto. | |
144 | ||
da171461 DE |
145 | start-sanitize-m32r |
146 | Wed Mar 5 13:59:09 1997 Doug Evans <[email protected]> | |
147 | ||
148 | * elf32-m32r.c (m32r_elf_do_10_pcrel_reloc): Fix overflow calc. | |
149 | (m32r_elf_relax_section, m32r_elf_relax_delete_bytes, | |
150 | m32r_elf_get_relocated_section_contents): First pass at relax support. | |
151 | ||
152 | end-sanitize-m32r | |
153 | Mon Mar 3 13:27:09 1997 Ulrich Drepper <[email protected]> | |
154 | ||
155 | * elflink.h (elf_link_add_object_symbols): Use correct sh_size | |
156 | entry for reading verdef records. | |
157 | Use correct braces for computing increments of extverdaux and | |
158 | exteverdef record pointers. | |
159 | ||
4b4ac3ae FF |
160 | start-sanitize-tic80 |
161 | Sun Mar 2 22:47:54 1997 Fred Fish <[email protected]> | |
162 | ||
163 | * coff-tic80.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Set this to 2 | |
164 | instead of 4. | |
165 | ||
166 | end-sanitize-tic80 | |
a48ef404 ILT |
167 | Sun Mar 2 16:25:35 1997 Ian Lance Taylor <[email protected]> |
168 | ||
169 | * elflink.h (elf_link_find_version_dependencies): Check that | |
170 | DEF_REGULAR is not set as well as checking that DEF_DYNAMIC is | |
171 | set. | |
172 | ||
84fd6e7e FF |
173 | start-sanitize-tic80 |
174 | Fri Feb 28 16:52:40 1997 Fred Fish <[email protected]> | |
175 | ||
176 | * coffcode.h (coff_set_flags): Add case for TIC80_ARCH_MAGIC. | |
177 | ||
178 | end-sanitize-tic80 | |
af4dffff ILT |
179 | Fri Feb 28 15:06:45 1997 Ian Lance Taylor <[email protected]> |
180 | ||
73769e1f ILT |
181 | * targets.c (bfd_default_vector): Make non-const. |
182 | (find_target): New static function, broken out of | |
183 | bfd_find_target. | |
184 | (bfd_set_default_target): New function. | |
185 | (bfd_find_target): Call find_target. When defaulting, use | |
186 | bfd_default_vector[0] if it is not NULL. | |
187 | * libbfd-in.h (bfd_default_vector): Adjust declaration. | |
188 | * bfd-in2.h, libbfd.h: Rebuild. | |
189 | ||
af4dffff ILT |
190 | * syms.c (bfd_is_local_label): Return false if the symbol has no |
191 | name. | |
192 | * coff-i960.c (coff_i960_is_local_label_name): New function. | |
193 | (coff_bfd_is_local_label_name): Define. | |
194 | * coff-m68k.c (m68k_coff_is_local_label_name): New function. | |
195 | (coff_bfd_is_local_label_name): Define. | |
196 | * coff-rs6000.c (xcoff_is_local_label_name): New function. | |
197 | (coff_bfd_is_local_label_name): Define. | |
198 | * elf.c (_bfd_elf_is_local_label_name): Treat symbols beginning | |
199 | with .. or _.L_ as local. | |
200 | * elf32-i386.c (elf_i386_is_local_label_name): New function. | |
201 | (bfd_elf32_bfd_is_local_label_name): Define. | |
202 | * evax-alpha.c (evax_bfd_is_local_label_name): Treat symbols | |
203 | beginning with $ as local. | |
204 | ||
85d6f0b4 ILT |
205 | Thu Feb 27 18:36:23 1997 Ian Lance Taylor <[email protected]> |
206 | ||
e316f514 ILT |
207 | * aoutx.h (aout_link_write_symbols): Use bfd_is_local_label_name |
208 | rather than comparing against info->lprefix. | |
209 | * cofflink.c (_bfd_coff_link_input_bfd): Likewise. | |
210 | * elflink.h (elf_link_input_bfd): Likewise. | |
211 | * linker.c (_bfd_generic_link_output_symbols): Likewise. | |
212 | * xcofflink.c (xcoff_link_input_bfd): Likewise. | |
213 | ||
214 | * elfxx-target.h (bfd_elfNN_bfd_is_local_label_name): Define as | |
215 | _bfd_elf_is_local_label_name if not already defined. | |
216 | * elf.c (_bfd_elf_is_local_label_name): New function. | |
217 | * elf-bfd.h (_bfd_elf_is_local_label_name): Declare. | |
218 | ||
219 | * coff-m88k.c (coff_bfd_is_local_label_name): Define. | |
220 | (m88k_is_local_label_name): New static function. | |
221 | ||
222 | * coffcode.h (coff_bfd_is_local_label_name): Define as | |
223 | _bfd_coff_is_local_label_name if not already defined. | |
224 | * coffgen.c (_bfd_coff_is_local_label_name): New function. | |
225 | * libcoff-in.h (_bfd_coff_is_local_label_name): Declare. | |
226 | * libcoff.h: Rebuild. | |
227 | ||
35a3e78e ILT |
228 | * targets.c (BFD_JUMP_TABLE_SYMBOLS): Change _bfd_is_local_label |
229 | to _bfd_is_local_label_name. | |
230 | (bfd_target): Likewise. | |
231 | * syms.c (bfd_is_local_label): Define as function, not macro. | |
232 | (bfd_is_local_name): Define. | |
233 | * libbfd.c (bfd_generic_is_local_label_name): Rename from | |
234 | bfd_generic_is_local_label, and take a string rather than a | |
235 | symbol. | |
236 | * libbfd-in.h (_bfd_nosymbols_bfd_is_local_label): Don't define. | |
237 | (_bfd_nosymbols_bfd_is_local_label_name): Define. | |
238 | (bfd_generic_is_local_label): Don't declare. | |
239 | (bfd_generic_is_local_label_name): Declare. | |
240 | * bfd-in2.h, libbfd.h: Rebuild. | |
241 | * All backends: Change local_label to local_label_name. | |
242 | ||
85d6f0b4 ILT |
243 | * elf32-mips.c (struct mips_got_info): Add assigned_gotno field. |
244 | (mips_elf_relocate_got_local): Change return type to boolean. | |
245 | Don't assume that the first zero entry is unassigned; instead, use | |
246 | assigned_gotno. | |
247 | (mips_elf_relocate_section): Check return value of | |
248 | mips_elf_relocate_got_local. | |
249 | (mips_elf_create_got_section): Initialize assigned_gotno field. | |
250 | ||
56819c99 MH |
251 | start-sanitize-d30v |
252 | Wed Feb 26 15:19:51 1997 Martin M. Hunt <[email protected]> | |
253 | ||
254 | * elf32-d30v.c (bfd_elf_d30v_reloc): Add code to do 32-bit | |
255 | relocations. | |
256 | ||
257 | end-sanitize-d30v | |
fa802cb0 ILT |
258 | Wed Feb 26 13:33:03 1997 Ian Lance Taylor <[email protected]> |
259 | ||
260 | * elflink.h (elf_link_input_bfd): Don't skip symbols from sections | |
261 | that have no contents merely because linker_mark is not set. | |
262 | ||
263 | Tue Feb 25 18:51:35 1997 Stan Shebs <[email protected]> | |
264 | ||
265 | * config.bfd (mips*-*-lnews*): New target. | |
266 | * coff-mips.c (mips_relocate_section): Make assert compare | |
267 | content byteorder instead of header byteorder. | |
268 | (ecoff_biglittle_vec): New BFD, big-endian headers, little-endian | |
269 | data. | |
55ef0d90 | 270 | * targets.c (bfd_target_vector): Add ecoff_biglittle_vec. |
fa802cb0 ILT |
271 | * configure.in (ecoff_biglittle_vec): Add case. |
272 | * configure: Update. | |
273 | ||
7b4be668 ILT |
274 | Tue Feb 25 00:32:49 1997 Ian Lance Taylor <[email protected]> |
275 | ||
b08f5ac2 ILT |
276 | * elf.c (elf_fake_sections): Use SHT_NOTE for any section whose |
277 | name begins with ".note". | |
278 | (map_sections_to_segments): Add a PT_NOTE segment for any loadable | |
279 | section whose name begins with ".note". | |
280 | (get_program_header_size): Corresponding change. | |
281 | ||
7b4be668 ILT |
282 | * elf32-mips.c (mips_elf_relocate_section): Check for misaligned |
283 | jal and for jal overflow. | |
284 | ||
285 | Mon Feb 24 17:53:14 1997 Ian Lance Taylor <[email protected]> | |
286 | ||
287 | From Eric Youngdale <[email protected]>: | |
288 | * elflink.h (elf_link_add_archive_symbols): If a default symbol is | |
289 | not found, try looking it up again without the version name. | |
290 | (elf_link_add_object_symbols): Always link against the dynamic | |
291 | symbol table of a dynamic object. When linking against a dynamic | |
292 | object, include version strings in symbol names, and set up | |
293 | version information. Add indirect symbols for default versions. | |
294 | (elf_link_create_dynamic_sections): Add special version sections. | |
295 | (struct elf_assign_sym_version_info): Define. | |
296 | (struct elf_find_verdep_info): Define. | |
297 | (NAME(bfd_elf,size_dynamic_sections)): Add verdefs parameter. Set | |
298 | up version sections. | |
299 | (elf_adjust_dynamic_symbol): Ignore indirect symbols. | |
300 | (elf_link_find_version_dependencies): New static function. | |
301 | (elf_link_assign_sym_version): New static function. | |
302 | (elf_link_renumber_dynsyms): New static function. | |
303 | (struct elf_final_link_info): Add symver_sec field. | |
304 | (elf_bfd_final_link): Initialize finfo.symver_sec. Don't count | |
305 | local symbols of a dynamic object. Handle DT_VER* constants. | |
306 | (elf_link_output_extsym): Simplify BFD_ASSERT checking for a | |
307 | dynamic object. Skip indirect symbols from ELF objects. Remove | |
308 | the version name before choosing a hash bucket. Write out the | |
309 | version information if appropriate. | |
310 | (elf_link_input_bfd): Check for DYNAMIC, not ET_DYN. | |
311 | * bfd-in.h (bfd_elf32_size_dynamic_sections): Update declaration. | |
312 | (bfd_elf64_size_dynamic_sections): Likewise. | |
313 | * bfd-in2.h: Rebuild. | |
314 | * elf-bfd.h (struct elf_link_hash_entry): Add verinfo field. | |
315 | Change elf_link_hash_flags to unsigned short. | |
316 | (ELF_LINK_HIDDEN): Define. | |
317 | (struct elf_obj_tdata): Add fields dynversym_hdr, dynverref_hdr, | |
318 | dynverdef_hdr, dynversym_section, dynverdef_section, | |
319 | dynverref_section, cverdefs, cverrefs, verdef, verref. | |
320 | (elf_dynversym, elf_dynverdef, elf_dynverref): Define. | |
321 | (_bfd_elf_swap_verdef_in, _bfd_elf_swap_verdef_out): Declare. | |
322 | (_bfd_elf_swap_verdaux_in, _bfd_elf_swap_verdaux_out): Declare. | |
323 | (_bfd_elf_swap_verneed_in, _bfd_elf_swap_verneed_out): Declare. | |
324 | (_bfd_elf_swap_vernaux_in, _bfd_elf_swap_vernaux_out): Declare. | |
325 | (_bfd_elf_swap_versym_in, _bfd_elf_swap_versym_out): Declare. | |
326 | (_bfd_elf_slurp_version_tables): Declare. | |
327 | * elf.c (_bfd_elf_swap_verdef_in): New function. | |
328 | (_bfd_elf_swap_verdef_out): Likewise. | |
329 | (_bfd_elf_swap_verdaux_in, _bfd_elf_swap_verdaux_out): Likewise. | |
330 | (_bfd_elf_swap_verneed_in, _bfd_elf_swap_verneed_out): Likewise. | |
331 | (_bfd_elf_swap_vernaux_in, _bfd_elf_swap_vernaux_out): Likewise. | |
332 | (_bfd_elf_swap_versym_in, _bfd_elf_swap_versym_out): Likewise. | |
333 | (_bfd_elf_print_private_bfd_data): Add DT_VER* constants. Print | |
334 | version information if there is any. | |
335 | (_bfd_elf_link_hash_newfunc): Initialize verinfo field. | |
336 | (bfd_section_from_shdr): Handle SHT_GNU_ver* section types. | |
337 | (elf_fake_sections): Handle .gnu.version* section names. | |
338 | (assign_section_numbers): Handle SHT_GNU_ver* section types. | |
339 | (_bfd_elf_slurp_version_tables): New function. | |
340 | * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't include | |
341 | version name in string entered in dynamic hash table. | |
342 | * elfcode.h: Include fnmatch.h. | |
343 | * elf32-i386.c (elf_i386_relocate_section): Handle a dynamic | |
344 | symbol which was forced to become local. | |
345 | * elf32-m68k.c (elf_m68k_relocate_section): Likewise. | |
346 | * elf32-ppc.c (ppc_elf_relocate_section): Likewise. | |
347 | * elf32-sparc.c (elf32_sparc_relocate_section): Likewise. | |
348 | * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise. | |
349 | ||
7b951eed JL |
350 | Fri Feb 21 16:15:18 1997 Jeffrey A Law ([email protected]) |
351 | ||
352 | * elf32-mn10200.c (mn10200_elf_final_link_relocate): Simplify | |
353 | somewhat. | |
354 | (mn10200_elf_relax_section): Correctly compute a symbol's value | |
355 | when the symbol is local, but not in the same section as we are | |
356 | relaxing. Implement abs24 -> abs16, imm24 -> imm16 and d24 -> d16 | |
357 | relaxing. | |
358 | ||
77dd1a25 DE |
359 | start-sanitize-m32r |
360 | Fri Feb 21 13:55:14 1997 Doug Evans <[email protected]> | |
361 | ||
362 | * elf32-m32r.c: Rewrite to use ELF backend linker. | |
363 | Store lower 16 bits of addend in R_M32R_HI16_[SU]LO insns. | |
364 | Add small data area support (R_M32R_SDA16). | |
365 | * reloc.c: Document BFD_RELOC_M32R_SDA16. | |
366 | * bfd-in2.h,libbfd.h: Regenerated. | |
367 | ||
368 | end-sanitize-m32r | |
fd395661 JL |
369 | Thu Feb 20 23:50:31 1997 Jeffrey A Law ([email protected]) |
370 | ||
371 | * elf32-mn10200.c (mn10200_elf_relax_section): New function. | |
372 | (mn10200_elf_relax_delete_bytes): Likewise. | |
373 | (mn10200_elf_symbol_address_p): Likewise. | |
374 | (mn10200_elf_get_relocated_section_contents): Likewise. | |
375 | (bfd_elf32_bfd_relax_section): Define. | |
376 | (bfd_elf32_bfd_get_relocated_section_contents): Likewise. | |
64af6679 JL |
377 | |
378 | * elf32-mn10200.c (mn10200_elf_final_link_relocate): New function. | |
379 | (mn10200_elf_relocate_section): Likewise. | |
380 | (elf_backend_relocate_section): Define. | |
381 | ||
fd8d7c31 MH |
382 | start-sanitize-d30v |
383 | Tue Feb 18 17:22:59 1997 Martin M. Hunt <[email protected]> | |
384 | ||
385 | * Makefile.in, archures.c, config.bfd, configure.in, elf.c, | |
386 | reloc.c, targets.c: New target, elf-*-D30V. | |
387 | ||
388 | * bfd-in2.h, configure, libbfd.h: Rebuilt. | |
389 | ||
390 | * cpu-d30v.c, elf32-d30v.c: New files. | |
391 | ||
392 | end-sanitize-d30v | |
92a956e8 FF |
393 | Tue Feb 18 15:31:48 1997 Fred Fish <[email protected]> |
394 | ||
395 | * reloc.c (struct reloc_howto_struct): Fix typo in comment. | |
396 | * bfd-in2.h: Regenerated. | |
397 | start-sanitize-tic80 | |
398 | * coff-tic80.c (RTYPE2HOWTO): Replace abort with real function. | |
399 | (rtype2howto): Add function. | |
400 | (tic80_howto_table): Add. | |
401 | end-sanitize-tic80 | |
402 | ||
403 | Tue Feb 18 11:41:00 1996 Dawn Perchik <[email protected]> | |
404 | ||
405 | * sysdep.h: Don't define errno in MSVC if error.h is included. | |
406 | ||
8d1ba96e JL |
407 | start-sanitize-v850 |
408 | Tue Feb 18 10:04:13 1997 Jeffrey A Law ([email protected]) | |
409 | ||
410 | * elf32-v850.c (v850_elf_relocate_section): Make sure r_symndx | |
411 | is initialized before it is used. | |
412 | ||
413 | end-sanitize-v850 | |
8ceca983 ILT |
414 | Mon Feb 17 11:28:40 1997 Ian Lance Taylor <[email protected]> |
415 | ||
416 | * hp300hpux.c (convert_sym_type): Don't convert a secondary common | |
417 | symbol into a weak undefined symbol; leave it as a common symbol. | |
418 | ||
54626f1a ILT |
419 | Fri Feb 14 19:08:03 1997 Ian Lance Taylor <[email protected]> |
420 | ||
421 | * elflink.h (elf_link_add_object_symbols): Don't issue a warning | |
422 | about a symbol defined in a dynamic object if it has already been | |
423 | defined in a regular object. | |
424 | ||
236969ac ILT |
425 | Thu Feb 13 20:53:22 1997 Klaus Kaempf ([email protected]) |
426 | ||
427 | * makefile.vms: Add gcc flags to allow compiling with current gcc | |
428 | snapshot | |
429 | (targmatch.h): New dependency. | |
430 | ||
54626f1a ILT |
431 | * reloc.c (BFD_RELOC_ALPHA_CODEADDR): New relocation for |
432 | openVMS/Alpha. | |
433 | * evax.h (ALPHA_R_CODEADDR): New relocation. | |
434 | * evax-alpha.c (ALPHA_R_CODEADDR): 64 bit procedure relocation for | |
435 | openVMS/Alpha. | |
436 | * evax-etir.c (ALPHA_R_CODEADDR): Output object code for this | |
437 | relocation. | |
438 | * bfd-in2.h, libbfd.h: Rebuild. | |
439 | ||
440 | Restrict symbol length to 64 bytes, case preserving: | |
441 | * evax-emh.c (_bfd_evax_write_emh): Remove case hacking. | |
442 | * evax-misc.c (_bfd_evax_case_hack_symbol): Remove. | |
443 | (_bfd_evax_length_hash_symbol): Added. | |
444 | * evax-etir.c (_bfd_evax_write_etir): Call | |
445 | _bfd_evax_length_hash_symbol before output of symbol. | |
446 | * evax-egsd.c (_bfd_evax_write_egsd): Likewise. | |
447 | * evax.h (flag_hash_long_names, flag_show_after_trunc): Remove. | |
448 | ||
449 | * evax-emh.c: Output filename to object file without path. | |
450 | ||
451 | * evax-egsd.c: New sections for local and global commons. | |
452 | ||
453 | * evax-alpha.c, evax-emh.c, evax-egsd.c, evax-etir.c, | |
454 | evax-misc.c, evax.h: Remove 8 bit characters from copyright | |
455 | notices. Replace AXP with Alpha. | |
456 | ||
62332d05 ILT |
457 | Wed Feb 12 18:10:30 1997 Ian Lance Taylor <[email protected]> |
458 | ||
459 | * sunos.c (sunos_create_dynamic_sections): We need the dynamic | |
460 | sections if we are creating a shared library. | |
461 | ||
3883007e DE |
462 | Tue Feb 11 15:45:43 1997 Doug Evans <[email protected]> |
463 | ||
464 | * configure.host (i386-windows): Don't set host64=true. | |
465 | ||
a4183ba5 ILT |
466 | Tue Feb 11 15:27:32 1997 Ian Lance Taylor <[email protected]> |
467 | ||
468 | * elf32-mips.c (reloc_type): Add R_MIPS16_GPREL. | |
469 | (elf_mips16_gprel_howto): New static variable. | |
470 | (mips16_gprel_reloc): New static function. | |
471 | (bfd_elf32_bfd_reloc_type_lookup): Handle BFD_RELOC_MIPS16_GPREL. | |
472 | (mips_info_to_howto_rel): Handle R_MIPS16_GPREL. | |
473 | (mips_elf_relocate_section): Handle R_MIPS16_GPREL. | |
474 | * reloc.c (BFD_RELOC_MIPS16_GPREL): Define. | |
475 | * bfd-in2.h, libbfd.h: Rebuild. | |
476 | ||
b9c5ee68 DE |
477 | start-sanitize-m32r |
478 | Mon Feb 10 23:25:00 1997 Doug Evans <[email protected]> | |
479 | ||
480 | * elf32-m32r.c (elf_m32r_howto_table): Change partial_inplace to true | |
481 | for R_M32R_{16,32,24,HI16_ULO,HI16_SLO,LO16}. | |
482 | ||
483 | end-sanitize-m32r | |
276c2d7d GRK |
484 | start-sanitize-r5900 |
485 | Fri Feb 7 16:20:17 1997 Gavin Koch <[email protected]> | |
486 | ||
487 | * config.bfd: add r5900 | |
488 | ||
489 | end-sanitize-r5900 | |
ba4a4594 ILT |
490 | Fri Feb 7 12:39:11 1997 Ian Lance Taylor <[email protected]> |
491 | ||
492 | * elflink.h (elf_link_input_bfd): If we've discarded a section, | |
493 | the output section will be the absolute section; don't print an | |
494 | assertion message for that case when doing a relocateable link. | |
495 | ||
e900e695 ILT |
496 | Thu Feb 6 16:55:43 1997 Ian Lance Taylor <[email protected]> |
497 | ||
498 | * elf32-mips.c (FN_STUB, CALL_STUB, CALL_FP_STUB): Define. | |
499 | (struct mips_elf_link_hash_entry): Add new fields fn_stub, | |
500 | need_fn_sub, call_stub, and call_fp_stub. | |
501 | (struct mips_elf_link_hash_table): Add field mips16_stubs_seen. | |
502 | (mips_elf_link_hash_newfunc): Initialize new fields. | |
503 | (mips_elf_link_hash_table_create): Likewise. | |
504 | (mips_elf_relocate_section): Redirect relocations to use mips16 | |
505 | stubs when appropriate. | |
506 | (mips_elf_check_relocs): Attach stub sections to the appropriate | |
507 | symbol. Set need_fn_stub when appropriate. | |
508 | (mips_elf_always_size_sections): New static function. | |
509 | (mips_elf_check_mips16_stubs): New static function. | |
510 | (elf_backend_always_size_sections): Define. | |
511 | * elf-bfd.h (struct elf_obj_tdata): Add local_stubs field. | |
512 | ||
513 | * elflink.h (elf_link_input_bfd): Discard local symbols that are | |
514 | attached to sections which are not being included in the link. | |
515 | ||
5b61a02a ILT |
516 | Wed Feb 5 13:20:17 1997 Ian Lance Taylor <[email protected]> |
517 | ||
518 | * cofflink.c (_bfd_coff_generic_relocate_section): Ignore the | |
519 | symbol value when computing the addend for a pc_relative | |
520 | pcrel_offset reloc. | |
521 | ||
bcb686ca ILT |
522 | Mon Feb 3 11:54:06 1997 Ian Lance Taylor <[email protected]> |
523 | ||
5a50eec6 ILT |
524 | * cofflink.c (_bfd_coff_generic_relocate_section): If doing a |
525 | relocateable link, just skip pc_relative pcrel_offset relocs. | |
526 | * coff-arm.c (coff_arm_rtype_to_howto): Return a different howto | |
527 | structure for an ARM26 reloc which can be resolved. | |
528 | (coff_arm_adjust_symndx): Only convert ARM26 to ARM26D if the | |
529 | reloc can be resolved. | |
530 | ||
bcb686ca ILT |
531 | * coff-h8300.c (h8300_reloc16_extra_cases): Correct off by one |
532 | error in overflow check for R_RELBYTE. | |
533 | ||
167dc907 ILT |
534 | Fri Jan 31 14:07:27 1997 Ian Lance Taylor <[email protected]> |
535 | ||
6c58561e ILT |
536 | * ieee.c (ieee_slurp_section_data): Pick up the start address. |
537 | From Mark Rasin <[email protected]>. | |
538 | ||
167dc907 ILT |
539 | * aoutx.h (aout_link_write_symbols): Don't apply discard_l to |
540 | debugging symbols. | |
541 | ||
1a2faf1f JL |
542 | Wed Jan 29 00:00:49 1997 Jeffrey A Law ([email protected]) |
543 | ||
544 | * elf32-mn10200.c (reloc_type): Add 16bit pc-relative reloc. | |
545 | (elf_mn10200_howto_table): Likewise. | |
546 | (mn10200_reloc_map): Likewise. | |
547 | ||
1d5c6cfd DE |
548 | start-sanitize-m32r |
549 | Mon Jan 27 12:07:35 1997 Doug Evans <[email protected]> | |
550 | ||
551 | * reloc.c: Add relocs BFD_RELOC_M32R_{HI16_[US]LO,LO16}. | |
552 | * bfd-in2.h, libbfd.h: Regenerated. | |
553 | * elf32-m32r.c: Add support for them. | |
554 | ||
555 | end-sanitize-m32r | |
9950f925 ILT |
556 | Mon Jan 27 12:25:02 1997 Ian Lance Taylor <[email protected]> |
557 | ||
54aa1dea ILT |
558 | * aout-arm.c (MY_swap_std_reloc_in): Remove unused r_length. |
559 | * elf32-ppc.c (ppc_elf_check_relocs): Remove unused plt. | |
560 | start-sanitize-v850 | |
561 | * elf32-v850.c (v850_elf_final_link_relocate): Remove used | |
562 | r_format and r_pcrel. Always return a value. | |
563 | end-sanitize-v850 | |
564 | * riscix.c (MY_final_link_callback): Define to dummy value. | |
565 | ||
9950f925 ILT |
566 | * elf32-i386.c (elf_i386_size_dynamic_sections): When checking for |
567 | relocations against the text segment, look up the output name of | |
568 | the reloc section. | |
569 | * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise. | |
570 | * elf32-mips.c (mips_elf_size_dynamic_sections): Likewise. | |
571 | * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise. | |
572 | * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise. | |
573 | * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise. | |
574 | ||
0716c2e9 | 575 | start-sanitize-tic80 |
8c00b01d FF |
576 | Wed Jan 22 15:40:28 1997 Fred Fish <[email protected]> |
577 | ||
578 | * coff-tic80.c (tic80coff_vec): Use correct data put/get | |
579 | routines for little endian data. | |
580 | * coffcode.h (coff_write_object_contents): Set magic to | |
581 | TIC80_ARCH_MAGIC for TIc80. | |
582 | ||
0716c2e9 FF |
583 | Tue Jan 21 12:32:43 1997 Fred Fish <[email protected]> |
584 | ||
585 | * coff-tic80.c (tic80coff_vec): Change to little endian data | |
586 | as the default. | |
587 | ||
588 | end-sanitize-tic80 | |
db109ca2 ILT |
589 | Thu Jan 16 17:45:57 1997 Ian Lance Taylor <[email protected]> |
590 | ||
591 | * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Change type of | |
592 | auxiliary_filters parameter to be const char * const *. Accept a | |
593 | NULL terminated array. | |
594 | * bfd-in.h (bfd_elf32_size_dynamic_sections): Update declaration. | |
595 | (bfd_elf32_size_dynamic_sections): Update declaration. | |
596 | * bfd-in2.h: Rebuild. | |
597 | ||
598 | Wed Jan 15 11:21:32 1997 Ian Lance Taylor <[email protected]> | |
599 | ||
600 | * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Treat a | |
601 | NOTYPE symbol in a text section as a FUNC symbol. | |
602 | ||
603 | * coffcode.h (coff_compute_section_file_positions): Force | |
604 | relocbase to be aligned to COFF_DEFAULT_SECTION_ALIGNMENT_POWER. | |
605 | ||
e1616e16 DE |
606 | Tue Jan 14 08:46:33 1997 Doug Evans <[email protected]> |
607 | ||
608 | * libaout.h (machine_type): Reserve several values for sparclet. | |
609 | ||
4af93ad0 MM |
610 | start-sanitize-tic80 |
611 | Mon Jan 13 22:39:08 1997 Michael Meissner <[email protected]> | |
612 | ||
613 | * config.bfd (tic80-*-*): Don't require 'coff'. | |
614 | ||
91eb4378 | 615 | end-sanitize-tic80 |
0ce71ebd MM |
616 | start-sanitize-v850 |
617 | Mon Jan 13 19:36:25 1997 Michael Meissner <[email protected]> | |
618 | ||
619 | * elf32-v850.c (v850_elf_howto_table): Set the special_function | |
620 | table to v850_elf_reloc for all non-standard relocations. | |
621 | (v850_elf_check_relocs): Add check for h being non-null. | |
622 | (v850_elf_reloc): Add R_V850_ZDA_OFFSET support. Use switch | |
623 | statement instead of multiple ifs. | |
624 | (v850_elf_relocate_section): Fix up error message, don't just call | |
625 | abort. | |
626 | ||
627 | end-sanitize-v850 | |
483e1b91 JL |
628 | Mon Jan 6 13:28:35 1997 Jeffrey A Law ([email protected]) |
629 | ||
09a7bde3 | 630 | * elf32-mn10200.c (elf_mn10200_howto): Don't ever set partial-inplace. |
40131692 JL |
631 | Use bfd_elf_generic_reloc as special function for all relocs. |
632 | (bfd_elf32_mn10200_reloc): Remove unnecessary function. | |
633 | ||
634 | * elf32-mn10200.c (elf_mn10200_howto): Set pcrel_offset for | |
483e1b91 JL |
635 | 24bit pc-relative reloc. |
636 | ||
28eb95aa FF |
637 | start-sanitize-tic80 |
638 | Fri Jan 3 16:33:00 1997 Fred Fish <[email protected]> | |
639 | ||
640 | * Makefile.in (coff-tic80.o): Add coffcode.h to dependency list. | |
641 | * coff-tic80.c (tic80coff_vec): Data byte order is big endian and | |
642 | header byte order is little endian. Use correct bfd_get and | |
643 | bfd_put routines for little endian headers. | |
644 | * coffcode.h (coff_set_arch_mach_hook): Set arch to | |
645 | bfd_arch_tic80 for TIC80_ARCH_MAGIC number. | |
646 | ||
647 | end-sanitize-tic80 | |
b3ef3894 JL |
648 | Fri Jan 3 16:54:08 1997 Jeffrey A Law ([email protected]) |
649 | ||
650 | * reloc.c: Add BFD_RELOC_24. | |
651 | * elf32-mn10200.c (enum reloc_type): Add 24bit and pcrel relocs. | |
652 | (elf_mn10200_howto, mn10200_reloc_map): Corresponding changes. | |
653 | * bfd-in2.h, libbfd.h: Rebuilt. | |
654 | ||
ff12f303 ILT |
655 | Fri Jan 3 16:58:31 1997 Richard Henderson <[email protected]> |
656 | ||
657 | elf64-alpha multiple .got rewrite: | |
658 | ||
659 | * elf-bfd.h (struct elf_backend_data): Add always_size_sections entry. | |
660 | (bfd_elf*_mkobject): Don't define here ... | |
661 | * elfxx-target.h: ... but rather here. Default always_size_sections | |
662 | hook to NULL. | |
663 | * elf.c (elf_mkobject): Rename to bfd_elf_mkobject, since that was | |
664 | what the #defines in elf-bfd.h transmuted it to anyway. | |
665 | ||
666 | * section.c: Add SEC_LINKER_CREATED flag. | |
667 | * bfd-in2.h: Rebuild. | |
668 | * elf32-i386.c (elf_i386_check_relocs): Add SEC_LINKER_CREATED to | |
669 | relocation section flags. | |
670 | (elf_i386_size_dynamic_sections): Use SEC_LINKER_CREATED instead of | |
671 | SEC_IN_MEMORY to recognize generated bits. | |
672 | * elf32-m68k.c (elf_m68k_check_relocs, elf_m68k_size_dynamic_sections): | |
673 | Likewise. | |
674 | * elf32-mips.c (mips_elf_final_link, mips_elf_create_dynamic_sections, | |
675 | mips_elf_create_compact_rel_section, mips_elf_create_got_section, | |
676 | mips_elf_check_relocs, mips_elf_size_dynamic_sections): Likewise. | |
677 | * elf32-ppc.c (ppc_elf_create_linker_section, | |
678 | ppc_elf_size_dynamic_sections): Likewise. | |
679 | * elf32-sparc.c (elf32_sparc_check_relocs, | |
680 | elf32_sparc_size_dynamic_sections): Likewise. | |
681 | * elflink.c (_bfd_elf_create_got_section): Add SEC_LINKER_CREATED to | |
682 | section flags. | |
683 | (_bfd_elf_create_dynamic_sections): Likewise. | |
684 | (_bfd_elf_make_linker_section_rela): Likewise. | |
685 | * elflink.h (elf_link_create_dynamic_sections): Likewise. | |
686 | (bfd_elf,size_dynamic_sections): Call the always_size_sections hook. | |
687 | (elf_bfd_final_link): Use SEC_LINKER_CREATED instead of SEC_IN_MEMORY | |
688 | to identify generated bits. | |
689 | (elf_link_input_bfd): Likewise. | |
690 | ||
691 | * elf64-alpha.c: Rewrite everything touching relocations. | |
692 | ||
afaed5e9 | 693 | start-sanitize-v850 |
de224d6a MM |
694 | Fri Jan 3 11:42:53 1997 Michael Meissner <[email protected]> |
695 | ||
696 | * elf32-v850.c (all functions and static variables): Go through | |
697 | and regularize names to be of the form v850_elf_<xxx>. | |
698 | (toplevel): Include <elf/v850.h>. | |
699 | (enum reloc_type): Move to include/elf/v850.h. | |
700 | (v850_elf_check_relocs): For common variables, if the variable is | |
701 | referenced by a R_V850_{SDA,ZDA,TDA} relocation, put the variable | |
702 | into the appropriate section. | |
703 | (elf_backend_check_relocs): Define. | |
704 | ||
afaed5e9 MM |
705 | Tue Dec 31 15:15:28 1996 Michael Meissner <[email protected]> |
706 | ||
707 | * elf32-v850.c (elf_v850_howto_table): Fix some spacing. | |
708 | ||
709 | end-sanitize-v850 | |
148437ec ILT |
710 | Tue Dec 31 14:44:50 1996 Ian Lance Taylor <[email protected]> |
711 | ||
7c342fc5 ILT |
712 | * config.bfd (mips*el-*-linux*): New target. |
713 | (mips*-*-linux*): New target. | |
714 | ||
715 | * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Clean up. | |
716 | Return a useful value. | |
717 | ||
6ded6615 ILT |
718 | * Makefile.in (ALL_CFLAGS): Add -D_GNU_SOURCE. |
719 | ||
dda7af9f ILT |
720 | * configure.in: Check ac_cv_func_mmap_fixed_mapped, not |
721 | ac_cv_func_mmap. | |
722 | * configure: Rebuild. | |
ab98712a ILT |
723 | * configure.host: Use ac_cv_func_mmap_fixed_mapped instead of |
724 | ac_cv_func_mmap in bfd/configure.host. | |
dda7af9f | 725 | |
148437ec ILT |
726 | * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Add |
727 | filter_shlib and auxiliary_filter_shlib parameters. | |
728 | * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_AUXILIARY and | |
729 | DT_FILTER. | |
730 | * bfd-in.h (bfd_elf32_size_dynamic_sections): Update declaration. | |
731 | (bfd_elf64_size_dynamic_sections): Likewise. | |
732 | * bfd-in2.h: Rebuild. | |
733 | ||
1eeccb22 ILT |
734 | Mon Dec 30 18:48:52 1996 Ian Lance Taylor <[email protected]> |
735 | ||
736 | * xcofflink.c (xcoff_build_ldsyms): When exporting all defined | |
737 | symbols, don't export a symbol which is defined by an object in an | |
738 | archive which contains shared objects. | |
739 | ||
60b26712 | 740 | start-sanitize-tic80 |
fc46a9ec FF |
741 | Mon Dec 30 16:12:58 1996 Fred Fish <[email protected]> |
742 | ||
743 | * archures.c (enum bfd_architecture): Add bfd_arch_tic80 | |
744 | for TI TMS320c80 (MVP). | |
745 | (bfd_archures_list): Add bfd_tic80_arch. | |
746 | * bfd-in2.h: Regenerate by running "make headers". | |
747 | ||
60b26712 FF |
748 | Sun Dec 29 16:18:52 1996 Fred Fish <[email protected]> |
749 | ||
750 | * cpu-tic80.c (bfd_tic80_arch): Add struct. | |
751 | * configure.in (case $vec): Correct typo, "tb" not "tp". | |
752 | Also add cofflink.o for tic80coff_vec. | |
753 | * configure: Regenerate with autoconf. | |
754 | ||
755 | end-sanitize-tic80 | |
412f8c93 ILT |
756 | Mon Dec 30 11:54:56 1996 Ian Lance Taylor <[email protected]> |
757 | ||
758 | * libbfd.c: Patch up the mmap code so that it is only built if BFD | |
759 | is configured with --with-mmap. | |
760 | ||
5a608f5b | 761 | start-sanitize-tic80 |
fc46a9ec | 762 | Sun Dec 29 10:48:57 1996 Fred Fish <[email protected]> |
5a608f5b FF |
763 | |
764 | * Makefile.in (BFD32_BACKENDS): Add coff-tic80.o | |
765 | (ALL_MACHINES): Add cpu-tic80.o | |
766 | (cpu-tic80.o, coff-tic80.o): Add dependencies. | |
767 | * coff-tic80.c: Add skeleton, cloned from another coff config. | |
768 | * coffcode.h (coff_write_object_contents): Set magic to TIC80MAGIC | |
769 | for TIc80. | |
770 | ||
771 | end-sanitize-tic80 | |
60b26712 | 772 | Fri Dec 27 20:56:41 1996 Fred Fish <[email protected]> |
cd6213ff FF |
773 | |
774 | * TODO: Correct a misspelling. | |
775 | start-sanitize-tic80 | |
776 | * coff-tic80.c: New file for TI TMS320C80 (MVP). | |
777 | * cpu-tic80.c: New file for TI TMS320C80 (MVP). | |
778 | * configure.in (case $vec): Add tic80coff_vec entry. | |
779 | * configure: Regenerate with autoconf. | |
780 | * archures.c (bfd_tic80_arch): Declare. | |
781 | * bfd-in2.h (enum bfd_architecture): Add bfd_arch_tic80. | |
782 | * config.bfd (case ${targ}): Add tic80*-*-coff* target. | |
783 | * targets.c (tic80coff_vec): Add decl as extern bfd_target. | |
784 | (bfd_target_vector): Add tic80coff_vec entry. | |
785 | end-sanitize-tic80 | |
786 | ||
6b8ec6f3 ILT |
787 | Fri Dec 27 11:48:12 1996 H.J. Lu <[email protected]> |
788 | ||
789 | * elflink.h (elf_buckets): Add some more values for larger | |
790 | binaries. | |
791 | ||
78650abd ILT |
792 | Thu Dec 26 18:36:54 1996 Ian Lance Taylor <[email protected]> |
793 | ||
794 | * Makefile.in (install): Move subdir_do out of conditional. From | |
795 | Fred Fish <[email protected]>. | |
796 | ||
8d16fe5c JL |
797 | Wed Dec 18 10:04:30 1996 Jeffrey A Law ([email protected]) |
798 | ||
799 | * elf32-mn10200.c (enum reloc_type): Enable basic 8, 16, and | |
800 | 32 bit relocs. | |
801 | (elf_mn10200_howto_table): Likewise. | |
802 | (mn10200_reloc_map): Likewise. | |
803 | ||
69e2ff18 ILT |
804 | Tue Dec 17 11:09:36 1996 Ian Lance Taylor <[email protected]> |
805 | ||
e4f4813f ILT |
806 | * elf32-mips.c (mips_elf_add_symbol_hook): Add 1 to the value of a |
807 | mips16 symbol during the link. | |
808 | (mips_elf_finish_dynamic_symbol): Subtract 1 from the value of a | |
809 | mips16 symbol. | |
810 | (mips_elf_link_output_symbol_hook): New static function. | |
811 | (elf_backend_link_output_symbol_hook): Define. | |
812 | ||
69e2ff18 ILT |
813 | * elf.c (bfd_elf_print_symbol): Print the st_other field if it is |
814 | not zero. | |
815 | ||
e85f2fbd ILT |
816 | Mon Dec 16 14:38:39 1996 Ian Lance Taylor <[email protected]> |
817 | ||
818 | * elf.c (bfd_section_from_shdr): Don't check for reloc sections | |
819 | against SEC_DEBUGGING sections here (revert patch of December 5). | |
820 | * elfcode.h (elf_object_p): Check for them here, instead. | |
821 | ||
e35765a9 ILT |
822 | Sun Dec 15 14:46:06 1996 Ian Lance Taylor <[email protected]> |
823 | ||
824 | * elfcode.h (elf_slurp_reloc_table): Add dynamic parameter. | |
825 | * elf.c (_bfd_elf_canonicalize_reloc): Pass new argument to | |
826 | slurp_reloc_table. | |
827 | (_bfd_elf_get_dynamic_reloc_upper_bound): New function. | |
828 | (_bfd_elf_canonicalize_dynamic_reloc): New function. | |
829 | * elf-bfd.h (struct elf_size_info): Update declaration of | |
830 | slurp_reloc_table. | |
831 | (_bfd_elf_get_dynamic_reloc_upper_bound): Declare. | |
832 | (_bfd_elf_canonicalize_dynamic_reloc): Declare. | |
833 | * elfxx-target.h: Use new dynamic reloc routines by default. | |
834 | * elf64-mips.c (mips_elf64_slurp_reloc_table): Add dynamic | |
835 | parameter. | |
836 | ||
6270adfb ILT |
837 | Fri Dec 13 13:18:49 1996 Dan Wilder <[email protected]> |
838 | ||
839 | * coffcode.h (coff_set_flags): Use MC68KBCSMAGIC for bfd_arch_m68k | |
840 | if NAMES_HAVE_UNDERSCORE is defined. | |
841 | ||
21e45f82 DE |
842 | Fri Dec 13 11:13:23 1996 Doug Evans <[email protected]> |
843 | ||
844 | * libaout.h (enum machine_type): Change M_SPARCLET from 142 to 131. | |
845 | ||
e7bab9df MM |
846 | Thu Dec 12 15:07:20 1996 Michael Meissner <[email protected]> |
847 | ||
848 | * elf32-ppc.c (ppc_elf_check_relocs): Move R_PPC_PLTREL24 into the | |
849 | supported relocs. | |
850 | ||
a5147005 ILT |
851 | Thu Dec 12 14:55:41 1996 Ian Lance Taylor <[email protected]> |
852 | ||
440f3914 ILT |
853 | * elflink.h (elf_link_add_object_symbols): Only add a weak |
854 | symbol if the real definition is in the dynamic symbol table. | |
855 | After finding the real definition, then, if it is dynamic, add the | |
856 | weak symbol to the dynamic symbol table. | |
857 | ||
e5c3708d ILT |
858 | * coff-aux.c (coff_m68k_aux_link_add_one_symbol): Make static. |
859 | ||
a5147005 ILT |
860 | * ppcboot.c (ppcboot_set_arch_mach): Don't define; it's a |
861 | function. | |
862 | (ppcboot_bfd_print_private_bfd_data): Don't take the address of an | |
863 | array. | |
864 | ||
865 | Tue Dec 10 23:23:52 1996 Jeffrey A Law ([email protected]) | |
866 | ||
867 | * elf32-mn10300.c (reloc_type): Remove big endian mn10300 reloc | |
868 | variants. | |
869 | (elf32_mn10300_howto_table, mn10300_reloc_map): Likewise. | |
870 | (bfd_elf32_mn10300_reloc): Write data in little endian format. | |
871 | * reloc.c: Remove mn10300 big endian relocs. | |
872 | * bfd-in2.h, libbfd.h: Rebuilt. | |
873 | ||
874 | * elf32-mn10200.c: Update from elf32-mn10300.c. | |
875 | ||
207e944c JL |
876 | Fri Dec 6 15:18:05 1996 Jeffrey A Law ([email protected]) |
877 | ||
31cffd2e JL |
878 | * elf32-mn10300.c (elf_symbol_leading_char): Define. |
879 | ||
207e944c JL |
880 | * elf32-mn10300.c: Add some comments. |
881 | ||
6dcf1ef5 ILT |
882 | Fri Dec 6 17:16:43 1996 Ian Lance Taylor <[email protected]> |
883 | ||
884 | * ihex.c (ihex_scan): Always initialize buf before jumping to | |
885 | error_return. | |
886 | (ihex_read_section): Likewise. | |
887 | ||
d28f058e JL |
888 | Thu Dec 5 22:29:18 1996 Jeffrey A Law ([email protected]) |
889 | ||
890 | * elf32-mn10300.c (elf_mn10300_howto_table): Don't set partial- | |
891 | inplace for most relocs. | |
892 | ||
80be821d ILT |
893 | Thu Dec 5 13:24:46 1996 Ian Lance Taylor <[email protected]> |
894 | ||
895 | * elflink.h (elf_link_add_object_symbols): Calling check_relocs | |
896 | even if SEC_ALLOC is not set. | |
897 | * elf32-i386.c (elf_i386_check_relocs): Don't check SEC_ALLOC | |
898 | when deciding whether to copy a reloc into a shared object. | |
899 | (elf_i386_relocate_section): Likewise. | |
900 | * elf32-sparc.c (elf32_sparc_check_relocs): Likewise. | |
901 | (elf32_sparc_relocate_section): Likewise. | |
902 | * elf32-i386.c (elf_i386_check_relocs): Don't set SEC_ALLOC in a | |
903 | reloc section if it is not set in the source section. | |
904 | * elf32-sparc.c (elf32_sparc_check_relocs): Likewise. | |
905 | * elf.c (bfd_section_from_shdr): Mark a reloc section associated | |
906 | with a SEC_DEBUGGING section as SEC_DEBUGGING. | |
907 | ||
e5c4495c MM |
908 | Wed Dec 4 14:18:13 1996 Michael Meissner <[email protected]> |
909 | ||
910 | * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): #if 0 code that | |
911 | expects a .got.plt until we actually create it. | |
912 | ||
179b58d9 ILT |
913 | Mon Dec 2 12:13:51 1996 Ian Lance Taylor <[email protected]> |
914 | ||
e5c4495c MM |
915 | * cofflink.c (_bfd_coff_generic_relocate_section): Print an error |
916 | message for bfd_reloc_outofrange, rather than aborting. From | |
917 | Philippe De Muyter <[email protected]>. | |
918 | ||
179b58d9 ILT |
919 | * cofflink.c (_bfd_coff_final_link): If there aren't any relocs in |
920 | a relocateable link, don't try to process them. From Heinz Wrobel | |
921 | <[email protected]>. | |
922 | ||
943686fa JL |
923 | Mon Dec 2 00:39:24 1996 Jeffrey A Law ([email protected]) |
924 | ||
925 | * elf32-mn10300.c (mn10300_info_howto): Renamed from | |
a5147005 | 926 | mn10300_info_howto_rel. Tweak reloc argument to be an |
943686fa JL |
927 | Elf32_Internal_Rela. |
928 | (USE_RELA): Define instead of USE_REL. | |
929 | (elf_info_to_howto, elf_info_howto_rel): Corresponding changes. | |
930 | ||
0e0f4106 PS |
931 | Sun Dec 1 00:18:59 1996 Peter Schauer ([email protected]) |
932 | ||
933 | * configure.in, configure: Handle mips*-sgi-irix6*. | |
934 | * irix-core.c (irix_core_core_file_p): Accept CORE_MAGICN32 | |
935 | core files. | |
936 | ||
15aafe49 ILT |
937 | Wed Nov 27 12:10:25 1996 Ian Lance Taylor <[email protected]> |
938 | ||
939 | * elf32-i386.c (elf_i386_relocate_section): Warn about a | |
940 | relocation against a symbol defined in a section with no output | |
941 | section. | |
942 | ||
6c02f1a0 ILT |
943 | Tue Nov 26 11:07:31 1996 Ian Lance Taylor <[email protected]> |
944 | ||
dfc7020d ILT |
945 | * aclocal.m4 (BFD_CC_FOR_BUILD): Don't require AC_C_CROSS. |
946 | * configure, config.in: Rebuild with autoconf 2.12. | |
947 | ||
6c02f1a0 ILT |
948 | * elf-bfd.h (struct elf_link_hash_entry): Add other field. |
949 | * elf.c (_bfd_elf_link_hash_newfunc): Initialize other field. | |
950 | (swap_out_syms): Set st_other from existing st_other field. | |
951 | * elflink.h (elf_link_add_object_symbols): Store st_other in hash | |
952 | table other field. | |
953 | (elf_link_output_extsym): Set the other field from the global hash | |
954 | table entry. | |
955 | * elf32-mips.c (enum reloc_type): Add R_MIPS16_26. | |
956 | (elf_mips16_jump_howto): New static variable. | |
957 | (mips16_jump_reloc): New static function. | |
958 | (bfd_elf32_bfd_reloc_type_lookup): Handle BFD_RELOC_MIPS16_JMP. | |
959 | (mips_info_to_howto_rel): Handle R_MIPS16_26. | |
960 | (mips_elf_relocate_section): Handle R_MIPS16_26. Handle R_MIPS_26 | |
961 | to a mips16 symbol. | |
962 | * reloc.c (BFD_RELOC_MIPS16_JMP): Add to list of relocs. | |
963 | * bfd-in2.h, libbfd.h: Rebuild. | |
964 | * cpu-mips.c (arch_info_struct): Add mips:16 entry. | |
965 | ||
f082b5ea ILT |
966 | Mon Nov 25 11:23:32 1996 Ian Lance Taylor <[email protected]> |
967 | ||
968 | * configure.host: Use long long for mips-sgi-irix6*. | |
969 | ||
970 | * coffswap.h (coff_swap_scnhdr_out): Make line number overflow | |
971 | only a warning. From Philippe De Muyter <[email protected]>. | |
972 | ||
12fdaaf8 JL |
973 | Mon Nov 25 08:52:29 1996 Jeffrey A Law ([email protected]) |
974 | ||
975 | * elf32-mn10300.c (bfd_elf32_mn10300_reloc): New function. | |
976 | (enum reloc_type): Add more reloc types. | |
977 | (elf32_mn10300_howto_table): Update for new reloc types. | |
978 | (elf32_mn10300_reloc_map): Update for new reloc types. | |
979 | * reloc.c: Add some new relocs for the mn10300 series. | |
980 | * bfd-in2.h, libbfd.h: Rebuilt. | |
981 | ||
23def276 JL |
982 | Sat Nov 23 13:26:18 1996 Jeffrey A Law ([email protected]) |
983 | ||
984 | * som.c (setup_sections): Don't lose for a space which has | |
985 | no data, but some symbols. | |
986 | ||
a600a89e ILT |
987 | Fri Nov 22 11:32:13 1996 Ian Lance Taylor <[email protected]> |
988 | ||
989 | * sunos.c (struct sunos_link_hash_table): Add got_needed field. | |
990 | (sunos_link_hash_table_create): Initialize got_needed. | |
991 | (sunos_create_dynamic_sections): Only set .got section size if it | |
992 | is not already set. Set got_needed. | |
993 | (bfd_sunos_size_dynamic_sections): Check got_needed. Only set | |
994 | sdynptr, and only handle dynamic sections, if dynamic sections are | |
995 | needed. | |
996 | (sunos_scan_std_relocs): Pass false to create_dynamic_sections. | |
997 | Initialize .got section. | |
998 | (sunos_scan_ext_relocs): Likewise. | |
999 | (sunos_write_dynamic_symbol): Set up PLT entry even if this is not | |
1000 | a dynamic symbol. | |
1001 | (sunos_finish_dynamic_link): Check got_needed. Only set up | |
1002 | dynamic linking information if needed. | |
1003 | ||
aa09d6b2 RS |
1004 | Thu Nov 21 10:31:31 1996 Rob Savoye ([email protected]) |
1005 | ||
1006 | * config.bfd: Added VersaDOS format to the Ericsson configuration. | |
1007 | ||
c3239e66 JL |
1008 | Wed Nov 20 16:31:31 1996 Jeffrey A Law ([email protected]) |
1009 | ||
1010 | * elf32-mn10300.c: Rough cut at relocs for the mn10300. | |
1011 | ||
c3239e66 JL |
1012 | Wed Nov 13 08:12:38 1996 Jeffrey A Law ([email protected]) |
1013 | ||
1014 | * Makefile.in (elf32-d10v.o): Don't depend on elf/d10v.h | |
1015 | anymore. | |
1016 | ||
c3239e66 JL |
1017 | Tue Nov 12 13:30:00 1996 Dawn Perchik <[email protected]> |
1018 | ||
1019 | * filemode.c: Include sysdep.h. | |
1020 | * ihex.c: Add casts to eliminate compiler warnings. | |
1021 | * sunos.c: Add casts to eliminate compiler warnings. | |
1022 | ||
9e23db76 MM |
1023 | Mon Nov 11 10:37:02 1996 Michael Meissner <[email protected]> |
1024 | ||
1025 | * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Create .got.plt | |
1026 | section. | |
1027 | (ppc_elf_check_relocs): Add support for R_PPC_LOCAL24PC. Make | |
1028 | appropriate relocations in the .so file if shared. | |
1029 | (ppc_elf_relocate_section): Ditto. | |
1030 | ||
affcfcf9 DE |
1031 | start-sanitize-m32r |
1032 | Tue Oct 29 15:03:02 1996 Doug Evans <[email protected]> | |
1033 | ||
1034 | * elf32-m32r.c (elf_m32r_howto_table, R_M32R_24): Use | |
1035 | complain_overflow_unsigned. | |
1036 | ||
1037 | end-sanitize-m32r | |
421a2956 MH |
1038 | Tue Oct 29 12:53:46 1996 Martin M. Hunt <[email protected]> |
1039 | ||
1040 | * elf32-d10v.c (elf_d10v_howto_table): Don't complain on | |
1041 | overflows for R_D10V_16 and R_D10V_18. | |
1042 | ||
061cc10b ILT |
1043 | Tue Oct 29 13:23:53 1996 Ian Lance Taylor <[email protected]> |
1044 | ||
1045 | * ieee.c (ieee_write_section_part): Use LMA rather than VMA. | |
1046 | (do_with_relocs): Likewise. | |
1047 | (do_as_repeat): Likewise. | |
1048 | (copy_expression): Likewise. | |
1049 | ||
1050 | Fri Oct 25 16:56:40 1996 Ian Lance Taylor <[email protected]> | |
1051 | ||
1052 | * ieee.c (ieee_write_external_part): Correctly record whether | |
1053 | there is an external part. | |
1054 | ||
1055 | start-sanitize-v850 | |
1056 | Thu Oct 24 14:32:52 1996 Jeffrey A Law ([email protected]) | |
1057 | ||
1058 | * elf32-v850.c (elf32_v850_bfd_final_link_relocate): Correctly | |
1059 | handle tda offsets for sld.w and sst.w instructions. | |
1060 | Fix alignment check in sld.w and sst.w tda reloc handling. | |
1061 | ||
1062 | end-sanitize-v850 | |
27c7e907 SG |
1063 | Thu Oct 24 09:08:47 1996 Stu Grossman ([email protected]) |
1064 | ||
1065 | * aclocal.m4, configure: Set USE_BINARY_FOPEN for *-*-windows. | |
1066 | ||
90ffe48b JL |
1067 | start-sanitize-v850 |
1068 | Wed Oct 23 00:53:16 1996 Jeffrey A Law ([email protected]) | |
1069 | ||
1070 | * elf32-v850.c: Add comments about assumptions about | |
1071 | char, short & long sizes. | |
1072 | (elf32_v850_bfd_final_link_relocate): Fix sign extension | |
1073 | problems for several relocs. | |
1074 | ||
1075 | * elf32-v850.c (elf32_v850_howto_table): Fix typo in | |
1076 | R_V850_SDA_OFFSET entry. | |
1077 | ||
c0e8bfc0 | 1078 | end-sanitize-v850 |
84be2a8f ILT |
1079 | Wed Oct 23 00:20:34 1996 Ian Lance Taylor <[email protected]> |
1080 | ||
1081 | * xcofflink.c (bfd_xcoff_import_symbol): Don't allocate ldsym. | |
1082 | Store import file index in ldindx. | |
1083 | (xcoff_build_ldsyms): Assume that ldsym was not previously | |
1084 | allocated. For an imported symbol, copy ldindx into l_ifile. | |
1085 | ||
725b96f5 JL |
1086 | start-sanitize-v850 |
1087 | Tue Oct 22 19:20:38 1996 Jeffrey A Law ([email protected]) | |
1088 | ||
c322f1b5 | 1089 | * elf32-v850.c (elf_v850_howto_table): Fix ordering of |
90ffe48b JL |
1090 | R_V850_ZDA_OFFSET and R_V850_TDA_OFFSET. Fix various |
1091 | fields in R_V850_TDA_OFFSET. | |
c322f1b5 | 1092 | (elf32_v850_bfd_final_link_relocate): Tweak pc-relative |
90ffe48b | 1093 | relocs to work more like other relocs. Handle R_V850_TDA_OFFSET |
c322f1b5 JL |
1094 | relocations. |
1095 | ||
725b96f5 JL |
1096 | * elf32-v850.c: Include bfdlink.h. |
1097 | (bfd_elf32_v850_reloc): Return an error if we get a reloc | |
1098 | we can't handle. | |
1099 | (elf32_v850_bfd_final_link_relocate): New function. | |
1100 | (v850_elf_relocation_section): Likewise. | |
1101 | (elf_backend_relocate_section): Define. | |
1102 | ||
1103 | end-sanitize-v850 | |
40c0ea5a ILT |
1104 | Tue Oct 22 17:22:43 1996 Ian Lance Taylor <[email protected]> |
1105 | ||
1106 | * binary.c (binary_set_section_contents): Ignore sections which | |
1107 | don't have SEC_LOAD and SEC_ALLOC set. | |
1108 | ||
9c52f4b2 JL |
1109 | Mon Oct 21 12:13:05 1996 Jeffrey A Law ([email protected]) |
1110 | ||
1111 | * linker.c (_bfd_generic_final_link): Avoid losing static | |
1112 | symbols in the .bss section. | |
1113 | ||
bd4dd3d0 ILT |
1114 | Mon Oct 21 10:54:58 1996 Ian Lance Taylor <[email protected]> |
1115 | ||
68553b63 ILT |
1116 | * elf32-mips.c (elf_mips_howto_table): Describe R_MIPS_64. |
1117 | (mips32_64bit_reloc): New static function. | |
1118 | (mips_reloc_map): Add entry for BFD_RELOC_64. | |
1119 | (mips_elf_relocate_section): Handle R_MIPS_64. | |
1120 | ||
bd4dd3d0 ILT |
1121 | * linker.c (default_indirect_link_order): Print an error message |
1122 | when attempting to do a relocateable link with different object | |
1123 | file formats, rather than calling abort. | |
1124 | ||
56910544 DE |
1125 | start-sanitize-m32r |
1126 | Thu Oct 17 10:43:29 1996 Doug Evans <[email protected]> | |
1127 | ||
1128 | * reloc.c (m32r relocs): Rename them. | |
1129 | * bfd-in2.h, libbfd.h: Regenerated. | |
1130 | * elf32-m32r.c: Update. | |
1131 | (m32r_elf_10_pcrel_reloc): New function. | |
1132 | (elf_m32r_howto_table, R_M32R_10_PCREL entry): Use it. | |
1133 | (elf_m32r_howto_table, R_M32R_24 entry): Fix {src,dst}_masks. | |
1134 | ||
1135 | end-sanitize-m32r | |
e1d98a0a JL |
1136 | Wed Oct 16 11:24:35 1996 Jeffrey A Law ([email protected]) |
1137 | ||
4948949e JL |
1138 | * linker.c (_bfd_generic_final_link): Set "linker_mark" for |
1139 | all sections that will be included in the output file. | |
1140 | (_bfd_generic_link_output_symbols): Discard symbols in sections | |
1141 | which are being discarded. | |
1142 | ||
1143 | start-sanitize-v850 | |
b6d08fce JL |
1144 | |
1145 | * elf32-v850.c (enum reloc_type): Add R_V850_SDA_OFFSET, | |
1146 | R_V850_TDA_OFFSET and R_V850_ZDA_OFFSET. | |
1147 | (elf_v850_howto_table): Corresponding changes. | |
1148 | (elf_v850_reloc_map): Corresponding changes. | |
1149 | * reloc.c: Add additional V850 relocations. | |
1150 | * bfd-in2.h, libbfd.h: Rebuilt. | |
1151 | ||
e1d98a0a JL |
1152 | * elf32-v850.c (bfd_elf32_v850_reloc): Mask out bits we |
1153 | no longer want in pc-relative relocs. | |
1154 | ||
05f1baaa JL |
1155 | Tue Oct 15 22:17:37 1996 Jeffrey A Law ([email protected]) |
1156 | ||
1157 | * elf32-v850.c (bfd_elf32_v850_reloc): Don't silently | |
1158 | accept a reloc against an undefined sybmol! | |
1159 | ||
1336da39 SG |
1160 | Tue Oct 15 16:17:28 1996 Stu Grossman ([email protected]) |
1161 | ||
1162 | * elf32-v850.c: Define elf_symbol_leading_char to be '_'. | |
1163 | ||
1164 | end-sanitize-v850 | |
c24453fe ILT |
1165 | Tue Oct 15 12:40:41 1996 Ian Lance Taylor <[email protected]> |
1166 | ||
ede836b9 ILT |
1167 | * VERSION: Bump for new relocation. |
1168 | ||
c24453fe ILT |
1169 | * hosts/i386bsd.h: If NBPG is not defined, define it as |
1170 | PAGE_SIZE, for recent versions of FreeBSD. | |
1171 | ||
e7a50458 ILT |
1172 | Mon Oct 14 12:37:26 1996 Ian Lance Taylor <[email protected]> |
1173 | ||
1174 | * configure.host: Use `long long' as the 64 bit type on a Solaris | |
1175 | host, since both gcc and the SunPRO compilers support it. | |
1176 | ||
6b31fd3a ILT |
1177 | Mon Oct 14 11:17:24 1996 Richard Henderson <[email protected]> |
1178 | ||
1179 | * reloc.c: Create a new BFD_RELOC_ALPHA_ELF_LITERAL. It was a | |
1180 | mistake to have reused the ECOFF LITERAL for ELF since they have | |
1181 | different semantics. | |
1182 | * elf64-alpha.c (elf_reloc_map): Map from ELF_LITERAL. | |
1183 | * bfd-in2.h, libbfd.h: Rebuild. | |
1184 | ||
1185 | * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Trap .got | |
1186 | section overflow. | |
1187 | ||
1188 | * elf64-alpha.c (elf64_alpha_relocate_section): Do not emit a | |
1189 | dynamic relocation for an undefweak symbol when we are building | |
1190 | a static executable. | |
1191 | ||
f20f2474 SS |
1192 | Thu Oct 10 11:15:06 1996 Stan Shebs <[email protected]> |
1193 | ||
1194 | * mpw-make.sed (config.bfd, targmatch.sed): Edit references to | |
1195 | point explicitly to srcdir. | |
1196 | (targmatch.h): Edit references to point explicitly to objdir. | |
1197 | ||
3e222a5a ILT |
1198 | Thu Oct 10 14:14:23 1996 Ian Lance Taylor <[email protected]> |
1199 | ||
1200 | * config.bfd: When setting targ_cpu, don't get confused by | |
1201 | linux-gnu. | |
1202 | ||
81501797 SG |
1203 | Tue Oct 8 08:51:19 1996 Stu Grossman ([email protected]) |
1204 | ||
1205 | * configure.host: Add support for windows host (a build done | |
1206 | under the Microsoft build environment). | |
1207 | ||
fe4ff515 ILT |
1208 | Tue Oct 8 11:40:16 1996 Ian Lance Taylor <[email protected]> |
1209 | ||
1c4794f5 ILT |
1210 | * elflink.h (elf_link_add_object_symbols): If a symbol is a weak |
1211 | definition in a dynamic object, add it to the dynamic symbol table | |
1212 | if any dynamic object mentions it. Reverts part of last patch. | |
1213 | ||
9d81de19 ILT |
1214 | * sunos.c (struct sunos_link_hash_table): Add got_base field. |
1215 | (sunos_link_hash_table_create): Initialize got_base. | |
1216 | (bfd_sunos_size_dynamic_sections): If the .got section is more | |
1217 | than 0x1000 bytes, set __GLOBAL_OFFSET_TABLE_ and got_base to | |
1218 | 0x1000. | |
1219 | (sunos_check_dynamic_reloc): Subtract got_base from a base | |
1220 | relative relocation. | |
1221 | ||
fe4ff515 ILT |
1222 | * elf32-mips.c (elf_mips_isa): New static function. |
1223 | (_bfd_mips_elf_merge_private_bfd_data): Don't warn about linking | |
1224 | -mips1 and -mips2 code together, or -mips3 and -mips4 code. | |
1225 | ||
1233f74b ILT |
1226 | Mon Oct 7 11:44:17 1996 Ian Lance Taylor <[email protected]> |
1227 | ||
1228 | * archive.c (do_slurp_coff_armap): Only treat archive as little | |
1229 | endian for i960 COFF. | |
1230 | ||
a3d5a706 ILT |
1231 | Fri Oct 4 13:49:01 1996 Ian Lance Taylor <[email protected]> |
1232 | ||
65f56a58 ILT |
1233 | * coffcode.h (coff_compute_section_file_positions): Adjust sofar |
1234 | by the change in size of the section when EXEC_P is not set. | |
1235 | ||
a9dd34a9 ILT |
1236 | * coff-m68k.c (coff_rtype_to_howto): Define if not defined. |
1237 | (m68kcoff_rtype_to_howto): New static function. | |
1238 | * cf-m68klynx.c (coff_m68k_lynx_rtype_to_howto): Add the section | |
1239 | VMA to the addend for a PC relative reloc. | |
1240 | ||
05a68c24 ILT |
1241 | * dep-in.sed: Rework backslash loop a bit to avoid bug in sed on |
1242 | HP/UX 10.20. | |
1243 | * Makefile.in: Rebuild dependencies. | |
1244 | ||
a3d5a706 ILT |
1245 | * dep-in.sed: Remove ../bfd/sysdep.h, since it will appear when |
1246 | som.h is included. | |
1247 | ||
c00ae065 JL |
1248 | Fri Oct 4 11:41:39 1996 Jeffrey A Law ([email protected]) |
1249 | ||
1250 | * Makefile.in: Remove explicit dependencies for mn10200 and | |
1251 | mn10300 files. | |
1252 | (ALL_MACHINE_CFILES): Add cpu-mn10200.c and cpu-mn10300.c. | |
1253 | (BFD32_BACKENDS_CFILES): Add elf32-mn10200.c and elf32-mn10300.c | |
1254 | (dependencies): Rebuilt. | |
1255 | ||
dee99794 ILT |
1256 | Thu Oct 3 16:57:51 1996 Ian Lance Taylor <[email protected]> |
1257 | ||
1d871eb7 ILT |
1258 | * cofflink.c (coff_link_add_symbols): Set obj_coff_keep_syms |
1259 | during this function. | |
1260 | ||
6b5af55c ILT |
1261 | * elflink.c (_bfd_elf_create_linker_section): Only use an existing |
1262 | section if the flags are compatible. | |
1263 | ||
dee99794 ILT |
1264 | * configure.in: Add havevecs, and put it in tdefaults. |
1265 | * mpw-config.in: Likewise. | |
1266 | * configure: Rebuild. | |
1267 | * targmatch.sed: New file; a sed script to build targmatch.h from | |
1268 | config.bfd. | |
1269 | * config.bfd: Add #if, #endif, and comments for targmatch.h. | |
1270 | * targets.c: Include "fnmatch.h". | |
1271 | (struct targmatch): Define. | |
1272 | (bfd_target_match): Define by including targmatch.h. | |
1273 | (bfd_find_target): If the target is not found by name, search for | |
1274 | it as a configuration triplet. | |
1275 | * Makefile.in: Rebuild dependencies. | |
1276 | (BFD32_BACKENDS): Add aout-arm.o, aout-sparcle.o, hp300bsd.o, | |
1277 | i386dynix.o, m68k4knetbsd.o, and riscix.o. | |
1278 | (BFD32_BACKENDS_CFILES): Add aout-arm.c, aout-sparcle.c, | |
1279 | hp300bsd.c, i386dynix.c, m68k4knetbsd.c, and riscix.c. | |
1280 | (HFILES): Add targmatch.h. Also, alphabetize and reindent. | |
1281 | (CFILES): Remove i386dynix.c and hp300bsd.c. | |
1282 | (targmatch.h): New target. | |
1283 | (do_clean): Remove targmatch.h. | |
1284 | ||
1285 | * configure.in: Add BFD_NEED_DECLARATION(getenv). | |
1286 | * acconfig.h: Add NEED_DECLARATION_GETENV. | |
1287 | * configure, config.in: Rebuild. | |
1288 | * sysdep.h: If NEED_DECLARATION_GETENV, declare getenv. | |
1289 | * aout-adobe.c (aout_adobe_object_p): Don't declare getenv. | |
1290 | ||
ae1b99e4 JL |
1291 | Thu Oct 3 09:29:09 1996 Jeffrey A Law ([email protected]) |
1292 | ||
1293 | * cpu-mn10x00.c, elf32-mn10x00: Removed. | |
1294 | * cpu-mn10200.c, cpu-mn10300.c: New files. | |
1295 | * elf32-mn10200.c, elf32-mn10300.c: New files. | |
1296 | * Makefile.in: Break mn10x00 support into two separate | |
1297 | configurations, mn10200 and mn10300. | |
1298 | * archures.c, config.bfd, configure.in, elf.c, targets.c: Likewise. | |
1299 | * bfd-in2.h, configure: Rebuilt. | |
1300 | ||
4c7f3fde JM |
1301 | Thu Oct 3 15:38:19 1996 Jason Molenda ([email protected]) |
1302 | ||
1303 | * Makefile.in (do_clean): Move config.log to do_distclean. | |
1304 | ||
efc2b064 JL |
1305 | Wed Oct 2 21:40:55 1996 Jeffrey A Law ([email protected]) |
1306 | ||
1307 | * cpu-mn10x00.c, elf32-mn10x00.c: New files. | |
1308 | * Makefile.in (ALL_MACHINES): Add cpu-mn10x00.o. | |
1309 | (BFD32_BACKENDS): Similarly for elf32-mn10x00.o. | |
1310 | (elf32-mn10x00.o): Add dependencies. | |
1311 | * archures.c (enum bfd_architecture): Add bfd_arch_mn10x00. | |
1312 | (bfd_mn10x00_arch): Declare. | |
1313 | (bfd_archures_list): Add bfd_mn10x00_arch. | |
1314 | * config.bfd: Add mn10x00-*-*. | |
1315 | * configure.in: Add bfd_elf32_mn10x00_vec. | |
1316 | * elf.c (prep_headers): Handle bfd_arch_mn10x00. | |
1317 | * targets.c (bfd_elf32_mn10x00_vec): Declare. | |
1318 | (bfd_target_vector): Add bfd_elf32_mn10x00_vec. | |
1319 | * bfd-in2.h, configure: Rebuilt. | |
1320 | ||
bf53bd9f ILT |
1321 | Wed Oct 2 15:46:45 1996 Klaus Kaempf <[email protected]> |
1322 | ||
1323 | openVMS/Alpha: Provide filename and case_hack flags via | |
1324 | symbol table from gas. | |
1325 | Add case_hack code for symbol output from vax/vms. | |
1326 | * evax-alpha.c (evax_initialize): Remove filename handling, | |
1327 | filename is provided via symbol table. | |
1328 | (evax_get_symtab): Use local symbol count when setting up table. | |
1329 | * evax-egsd.c (_bfd_evax_slurp_egsd): Print correct name when | |
1330 | debugging. | |
1331 | (_bfd_evax_write_egsd): Skip file name symbol. | |
1332 | * evax-emh.c (get_vms_time_string): Local function now. | |
1333 | (_bfd_evax_write_emh): Extract source filename and case_hack flags | |
1334 | from symbol table. | |
1335 | * evax_write_etir (_bfd_evax_write_etir): Pass all symbol names | |
1336 | through _bfd_evax_case_hack_symbol. | |
1337 | * evax-misc.c (hash_string, _bfd_evax_case_hack_symbol): New | |
1338 | functions. | |
1339 | (_bfd_evax_basename): Removed. | |
1340 | (_bfd_get_vms_time_string): Moved to evax-emh.c. | |
1341 | * evax.h (evax_private_data_struct): Remove filename. | |
1342 | (flag_hash_long_names, flag_show_after_trunc, | |
1343 | flag_no_hash_mixed_case, vms_name_mapping): New flags for | |
1344 | vms_case_hack. | |
1345 | ||
263d4a62 ILT |
1346 | Wed Oct 2 12:02:02 1996 Ian Lance Taylor <[email protected]> |
1347 | ||
a0fe6c2d ILT |
1348 | * freebsd.h (N_GET_MAGIC_NET): Don't use ntohl. |
1349 | (N_GETMID_NET, N_GETFLAG_NET): Likewise. | |
1350 | (NO_SWAP_MAGIC): Don't define. | |
1351 | (SWAP_MAGIC): Define. | |
1352 | ||
263d4a62 ILT |
1353 | * cofflink.c (_bfd_coff_link_input_bfd): Don't crash if there is |
1354 | no hash table entry for a global symbol. | |
1355 | ||
161ac690 ILT |
1356 | Tue Oct 1 16:14:22 1996 Joel Sherrill <[email protected]> |
1357 | ||
1358 | * config.bfd (mips*-*-rtems*): New target, like mips*-*-elf*. | |
1359 | ||
0db6249c ILT |
1360 | Tue Oct 1 12:31:39 1996 Ian Lance Taylor <[email protected]> |
1361 | ||
8dd53b5c ILT |
1362 | * cofflink.c (coff_link_add_symbols): Don't override a meaningful |
1363 | symbol type with T_NULL. Warn if symbol type changes. Based on | |
e5c4495c | 1364 | patch from Philippe De Muyter <[email protected]>. |
8dd53b5c | 1365 | |
0db6249c ILT |
1366 | * elflink.h (elf_link_add_object_symbols): Only put a symbol from |
1367 | a dynamic object in the dynamic symbol table if it is referenced | |
1368 | or defined by a regular object. | |
1369 | ||
1370 | start-sanitize-v850 | |
1371 | Fri Sep 27 18:41:07 1996 Stu Grossman ([email protected]) | |
1372 | ||
1373 | * elf32-v850.c (bfd_elf32_v850_is_local_label): New function to | |
1374 | remove dwarf local labels. Shrinks binaries by a factor of 3! | |
1375 | ||
1376 | end-sanitize-v850 | |
1377 | Mon Sep 23 13:33:00 1996 Ian Lance Taylor <[email protected]> | |
1378 | ||
1379 | * elf32-ppc.c (ppc_elf_add_symbol_hook): Create the .sbss section | |
1380 | by hand, rather than by calling bfd_make_section. | |
1381 | ||
80675684 DE |
1382 | start-sanitize-m32r |
1383 | Mon Sep 23 09:23:41 1996 Doug Evans <[email protected]> | |
1384 | ||
1385 | * reloc.c: Rename m32r relocs. | |
1386 | * bfd-in2.h, libbfd.h: Rebuilt. | |
1387 | * elf32-m32r.c: Update. | |
80675684 | 1388 | |
0db6249c | 1389 | end-sanitize-m32r |
a5a43df1 ILT |
1390 | Fri Sep 20 11:43:43 1996 Ian Lance Taylor <[email protected]> |
1391 | ||
e12ab364 ILT |
1392 | * aoutx.h (aout_link_input_section_ext): When doing a relocateable |
1393 | link, adjust the symbol index of a base relative reloc. Don't | |
1394 | change the addend of a PC relative reloc if pcrel_offset is set. | |
1395 | * sunos.c (bfd_sunos_size_dynamic_sections): Don't do anything for | |
1396 | a relocateable link. | |
1397 | ||
a5a43df1 ILT |
1398 | * reloc.c (bfd_perform_relocation): Apply the relocation even if |
1399 | it is zero, in case src_mask matters. | |
1400 | (bfd_install_relocation): Likewise. | |
1401 | ||
e425358f ILT |
1402 | Thu Sep 19 11:03:06 1996 Ian Lance Taylor <[email protected]> |
1403 | ||
1404 | * xcofflink.c (xcoff_link_add_symbols): Always initialize | |
1405 | keep_syms. | |
1406 | (_bfd_xcoff_bfd_final_link): Don't set target_index | |
1407 | to an uninitialized value. | |
1408 | ||
7f21c97c ILT |
1409 | Tue Sep 17 14:18:31 1996 Ian Lance Taylor <[email protected]> |
1410 | ||
1411 | * coffcode.h (coff_slurp_line_table): Warn about illegal symbol | |
1412 | indices, rather than crashing. | |
1413 | (coff_slurp_reloc_table): Likewise. Check whether the howto field | |
1414 | is NULL. | |
8d784abe ILT |
1415 | * coff-sh.c (sh_relocate_section): Check for an illegal symbol |
1416 | index. | |
7f21c97c | 1417 | |
9859bc31 ILT |
1418 | Mon Sep 16 12:39:36 1996 Ian Lance Taylor <[email protected]> |
1419 | ||
1153e84b ILT |
1420 | * coff-arm.c (aoutarm_std_reloc_howto): Change dst_mask for ARM26D |
1421 | reloc to 0. | |
1422 | (coff_arm_adjust_symndx): New static function. | |
1423 | (coff_adjust_symndx): Define. | |
1424 | ||
9859bc31 ILT |
1425 | * srec.c (srec_scan): Accept multiple symbols on a single line. |
1426 | From Pascal Martin <[email protected]>. | |
1427 | ||
1428 | * README: New file. | |
1429 | ||
f8b82e49 DE |
1430 | Fri Sep 13 14:32:42 1996 Doug Evans <[email protected]> |
1431 | ||
1432 | * aoutf1.h (MY_bfd_merge_private_bfd_data): Define. | |
1433 | (sunos_merge_private_bfd_data): New function. | |
1434 | ||
0a7b8735 ILT |
1435 | Fri Sep 13 15:50:57 1996 Ian Lance Taylor <[email protected]> |
1436 | ||
76d30c3f ILT |
1437 | * bfd.c (bfd_copy_private_bfd_data): Switch on output BFD rather |
1438 | than input BFD. | |
1439 | (bfd_merge_private_bfd_data): Likewise. | |
1440 | * section.c (bfd_copy_private_section_data): Likewise. | |
1441 | * syms.c (bfd_copy_private_symbol_data): Likewise. | |
1442 | * bfd-in2.h: Rebuild. | |
1443 | * aout-target.h (MY_bfd_copy_private_section_data): Check that | |
1444 | both BFD's are the right flavour. | |
1445 | * ecoff.c (_bfd_ecoff_bfd_copy_private_bfd_data): Likewise. | |
1446 | * elf.c (_bfd_elf_copy_private_symbol_data): Likewise. | |
1447 | * elf32-mips.c (_bfd_mips_elf_copy_private_bfd_data): Likewise. | |
1448 | (_bfd_mips_elf_merge_private_bfd_data): Likewise. | |
1449 | * elf32-ppc.c (ppc_elf_copy_private_bfd_data): Likewise. | |
1450 | (ppc_elf_merge_private_bfd_data): Likewise. | |
1451 | * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Likewise. | |
1452 | * peicode.h (pe_bfd_copy_private_section_data): Likewise. | |
1453 | ||
0a7b8735 ILT |
1454 | * elf32-hppa.c (elf_hppa_howto_table): Fill in some fields for |
1455 | R_PARISC_DIR32, so that _bfd_stab_section_find_nearest_line passes | |
1456 | its sanity check. | |
1457 | ||
3ebefb07 DE |
1458 | start-sanitize-m32r |
1459 | Thu Sep 12 11:45:57 1996 Doug Evans <[email protected]> | |
1460 | ||
1461 | * reloc.c: Add m32r relocs. | |
1462 | * bfd-in2.h, libbfd.h: Rebuilt. | |
6cb9c903 | 1463 | * cpu-m32r.c,elf32-m32r.c: New files. |
3ebefb07 | 1464 | |
76d30c3f | 1465 | end-sanitize-m32r |
cacfb845 ILT |
1466 | Thu Sep 12 11:10:05 1996 Ian Lance Taylor <[email protected]> |
1467 | ||
1468 | * ieee.c (ieee_vec): Set symbol_leading_char field to '_'. | |
1469 | ||
d7775b43 ILT |
1470 | Wed Sep 11 11:57:56 1996 Ian Lance Taylor <[email protected]> |
1471 | ||
e461da9b ILT |
1472 | * tekhex.c (first_phase): Change type parameter from char to int. |
1473 | (out): Likewise. | |
1474 | (pass_over): Change func to expect int, not char. | |
1475 | ||
d7775b43 ILT |
1476 | * elf.c (assign_file_positions_for_segments): Test SEC_ALLOC |
1477 | rather than SEC_LOAD when aligning the file offset for the first | |
1478 | section in a segment. | |
1479 | ||
ea3f0585 FF |
1480 | Tue Sep 10 16:18:30 1996 Fred Fish <[email protected]> |
1481 | ||
1482 | * syms.c (coff_section_type): Make arg const. | |
1483 | * irix-core.c (irix_core_core_file_p): Remove extraneous extra arg | |
1484 | to make_bfd_asection(). | |
1485 | * elf-bfd.h (bfd_section_from_phdr): Add prototype. | |
1486 | * elfcode.h (bfd_section_from_phdr): Remove prototype. | |
1487 | (_bfd_elf_stringtab_init): Remove prototype. | |
1488 | ||
1489 | * netbsd-core.c (swap_abort): Add prototype. | |
1490 | * aix386-core.c (swap_abort): Ditto & make static | |
1491 | * hpux-core.c (swap_abort): Ditto & make static. | |
1492 | * irix-core.c (swap_abort): Ditto & make static. | |
1493 | * ptrace-core.c (swap_abort): Ditto & make static. | |
1494 | * trad-core.c (swap_abort): Ditto & make static. | |
1495 | * coffswap.h (coff_swap_reloc_in): Ditto. | |
1496 | (coff_swap_reloc_out): Ditto. | |
1497 | (coff_swap_filehdr_in): Ditto. | |
1498 | (coff_swap_filehdr_out): Ditto. | |
1499 | (coff_swap_sym_in): Ditto. | |
1500 | (coff_swap_sym_out): Ditto. | |
1501 | (coff_swap_aux_in): Ditto. | |
1502 | (coff_swap_aux_out): Ditto. | |
1503 | (coff_swap_lineno_in): Ditto. | |
1504 | (coff_swap_lineno_out): Ditto. | |
1505 | (coff_swap_aouthdr_in): Ditto. | |
1506 | (coff_swap_aouthdr_out): Ditto. | |
1507 | (coff_swap_scnhdr_in): Ditto. | |
1508 | (coff_swap_scnhdr_out): Ditto. | |
1509 | * ihex.c (ihex_sizeof_headers): Ditto. | |
1510 | * tekhex.c (getsym): Ditto. | |
1511 | (find_chunk): Ditto & make static. | |
1512 | (insert_byte): Ditto. | |
1513 | (first_phase): Ditto. | |
1514 | (pass_over): Ditto. | |
1515 | (tekhex_get_symtab): Ditto & make static. | |
1516 | (tekhex_get_symtab_upper_bound): Ditto & make static. | |
1517 | (tekhex_mkobject): Ditto. | |
1518 | (tekhex_object_p): Ditto. | |
1519 | (move_section_contents): Ditto. | |
1520 | (tekhex_get_section_contents): Ditto. | |
1521 | (tekhex_set_arch_mach): Ditto & make static. | |
1522 | (tekhex_set_section_contents): Ditto. | |
1523 | (writevalue): Ditto. | |
1524 | (writesym): Ditto. | |
1525 | (out): Ditto. | |
1526 | (tekhex_write_object_contents): Ditto. | |
1527 | (tekhex_sizeof_headers): Ditto. | |
1528 | (tekhex_make_empty_symbol): Ditto. | |
1529 | (tekhex_get_symbol_info): Ditto. | |
1530 | (tekhex_print_symbol): Ditto. | |
1531 | * irix-core.c (make_bfd_asection): Ditto. | |
1532 | (irix_core_core_file_p): Ditto. | |
1533 | (irix_core_core_file_failing_command): Ditto. | |
1534 | (irix_core_core_file_failing_signal): Ditto. | |
1535 | (irix_core_core_file_matches_executable_p): Ditto. | |
1536 | (irix_core_make_empty_symbol): Ditto. | |
1537 | * coff-mips.c (mips_bfd_reloc_type_lookup): Ditto. | |
1538 | * srec.c (srec_new_symbol): Ditto. | |
1539 | (srec_get_section_contents): Ditto. | |
1540 | (srec_set_arch_mach): Ditto. | |
1541 | (srec_set_section_contents): Ditto. | |
1542 | (internal_srec_write_object_contents): Ditto. | |
1543 | (srec_write_object_contents): Ditto. | |
1544 | (symbolsrec_write_object_contents): Ditto. | |
1545 | (srec_sizeof_headers): Ditto. | |
1546 | (srec_make_empty_symbol): Ditto. | |
1547 | (srec_get_symtab_upper_bound): Ditto. | |
1548 | (srec_get_symtab): Ditto. | |
1549 | (srec_print_symbol): Ditto and make static. | |
1550 | * elf.c (elf_read): Ditto | |
1551 | (assign_section_numbers): Ditto. | |
1552 | (elf_fake_sections): Ditto. | |
1553 | (sym_is_global): Ditto. | |
1554 | (elf_map_symbols): Ditto. | |
1555 | (get_program_header_size): Ditto. | |
1556 | * coffgen.c (make_a_section_from_file): Ditto. | |
1557 | (coff_real_object_p): Ditto. | |
1558 | (fixup_symbol_value): Ditto. | |
1559 | (build_debug_section): Ditto. | |
1560 | (copy_name): Ditto. | |
1561 | * syms.c (coff_section_type): Ditto. | |
1562 | ||
3ebefb07 | 1563 | start-sanitize-m32r |
00d7a64b JL |
1564 | Mon Sep 9 22:36:01 1996 Jeffrey A Law ([email protected]) |
1565 | ||
1566 | * bfd-in2.h: Rebuilt after m32r changes. | |
1567 | ||
1568 | end-sanitize-m32r | |
71d7d44f DE |
1569 | Mon Sep 9 12:31:22 1996 Doug Evans <[email protected]> |
1570 | ||
66e4c229 DE |
1571 | start-sanitize-m32r |
1572 | * config.bfd,configure.in,configure: Add m32r support. | |
f0c12b73 | 1573 | * Makefile.in,archures.c,elf.c,targets.c: Likewise. |
66e4c229 | 1574 | end-sanitize-m32r |
71d7d44f DE |
1575 | * config.bfd: Keep target list alphabetically sorted. |
1576 | ||
629f776a JL |
1577 | start-sanitize-v850 |
1578 | Mon Sep 9 11:48:41 1996 Jeffrey A Law ([email protected]) | |
1579 | ||
1580 | * elf32-v850.c (bfd_elf32_v850_reloc, case R_V850_HI16): Don't forget | |
1581 | to add in the constant part found in the instruction itself. | |
1582 | (case R_V850_HI16_S): Likewise. | |
1583 | ||
1584 | end-sanitize-v850 | |
9c85b19d MH |
1585 | Fri Sep 6 17:04:39 1996 Martin M. Hunt <[email protected]> |
1586 | ||
1587 | * elf32-d10v.c (elf_d10v_howto_table): Modify the size of R_D10V_16 | |
1588 | and R_D10V_18 to be 1 (word). | |
1589 | ||
4be2140e ILT |
1590 | Thu Sep 5 15:23:08 1996 Ian Lance Taylor <[email protected]> |
1591 | ||
1592 | * stabs.c (_bfd_link_section_stabs): If the output_section field | |
1593 | of either section is bfd_abs_section, then the linker is | |
1594 | discarding the section and we should not optimize it. | |
1595 | ||
0cd98b92 DE |
1596 | Tue Sep 3 12:16:20 1996 Doug Evans <[email protected]> |
1597 | ||
1598 | * Makefile.in (aout-sparcle.o): New target. | |
1599 | * aoutf1.h (TARGET_IS_BIG_ENDIAN_P): Don't define if little endian. | |
1600 | * config.bfd (sparclet-*-aout*): Add case. | |
1601 | * configure.in (sparcle_aout_vec): Add case. | |
1602 | * configure: Regenerated. | |
0cd98b92 DE |
1603 | * targets.c (sparcle_aout_vec): Declare. |
1604 | (bfd_target_vector): Add sparcle_aout_vec. | |
1605 | * aout-sparcle.c: New file. | |
1606 | ||
b5ef63c4 | 1607 | start-sanitize-v850 |
7b0af209 | 1608 | Tue Sep 3 00:57:02 1996 Jeffrey A Law ([email protected]) |
b5ef63c4 | 1609 | |
e73b6ae6 JL |
1610 | * elf32-v850.c (bfd_elf32_v850_reloc): Fix handling of |
1611 | low order sign bit propogation for R_V850_HI16_S. | |
1612 | ||
1613 | * elf32-v850.c (bfd_elf32_v850_reloc): New function for | |
7b0af209 JL |
1614 | handling V850 specific relocs. |
1615 | (elf_v850_howto_table): Use the new function for some | |
1616 | relocations. Twiddle masks & shifts for some relocs. | |
1617 | Set partial_inplace where needed. | |
1618 | ||
1619 | end-sanitize-v850 | |
1620 | Mon Sep 2 12:12:34 1996 Ian Lance Taylor <[email protected]> | |
1621 | ||
1622 | * cpu-mips.c: Add an explicit mips:3000 entry, and change the | |
1623 | default architecture to a machine number of 0. | |
1624 | * elf32-mips.c (_bfd_mips_elf_object_p): Set the machine number | |
1625 | for E_MIPS_ARCH_1. | |
1626 | (_bfd_mips_elf_merge_private_bfd_data): If the machine number of | |
1627 | the output BFD is the default, set it from the first input BFD. | |
1628 | ||
1629 | start-sanitize-v850 | |
1630 | Sun Sep 1 18:38:01 1996 Jeffrey A Law ([email protected]) | |
1631 | ||
1632 | * elf32-v850.c (elf_v850_howto_table): All the 16bit relocs | |
1633 | insert at bitpos zero. The HI16 relocs are shifted right | |
1634 | by 16 bits. Fix src_mask for all relocs. | |
1635 | (TARGET_LITTLE_SYM, TARGET_LITTLE_NAME): Define. The V850 is | |
1636 | little endian! | |
1637 | (TARGET_BIG_SYM, TARGET_BIG_NAME): Remove. The V850 is little | |
1638 | endian! | |
b5ef63c4 MA |
1639 | |
1640 | end-sanitize-v850 | |
bde9d875 ILT |
1641 | Sun Sep 1 15:41:08 1996 Ian Lance Taylor <[email protected]> |
1642 | ||
1643 | * rs6000-core.c (rs6000coff_core_file_matches_executable_p): | |
1644 | Rewrite to use BFD file read routines and to avoid using a fixed | |
1645 | length for the file name. | |
1646 | ||
01b49cb3 | 1647 | start-sanitize-v850 |
237b5c4c JL |
1648 | Sat Aug 31 10:22:25 1996 Jeffrey A Law ([email protected]) |
1649 | ||
1650 | * elf32-v850.c (enum reloc_type): Add R_V850_{32,16,8}. | |
1651 | (elf_v850_howto_table): Add support for R_V850_{32,16,8}. | |
1652 | (v850_reloc_map): Add translation from BFD_RELOC_{32,16,8} | |
1653 | to R_V850_{32,16,8}. | |
1654 | ||
01b49cb3 C |
1655 | Fri Aug 30 18:06:04 1996 J.T. Conklin <[email protected]> |
1656 | ||
1657 | * elf32-v850.c (reloc_type): Add R_V850_HI16_S. | |
1658 | (elf_v850_howto_table): Add info for HI16_S reloc. | |
1659 | (v850_reloc_map): Add HI_16_S reloc. | |
1660 | * reloc.c: Define BFD_RELOC_V850_* relocs. | |
1661 | ||
1662 | end-sanitize-v850 | |
492cfc71 ILT |
1663 | Fri Aug 30 11:49:19 1996 Ian Lance Taylor <[email protected]> |
1664 | ||
c86158e5 ILT |
1665 | Add SH ELF support. |
1666 | * elf32-sh.c: New file. | |
1667 | * elf.c (prep_headers): Handle bfd_arch_sh. | |
1668 | * elfcode.h (write_relocs): Handle absolute symbol. | |
1669 | * elf-bfd.h (_bfd_elf32_link_read_relocs): Declare. | |
1670 | (_bfd_elf64_link_read_relocs): Declare. | |
1671 | * elflink.h (NAME(_bfd_elf,link_read_relocs)): Rename from | |
1672 | elf_link_read_relocs. Make globally visible. Change all | |
1673 | callers. | |
1674 | (elf_link_input_bfd): Get external symbols from cache in | |
1675 | symtab_hdr->contents. Get contents from cache in | |
1676 | elf_section_data. | |
1677 | * elfxx-target.h (bfD_elfNN_bfd_relax_section): Only define if not | |
1678 | already defined. | |
1679 | * reloc.c: Define BFD_RELOC_SH_* relocs. | |
1680 | * libbfd-in.h (_bfd_sh_align_load_span): Declare. | |
1681 | * coff-sh.c (sh_insns_conflict): Fix a return value. | |
1682 | (_bfd_sh_align_load_span): New globally visible function, broken | |
1683 | out of sh_align_load. | |
1684 | (sh_align_load): Call _bfd_sh_align_load_span. | |
1685 | (sh_swap_insns): Change relocs parameter to PTR. | |
1686 | * bfd-in2.h, libbfd.h: Rebuild. | |
1687 | * targets.c (bfd_elf32_sh_vec): Declare. | |
1688 | (bfd_elf32_shl_vec): Declare. | |
1689 | * config.bfd (sh-*-elf*): New target. | |
1690 | * configure.in (bfd_elf32_sh_vec): New target vector. | |
1691 | (bfd_elf32_shl_vec): New target vector. | |
1692 | * configure: Rebuild. | |
1693 | * Makefile.in: Rebuild dependencies. | |
1694 | (BFD32_BACKENDS): Add elf32-sh.o. | |
1695 | (BFD32_BACKENDS_CFILES): Add elf32-sh.c. | |
1696 | ||
1697 | * elf.c (map_sections_to_segments): Check that LMA does not skip a | |
1698 | page before checking D_PAGED. | |
1699 | ||
492cfc71 ILT |
1700 | * ihex.c (ihex_scan): Removed unnecessary extbase variable. |
1701 | (ihex_write_object_contents): Remove extbase; always use segbase | |
1702 | instead. | |
1703 | ||
f7954d86 MM |
1704 | Thu Aug 29 16:52:17 1996 Michael Meissner <[email protected]> |
1705 | ||
1706 | * configure.in (i[345]86-*-*): Recognize i686 for pentium pro. | |
1707 | * configure.host (i[345]86-*-*): Ditto. | |
1708 | * config.bfd (i[345]86-*-*): Ditto. | |
1709 | * configure: Regenerate. | |
1710 | ||
1711 | * config.bfd (i[3456]86-*-dgux*): Recognize as a synonym for x86 | |
1712 | elf. | |
1713 | ||
1714 | Tue Aug 27 09:18:18 1996 Jeffrey A Law ([email protected]) | |
1715 | ||
1716 | * elf32-hppa.c (hppa_elf_gen_reloc_type): Add new argument. | |
1717 | * elf32-hppa.h (hppa_elf_gen_reloc_type): Update prototype. | |
1718 | * som.c (hppa_som_gen_reloc_type): Add new argument. If | |
1719 | we encounter an R_DATA_ONE_SYMBOL reloc against a symbol that | |
1720 | will have an ST_CODE type, change the symbol's type to ST_DATA. | |
1721 | * som.c (hppa_som_gen_reloc_type): Update prototype. | |
1722 | ||
4da624dd ILT |
1723 | Tue Aug 27 00:12:22 1996 Ian Lance Taylor <[email protected]> |
1724 | ||
1725 | * elf32-mips.c (mips_elf_check_relocs): Set dynobj if needed for | |
1726 | R_MIPS_32 and R_MIPS_REL32. Set sgot and g as soon as possible. | |
1727 | (mips_elf_size_dynamic_sections): Don't require .got to exist. | |
1728 | (mips_elf_finish_dynamic_sections): Likewise. | |
1729 | ||
9461513b ILT |
1730 | Thu Aug 22 10:54:38 1996 Ian Lance Taylor <[email protected]> |
1731 | ||
1c952df6 ILT |
1732 | * configure.host (HLDENV): New variable to set. Set it for |
1733 | *-*-sysv4*, since those linkers may not support -R but they always | |
1734 | support LD_RUN_PATH. | |
1735 | ||
9461513b ILT |
1736 | * libieee.h (NSECTIONS): Don't define. |
1737 | (ieee_data_struct): Change section_table to asection **. Add | |
1738 | section_table_size. | |
1739 | * ieee.c (get_section_entry): If the table isn't big enough, make | |
1740 | it bigger. | |
1741 | (ieee_slurp_sections): Remove assertion about number of sections. | |
1742 | (ieee_object_p): Adjust initialization of ieee to match changes to | |
1743 | the structure. | |
1744 | ||
1745 | * xcofflink.c (xcoff_mark): Don't copy relocs for undefined | |
1746 | symbols merely because we are generating a shared library. | |
1747 | (xcoff_build_ldsyms): Don't set up global linkage code for an | |
1748 | undefined symbol merely because we are generating a shared | |
1749 | library. | |
1750 | ||
0c1d95c7 C |
1751 | start-sanitize-v850 |
1752 | Tue Aug 20 15:06:05 1996 J.T. Conklin <[email protected]> | |
1753 | ||
1754 | * Makefile.in (ALL_MACHINES): Add cpu-v850.o. | |
1755 | (BFD32_BACKENDS) Add elf32-v850.o. | |
1756 | * archures.c: Add bfd_v850_arch. | |
1757 | * bfd-in2.h: Add bfd_v850_arch. | |
1758 | * config.bfd (v850-*-*): New target. | |
1759 | * configure: (bfd_elf32_v850_vec) New vector. | |
1760 | * configure.in: (bfd_elf32_v850_vec) New vector. | |
1761 | * cpu-v850.c: New file. | |
1762 | * elf.c (prep_headers): Added case bfd_arch_v850. | |
1763 | * elf32-v850.c: New file. | |
1764 | * targets.c (bfd_elf32_v850_vec): New vector. | |
1765 | ||
1766 | end-sanitize-v850 | |
1767 | Fri Aug 16 16:25:35 1996 Ian Lance Taylor <[email protected]> | |
1768 | ||
1769 | * xcofflink.c (xcoff_link_add_dynamic_symbols): Create and define | |
1770 | a function code symbol for an XMC_XO symbol. | |
1771 | ||
22edd547 SS |
1772 | Thu Aug 15 12:33:29 1996 Stan Shebs <[email protected]> |
1773 | ||
1774 | * mpw-config.in: Update editing of autoconf vars to reflect | |
1775 | Jul 18 configure.in change. | |
1776 | * mpw-make.sed: Update editing of include pathnames to be | |
1777 | more general, add @DASH_C_FLAG@ to explicit compile rule edit. | |
1778 | ||
1779 | Thu Aug 15 10:35:13 1996 Richard Henderson <[email protected]> | |
1780 | ||
1781 | * elf64-alpha.c (elf64_alpha_output_extsym): The section from | |
1782 | which to offset to get the .plt entry address is ".plt". | |
1783 | ||
53ef6e60 JSC |
1784 | Thu Aug 15 16:40:30 1996 James G. Smith <[email protected]> |
1785 | ||
1786 | * reloc.c: (BFD_RELOC_ARM_THUMB_ADD, BFD_RELOC_ARM_THUMB_IMM, | |
1787 | BFD_RELOC_ARM_THUMB_SHIFT, BFD_RELOC_ARM_THUMB_OFFSET): | |
1788 | Added, for internal use by the ARM gas. | |
1789 | * libbfd.h: Rebuilt | |
1790 | * bfd-in2.h: Rebuilt | |
1791 | ||
37d7888d ILT |
1792 | Wed Aug 14 17:02:09 1996 Richard Henderson <[email protected]> |
1793 | ||
1794 | * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Correct typo | |
1795 | in section dynidx start. | |
1796 | ||
e38d6d36 ILT |
1797 | Tue Aug 13 14:35:38 1996 Ian Lance Taylor <[email protected]> |
1798 | ||
1799 | * elf.c (_bfd_elf_make_section_from_shdr): Treat sections whose | |
1800 | name begins with .gnu.linkonce as SEC_LINK_ONCE. This is an | |
1801 | optimization for g++. | |
1802 | ||
ae20860e MM |
1803 | Tue Aug 13 17:04:40 1996 Michael Meissner <[email protected]> |
1804 | ||
1805 | * elf32-ppc.c (ppc_elf_merge_private_bfd_data): If one module has | |
1806 | the -mrelocatable-lib bit set and the other doesn't, clear the | |
1807 | -mrelocatable-lib bit in the header. | |
1808 | ||
4596421b ILT |
1809 | Sat Aug 10 22:59:17 1996 Ian Lance Taylor <[email protected]> |
1810 | ||
1811 | * elflink.h (elf_link_add_object_symbols): Do not resolve a common | |
1812 | symbol against a STT_FUNC symbol in a shared library. | |
1813 | ||
f11e3f62 ILT |
1814 | Fri Aug 9 12:44:57 1996 Ian Lance Taylor <[email protected]> |
1815 | ||
410bc61d ILT |
1816 | * xcofflink.c (xcoff_link_add_dynamic_symbols): If a descriptor |
1817 | symbol is found, automatically define the corresponding function | |
1818 | code. | |
1819 | ||
d92099f1 ILT |
1820 | * cofflink.c (coff_link_add_symbols): Only set (*sym_hash)->numaux |
1821 | if sym.n_numaux is not zero. | |
1822 | (_bfd_coff_link_input_bfd): Permit the symbol and the hash table | |
1823 | entry to disagree about the number of aux entries if the symbol | |
1824 | has zero. | |
1825 | ||
f11e3f62 ILT |
1826 | * elf32-mips.c (mips_elf_check_relocs): Create the .rel.dyn |
1827 | section if it might be needed, not just if info->shared. | |
1828 | (mips_elf_adjust_dynamic_symbol): Make room for a null element at | |
1829 | the start of .rel.dyn if we are going to use it. | |
1830 | (mips_elf_finish_dynamic_sections): Only clear the first element | |
1831 | of .rel.dyn if the size is greater than zero. | |
1832 | ||
fbc4ed7d ILT |
1833 | Thu Aug 8 16:24:55 1996 Ian Lance Taylor <[email protected]> |
1834 | ||
b2a05baf ILT |
1835 | * xcofflink.c (xcoff_link_input_bfd): If we already called the |
1836 | undefined_symbol callback for a symbol, then don't issue any more | |
1837 | warnings about loader relocs. | |
1838 | (_bfd_ppc_xcoff_relocate_section): Don't do any further processing | |
1839 | after calling the undefined_symbol callback. | |
1840 | ||
fbc4ed7d ILT |
1841 | * xcofflink.c (XCOFF_MULTIPLY_DEFINED): Define. |
1842 | (xcoff_link_add_symbols): Permit multiple definitions of a symbol | |
1843 | as the AIX linker seems to do. | |
1844 | ||
8612a388 ILT |
1845 | Thu Aug 8 12:21:56 1996 Klaus Kaempf <[email protected]> |
1846 | ||
1847 | * evax-alpha.c (evax_alpha_vec): Corrected flags, cleanup. | |
1848 | (evax_initialize): Remove evax_reloc_table. | |
1849 | (evax_close_and_cleanup): Ditto. | |
1850 | (reloc_nil): Ditto. | |
1851 | (alpha_howto_table): Remove ALPHA_R_SWREL32 and ALPHA_R_SWREL64 | |
1852 | entries. | |
1853 | (evax_bfd_reloc_type_lookup): Ditto. | |
1854 | * evax-egsd.c (_bfd_evax_slurp_egsd): Add a few casts; set | |
1855 | cooked_size == raw_size. | |
1856 | * evax-emh.c (_bfd_evax_register_filename): Remove. | |
1857 | * evax-etir.c (etir_stc): Allow ETIR_S_C_STC_xx commands. | |
1858 | * evax-misc.c (add_new_contents): Malloc section at full size. | |
1859 | (_bfd_save_evax_section): Memcpy section contents directly. | |
1860 | * evax.h (ALPHA_R_SWREL32, ALPHA_R_SWREL64): Remove. | |
1861 | (evax_reloc_table): Remove. | |
1862 | ||
1863 | * hosts/alphavms.h (O_ACCMODE): Define if needed. | |
1864 | ||
1865 | * makefile.vms: Add better support for DEC C compilation | |
1866 | Add evax.h dependencies | |
1867 | ||
1868 | * reloc.c (bfd_get_reloc_size): Add case for 16 byte reloc. | |
1869 | (BFD_RELOC_SWREL32,BFD_RELOC_SWREL64): Remove. | |
1870 | (BFD_RELOC_ALPHA_BASEREG): Remove. | |
1871 | * bfd-in2.h, libbfd.h: Rebuild. | |
1872 | ||
320a5c6b SG |
1873 | Thu Aug 8 08:17:32 1996 Stu Grossman ([email protected]) |
1874 | ||
1875 | * archive.c (bsd_write_armap): Ifdef around calls to getuid and | |
1876 | getgid if _WIN32 is defined. | |
1877 | * opncls.c (bfd_fdopenr): Remove unnecessary WINGDB ifdef. | |
1878 | ||
2055bf85 SG |
1879 | Wed Aug 7 23:19:00 1996 Stu Grossman ([email protected]) |
1880 | ||
1881 | * aoutx.h bfd-in.h bfd-in2.h opncls.c riscix.c som.c targets.c: | |
1882 | Change NO_FLAGS to BFD_NO_FLAGS to avoid conflict with an HPUX | |
1883 | include file. | |
1884 | * libbfd.c: Create dummy getpagesize() macro if HAVE_GETPAGESIZE | |
1885 | isn't defined. | |
1886 | ||
85fe9d3e ILT |
1887 | Wed Aug 7 14:11:44 1996 Philippe De Muyter <[email protected]> |
1888 | ||
1889 | * configure.in: Call BFD_NEEDED_DECLARATION on strstr and | |
1890 | realloc. | |
1891 | * acconfig.h (NEED_DECLARATION_STRSTR): New macro. | |
1892 | (NEED_DECLARATION_REALLOC): New macro. | |
1893 | * configure, config.in: Rebuild. | |
1894 | * sysdep.h (strstr): Declare if NEED_DECLARATION_STRSTR. | |
1895 | (realloc): Declare if NEED_DECLARATION_REALLOC. | |
1896 | ||
1897 | * aclocal.m4 (BFD_NEED_DECLARATION): Include <string.h> or | |
1898 | <strings.h> if they exist. | |
1899 | ||
1900 | * ieee.c (ieee_set_section_contents): Cast bfd_alloc return. | |
1901 | ||
9b3307b0 ILT |
1902 | Wed Aug 7 12:12:03 1996 Ian Lance Taylor <[email protected]> |
1903 | ||
cc425b55 ILT |
1904 | * cpu-i386.c (i8086_arch): Architecture info for the i8086. |
1905 | ||
9b3307b0 ILT |
1906 | Based on patches from Eric Valette <[email protected]>: |
1907 | * elf32-i386.c (enum reloc_type): Add FIRST_INVALID_RELOC, | |
1908 | LAST_INVALID_RELOC, R_386_16, R_386_PC16, R_386_8, R_386_PC8. | |
1909 | (elf_howto_table): Add entries for new relocs. | |
1910 | (elf_i386_reloc_type_lookup): Handle new relocs. | |
1911 | (elf_i386_info_to_howto): Just call abort. | |
1912 | (elf_i386_info_to_howto_rel): Check that the reloc type is valid. | |
1913 | (elf_i386_relocate_section): Likewise. | |
1914 | ||
75e3a45a MH |
1915 | Tue Aug 6 12:54:56 1996 Martin M. Hunt <[email protected]> |
1916 | ||
1917 | * elf32-d10v.c (elf_d10v_howto_table): Added R_D10V_32. | |
1918 | ||
191d910c ILT |
1919 | Mon Aug 5 13:42:41 1996 Ian Lance Taylor <[email protected]> |
1920 | ||
b944e7e8 ILT |
1921 | * elf.c (_bfd_elf_make_section_from_shdr): For a loadable section, |
1922 | only get the LMA from the phdr if they are in the same part of the | |
1923 | file. | |
1924 | ||
191d910c ILT |
1925 | * elf.c (map_sections_to_segments): Rewrite tests for starting a |
1926 | new segment to make them more comprehensible. If the relationship | |
1927 | between the LMA and the VMA changed, start a new segment. Don't | |
1928 | check dynsec when deciding whether to start a new segment for a | |
1929 | writeable section; -N will now handle this. | |
1930 | ||
e751d506 JL |
1931 | Thu Aug 1 22:43:08 1996 Jeffrey A Law ([email protected]) |
1932 | ||
1933 | * libhppa.h: Remove "esel" changes. Not the right approach. | |
1934 | * som.c: Corresponding changes. | |
1935 | (som_bfd_derive_misc_symbol_info): Use ST_DATA for symbols | |
1936 | which don't have a SOM symbol type associated with them. | |
1937 | Reverses a 1994 change. | |
1938 | ||
cdb88e87 ILT |
1939 | Wed Jul 31 15:50:55 1996 Ian Lance Taylor <[email protected]> |
1940 | ||
1941 | Make ld -N more reasonable for ELF: | |
1942 | * elf.c (map_sections_to_segments): If D_PAGED is not set, set | |
1943 | phdr_in_section to false, and always use a single load segment. | |
1944 | (elf_sort_sections): Sort sections by LMA after VMA. | |
1945 | (assign_file_positions_for_segments): If D_PAGED is not set, don't | |
1946 | align to maxpagesize. | |
1947 | (assign_file_positions_except_relocs): Likewise. | |
1948 | * elfcode.h (elf_object_p): If a section is loaded but not page | |
1949 | aligned, clear D_PAGED. | |
1950 | ||
d1b40d8e JSC |
1951 | Wed Jul 31 15:00:12 1996 James G. Smith <[email protected]> |
1952 | ||
1953 | * reloc.c: (BFD_RELOC_ARM_OFFSETIMM8, BFD_RELOC_ARM_HWLITERAL): | |
1954 | Added, for internal use by the ARM gas. | |
1955 | * libbfd.h: Rebuilt | |
1956 | * bfd-in2.h: Rebuilt | |
1957 | ||
ad240a82 JL |
1958 | Tue Jul 30 14:14:57 1996 Jeffrey A Law ([email protected]) |
1959 | ||
1960 | * libhppa.h (R_HPPA_ESEL): New field selector. | |
1961 | (e_esel): Similarly. | |
1962 | * som.c (hppa_som_gen_reloc_type): If we encounter an e_esel, | |
1963 | then generate R_COMP2 (PUSH_SYM), R_DATA_EXPR fixup stream. | |
1964 | (som_write_fixups): Handle R_DATA_EXPR just like R_CODE_EXPR. | |
1965 | ||
fb4dc1eb ILT |
1966 | Tue Jul 30 13:31:27 1996 Ian Lance Taylor <[email protected]> |
1967 | ||
1968 | * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): Do the regular | |
1969 | archive search before looking for stripped dynamic objects. | |
1970 | ||
b223f950 ILT |
1971 | Fri Jul 26 17:51:39 1996 Ian Lance Taylor <[email protected]> |
1972 | ||
1973 | * xcofflink.c (xcoff_build_ldsyms): Make exporting an undefined | |
1974 | symbol a warning rather than an error. | |
1975 | ||
64f808f9 ILT |
1976 | Wed Jul 24 12:02:53 1996 Ian Lance Taylor <[email protected]> |
1977 | ||
1978 | * elf.c (assign_file_positions_for_segments): Track the virtual | |
1979 | memory position separately from the file position, and use it to | |
1980 | compute the alignment adjustment. | |
1981 | ||
11609502 MH |
1982 | Tue Jul 23 10:43:31 1996 Martin M. Hunt <[email protected]> |
1983 | ||
1984 | * elf32-d10v.c (elf_d10v_howto_table): Changed all relocs to "long" | |
1985 | and fixed mask on R_D10V_10_PCREL_L. | |
1986 | ||
9bd65136 ILT |
1987 | Mon Jul 22 15:30:30 1996 Ian Lance Taylor <[email protected]> |
1988 | ||
bf9884d4 ILT |
1989 | * elf64-mips.c: Include "aout/ar.h". |
1990 | (mips_elf64_slurp_armap): New static function. | |
1991 | (mips_elf64_write_armap): New static function. | |
1992 | (bfd_elf64_archive_*): Define. | |
1993 | * elfxx-target.h (bfd_elfNN_archive_p): Define if not defined. | |
1994 | Use instead of bfd_generic_archive_p. | |
1995 | (bfd_elfNN_write_archive_contents): Define if not defined. Use | |
1996 | instead of _bfd_write_archive_contents. | |
1997 | (bfd_elfNN_mkdarchive): Define if not defined. Use instead of | |
1998 | _bfd_generic_mkarchive. | |
1999 | (TARGET_BIG_SYM): If bfd_elfNN_archive_functions is defined, use | |
2000 | bfd_elfNN_archive in BFD_JUMP_TABLE_ARCHIVE rather than | |
2001 | _bfd_archive_coff. | |
2002 | (TARGET_LITTLE_SYM): Likewise. | |
2003 | * archive.c (bfd_slurp_armap): Check for and reject an archive map | |
2004 | name of /SYM64/. | |
2005 | * Makefile.in: Rebuild dependencies. | |
2006 | ||
2007 | * elf32-mips.c (_bfd_mips_elf_final_write_processing): Handle | |
2008 | SHT_MIPS_LIBLIST, SHT_MIPS_CONTENT, SHT_MIPS_SYMBOL_LIB, and | |
2009 | SHT_MIPS_EVENTS sections. | |
2010 | (_bfd_mips_elf_section_from_shdr): Handle SHT_MIPS_IFACE, | |
2011 | SHT_MIPS_CONTENT, SHT_MIPS_SYMBOL_LIB, and SHT_MIPS_EVENTS | |
2012 | sections. | |
2013 | (_bfd_mips_elf_fake_sections): Likewise. | |
2014 | ||
9bd65136 ILT |
2015 | * libecoff.h (ecoff_data_type): Add rdata_in_text field. |
2016 | * ecoff.c (ecoff_compute_section_file_positions): Copy | |
2017 | rdata_in_text from backend info to tdata. Clear it if any data | |
2018 | section comes before .rdata. | |
2019 | (_bfd_ecoff_write_object_contents): Use rdata_in_text field in | |
2020 | tdata rather than backend info. | |
2021 | ||
194141a9 ILT |
2022 | Fri Jul 19 18:15:51 1996 Ian Lance Taylor <[email protected]> |
2023 | ||
2024 | * configure.in: Fix test for whether a compiler has a 64 bit | |
2025 | type. From Jim Wilson <[email protected]>. | |
2026 | ||
a8a3d83a ILT |
2027 | Thu Jul 18 15:39:10 1996 Ian Lance Taylor <[email protected]> |
2028 | ||
f4e14cb9 ILT |
2029 | * configure.host (mips-sgi-irix6*): New host. |
2030 | ||
2031 | * configure.in: Set and substitute VERSION, BFD_HOST_64BIT_LONG | |
2032 | (replacing HOST_64BITLONG), BFD_HOST_64_BIT_DEFINED, | |
2033 | BFD_HOST_64_BIT, and BFD_HOST_U_64_BIT. Add bfd-in2.h:bfd-in2.h | |
2034 | to AC_OUTPUT call. | |
2035 | * configure: Rebuild. | |
2036 | * bfd-in.h (BFD_ARCH_SIZE): Define as @wordsize@, not @WORDSIZE@. | |
2037 | (BFD_HOST_64_BIT): Define conditionally. | |
2038 | (BFD_HOST_U_64_BIT): Define when BFD_HOST_64_BIT is defined. | |
2039 | (bfd_vma): Typedef as BFD_HOST_U_64_BIT. | |
2040 | (symvalue, bfd_size_type): Likewise. | |
2041 | * bfd-in2.h: Rebuild. | |
2042 | * Makefile.in (do_clean): Remove bfd-tmp.h. | |
2043 | (do_distclean): Remove bfd-in3.h. | |
2044 | (stmp-bfd.h): Just do copy-if-change bfd-in3.h bfd.h. | |
2045 | (bfd-in3.h): New target. | |
2046 | ||
74556b94 ILT |
2047 | * config.bfd (sparc-*-sysv4*): Don't build sunos_big_vec. From |
2048 | Andrew Gierth <[email protected]>. | |
2049 | ||
ab659fd6 ILT |
2050 | * configure.host: Set INSTALL_SHLIB. |
2051 | * configure.in: Call AC_SUBST (INSTALL_SHLIB). | |
2052 | * configure: Rebuild. | |
2053 | * Makefile.in (install): Use @INSTALL_SHLIB@. | |
2054 | ||
e8c249cb ILT |
2055 | * config.bfd (mips*-*-irix6*): New target. |
2056 | * configure.host: Handle Irix 6 shared library like Irix 5. | |
2057 | ||
a8a3d83a ILT |
2058 | * xcofflink.c (xcoff_link_add_symbols): Don't check an XMC_TD |
2059 | symbol for a magic name. | |
2060 | (xcoff_link_input_bfd): Don't change the reloc symbol for an | |
2061 | XMC_TD symbol. | |
2062 | (_bfd_ppc_xcoff_relocate_section): Don't get the TOC offset for an | |
2063 | XMC_TD symbol. | |
2064 | ||
b576c7b3 SS |
2065 | Thu Jul 18 11:36:31 1996 Stan Shebs <[email protected]> |
2066 | ||
2067 | * mpw-config.in: Add ELF support to mips config, create the | |
2068 | elf32-target.h file in the object dir. | |
2069 | * mpw-make.sed: Edit elfXX-target.h refs at beginnings of lines. | |
2070 | ||
2ba0d82d KK |
2071 | Wed Jul 17 18:02:32 1996 Kim Knuttila <[email protected]> |
2072 | ||
2073 | * coff-ppc.c: Redid debug scheme - numerous fprintf's gone. | |
2074 | Also removed most abort calls, in favor of using bfd reporting. | |
2075 | ||
b576c7b3 | 2076 | Wed Jul 17 14:51:52 1996 Martin M. Hunt <[email protected]> |
50bd50d4 | 2077 | |
b576c7b3 SS |
2078 | * Makefile.in (ALL_MACHINES): Add cpu-d10v.o. |
2079 | (BFD32_BACKENDS) Add elf32-d10v.o. | |
50bd50d4 MH |
2080 | * archures.c: Add bfd_d10v_arch. |
2081 | * bfd-in2.h: Add bfd_d10v_arch. | |
2082 | * config.bfd (d10v-*-*): New target. | |
2083 | * configure: (bfd_elf32_d10v_vec) New vector. | |
2084 | * configure.in: (bfd_elf32_d10v_vec) New vector. | |
2085 | * cpu-d10v.c: New file. | |
2086 | * elf.c (prep_headers): Added case bfd_arch_d10v. | |
2087 | * elf32-d10v.c: New file. | |
2088 | * libbfd.h: Rebuild. | |
b576c7b3 SS |
2089 | * reloc.c (BFD_RELOC_D10V_10_PCREL_R, BFD_RELOC_D10V_10_PCREL_L, |
2090 | BFD_RELOC_D10V_18, BFD_RELOC_D10V_18_PCREL): Define. | |
50bd50d4 | 2091 | * targets.c (bfd_elf32_d10v_vec): New vector. |
50bd50d4 | 2092 | |
2ce9802e KK |
2093 | Wed Jul 17 10:58:55 1996 Kim Knuttila <[email protected]> |
2094 | ||
2095 | * coff-ppc.c (coff_ppc_relocate_section): Removed bogus fprintf | |
2096 | ||
9676e446 | 2097 | Tue Jul 16 23:49:02 1996 Stu Grossman ([email protected]) |
3cc21bf6 | 2098 | |
9676e446 SG |
2099 | * archures.c bfd-in2.h: Add bfd_mach_i386_i386 and |
2100 | bfd_mach_i386_i8086 machine types. | |
3cc21bf6 | 2101 | |
f7171978 ILT |
2102 | Wed Jul 10 12:42:56 1996 Ian Lance Taylor <[email protected]> |
2103 | ||
2104 | * ecoff.c (_bfd_ecoff_new_section_hook): Set SEC_CODE for _INIT | |
2105 | and _FINI sections. | |
2106 | ||
74e2ab38 ILT |
2107 | Wed Jul 10 11:18:21 1996 Richard Henderson <[email protected]> |
2108 | ||
2109 | * coffcode.h (coff_set_section_contents): A/UX does not require | |
2110 | special handling of the _LIB section. | |
2111 | ||
01cfaa6b JL |
2112 | Tue Jul 9 15:52:20 1996 Jeffrey A Law ([email protected]) |
2113 | ||
2114 | * coff-h8300.c (h8300_reloc16_extra_cases): Use the correct | |
2115 | value for R_RELBYTE. | |
2116 | ||
2117 | * reloc16.c (bfd_coff_reloc16_relax_section): Only "shrinks" | |
2118 | array if one was allocated. | |
2119 | ||
eb52b9dc ILT |
2120 | Tue Jul 9 12:21:54 1996 Ian Lance Taylor <[email protected]> |
2121 | ||
2122 | From Kazumoto Kojima <[email protected]>: | |
2123 | * elf32-mips.c (struct mips_elf_link_hash_table): Add new fields | |
2124 | use_rld_obj_head and rld_value. | |
2125 | (mips_elf_link_hash_table_create): Initialize new fields. | |
2126 | (mips_elf_add_symbol_hook): Mark __rld_obj_head symbol as | |
2127 | dynamic. | |
2128 | (mips_elf_create_dynamic_sections): Create .rld_map section. If | |
2129 | __rld_obj_head symbol not seen, create an __rld_map symbol. | |
2130 | (mips_elf_size_dynamic_sections): Make space in .rld_map section. | |
2131 | Create a DT_MIPS_RLD_MAP entry rather than a DT_DEBUG entry. | |
2132 | (mips_elf_finish_dynamic_symbol): Save value of __rld_map or | |
2133 | __rld_obj_head symbol. | |
2134 | (mips_elf_finish_dynamic_sections): Handle DT_MIPS_RLD_MAP. | |
2135 | ||
56b4cbaa ILT |
2136 | Mon Jul 8 16:18:03 1996 Ian Lance Taylor <[email protected]> |
2137 | ||
9b292d4c ILT |
2138 | * elf32-mips.c (mips_reloc_map): Remove BFD_RELOC_32_PCREL entry. |
2139 | ||
dab45734 ILT |
2140 | * elf32-ppc.c (ppc_elf_howto_raw): For R_PPC_ADDR16_HA, use |
2141 | ppc_elf_addr16_ha_reloc. | |
2142 | (ppc_elf_addr16_ha_reloc): New static function. | |
2143 | ||
56b4cbaa ILT |
2144 | * coff-mips.c (struct mips_hi): Define. |
2145 | (mips_refhi_list): New static variable. | |
2146 | (mips_refhi_addr, mips_refhi_addend): Remove. | |
2147 | (mips_refhi_reloc): Maintain a list of unmatched REFHI relocs. | |
2148 | (mips_reflo_reloc): Process mips_refhi_list. | |
2149 | (mips_relhi_list): New static variable. | |
2150 | (mips_relhi_addr, mips_relhi_addend): Remove. | |
2151 | (mips_relhi_reloc): Maintain a list of unmatched RELHI relocs. | |
2152 | (mips_rello_reloc): Process mips_relhi_list. | |
2153 | (mips_relocate_section): Permit an arbitrary number of REFHI or | |
2154 | RELHI relocs before the associated REFLO or RELLO reloc. | |
2155 | ||
b777c6a7 ILT |
2156 | Fri Jul 5 19:27:49 1996 Ian Lance Taylor <[email protected]> |
2157 | ||
2158 | * aout-target.h (MY(callback)): Set reloc_count fields. | |
2159 | ||
100b65dd ILT |
2160 | Thu Jul 4 12:00:37 1996 Ian Lance Taylor <[email protected]> |
2161 | ||
48f3aaf3 ILT |
2162 | * sunos.c (sunos_add_dynamic_symbols): Don't create dynamic |
2163 | sections unless this is a SunOS link. | |
2164 | ||
100b65dd ILT |
2165 | * VERSION: Set to 2.7.1. |
2166 | ||
2167 | * Released binutils 2.7. | |
2168 | ||
a31e14f4 ILT |
2169 | Wed Jul 3 14:59:47 1996 Ian Lance Taylor <[email protected]> |
2170 | ||
4d3daf4f ILT |
2171 | * i386aout.c: Include "aout/aout64.h". |
2172 | (i386aout_write_object_contents): New static function. | |
2173 | (MY_write_object_contents): Define. | |
2174 | ||
a31e14f4 ILT |
2175 | * netbsd.h (MY(write_object_contents)): Make sure that |
2176 | adjust_sizes_and_vmas is called before fiddling with the magic | |
2177 | number. | |
2178 | ||
d2d04f7a ILT |
2179 | Tue Jul 2 23:30:39 1996 Ian Lance Taylor <[email protected]> |
2180 | ||
2181 | * stabs.c (_bfd_link_section_stabs): Fix casts of psinfo. | |
2182 | ||
4f6ee760 ILT |
2183 | Sun Jun 30 13:34:33 1996 Ian Lance Taylor <[email protected]> |
2184 | ||
2185 | * libbfd-in.h (itos, stoi): Don't define. | |
2186 | * libbfd.h: Rebuild. | |
2187 | * i386lynx.c (KEEPIT): Define as udata.i. | |
2188 | (NAME(lynx,swap_std_reloc_out)): Don't use stoi. | |
2189 | (NAME(lynx,swap_ext_reloc_out)): Likewise. | |
2190 | * riscix.c (riscix_swap_std_reloc_out): Use udata.i rather than | |
2191 | flags. Don't use stoi. | |
2192 | ||
2193 | * elf32-mips.c (ELF_MAGPAGESIZE): Change definition to 0x1000. | |
2194 | ||
2195 | * elf.c (map_sections_to_segments): Don't start a new segment for | |
2196 | a writable section if it's on the same page as the previous | |
2197 | segment. Reset the writable variable for a readonly section. | |
2198 | ||
dfb89b82 KK |
2199 | Sat Jun 29 16:18:51 1996 Kim Knuttila <[email protected]> |
2200 | ||
2201 | * peicode.h (coff_swap_aouthdr_in): Missing initializations of | |
2202 | first_thunk_address, thunk_size, and import_table_size. | |
2203 | * peicode.h: Improved some diagnostics regarding edata sections. | |
2204 | ||
2205 | * coff-ppc.c (coff_ppc_relocate_section): Earlier error check | |
2206 | on IMGLUE relocs. | |
2207 | (coff_ppc_relocate_section): Improved diagnostic for large TOCDEFN's. | |
2208 | (TARGET_LITTLE_SYM): Added missing D_PAGED. | |
2209 | ||
8e80606f ILT |
2210 | Fri Jun 28 13:48:45 1996 Ian Lance Taylor <[email protected]> |
2211 | ||
f93fb275 ILT |
2212 | * xcofflink.c (xcoff_link_check_ar_symbols): An undefined symbol |
2213 | with XCOFF_DEF_DYNAMIC set is really defined. | |
2214 | (xcoff_link_check_dynamic_ar_symbols): Likewise. | |
2215 | (xcoff_link_add_symbols): Only create special sections if using an | |
2216 | XCOFF hash table. | |
2217 | ||
8e80606f ILT |
2218 | * reloc.c (bfd_perform_relocation): Handle xcoff-powermac like |
2219 | aixcoff-rs6000. | |
2220 | (bfd_install_relocation): Likewise. | |
2221 | ||
eec2f824 ILT |
2222 | Fri Jun 28 11:17:00 1996 Richard Henderson <[email protected]> |
2223 | ||
2224 | * elf64-alpha.c (struct alpha_elf_link_hash_entry): Add flags | |
2225 | field. | |
2226 | (ALPHA_ELF_LINK_HASH_LU_ADDR): Define. | |
2227 | (ALPHA_ELF_LINK_HASH_LU_MEM): Define. | |
2228 | (ALPHA_ELF_LINK_HASH_LU_FUNC): Define. | |
2229 | (elf64_alpha_link_hash_newfunc): Initialize flags field. | |
2230 | (elf64_alpha_check_relocs): Record types of LITUSE entries that | |
2231 | are found for LITERAL relocs. | |
2232 | (elf64_alpha_adjust_dynamic_symbol): If a symbol has its address | |
2233 | taken, we cannot generate a .plt entry for the symbol. | |
2234 | ||
5304aea9 ILT |
2235 | Thu Jun 27 11:24:29 1996 Ian Lance Taylor <[email protected]> |
2236 | ||
2237 | * configure.in: Add AC_ISC_POSIX, and check for setitimer and | |
2238 | sysconf functions (for gprof). | |
2239 | * configure, config.in: Rebuild. | |
2240 | ||
017047d4 ILT |
2241 | Wed Jun 26 16:29:02 1996 Ian Lance Taylor <[email protected]> |
2242 | ||
f292bbe9 ILT |
2243 | * ecoff.c (_bfd_ecoff_archive_p): Check the first object file in |
2244 | an archive if it has a map. If the object file has the wrong | |
2245 | xvec, reject it. | |
2246 | ||
566e2325 ILT |
2247 | * coff-alpha.c (alpha_adjust_reloc_in): Set the addend for a |
2248 | BRADDR, SREL16, SREL32, or SREL64 reloc against an external | |
2249 | symbol. | |
2250 | (alpha_relocate_section): Likewise. | |
2251 | ||
017047d4 ILT |
2252 | * coffswap.h (coff_swap_reloc_out): Use RELSZ, not sizeof. |
2253 | (coff_swap_filehdr_out): Use FILHSZ, not sizeof. | |
2254 | (coff_swap_sym_out): Use SYMESZ, not sizeof. | |
2255 | (coff_swap_aux_out): Use AUXESZ, not sizeof. | |
2256 | (coff_swap_lineno_out): Use LINESZ, not sizeof. | |
2257 | (coff_swap_aouthdr_out): Use AOUTSZ, not sizeof. | |
2258 | (coff_swap_scnhdr_out): Use SCNHSZ, not sizeof. | |
2259 | * peicode.h: Corresponding changes. | |
2260 | ||
cb73f5d7 MM |
2261 | Tue Jun 25 15:28:34 1996 Michael Meissner <[email protected]> |
2262 | ||
2263 | * elflink.h (elf_create_pointer_linker_section): Comment out code | |
2264 | dealing with making GOT pointers negative of the GOT symbol for | |
2265 | now. | |
2266 | ||
297a4f1a ILT |
2267 | Tue Jun 25 11:41:24 1996 Richard Henderson <[email protected]> |
2268 | ||
2269 | * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't | |
2270 | increment the .rela.plt size until after we're done creating the | |
2271 | .plt entry. | |
2272 | (elf64_alpha_finish_dynamic_symbol): Change .plt entry to load the | |
2273 | .rela.plt offset directly rather than calculating it. | |
2274 | ||
dbbfec07 JM |
2275 | Mon Jun 24 17:15:10 1996 Jason Molenda ([email protected]) |
2276 | ||
01e58ff6 JM |
2277 | * Makefile.in, (bindir, libdir, datadir, mandir, infodir, includedir): |
2278 | Use autoconf-set values. | |
2279 | * doc/Makefile.in (bindir, libdir, datadir, mandir, infodir, | |
2280 | includedir, INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set | |
2281 | values. | |
dbbfec07 JM |
2282 | (docdir): Deleted. |
2283 | * configure.in (AC_PREREQ): autoconf v2.5 or higher. | |
2284 | * configure: Rebuilt. | |
2285 | ||
50004d8d JL |
2286 | Mon Jun 24 22:50:35 1996 Jeffrey A Law ([email protected]) |
2287 | ||
2288 | * som.c (som_write_fixups): Fix typo in R_END_TRY for exception | |
2289 | handling code > 1k away. | |
2290 | ||
2291 | Mon Jun 24 18:41:06 1996 Michael Meissner <[email protected]> | |
2292 | ||
2293 | * elflink.h (elf_create_pointer_linker_section): If DEBUG is | |
2294 | defined, output whenever the symbol is updated. | |
2295 | ||
2e0567eb ILT |
2296 | Mon Jun 24 17:58:12 1996 Jouke Numan <[email protected]> |
2297 | ||
2298 | * elf.c (elf_fake_sections): Don't set sh_addr of a non SEC_ALLOC | |
2299 | section to 0 if user_set_vma is set. | |
2300 | * elflink.h (elf_bfd_final_link): Likewise. | |
2301 | ||
2302 | Sun Jun 23 20:42:51 1996 Doug Evans <[email protected]> | |
2303 | ||
2304 | Partially undo patch of Jun 20. | |
2305 | * coffcode.h (coff_set_alignment_hook): Use COFF_IMAGE_WITH_PE. | |
2306 | (coff_compute_section_file_positions): Likewise. | |
2307 | (coff_write_object_contents): Likewise. Re-add deleted code, but | |
2308 | use #ifdef COFF_WITH_PE, not COFF_OBJ_WITH_PE. | |
2309 | * peicode.h (pe_bfd_copy_private_bfd_data): Re-add #ifdef. | |
2310 | ||
bff4a496 ILT |
2311 | Fri Jun 21 17:38:15 1996 Joel Sherrill <[email protected]> |
2312 | ||
2313 | * config.bfd: Add support for *-*-rtems* configurations. | |
2314 | ||
7ae6550f ILT |
2315 | Fri Jun 21 15:19:59 1996 Ian Lance Taylor <[email protected]> |
2316 | ||
2317 | * elf.c (prep_headers): Add bfd_arch_alpha case. | |
2318 | ||
e8f46717 ILT |
2319 | Fri Jun 21 12:35:27 1996 Richard Henderson <[email protected]> |
2320 | ||
2321 | * elf64-alpha.c: New file. | |
2322 | * config.bfd (alpha-*-linuxecoff*): New target. | |
2323 | (alpha-*-linux*, alpha-*-elf*): New targets. | |
2324 | * configure.in (bfd_elf64_alpha_vec): New vector. | |
2325 | * configure: Rebuild. | |
2326 | * targets.c (bfd_elf64_alpha_vec): Declare. | |
2327 | (bfd_target_vector): Add bfd_elf64_alpha_vec if BFD64. | |
2328 | * reloc.c (BFD_RELOC_ALPHA_GPDISP): Define. | |
2329 | * bfd-in2.h, libbfd.h: Rebuild. | |
2330 | * Makefile.in: Rebuild dependencies. | |
2331 | (BFD64_BACKENDS): Add elf64-alpha.o. | |
2332 | (BFD64_BACKENDS_CFILES): Add elf64-alpha.c. | |
2333 | ||
bacecac8 ILT |
2334 | Thu Jun 20 18:14:25 1996 Ian Lance Taylor <[email protected]> |
2335 | ||
2336 | * ecoff.c (ecoff_armap_hash): If hlog is 0, just return 0, rather | |
2337 | than relying on a right shift of 32. | |
2338 | ||
9ca108cd DE |
2339 | Thu Jun 20 11:00:57 1996 Doug Evans <[email protected]> |
2340 | ||
b9110a3c DE |
2341 | * coffcode.h (coff_set_alignment_hook): Change COFF_IMAGE_WITH_PE |
2342 | ifdef to COFF_WITH_PE. | |
2343 | (coff_compute_section_file_positions): Likewise. | |
2344 | (coff_write_object_contents): Likewise. Delete COFF_OBJ_WITH_PE. | |
2345 | * pe-{arm,i386,ppc}.c (COFF_OBJ_WITH_PE): Delete. | |
2346 | * peicode.h (pe_bfd_copy_private_bfd_data): Delete ifdef | |
2347 | COFF_IMAGE_WITH_PE, always include. | |
2348 | ||
9ca108cd DE |
2349 | * peicode.h (coff_swap_scnhdr_out): ".drectve" doesn't have trailing 0. |
2350 | ||
c2073f05 ILT |
2351 | Wed Jun 19 11:37:52 1996 Ian Lance Taylor <[email protected]> |
2352 | ||
7fc6a16a ILT |
2353 | * elf.c (map_sections_to_segments): Fix up the test for -Ttext to |
2354 | approximate the correct answer if SIZEOF_HEADERS was not used. | |
2355 | ||
c2073f05 ILT |
2356 | * binary.c (binary_set_section_contents): Set section file |
2357 | position based on LMA rather than VMA. | |
2358 | ||
4838929e ILT |
2359 | Wed Jun 19 11:19:25 1996 Manfred Hollstein KS/EIC5 60/3/142 #40283 <[email protected]> |
2360 | ||
2361 | * linker.c (_bfd_generic_link_output_symbols): Don't output any | |
2362 | symbols if info->strip == strip_all. | |
2363 | ||
2364 | Tue Jun 18 15:17:36 1996 Jeffrey A. Law <[email protected]> | |
2365 | ||
2366 | * coff-h8300.c: Remove #if 0 code. | |
2367 | (compatable): Don't allow mixing/matching of different architectures. | |
2368 | ||
4838929e ILT |
2369 | * archures.c (bfd_mach_h8300s): Add. |
2370 | * bfd-in2.h: Rebuilt. | |
2371 | * coff-h8300.c (funcvec_hash_newfunc): Handle H8/S too. | |
2372 | (BADMAG): Likewise. | |
2373 | (h8300_reloc16_estimate): Likewise. | |
2374 | (h8300_reloc16_extra_cases): Likewise. | |
2375 | (h8300_bfd_link_add_symbols): Likewise. | |
2376 | * coffcode.h (coff_set_arch_mach_hook): Likewise. | |
2377 | (coff_set_flags): Likewise. | |
2378 | * cpu-h8300.c (h8300_scan): Likewise. | |
2379 | Add H8/S to bfd_h8300_arch list. | |
2380 | ||
c3d8e071 ILT |
2381 | Tue Jun 18 14:42:58 1996 Klaus Kaempf <[email protected]> |
2382 | ||
2383 | Added support for Alpha OpenVMS: | |
2384 | * evax.h, evax-alpha.c, evax-egsd.c, evax-emh.c: New files. | |
2385 | * evax-etir.c, evax-misc.c, hosts/alphavms.h: New files. | |
2386 | * config.h-vms, makefile.vms: New files. | |
2387 | * config.bfd (alpha-*-*vms*): New target. | |
2388 | * configure.in (evax_alpha_vec): New target vector. | |
2389 | * configure: Rebuild. | |
2390 | * reloc.c (BFD_RELOC_SWREL32, BFD_RELOC_SWREL64): Define. | |
2391 | (BFD_RELOC_ALPHA_LINKAGE, BFD_RELOC_ALPHA_BASEREG): Define. | |
2392 | * targets.c (bfd_target_evax_flavour): Define. | |
2393 | (evax_alpha_vec): Declare. | |
2394 | (bfd_target_vector): Add ecoffalpha_little_vec and evax_alpha_vec | |
2395 | if BFD64 is defined. | |
2396 | * bfd-in2.h, libbfd.h: Rebuild. | |
2397 | * Makefile.in: Rebuild dependencies. | |
2398 | (BFD64_BACKENDS): Add evax-alpha.o, evax-egsd.o, evax-etir.o, | |
2399 | evax-emh.o, and evax-misc.o. | |
2400 | (BFD64_BACKENDS_CFILES): Add evax-alpha.c, evax-egsd.c, | |
2401 | evax-etir.c, evax-emh.c, and evax-misc.c. | |
2402 | (HFILES): Add evax.h. | |
2403 | ||
142aa7d9 ILT |
2404 | Tue Jun 18 13:54:18 1996 Ian Lance Taylor <[email protected]> |
2405 | ||
2406 | * coff-h8300.c (h8300_reloc16_extra_cases): Make name a const | |
2407 | pointer. | |
2408 | (h8300_bfd_link_add_symbols): Likewise. | |
2409 | ||
b658d64d JL |
2410 | Mon Jun 17 10:06:50 1996 Jeffrey A. Law <[email protected]> |
2411 | ||
2412 | * som.h (R_HPPA_BEGIN_TRY, R_HPPA_END_TRY): Define. | |
2413 | * som.c (som_write_fixups): Handle R_BEGIN_TRY and R_END_TRY. | |
2414 | ||
2df1e84b ILT |
2415 | Mon Jun 17 12:49:11 1996 Ian Lance Taylor <[email protected]> |
2416 | ||
2417 | * elf32-mips.c (mips_elf_relocate_section): Don't create a reloc | |
2418 | for R_MIPS_REL32 and R_MIPS_32 relocs if no dynamic sections were | |
2419 | created. | |
2420 | (mips_elf_check_relocs): Only create .rel.dyn for R_MIPS_REL32 and | |
2421 | R_MIPS_32 relocs if creating a shared library. | |
2422 | ||
2423 | Thu Jun 13 20:14:51 1996 Doug Evans <[email protected]> | |
2424 | ||
2425 | * peicode.h (add_data_entry): Use pei_section_data rather than | |
2426 | _cooked_size. Corresponds to May 13 change in coffcode.h. | |
2427 | ||
8100e72c ILT |
2428 | Thu Jun 13 10:23:40 1996 Ian Lance Taylor <[email protected]> |
2429 | ||
51bc9642 ILT |
2430 | * cofflink.c (_bfd_coff_final_link): Handle long section names. |
2431 | * coffcode.h (coff_write_object_contents): If there are long | |
2432 | section names, always set the f_symptr field, even if there are no | |
2433 | symbols. | |
2434 | * peicode.h (coff_swap_filehdr_in): Don't clear the f_symptr field | |
2435 | if there are no symbols. | |
2436 | ||
8100e72c ILT |
2437 | * coffgen.c (make_a_section_from_file): Check return value of |
2438 | _bfd_coff_read_string_table. | |
2439 | (coff_real_object_p): Check return value of | |
2440 | make_a_section_from_file. | |
2441 | (_bfd_coff_read_string_table): Check that there are some symbols | |
2442 | before trying to read the string table size. | |
2443 | ||
0e3bd85e ILT |
2444 | Wed Jun 12 11:16:37 1996 Ian Lance Taylor <[email protected]> |
2445 | ||
ed675a04 ILT |
2446 | * xcofflink.c (xcoff_link_add_symbols): When considering whether |
2447 | to replace a symbol in a dynamic object with a symbol from another | |
2448 | dynamic object, do the replacement if the existing symbol is | |
2449 | global linkage code. | |
2450 | ||
49144784 ILT |
2451 | * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Check explicitly |
2452 | for _ptrgl, and treat it as global linkage code. | |
2453 | ||
0e3bd85e ILT |
2454 | * aoutx.h (NAME(aout,find_nearest_line)): Notice if we find a |
2455 | filename or N_SO symbol past the offset, and use it to indicate | |
2456 | that there is no line number or function when appropriate. | |
2457 | ||
a5c7acea ILT |
2458 | Tue Jun 11 15:24:48 1996 Ian Lance Taylor <[email protected]> |
2459 | ||
2460 | * xcofflink.c (xcoff_build_ldsyms): Set XCOFF_DEF_REGULAR for a | |
2461 | common symbol defined by the linker. Don't export function code | |
2462 | even if export_defineds is set. | |
2463 | ||
2464 | Mon Jun 10 11:57:27 1996 Jeffrey A Law ([email protected]) | |
2465 | ||
2466 | * coff-h8300.c (howto_table): Add new entries for R_BCC_INV | |
2467 | and R_JMP_DEL. | |
2468 | (rtype2howto): Handle R_BCC_INV and R_JMP_DEL. | |
2469 | (h8300_symbol_address_p): New function. | |
2470 | (h8300_reloc16_estimate): Eliminate jumps made unnecessary by | |
2471 | relaxing. | |
2472 | ||
890f5b7f JL |
2473 | Sun Jun 9 16:30:20 1996 Jeffrey A Law ([email protected]) |
2474 | ||
2475 | * coff-h8300.c (h8300_reloc16_estimate): Fix many minor spacing | |
2476 | problems. | |
2477 | (h8300_reloc16_estimate, cases R_JMP1, R_JMP2): Adjust "dot" | |
2478 | correctly for the two variants. Allow relaxing if the target | |
2479 | is 128 bytes away since after relaxation it'll be 126 bytes away. | |
2480 | (h8300_reloc16_estimate, case R_PCRWORD): Correctly adjust | |
2481 | "dot" and "value". Allow relaxing if the target is 128 bytes | |
2482 | away since after relaxation it'll be 126 bytes away. | |
2483 | * reloc16.c (bfd_coff_reloc16_relax_section): Keep relaxing | |
2484 | the given section until nothing changes. | |
2485 | ||
0593fc16 ILT |
2486 | Thu Jun 6 15:24:45 1996 Richard Henderson <[email protected]> |
2487 | ||
2488 | * ecoff.c (_bfd_ecoff_new_section_hook): Remove the _PDATA | |
2489 | alignment hack--we can get the lnnoptr info another way without | |
2490 | suddenly increasing the alignment requirements. Set the flags for | |
2491 | the _PDATA section. | |
2492 | (ecoff_compute_section_file_positions): Do so. | |
2493 | ||
9b263b79 ILT |
2494 | Thu Jun 6 11:24:37 1996 Ian Lance Taylor <[email protected]> |
2495 | ||
bbf7c335 ILT |
2496 | * ieee.c (ieee_write_object_contents): Put a timestamp in the file |
2497 | to keep the HP emulator database happy. | |
2498 | ||
9b263b79 ILT |
2499 | * config.bfd: Recognize powerpc-*-linux* and powerpcle-*-linux*. |
2500 | From Kevin Buettner <[email protected]>. | |
2501 | ||
2502 | Wed Jun 5 15:16:04 1996 Ian Lance Taylor <[email protected]> | |
2503 | ||
2504 | * aoutx.h (translate_to_native_sym_flags): Don't try to print the | |
2505 | name of a NULL section. | |
2506 | ||
26145b15 ILT |
2507 | Tue Jun 4 18:53:58 1996 Ian Lance Taylor <[email protected]> |
2508 | ||
2509 | * linker.c (_bfd_generic_link_add_one_symbol): If notice_all is | |
2510 | set, always call the notice callback. | |
2511 | ||
2512 | * VERSION: Increment for bfdlink.h change. | |
2513 | ||
3a2080d8 ILT |
2514 | Mon Jun 3 11:01:53 1996 Ian Lance Taylor <[email protected]> |
2515 | ||
9d175198 ILT |
2516 | * coff-sh.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Set to 4. |
2517 | (sh_relax_delete_bytes): Correct handling of differently sized | |
2518 | trailing alignment reloc. | |
2519 | ||
5a04f1bd ILT |
2520 | * bfd-in.h: Use #error if BFD_HOST_64_BIT can not be defined. |
2521 | * bfd-in2.h: Rebuild. | |
2522 | * configure.in: Warn if there is no known 64 bit type. | |
2523 | * configure: Rebuild. | |
2524 | ||
60c8b04f ILT |
2525 | * Makefile.in: Rebuild dependencies. |
2526 | (BFD32_BACKENDS): Add ppcboot.o. | |
2527 | (BFD32_BACKENDS_CFILES): Add ppcboot.c. | |
2528 | ||
3a2080d8 ILT |
2529 | * elf32-mips.c (mips_elf_size_dynamic_sections): Initialize c. |
2530 | From Per Fogelstrom <[email protected]>. | |
2531 | ||
903612a2 ILT |
2532 | Sat Jun 1 21:49:58 1996 Ian Lance Taylor <[email protected]> |
2533 | ||
2534 | * elf64-mips.c (bfd_mips_elf64_swap_reginfo_in) | |
2535 | (bfd_mips_elf64_swap_reginfo_out): Move from here... | |
2536 | * elf32-mips.c (bfd_mips_elf64_swap_reginfo_in) | |
2537 | (bfd_mips_elf64_swap_reginfo_out): ...to here. | |
2538 | ||
38893c8c ILT |
2539 | Fri May 31 13:51:28 1996 Ian Lance Taylor <[email protected]> |
2540 | ||
bc05732b ILT |
2541 | * elf64-mips.c: Improve reloc special_functions and handling of |
2542 | SHT_MIPS_OPTIONS section. | |
2543 | * elf32-mips.c (_bfd_mips_elf_hi16_reloc): Rename from | |
2544 | mips_elf_hi16_reloc and make globally visible. | |
2545 | (_bfd_mips_elf_lo16_reloc): Rename from mips_elf_lo16_reloc and | |
2546 | make globally visible. | |
2547 | (_bfd_mips_elf_got16_reloc): Rename from mips_elf_got16_reloc and | |
2548 | make globally visible. | |
2549 | (_bfd_mips_elf_gprel16_reloc): Rename from mips_elf_gprel16_reloc | |
2550 | and make globally visible. | |
2551 | (gprel16_with_gp): Check howto->src_mask before using value in | |
2552 | insn. | |
2553 | (_bfd_mips_elf_gprel32_reloc): Rename from mips_elf_gprel32_reloc | |
2554 | and make globally visible. | |
2555 | (gprel32_with_gp): Check howto->src_mask before fetching value. | |
2556 | (bfd_mips_elf_swap_options_in): New function. | |
2557 | (bfd_mips_elf_swap_options_out): New function. | |
2558 | (_bfd_mips_elf_set_private_flags): Rename from | |
2559 | mips_elf_set_private_flags and make globally visible. | |
2560 | (_bfd_mips_elf_copy_private_bfd_data): Rename from | |
2561 | mips_elf_copy_private_bfd_data and make globally visible. | |
2562 | (_bfd_mips_elf_merge_private_bfd_data): Rename from | |
2563 | mips_elf_merge_private_bfd_data and make globally visible. | |
2564 | (_bfd_mips_elf_section_from_shdr): Accept .MIPS.options as a name | |
2565 | for a SHT_MIPS_OPTIONS section. | |
2566 | (mips_elf32_section_from_shdr): Handle SHT_MIPS_OPTIONS section. | |
2567 | (_bfd_mips_elf_fake_sections): Consider .MIPS.options to be the | |
2568 | name of a SHT_MIPS_OPTIONS section. | |
2569 | (_bfd_mips_elf_set_section_contents): New function. | |
2570 | (mips_elf32_section_processing): Set the GP value in a | |
2571 | SHT_MIPS_OPTIONS section. | |
2572 | (_bfd_mips_elf_find_nearest_line): Rename from | |
2573 | mips_elf_find_nearest_line and make globally visible. | |
2574 | (bfd_elf32_set_section_contents): Define. | |
2575 | * elf-bfd.h (_bfd_mips_elf_hi16_reloc): Declare. | |
2576 | (_bfd_mips_elf_lo16_reloc): Declare. | |
2577 | (_bfd_mips_elf_gprel16_reloc): Declare. | |
2578 | (_bfd_mips_elf_got16_reloc): Declare. | |
2579 | (_bfd_mips_elf_gprel32_reloc): Declare. | |
2580 | (_bfd_mips_elf_set_private_flags): Declare. | |
2581 | (_bfd_mips_elf_copy_private_bfd_data): Declare. | |
2582 | (_bfd_mips_elf_merge_private_bfd_data): Declare. | |
2583 | (_bfd_mips_elf_find_nearest_line): Declare. | |
2584 | (_bfd_mips_elf_set_section_contents): Declare. | |
2585 | ||
38893c8c ILT |
2586 | * elf32-hppa.c (elf32_hppa_info_to_howto): Rename from |
2587 | elf_info_to_howto. | |
2588 | (elf_info_to_howto): Define. | |
2589 | * elf32-sparc.c (elf32_sparc_info_to_howto): Rename from | |
2590 | elf_info_to_howto. | |
2591 | (elf_info_to_howto): Define. | |
2592 | * elf64-sparc.c (sparc64_elf_info_to_howto): Rename from | |
2593 | elf_info_to_howto. | |
2594 | (elf_info_to_howto): Define. | |
2595 | ||
2596 | * coff-w65.c (h8300_reloc16_estimate): Rename R_MOVB[12] to | |
2597 | R_MOV16B[12], to match change in coff/internal.h. | |
2598 | ||
cabd8fa0 ILT |
2599 | Thu May 30 12:38:49 1996 Ian Lance Taylor <[email protected]> |
2600 | ||
00176555 ILT |
2601 | * elf64-mips.c: Extensive additions to provide better support for |
2602 | writing files and for gas. | |
2603 | * elf32-mips.c (_bfd_mips_elf_object_p): New function, broken out | |
2604 | of mips_elf_object_p. | |
2605 | (mips_elf32_object_p): Rename from mips_elf_object_p; call | |
2606 | _bfd_mips_elf_object_p. | |
2607 | (_bfd_mips_elf_final_write_processing): Rename from | |
2608 | mips_elf_final_write_processing and make globally visible. | |
2609 | (_bfd_mips_elf_fake_sections): Rename from | |
2610 | mips_elf_fake_sections and make globally visible. | |
2611 | (_bfd_mips_elf_section_from_bfd_section): Rename from | |
2612 | mips_elf_section_from_bfd_section and make globally visible. | |
2613 | (_bfd_mips_elf_section_processing): New function, broken out of | |
2614 | mips_elf_section_processing. | |
2615 | (mips_elf32_section_processing): Rename from | |
2616 | mips_elf_section_processing; call | |
2617 | _bfd_mips_elf_section_processing. | |
2618 | (_bfd_mips_elf_symbol_processing): Rename from | |
2619 | mips_elf_symbol_processing and make globally visible. | |
2620 | (_bfd_mips_elf_read_ecoff_info): Rename from | |
2621 | mips_elf_read_ecoff_info and make globally visible. | |
2622 | (mips_elf32_ecoff_debug_swap): Rename from | |
2623 | mips_elf_ecoff_debug_swap. | |
2624 | * elf.c (_bfd_elf_symbol_from_bfd_symbol): Use asymbol rather than | |
2625 | struct symbol_cache_entry. | |
2626 | (_bfd_elf_validate_reloc): New function, moved in from | |
2627 | elfcode.h:validate_reloc. | |
2628 | * elfcode.h (validate_reloc): Remove; moved into elf.c and renamed | |
2629 | to _bfd_elf_validate_reloc. Change all callers. | |
2630 | * elf-bfd.h (bfd_section_from_shdr): Declare. | |
2631 | (_bfd_elf_symbol_from_bfd_symbol): Declare. | |
2632 | (_bfd_elf_validate_reloc): Declare. | |
2633 | (_bfd_mips_elf_object_p): Declare. | |
2634 | (_bfd_mips_elf_fake_sections): Declare. | |
2635 | (_bfd_mips_elf_section_from_bfd_section): Declare. | |
2636 | (_bfd_mips_elf_section_processing): Declare. | |
2637 | (_bfd_mips_elf_symbol_processing): Declare. | |
2638 | (_bfd_mips_elf_read_ecoff_info): Declare. | |
2639 | (_bfd_mips_elf_final_write_processing): Declare. | |
2640 | * elfxx-target.h (bfd_elfNN_get_reloc_upper_bound): Don't define | |
2641 | if already defined. | |
2642 | ||
cabd8fa0 ILT |
2643 | * elf32-mips.c (mips_elf_object_p): Handle E_MIPS_ARCH_4. |
2644 | (mips_elf_final_write_processing): Likewise. | |
2645 | ||
d1bf45aa ILT |
2646 | Wed May 29 16:15:29 1996 Ian Lance Taylor <[email protected]> |
2647 | ||
2648 | 64-bit MIPS ELF ABI objdump support: | |
2649 | * elf64-mips.c: New file. | |
2650 | * Makefile.in: Rebuild dependencies. | |
2651 | (BFD64_BACKENDS): Add elf64-mips.o. | |
2652 | (BFD64_BACKENDS_CFILES): Add elf64-mips.c. | |
2653 | * config.bfd (mips*el-*-elf*) Add bfd_elf64_bigmips_vec and | |
2654 | bfd_elf64_littlemips_vec to targ_selvecs. | |
2655 | (mips*-*-elf*): Likewise. | |
2656 | * confingure.in: Add bfd_elf64_bigmips_vec and | |
2657 | bfd_elf64_littlemips_vec to vector switch. | |
2658 | * configure: Rebuild. | |
2659 | * elf32-mips.c (_bfd_mips_elf_section_from_shdr): New function, | |
2660 | broken out of mips_elf_section_from_shdr. | |
2661 | (mips_elf32_section_from_shdr): Rename from | |
2662 | mips_elf_section_from_shdr. Call new function. | |
2663 | (elf_backend_section_from_shdr): Update name of renamed function. | |
2664 | * elf-bfd.h (struct elf_size_info): Change second parameter of | |
2665 | write_out_phdrs to be const. Likewise for second parameter of | |
2666 | swap_symbol_out. | |
2667 | (struct bfd_elf_section_data): Add rel_hdr2 field. | |
2668 | (bfd_elf32_swap_symbol_in): Change second parameter to be const. | |
2669 | (bfd_elf32_swap_symbol_out): Likewise. | |
2670 | (bfd_elf32_swap_reloc_in): Likewise. | |
2671 | (bfd_elf32_swap_reloc_out): Likewise. | |
2672 | (bfd_elf32_swap_reloca_in): Likewise. | |
2673 | (bfd_elf32_swap_reloca_out): Likewise. | |
2674 | (bfd_elf32_swap_phdr_in): Likewise. | |
2675 | (bfd_elf32_swap_phdr_out): Likewise. | |
2676 | (bfd_elf32_swap_dyn_in): Likewise. | |
2677 | (bfd_elf32_swap_dyn_out): Likewise. | |
2678 | (bfd_elf32_slurp_symbol_table): Declare. | |
2679 | (bfd_elf32_write_shdrs_and_ehdr): Declare. | |
2680 | (bfd_elf32_write_out_phdrs): Declare. | |
2681 | (bfd_elf64_swap_symbol_in): Change second parameter to be const. | |
2682 | (bfd_elf64_swap_symbol_out): Likewise. | |
2683 | (bfd_elf64_swap_reloc_in): Likewise. | |
2684 | (bfd_elf64_swap_reloc_out): Likewise. | |
2685 | (bfd_elf64_swap_reloca_in): Likewise. | |
2686 | (bfd_elf64_swap_reloca_out): Likewise. | |
2687 | (bfd_elf64_swap_phdr_in): Likewise. | |
2688 | (bfd_elf64_swap_phdr_out): Likewise. | |
2689 | (bfd_elf64_swap_dyn_in): Likewise. | |
2690 | (bfd_elf64_swap_dyn_out): Likewise. | |
2691 | (bfd_elf64_slurp_symbol_table): Declare. | |
2692 | (bfd_elf64_write_shdrs_and_ehdr): Declare. | |
2693 | (bfd_elf64_write_out_phdrs): Declare. | |
2694 | (_bfd_mips_elf_section_from_shdr): Declare. | |
2695 | * elf.c (bfd_section_from_shdr): Remove assertion requiring | |
2696 | SHT_REL/SHT_RELA to match use_rela_p. If there is already a reloc | |
2697 | section for the section, add the new one to rel_hdr2. Increment | |
2698 | reloc_count rather than setting it. | |
2699 | * elfcode.h (elf_slurp_symbol_table): Define name as macro. | |
2700 | Remove static declaration. | |
2701 | (elf_write_shdrs_and_ehdr): Define name as macro. | |
2702 | (elf_write_out_phdrs): Likewise. | |
2703 | (elf_swap_ehdr_in, elf_swap_ehdr_out): Declare. | |
2704 | (elf_swap_shdr_in, elf_swap_shdr_out): Declare. | |
2705 | (elf_swap_symbol_in): Change second parameter to be const. | |
2706 | (elf_swap_symbol_out): Likewise. | |
2707 | (elf_swap_ehdr_in, elf_swap_ehdr_out): Likewise. | |
2708 | (elf_swap_shdr_in, elf_swap_shdr_out): Likewise. | |
2709 | (elf_swap_phdr_in, elf_swap_phdr_out): Likewise. | |
2710 | (elf_swap_reloc_in, elf_swap_reloc_out): Likewise. | |
2711 | (elf_swap_reloca_in, elf_swap_reloca_out): Likewise. | |
2712 | (elf_write_out_phdrs): Rename from write_out_phdrs. Change second | |
2713 | parameter to be const. Make non-static. | |
2714 | (elf_write_shdrs_and_ehdr): Rename from write_shdrs_and_ehdr. | |
2715 | Make non-static. | |
2716 | (elf_slurp_symbol_table): Make non-static. | |
2717 | (NAME(_bfd_elf,size_info)): Update names of renamed functions. | |
2718 | * elfxx-target.h (elf_info_to_howto): Define if not defined. | |
2719 | (elf_backend_size_info): Likewise. | |
2720 | (elfNN_bed): Use elf_backend_size_info. | |
2721 | * targets.c (bfd_elf64_bigmips_vec): Declare. | |
2722 | (bfd_elf64_littlemips_vec): Declare. | |
2723 | (bfd_target_vector): Add bfd_elf64_bigmips_vec and | |
2724 | bfd_elf64_littlemips_vec if BFD64 is defined. | |
2725 | ||
2726 | * libbfd.c (bfd_get_file_window): Add cast to fprintf argument. | |
2727 | ||
7dd3d45a ILT |
2728 | Tue May 28 11:42:08 1996 Ian Lance Taylor <[email protected]> |
2729 | ||
07692951 ILT |
2730 | * coff-sh.c (sh_relax_delete_bytes): Insert nop instructions, not |
2731 | zeroes, in alignment holes. | |
2732 | ||
a4322a77 ILT |
2733 | * configure: Rebuild with autoconf 2.10. |
2734 | ||
7dd3d45a ILT |
2735 | * aoutx.h (NAME(aout,find_nearest_line)): Make room for the |
2736 | potential leading underscore in the allocated buffer. | |
2737 | ||
0293d5b0 MM |
2738 | Fri May 24 14:28:38 1996 Michael Meissner <[email protected]> |
2739 | ||
2740 | * elf32-ppc.c (ppc_elf_add_symbol_hook): Do not put small common | |
2741 | symbols into .sbss if this is a relocatable link. | |
2742 | ||
a5d0cd50 ILT |
2743 | Thu May 23 12:26:24 1996 Ian Lance Taylor <[email protected]> |
2744 | ||
2745 | * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Warn about | |
2746 | undefined symbols when creating a shared library. | |
2747 | ||
2748 | Fri May 17 13:54:15 1996 Ian Lance Taylor <[email protected]> | |
2749 | ||
2750 | * coff-sh.c: Add a bunch of new code and static const arrays to | |
2751 | support aligning loads and stores on four byte memory boundaries. | |
2752 | Also: | |
2753 | (sh_coff_howtos): Add entries for R_SH_CODE, R_SH_DATA and | |
2754 | R_SH_LABEL. | |
2755 | (sh_relax_section): Look for R_SH_CODE relocs. If we find one, | |
2756 | call sh_align_loads. | |
2757 | (sh_relax_delete_bytes): Don't mark R_SH_CODE or R_SH_DATA relocs | |
2758 | as unused. | |
2759 | ||
c403d358 ILT |
2760 | Thu May 16 16:34:13 1996 Ian Lance Taylor <[email protected]> |
2761 | ||
2762 | * cache.c (bfd_open_file): Unlink the file before opening it for | |
2763 | write. From Marty Leisner <[email protected]>. | |
2764 | ||
2765 | * opncls.c (bfd_fdopenr): Set opened_once. | |
2766 | ||
2f710e17 ILT |
2767 | Tue May 14 12:35:32 1996 Ian Lance Taylor <[email protected]> |
2768 | ||
ff60fc3a ILT |
2769 | * som.c (som_slurp_reloc_table): Clear external_relocs cache after |
2770 | freeing it. | |
2771 | ||
2f710e17 ILT |
2772 | * libbfd.c: Remove #ifdef FILE_OFFSET_IS_CHAR_INDEX, and compile |
2773 | the code unconditionally. | |
2774 | ||
efb33f6b ILT |
2775 | Mon May 13 19:51:37 1996 Ian Lance Taylor <[email protected]> |
2776 | ||
2777 | * libcoff-in.h (struct pei_section_tdata): Define structure. | |
2778 | (pei_section_data): Define macro. | |
2779 | * libcoff.h: Rebuild. | |
2780 | * coffcode.h (coff_set_alignment_hook): If COFF_IMAGE_WITH_PE, | |
2781 | store s_paddr field in pei_section_data. | |
2782 | (coff_compute_section_file_positions): Use pei_section_data rather | |
2783 | than _cooked_size, and don't overwrite an existing value. | |
2784 | (coff_write_object_contents): If COFF_OBJ_WITH_PE, set s_paddr to | |
2785 | 0. If COFF_IMAGE_WITH_PE, set s_paddr to pei_section_data. | |
2786 | * peicode.h (coff_bfd_copy_private_section_data): Define if | |
2787 | COFF_IMAGE_WITH_PE. | |
2788 | (pe_bfd_copy_private_section_data): New static function if | |
2789 | COFF_IMAGE_WITH_PE. | |
2790 | ||
5ecd6d7f ILT |
2791 | Wed May 8 16:10:38 1996 Ian Lance Taylor <[email protected]> |
2792 | ||
db1e2aa7 ILT |
2793 | * srec.c (srec_set_arch_mach): Write as a function rather than a |
2794 | macro definition. | |
2795 | ||
5ecd6d7f ILT |
2796 | * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): If an archive has |
2797 | no map, just check each member in turn to see whether it is | |
2798 | required. | |
2799 | ||
aefee5c8 MM |
2800 | Wed May 8 09:17:34 1996 Michael Meissner <[email protected]> |
2801 | ||
2802 | * ppcboot.c (ppcboot_object_p): Check for type 0x41 in partition | |
2803 | table. Call BFD_ASSERT to validate header size, instead of | |
2804 | calling fatal. | |
2805 | (ppcboot_bfd_print_private_bfd_data): Put quotes around partition | |
2806 | name. | |
2807 | ||
0d1fcbbb MM |
2808 | Tue May 7 16:10:19 1996 Michael Meissner <[email protected]> |
2809 | ||
2810 | * ppcboot.c: New target for looking at PPCbug boot records. | |
2811 | ||
2812 | * config{ure.in,.bfd}: Add support for ppcboot target. | |
2813 | * targets.c: Ditto. | |
2814 | * configure: Regenerate. | |
2815 | ||
f4597f8c JL |
2816 | Tue May 7 11:15:19 1996 Jeffrey A Law ([email protected]) |
2817 | ||
2818 | * coff-h8300.c (howto_table): Update names to match recent | |
2819 | changes to include/coff/internal.h. Fix minor errors in the | |
2820 | existing relocs. Add R_MOVL1 and R_MOVL2. | |
2821 | (rtype2howto): Similarly. | |
2822 | (h8300_reloc16_estimate): Rewrite to simplify, fix bugs in the | |
2823 | existing relaxing code and peform more relaxing. | |
2824 | (h8300_reloc16_extra_cases): Likewise. | |
2825 | ||
0dc70e1a JL |
2826 | Mon May 6 18:24:09 1996 Jeffrey A Law ([email protected]) |
2827 | ||
2828 | * reloc16.c (bfd_coff_reloc16_get_value): Handle common | |
2829 | symbols correctly. | |
2830 | ||
d1b8ccb0 PS |
2831 | Sat May 4 05:08:45 1996 Peter Schauer ([email protected]) |
2832 | ||
2833 | * elfcode.h (elf_object_p): Reject generic ELF target if | |
2834 | e_machine matches an alternate machine code in a specific backend. | |
2835 | ||
2836 | * netbsd-core.c (netbsd_core_vec): Remove initializer for | |
2837 | obsolete align_power_min field. | |
2838 | ||
c9f5444e JL |
2839 | Fri May 3 13:07:35 1996 Jeffrey A Law ([email protected]) |
2840 | ||
2841 | * coff-h8300.c (reloc_howto_type): Add howto entry for | |
2842 | R_PCRWORD_B. | |
2843 | (rtype2howto): Handle R_PCRWORD_B. | |
2844 | (h8300_reloc16_extra_cases): Handle R_PCRWORD_B. | |
2845 | (h8300_reloc_16_estimate): Likewise. Try to turn a 16bit | |
2846 | pc-relative branch (R_PCRWORD) into an 8bit pc-relative | |
2847 | branch (R_PCWORD_B). | |
2848 | ||
4ad842aa ILT |
2849 | Fri May 3 10:47:41 1996 Ian Lance Taylor <[email protected]> |
2850 | ||
340d654f ILT |
2851 | * aoutx.h (translate_from_native_sym_flags): Set the section for |
2852 | BSF_CONSTRUCTOR symbols. | |
2853 | ||
4ad842aa ILT |
2854 | * cofflink.c (_bfd_coff_link_input_bfd): Correct setting of |
2855 | last_bf_index. | |
2856 | ||
9c7a5748 DE |
2857 | Wed May 1 18:39:32 1996 Doug Evans <[email protected]> |
2858 | ||
2859 | * coffcode.h (coff_write_object_contents): In comdat section lookup, | |
2860 | stop looking when section is found. | |
2861 | ||
622c93a3 ILT |
2862 | Wed May 1 14:17:57 1996 Ian Lance Taylor <[email protected]> |
2863 | ||
e8f3bb64 | 2864 | * coffcode.h (STRING_SIZE_SIZE): Define. |
9aac8e83 ILT |
2865 | (styp_to_sec_flags): Handle long symbol names when looking for the |
2866 | section symbol. | |
e8f3bb64 ILT |
2867 | (bfd_coff_backend_data): Add _bfd_coff_long_section_names field. |
2868 | (bfd_coff_long_section_names): Define. | |
2869 | (coff_write_object_contents): Handle long section names. | |
2870 | (bfd_coff_std_swap_table): Initialize new field. | |
2871 | * libcoff.h: Rebuild. | |
2872 | * coffgen.c (make_a_section_from_file): Handle long section | |
2873 | names. | |
2874 | (coff_write_symbols): Handle long section names. | |
2875 | * coff-alpha.c (alpha_ecoff_backend_data): Initialize new field. | |
2876 | * coff-mips.c (mips_ecoff_backend_data): Likewise. | |
2877 | * pe-arm.c (COFF_LONG_SECTION_NAMES): Define. | |
2878 | * pei-arm.c (COFF_LONG_SECTION_NAMES): Define. | |
2879 | * pe-i386.c (COFF_LONG_SECTION_NAMES): Define. | |
2880 | * pei-i386.c (COFF_LONG_SECTION_NAMES): Define. | |
2881 | * pe-ppc.c (COFF_LONG_SECTION_NAMES): Define. | |
2882 | * pei-ppc.c (COFF_LONG_SECTION_NAMES): Define. | |
2883 | ||
622c93a3 ILT |
2884 | * bout.c (b_out_callback): Set lma of sections. |
2885 | (b_out_bfd_get_relocated_section_contents): Rename in_abfd | |
2886 | parameter to output_bfd. Used input_bfd instead of output_bfd in | |
2887 | several places. | |
2888 | ||
6b725f83 ILT |
2889 | Tue Apr 30 17:56:39 1996 Ian Lance Taylor <[email protected]> |
2890 | ||
b7d1158a ILT |
2891 | * aoutx.h (translate_from_native_sym_flags): Don't create |
2892 | SEC_CONSTRUCTOR sections. | |
2893 | * ecoff.c (ecoff_set_symbol_info): Likewise. | |
2894 | ||
6b725f83 ILT |
2895 | * elf32-mips.c (mips_elf_copy_private_bfd_data): Copy elf_gp. |
2896 | From Don Bowman <[email protected]>. | |
2897 | ||
e28a1e77 DE |
2898 | Tue Apr 30 17:06:32 1996 Doug Evans <[email protected]> |
2899 | ||
2900 | * coff-arm.c (armcoff_little_vec): If COFF_WITH_PE is defined, add | |
2901 | SEC_LINK_ONCE and SEC_LINK_DUPLICATES to section_flags. | |
2902 | ||
abec70b9 ILT |
2903 | Mon Apr 29 13:15:17 1996 Ian Lance Taylor <[email protected]> |
2904 | ||
2905 | * elf32-mips.c (struct mips_elf_link_hash_entry): Add | |
2906 | mips_32_relocs field. | |
2907 | (mips_elf_link_hash_newfunc): Initialize mips_32_relocs field. | |
2908 | (mips_elf_relocate_section): Copy R_MIPS_REL32 and R_MIPS_32 | |
2909 | relocs against a global symbol which is not defined in a regular | |
2910 | file. | |
2911 | (mips_elf_check_relocs): For a R_MIPS_REL32 or R_MIPS_32 reloc | |
2912 | against a global symbol, increment mips_32_relocs. | |
2913 | (mips_elf_adjust_dynamic_symbol): If mips_32_relocs is set, and | |
2914 | the symbol is not defined in a regular file, make room in the | |
2915 | .rel.dyn section. | |
2916 | ||
ecba7a3a ILT |
2917 | Fri Apr 26 18:00:37 1996 Ian Lance Taylor <[email protected]> |
2918 | ||
656c5b6d ILT |
2919 | * ecoff.c (ecoff_compute_section_file_positions): Track the real |
2920 | file position and the virtual file position separately. Set | |
2921 | filepos information bsaed on the real file position. | |
2922 | (_bfd_ecoff_set_section_contents): Handle .lib sections like the | |
2923 | Jan 23 change to coffcode.h. | |
2924 | ||
ecba7a3a ILT |
2925 | * som.c (som_slurp_symbol_table): Set the symbol count to the |
2926 | number of BFD symbols created. | |
2927 | ||
e25a7988 MM |
2928 | Fri Apr 26 12:34:29 1996 Michael Meissner <[email protected]> |
2929 | ||
2930 | * elf32-ppc.c (ppc_elf_check_relocs): Forward relocations to the | |
2931 | output file if linking shared objects. Loop to check all relocs, | |
2932 | rather than returning false on first error. | |
2933 | ||
5c28a96e MM |
2934 | Thu Apr 25 13:25:12 1996 Michael Meissner <[email protected]> |
2935 | ||
3f7ca26b MM |
2936 | * elf32-ppc.c (ppc_elf_create_linker_section): Add PLT case. |
2937 | (ppc_elf_additional_program_headers): If .interp section, bump # | |
2938 | of program headers by 1. | |
2939 | (ppc_elf_adjust_dynamic_symbol): Flesh out support. | |
2940 | (ppc_elf_size_dynamic_sections): Add support for .plt section. | |
2941 | (ppc_elf_check_relocs): Print out filename in debug code. Enable | |
2942 | PLT support. | |
2943 | (ppc_elf_finish_dynamic_symbol): Add support for PLT's, beef up | |
2944 | debug output. | |
2945 | (ppc_elf_relocate_section): If the output section isn't defined, | |
2946 | don't abort, just give an error message. | |
2947 | ||
5c28a96e MM |
2948 | * elflink.c (_bfd_elf_create_dynamic_sections): If the section |
2949 | being created is .sdata or .sdata2, don't make the symbol dynamic. | |
2950 | ||
f5d65485 ILT |
2951 | Wed Apr 24 14:04:07 1996 Ian Lance Taylor <[email protected]> |
2952 | ||
2953 | * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): Look through the | |
2954 | members of an archive for dynamic objects with no symbols, and | |
2955 | pass them directly to check_archive_element. | |
2956 | (xcoff_link_check_ar_symbols): Pass dynamic objects to | |
2957 | xcoff_link_check_dynamic_ar_symbols. | |
2958 | (xcoff_link_check_dynamic_ar_symbols): New static function. | |
2959 | ||
2960 | * coff-rs6000.c (rs6000coff_vec): Change BFD_JUMP_TABLE_DYNAMIC | |
2961 | from _bfd_nodynamic to _bfd_xcoff. | |
2962 | * libcoff-in.h (_bfd_xcoff_get_dynamic_symtab_upper_bound): | |
2963 | Declare. | |
2964 | (_bfd_xcoff_canonicalize_dynamic_symtab): Declare. | |
2965 | (_bfd_xcoff_get_dynamic_reloc_upper_bound): Declare. | |
2966 | (_bfd_xcoff_canonicalize_dynamic_reloc): Declare. | |
2967 | * libcoff.h: Rebuild. | |
2968 | * xcofflink.c (xcoff_swap_ldrel_in): New static function. | |
2969 | (xcoff_get_section_contents): New static function. | |
2970 | (_bfd_xcoff_get_dynamic_symtab_upper_bound): New function. | |
2971 | (_bfd_xcoff_canonicalize_dynamic_symtab): New function. | |
2972 | (_bfd_xcoff_get_dynamic_reloc_upper_bound): New function. | |
2973 | (xcoff_dynamic_reloc): New static variable. | |
2974 | (_bfd_xcoff_canonicalize_dynamic_reloc): New function. | |
2975 | (xcoff_link_add_dynamic_symbols): Use xcoff_get_section_contents. | |
2976 | ||
2977 | Tue Apr 23 12:48:42 1996 Ian Lance Taylor <[email protected]> | |
2978 | ||
2979 | * coff-sparc.c (bfd_coff_generic_reloc): Return bfd_reloc_ok even | |
2980 | if reloc_entry->addend is not 0. | |
2981 | (CALC_ADDEND): Just set the addend to reloc.r_offset. | |
2982 | ||
34249b2f DE |
2983 | Mon Apr 22 18:29:01 1996 Doug Evans <[email protected]> |
2984 | ||
2985 | * elf32-sparc.c (_bfd_sparc_elf_howto_table): Fix spelling of | |
2986 | R_SPARC_GLOB_JMP. | |
2987 | * elf64-sparc.c (sparc64_elf_howto_table): Likewise. | |
2988 | Add entries for R_SPARC_[56]. | |
2989 | (sparc_reloc_map): Add entries for R_SPARC_[56]. | |
2990 | ||
af50cd91 ILT |
2991 | Mon Apr 22 15:07:24 1996 Ian Lance Taylor <[email protected]> |
2992 | ||
1726b8f0 ILT |
2993 | Optimize linking of stabs in sections as used in ELF and COFF. |
2994 | * stabs.c: New file. | |
2995 | * libbfd-in.h (_bfd_link_section_stabs): Declare. | |
2996 | (_bfd_write_section_stabs): Declare. | |
2997 | (_bfd_write_stab_strings): Declare. | |
2998 | * libbfd.h: Rebuild. | |
2999 | * libcoff-in.h (struct coff_section_tdata): Add stab_info field. | |
3000 | (struct coff_link_hash_table): Add stab_info field. | |
3001 | * libcoff.h: Rebuild. | |
3002 | * cofflink.c (_bfd_coff_link_hash_table_init): Initialize | |
3003 | stab_info field. | |
3004 | (coff_link_add_symbols): Call _bfd_link_section_stabs if | |
3005 | appropriate. | |
3006 | (_bfd_coff_final_link): Write out stab strings hash table. | |
3007 | (_bfd_coff_link_input_bfd): Handle optimized stabs sections. | |
3008 | * coff-ppc.c (ppc_bfd_coff_final_link): Write out stab strings | |
3009 | hash table. | |
3010 | * elf-bfd.h (struct elf_link_hash_table): Add stab_info field. | |
3011 | (struct bfd_elf_section_data): Add stab_info field. | |
3012 | * elf.c (_bfd_elf_link_hash_table_init): Initialize stab_info | |
3013 | field. | |
3014 | * elflink.h (elf_link_add_object_symbols): If appropriate, call | |
3015 | _bfd_link_section_stabs. | |
3016 | (elf_bfd_final_link): Write out stab strings hash table. | |
3017 | (elf_link_input_bfd): Handle optimized stabs sections. | |
3018 | * reloc.c (_bfd_final_link_relocate): Check address against | |
3019 | _raw_size rather than _cooked_size. | |
3020 | * Makefile.in: Rebuild dependencies. | |
3021 | (BFD_LIBS): Add stabs.o | |
3022 | (BFD_LIBS_CFILES): Add stabs.c. | |
3023 | ||
3024 | * VERSION: Increment for bfdlink.h change. | |
3025 | ||
af50cd91 ILT |
3026 | * coffgen.c (coff_renumber_symbols): Correct handling of |
3027 | BSF_NOT_AT_END common symbols. | |
3028 | ||
f9fa5df3 ILT |
3029 | Fri Apr 19 19:21:56 1996 Ian Lance Taylor <[email protected]> |
3030 | ||
3031 | * coff-ppc.c (record_toc): Add cast to avoid warning. | |
3032 | (ppc_allocate_toc_section): Likewise. | |
3033 | (coff_ppc_relocate_section): Remove ANSI C string concatenation. | |
3034 | (ppc_coff_reloc_type_lookup): Remove unreached code. | |
3035 | * coffcode.h (coff_write_object_contents): Don't take the address | |
3036 | of an array. | |
3037 | * peicode.h (pe_print_idata): Add casts to avoid warning. | |
3038 | (pe_print_edata): Likewise. | |
3039 | (pe_print_reloc): Remove ANSI C string concatenation. | |
3040 | ||
d6e0e2f7 ILT |
3041 | Thu Apr 18 18:51:18 1996 Ian Lance Taylor <[email protected]> |
3042 | ||
3043 | * libcoff-in.h (struct coff_final_link_info): Add last_bf_index | |
3044 | and last_bf fields. | |
3045 | * libcoff.h: Rebuild. | |
3046 | * coffswap.h (coff_swap_aux_in): Swap endndx field for C_FCN | |
3047 | symbols. | |
3048 | (coff_swap_aux_out): Likewise. | |
3049 | * peicode.h (coff_swap_aux_in): Likewise. | |
3050 | (coff_swap_aux_out): Likewise. | |
3051 | * coffgen.c (coff_pointerize_aux): Check endndx field for C_FCN | |
3052 | symbols. | |
3053 | * cofflink.c (_bfd_coff_final_link): Initialize last_bf_index | |
3054 | field. | |
3055 | (_bfd_coff_link_input_bfd): Check endndx field for C_FCN symbols. | |
3056 | Fix up .bf endndx link fields. | |
3057 | * coff-ppc.c (ppc_bfd_coff_final_link): Initialize last_bf_index | |
3058 | field. | |
3059 | * xcofflink.c (xcoff_link_input_bfd): Check endndx field for C_FCN | |
3060 | symbols. | |
3061 | ||
221d1e19 MM |
3062 | Wed Apr 17 12:08:24 1996 Michael Meissner <[email protected]> |
3063 | ||
3064 | * pe{,i}-ppc.c (PPC_PE): Define instead of PPC, so that compiling | |
3065 | on Solaris PowerPC systems doesn't get confused. | |
3066 | ||
3067 | * ccffcode.h (coff_write_object_contents): Use #ifdef PPC_PE, not | |
3068 | #ifdef PPC. | |
3069 | ||
3070 | * elfcore.h (bfd_prstatus, bfd_fpregset): Add thread argument. | |
3071 | (elf_corefile_note): If HAVE_SYS_PROCFS_H is not defined, don't | |
3072 | update did_reg and did_reg2. | |
3073 | ||
8f9a56c6 ILT |
3074 | Wed Apr 17 13:07:37 1996 Ian Lance Taylor <[email protected]> |
3075 | ||
f97fca78 ILT |
3076 | * xcofflink.c (xcoff_link_input_bfd): Check for TOC overflow. |
3077 | ||
8f9a56c6 ILT |
3078 | * linker.c (_bfd_generic_link_add_one_symbol): When calling the |
3079 | callback routines, pass h->root.string rather than name, in case | |
3080 | copy is true and name is transient. | |
3081 | ||
603fdf16 SG |
3082 | Tue Apr 16 16:36:38 1996 Stu Grossman ([email protected]) |
3083 | ||
3084 | * elfcore.h: Add support for core files with multiple threads. | |
3085 | (Primarily for Solaris.) | |
3086 | ||
a2d914e1 ILT |
3087 | Tue Apr 16 13:44:08 1996 Ian Lance Taylor <[email protected]> |
3088 | ||
cdf23557 ILT |
3089 | * aoutx.h (NAME(aout,squirt_out_relocs)): Don't do anything if |
3090 | section->orelocation is NULL. | |
3091 | ||
a2d914e1 ILT |
3092 | * coffgen.c (bfd_coff_get_syment): New function. |
3093 | (bfd_coff_get_auxent): New function. | |
3094 | * bfd-in.h (bfd_coff_get_syment): Declare. | |
3095 | (bfd_coff_get_auxent): Declare. | |
3096 | * bfd-in2.h: Rebuild. | |
3097 | ||
5cf36a32 ILT |
3098 | Mon Apr 15 19:06:59 1996 Ian Lance Taylor <[email protected]> |
3099 | ||
3100 | * elf32-mips.c (struct mips_hi16): Define. | |
3101 | (mips_hi16_addr, mips_hi16_addend): Remove. | |
3102 | (mips_hi16_list): New static variable. | |
3103 | (mips_elf_hi16_reloc): Maintain a list of unmatched HI16 relocs. | |
3104 | (mips_elf_lo16_reloc): Process mips_hi16_list. | |
3105 | (mips_elf_relocate_section): Permit an arbitrary number of HI16 | |
3106 | relocs before the associated LO16 reloc. | |
3107 | ||
b7fce5be ILT |
3108 | Wed Apr 10 00:23:53 1996 Ian Lance Taylor <[email protected]> |
3109 | ||
176512da ILT |
3110 | * versados.c (versados_scan): Check bfd_alloc return value. |
3111 | (versados_object_p): Check all bfd_read return values. Require | |
3112 | that lang field be less than 10, to avoid confusion with Intel Hex | |
3113 | files. | |
3114 | ||
18de3f19 ILT |
3115 | * libaout.h (WRITE_HEADERS): Write out the relocs even if there |
3116 | aren't any symbols. | |
3117 | * aoutx.h (NAME(aout,swap_std_reloc_out)): Set r_index to N_ABS, | |
3118 | not 0, for an absolute symbol. | |
3119 | (NAME(aout,swap_ext_reloc_out)): Likewise. | |
3120 | ||
66ab4152 ILT |
3121 | * ihex.c (ihex_scan): Accept a length of 4 for record type 5. |
3122 | (ihex_write_object_contents): For a large start address, output | |
3123 | the full 32 bit address in record type 5. | |
3124 | ||
b7fce5be ILT |
3125 | * ieee.c (ieee_write_byte): Change second parameter from bfd_byte |
3126 | to int to avoid promotion problems in prototype. | |
3127 | ||
f1b45745 ILT |
3128 | Tue Apr 9 11:44:21 1996 Ian Lance Taylor <[email protected]> |
3129 | ||
f400f358 ILT |
3130 | * configure.host: Use ${srcdir} when looking for picfrag. |
3131 | ||
3d9a5986 ILT |
3132 | * configure.host: Switch on ${libdir}, not $(libdir). From |
3133 | [email protected] (Alan Modra). | |
3134 | ||
f1b45745 ILT |
3135 | * aoutx.h (aout_link_add_symbols): Always call add_dynamic_symbols |
3136 | entry point, not just for DYNAMIC objects. | |
3137 | * sunos.c (sunos_add_dynamic_symbols): Always call | |
3138 | sunos_create_dynamic_sections. If called with a non DYNAMIC | |
3139 | object, don't do anything else. | |
3140 | (sunos_add_one_symbol): Don't call sunos_create_dynamic_sections. | |
3141 | ||
6f21f2e3 ILT |
3142 | Mon Apr 8 12:09:36 1996 Ian Lance Taylor <[email protected]> |
3143 | ||
639b5a09 ILT |
3144 | * configure.in: Permit --enable-shared to specify a list of |
3145 | directories. | |
3146 | * configure: Rebuild. | |
3147 | ||
6f21f2e3 ILT |
3148 | * configure.host: Set HLDFLAGS and SHLIB_CFLAGS for *-dec-osf* |
3149 | host when configuring with --enable-shard. | |
3150 | ||
3f5f565b ILT |
3151 | Fri Apr 5 12:24:13 1996 Ian Lance Taylor <[email protected]> |
3152 | ||
1ac75f5c ILT |
3153 | * config.bfd: Add i[345]86-*-freebsdelf* target; from John Polstra |
3154 | <[email protected]>. | |
3155 | ||
1a9951a9 ILT |
3156 | * linker.c (link_action): For WARN_ROW/warn, use MWARN, not CYCLE, |
3157 | to avoid crashing in bfd_hash_replace. | |
3158 | ||
f1ac3acb | 3159 | * sysdep.h: Use #ifdef, not #if. |
3f5f565b | 3160 | |
eb5f58e0 ILT |
3161 | Thu Apr 4 23:32:23 1996 Ian Lance Taylor <[email protected]> |
3162 | ||
3163 | * config.in: Rebuild. | |
3164 | ||
ab1aa5cd FF |
3165 | Thu Apr 4 18:49:09 1996 Fred Fish <[email protected]> |
3166 | ||
3167 | * configure.in (mips-sony-bsd*): Fix typo in AC_DEFINE. | |
3168 | (AC_CHECK_HEADERS): Check for sys/time.h | |
3169 | (AC_HEADER_TIME): Add macro. | |
3170 | * configure: Rebuild. | |
3171 | * sysdep.h: Use TIME_WITH_SYS_TIME and HAVE_SYS_TIME_H | |
3172 | to control what combination of <time> and <sys/time.h> | |
3173 | get included. | |
3174 | ||
d1f74cd2 DE |
3175 | Tue Apr 2 13:11:53 1996 Doug Evans <[email protected]> |
3176 | ||
3177 | * aoutf1.h (sunos_32_set_arch_mach): Handle M_SPARCLET. | |
3178 | (aout_32_sunos4_write_object_contents): Likewise. | |
3179 | * aoutx.h (NAME(aout,machine_type)): Handle | |
3180 | bfd_mach_sparc_{sparclet,sparclite}. | |
3181 | * archures.c (bfd_mach_sparc_{sparclet,sparclite}): Define. | |
3182 | (bfd_mach_sparc_v9_p): Update. | |
3183 | * cpu-sparc.c (arch_info_struct): Add entries for sparclet,sparclite. | |
3184 | * libaout.h (enum machine_type): Add M_SPARCLET. | |
3185 | * sunos.c (MACHTYPE_OK): Define. | |
3186 | * bfd-in2.h: Regenerated. | |
3187 | ||
1dad72bd ILT |
3188 | Tue Apr 2 00:33:18 1996 Ian Lance Taylor <[email protected]> |
3189 | ||
19bfbcbe ILT |
3190 | * elf-bfd.h (struct elf_link_hash_table): Add hgot field. |
3191 | * elf.c (_bfd_elf_link_hash_table_init): Initialize hgot field. | |
3192 | * elflink.c (_bfd_elf_create_got_section): Store the | |
3193 | _GLOBAL_OFFSET_TABLE_ hash table entry in the hgot field. | |
3194 | * elf32-sparc.c (elf32_sparc_check_relocs): If the size of the | |
3195 | global offset table goes over 0x1000, set the value of | |
3196 | _GLOBAL_OFFSET_TABLE_ to 0x1000 into the section. | |
3197 | (elf32_sparc_relocate_section): Subtract the offset of | |
3198 | _GLOBAL_OFFSET_TABLE_ when handling GOT relocations. | |
3199 | ||
1dad72bd ILT |
3200 | * elfcode.h: Don't include <string.h>. |
3201 | ||
ca4e2190 JL |
3202 | Mon Apr 1 10:39:24 1996 Jeffrey A Law ([email protected]) |
3203 | ||
3204 | * linker.c (_bfd_generic_link_hash_newfunc): Renamed from | |
3205 | generic_link_hash_newfunc. All references changed. | |
3206 | * genlink.h (_bfd_generic_link_hash_newfunc): Declaration | |
3207 | moved here from libbfd-in.h. | |
3208 | * libbfd-in.h: Corresponding changes. | |
3209 | * libbfd.h: Regenerated. | |
3210 | ||
ce6a7731 ILT |
3211 | Mon Apr 1 12:35:36 1996 Ian Lance Taylor <[email protected]> |
3212 | ||
aad53b0d ILT |
3213 | * aoutx.h (aout_link_input_section_std): When reporting an |
3214 | overflow error, use the name of the symbol in the hash table if | |
3215 | available. | |
3216 | (aout_link_input_section_ext): Likewise. | |
3217 | ||
ce6a7731 ILT |
3218 | * elflink.h (elf_adjust_dynamic_symbol): If a common symbol got |
3219 | defined in a regular file, set ELF_LINK_HASH_DEF_REGULAR. | |
3220 | ||
323b430f SC |
3221 | Sun Mar 31 01:58:41 1996 steve chamberlain <[email protected]> |
3222 | ||
3223 | * peicode.h (coff_swap_aouthdr_out): Delete test for .junk. | |
3224 | * coffcode.h (coff_compute_section_file_positions): Likewise. | |
3225 | (coff_write_object_contents): Likewise. | |
3226 | ||
7fc1cd16 ILT |
3227 | Fri Mar 29 12:44:36 1996 Ian Lance Taylor <[email protected]> |
3228 | ||
5a28331f ILT |
3229 | * section.c (SEC_LINK_ONCE): Define. |
3230 | (SEC_LINK_DUPLICATES): Define. | |
3231 | (SEC_LINK_DUPLICATES_DISCARD): Define. | |
3232 | (SEC_LINK_DUPLICATES_ONE_ONLY): Define. | |
3233 | (SEC_LINK_DUPLICATES_SAME_SIZE): Define. | |
3234 | (SEC_LINK_DUPLICATES_SAME_CONTENTS): Define. | |
3235 | * bfd-in2.h: Rebuild. | |
3236 | * coffcode.h (sec_to_styp_flags): If COFF_WITH_PE, turn | |
3237 | SEC_LINK_ONCE into IMAGE_SCN_LNK_COMDAT. | |
3238 | (styp_to_sec_flags): If COFF_WITH_PE, turn IMAGE_SCN_LNK_REMOVE | |
3239 | into SEC_EXCLUDE. If IMAGE_SCN_LNK_COMDAT is set, set | |
3240 | SEC_LINK_ONCE, and look through the symbol table for the setting | |
3241 | for SEC_LINK_DUPLICATES. | |
3242 | (coff_write_object_contents): If COFF_WITH_PE, if SEC_LINK_ONCE is | |
3243 | set for a section, find the section symbol in the symbol table, | |
3244 | and set the aux entry based on SEC_LINK_DUPLICATES. | |
3245 | * coffgen.c (coff_print_symbol): Add a space before "checksum". | |
3246 | * coff-arm.c (armcoff_big_vec): If COFF_WITH_PE is defined, add | |
3247 | SEC_LINK_ONCE and SEC_LINK_DUPLICATES to section_flags. | |
3248 | * coff-i386.c (i386coff_vec): Likewise. | |
3249 | * coff-ppc.c (TARGET_LITTLE_SYM, TARGET_BIG_SYM): Likewise. | |
3250 | ||
7fc1cd16 ILT |
3251 | * VERSION: Bump to 2.6.1. |
3252 | * Makefile.in (stamp-h): Depend upon VERSION. | |
3253 | ||
9399a257 JL |
3254 | Thu Mar 28 23:48:49 1996 Jeffrey A Law ([email protected]) |
3255 | ||
3256 | * libbfd-in.h (generic_link_hash_newfunc): Add declaration. | |
3257 | * libbfd.h: Rebuilt. | |
3258 | * linker.c (generic_link_hash_newfunc): No longer static. | |
3259 | * coffcode.h (coff_bfd_link_hash_create): Allow specific targets | |
3260 | to override. | |
3261 | * coff-h8300.c: Add two derived hash tables and their associated | |
3262 | funtions and #defines for use by the h8300 linker. | |
3263 | (h8300_reloc16_extra_cases, case R_MEM_INDIRECT): Create entries in | |
3264 | the function vector as needed. Place the address of the function | |
3265 | vector entry in the location specified by the R_MEM_INDIRECT reloc. | |
3266 | Rewrite the vectors section contents as necessary. | |
3267 | (h8300_bfd_link_add_symbols): New function for the h8300 linker. | |
3268 | (coff_bfd_link_add_symbols): Define to use h8300 specific version. | |
3269 | (coff_bfd_link_hash_table_create): Likewise. | |
3270 | ||
506f2bb4 ILT |
3271 | Thu Mar 28 17:44:08 1996 Ian Lance Taylor <[email protected]> |
3272 | ||
3273 | * libhppa.h: If gcc 2.7 or higher, declare all the functions with | |
3274 | __attribute__ ((__unused__)) so that -Wall doesn't warn about | |
3275 | them. | |
3276 | (hppa_rebuild_insn): Pass pointer to correct type to | |
3277 | low_sign_unext and dis_assemble_21. | |
3278 | ||
05a84ae1 DE |
3279 | Thu Mar 28 11:00:36 1996 Doug Evans <[email protected]> |
3280 | ||
3281 | * config.bfd (sparc64-{sysv4*,solaris2*}): Delete. | |
3282 | Stick with sparc-*-{sysv4*,solaris2*}. | |
3283 | ||
919cf4b5 ILT |
3284 | Wed Mar 27 10:43:34 1996 Ian Lance Taylor <[email protected]> |
3285 | ||
8230f31c ILT |
3286 | * peicode.h (coff_swap_aux_in): Swap in extra PE x_scn fields. |
3287 | (coff_swap_aux_out): Swap out extra PE x_scn fields. | |
3288 | * coffswap.h (coff_swap_aux_in): Zero out extra PE x_scn fields. | |
3289 | * coffgen.c (coff_print_symbol): If any of the extra PE x_scn | |
3290 | fields is non-zero, print them. | |
3291 | ||
9addd1d4 ILT |
3292 | * coff-ppc.c (ppc_record_toc_entry): Put inside COFF_IMAGE_WITH_PE |
3293 | ifdef. Remove unused variables. | |
3294 | (ppc_record_data_in_toc_entry): Ifdef out. Removed unused | |
3295 | variables. | |
3296 | (ppc_mark_symbol_as_glue): Put inside COFF_IMAGE_WITH_PE ifdef. | |
3297 | (get_symbol_value): Ifdef out. | |
3298 | (pe_ppc_reloc): Ifdef out. Remove unused variables. | |
3299 | (coff_ppc_relocate_section): Remove unused variables. Make | |
3300 | fprintf strings and argument types correspond. Put before_addr in | |
3301 | DEBUG_RELOC ifdef. | |
ff0e4a93 ILT |
3302 | (dump_toc): Make fprintf strings and argument types correspond. |
3303 | (ppc_process_before_allocation): Remove unused variables. Always | |
3304 | return a value. | |
9addd1d4 ILT |
3305 | (ppc_reflo_reloc): Ifdef out. |
3306 | (ppc_addr32nb_reloc): Ifdef out. | |
3307 | (ppc_coff_rtype2howto): Make fprintf strings and argument types | |
3308 | correspond. | |
3309 | (coff_ppc_rtype_to_howto): Likewise. | |
3310 | (ppc_coff_swap_sym_in_hook): Remove unused variables. | |
3311 | ||
3312 | * peicode.h (pe_print_idata): Move otherwise unused variables into | |
3313 | the #ifdef where they are used. Always return a value. | |
ff0e4a93 ILT |
3314 | (pe_print_edata): Make fprintf strings and argument types |
3315 | correspond. Always return a value. | |
9addd1d4 ILT |
3316 | (pe_print_pdata): Removed unused variable addr_value. Always |
3317 | return a value. | |
3318 | (pe_print_reloc): Remove unused variable onaline. Make fprintf | |
ff0e4a93 | 3319 | strings and argument types correspond. Always return a value. |
9addd1d4 ILT |
3320 | |
3321 | * elf32-ppc.c (ppc_elf_fake_sections): Return true. | |
3322 | (ppc_elf_finish_dynamic_symbol): Move definition of unused | |
3323 | variable rela inside #if 0 section where it is used. | |
3324 | ||
c877bdf1 ILT |
3325 | * ns32k.h: New file. |
3326 | * cpu-ns32k.h: Include ns32k.h. Rename externally visible | |
3327 | functions to start with _bfd_. | |
3328 | * aout-ns32k.c: Include ns32k.h. Change references to renamed | |
3329 | functions in cpu-ns32k.h. | |
3330 | * Makefile.in: Rebuild dependencies. | |
3331 | (HFILES): Add ns32k.h. | |
3332 | ||
ff0e4a93 ILT |
3333 | * section.c (struct sec): Add linker_mark field. Change |
3334 | user_set_vma and reloc_done to be single bit fields. | |
3335 | (STD_SECTION): Update accordingly. | |
7ec49f91 ILT |
3336 | * bfd-in2.h: Rebuild. |
3337 | * aoutx.h (NAME(aout,final_link)): Mark sections included in the | |
3338 | link. | |
3339 | (aout_link_input_bfd): Don't link unmarked sections. | |
3340 | * cofflink.c (_bfd_coff_final_link): Mark sections included in the | |
3341 | link. | |
3342 | (_bfd_coff_link_input_bfd): Don't link unmarked sections. | |
3343 | * coff-ppc.c (ppc_bfd_coff_final_link): Mark sections included in | |
3344 | the link. | |
3345 | * elflink.h (elf_bfd_final_link): Mark sections included in the | |
3346 | link. | |
3347 | (elf_link_input_bfd): Don't link unmarked sections. | |
3348 | * xcofflink.c (_bfd_xcoff_bfd_final_link): Mark sections included | |
3349 | in the link. | |
3350 | (xcoff_link_input_bfd): Don't link unmarked sections. | |
3351 | ||
919cf4b5 ILT |
3352 | * coffswap.h (coff_swap_scnhdr_out): Include section name in |
3353 | overflow error messages. | |
3354 | ||
986cf3b8 ILT |
3355 | Tue Mar 26 15:46:18 1996 Ian Lance Taylor <[email protected]> |
3356 | ||
fd681dcd ILT |
3357 | * bfd.c (_bfd_default_error_handler): If _bfd_error_program_name |
3358 | is not set, print "BFD: " before the error message. | |
3359 | ||
986cf3b8 ILT |
3360 | * configure.in: Use AC_CHECK_TOOL to find ar and ranlib. From |
3361 | Miles Bader <[email protected]>. | |
3362 | * configure: Rebuild. | |
3363 | ||
3998d526 ILT |
3364 | Fri Mar 22 12:17:00 1996 Ian Lance Taylor <[email protected]> |
3365 | ||
c3dffbd7 ILT |
3366 | * xcofflink.c (xcoff_link_input_bfd): Fix scan for C_BINCL/C_EINCL |
3367 | symbols. | |
3368 | ||
3998d526 ILT |
3369 | * config.bfd: Add ieee_vec to targ_selvecs for i960 targets and |
3370 | m68k-aout, m68k-coff, and m68k-elf targets. | |
3371 | ||
e4d27380 ILT |
3372 | Fri Mar 22 11:33:44 1996 Martin Anantharaman <[email protected]> |
3373 | ||
3374 | * ieee.c: Changed #ifdef KEEPMINUSPCININST to #if KEEPMINUSPCININST. | |
3375 | (ieee_generic_stat_arch_elt): Restructured to prevent | |
3376 | ieee_object_p from being called repeatedly. | |
3377 | ||
51776a11 SC |
3378 | Thu Mar 21 11:00:47 1996 steve chamberlain <[email protected]> |
3379 | ||
3380 | * coffcode.h (coff_write_object_contents): Allocate | |
3381 | buffers large enough for any FILEHDR or AOUTHDR. | |
3382 | ||
3383 | Thu Mar 21 16:28:17 1996 David Mosberger-Tang <[email protected]> | |
3384 | ||
3385 | * ecofflink.c (lookup_line): New static function, renamed and | |
3386 | slighly changed from old _bfd_ecoff_locate_line. | |
3387 | (_bfd_ecoff_locate_line): Cache line number information. Use | |
3388 | lookup_line for actual lookup. | |
3389 | ||
9e4ebb1b MM |
3390 | Thu Mar 21 14:59:11 1996 Michael Meissner <[email protected]> |
3391 | ||
3392 | * peicode.h (pe_print_pdata): Warn if the .pdata section is not a | |
3393 | multiple of 20 bytes. | |
3394 | ||
9e7427a4 ILT |
3395 | Thu Mar 21 13:54:40 1996 Ian Lance Taylor <[email protected]> |
3396 | ||
51776a11 SC |
3397 | * ecoff.c (_bfd_ecoff_find_nearest_line): Use bfd_zalloc to |
3398 | allocate ecoff_find_line, and don't initialize by hand. | |
3399 | * elf32-mips.c (mips_elf_find_nearest_line): Use bfd_zalloc for | |
3400 | mips_elf_find_line, and don't call memset. | |
3401 | ||
9e7427a4 ILT |
3402 | * coffcode.h (coff_compute_section_file_positions): If not |
3403 | producing a final executable, don't consider sofar when aligning | |
3404 | the section to the correct size. | |
3405 | ||
3406 | Wed Mar 20 16:53:12 1996 Ian Lance Taylor <[email protected]> | |
3407 | ||
3408 | * coffcode.h (coff_add_missing_symbols): Ifdef out. | |
3409 | (coff_write_object_contents): Don't call coff_add_missing_symbols. | |
3410 | * coffgen.c (coff_section_symbol): Ifdef out. | |
3411 | ||
e7f9ba4f ILT |
3412 | Mon Mar 18 12:54:41 1996 Ian Lance Taylor <[email protected]> |
3413 | ||
3414 | * elf32-mips.c (mips_elf_gprel32_reloc): Initialize gp if | |
3415 | output_bfd is not NULL. | |
3416 | ||
34c4d647 DE |
3417 | Thu Mar 14 17:12:06 1996 Doug Evans <[email protected]> |
3418 | ||
3419 | * coffgen.c (coff_get_normalized_symtab): Call bfd_zalloc instead | |
3420 | of bfd_alloc (fixes fix_line not being initialized). | |
3421 | Delete zeroing of fix_{value,tag,end,scnlen} fields. | |
3422 | ||
4e054247 JL |
3423 | Thu Mar 14 16:06:06 1996 Jeffrey A Law ([email protected]) |
3424 | ||
57289b5c JL |
3425 | * coffcode.h: Allow specific backends to override the |
3426 | bfd_link_add_symbols routine. | |
3427 | ||
4e054247 JL |
3428 | * coff-h8300.c: Include genlink.h. |
3429 | (howto_table): Add R_MEM_INDIRECT. | |
3430 | (rtype2howto): Support R_MEM_INDIRECT. | |
3431 | (h8300_reloc16_extra_cases): Handle R_MEM_INDIRECT like R_RELBYTE | |
3432 | for now. | |
3433 | ||
a10d3dec ILT |
3434 | Tue Mar 12 12:41:17 1996 David Mosberger-Tang <[email protected]> |
3435 | ||
3436 | * coff-alpha.c (alpha_relocate_section): Use | |
3437 | info->callbacks_warning, rather than _bfd_error_handler, for | |
3438 | "multiple gp" warning. | |
3439 | ||
ea2488ad ILT |
3440 | Tue Mar 12 12:10:55 1996 Ian Lance Taylor <[email protected]> |
3441 | ||
8881b321 ILT |
3442 | * linker.c (bfd_wrapped_link_hash_lookup): New function. |
3443 | (_bfd_generic_link_add_one_symbol): Remove BFD_ASSERT on hash | |
3444 | table string. Use bfd_wrapped_link_hash_lookup. | |
3445 | (_bfd_generic_link_write_global_symbol): Remove BFD_ASSERT on hash | |
3446 | table string. | |
3447 | * aoutx.h (aout_link_write_symbols): Use the name from the hash | |
3448 | table, if any, when writing out symbols. | |
3449 | (aout_link_input_section_std): Use the name from the hash table, | |
3450 | if any, when reporting undefined symbols. | |
3451 | (aout_link_input_section_ext): Likewise. | |
3452 | (aout_link_reloc_link_order): Use bfd_wrapped_link_hash_lookup. | |
3453 | * bout.c (get_value): Likewise. | |
3454 | * cofflink.c (_bfd_coff_reloc_link_order): Likewise. | |
3455 | * ecoff.c (ecoff_reloc_link_order): Likewise. | |
3456 | * elflink.h (elf_link_add_object_symbols): Likewise. | |
3457 | (elf_reloc_link_order): Likewise. | |
3458 | * linker.c (_bfd_generic_link_output_symbols): Likewise. | |
3459 | (_bfd_generic_reloc_link_order): Likewise. | |
3460 | (default_indirect_link_order): Likewise. | |
3461 | * reloc16.c (bfd_coff_reloc16_get_value): Likewise. | |
3462 | * sunos.c (sunos_add_one_symbol): Likewise. | |
3463 | * xcofflink.c (xcoff_link_add_symbols): Likewise. | |
3464 | (bfd_xcoff_link_count_reloc): Likewise. | |
3465 | (xcoff_reloc_link_order): Likewise. | |
3466 | ||
3467 | * ecoffswap.h (ecoff_swap_fdr_in): If ECOFF_64, turn 0xffffffff | |
3468 | into -1 for intern->rss. | |
3469 | ||
ea2488ad ILT |
3470 | * configure: Rebuild with autoconf 2.8. |
3471 | ||
c189fdfb ILT |
3472 | Mon Mar 11 12:28:31 1996 Ian Lance Taylor <[email protected]> |
3473 | ||
3474 | * stab-syms.c (__define_stab_duplicate): Define. | |
3475 | (bfd_get_stab_name): Rename from aout_stab_name. Rewrite to use a | |
3476 | switch. | |
3477 | * bfd-in.h (bfd_get_stab_name): Declare. | |
3478 | * bfd-in2.h: Rebuild. | |
3479 | * Makefile.in: Rebuild dependencies. | |
3480 | (BFD_LIBS): Add stab-syms.o. | |
3481 | (BFD_LIBS_CFILES): Add stab-syms.c. | |
3482 | (BFD32_BACKENDS): Remove stab-syms.o. | |
3483 | (BFD32_BACKENDS_CFILES): Remove stab-syms.c. | |
3484 | * configure.in: Don't list stab-syms.o in bfd_backends. | |
3485 | * configure: Rebuild. | |
3486 | * libaout.h (aout_stab_name): Don't declare. | |
3487 | * aoutx.h (NAME(aout,get_symbol_info)): Call bfd_get_stab_name, | |
3488 | not aout_stab_name. | |
3489 | ||
3490 | Fri Mar 8 11:26:20 1996 Ian Lance Taylor <[email protected]> | |
3491 | ||
3492 | * elf.c (assign_file_positions_for_segments): Adjust file offset | |
3493 | for section alignment even if SEC_LOAD is not set. | |
3494 | ||
c5bde1ef ILT |
3495 | Tue Mar 5 12:02:23 1996 Ian Lance Taylor <[email protected]> |
3496 | ||
8f218e05 ILT |
3497 | * configure.in: Don't set SHLIB or SHLINK to an empty string, |
3498 | since they appear as targets in Makefile.in. | |
3499 | * configure: Rebuild. | |
3500 | ||
c5bde1ef ILT |
3501 | * sunos.c (sunos_scan_ext_relocs): If not making a shared library, |
3502 | don't fiddle with a symbol which is not defined anywhere. | |
3503 | ||
cb84f028 ILT |
3504 | Mon Mar 4 12:49:16 1996 Ian Lance Taylor <[email protected]> |
3505 | ||
4e59f523 ILT |
3506 | * xcofflink.c (xcoff_mark): Treat undefined imported symbols as |
3507 | though they are defined in a shared library. | |
3508 | (xcoff_build_ldsyms): Likewise. | |
3509 | ||
ea2504d5 ILT |
3510 | * coffgen.c (coff_find_nearest_line): Don't look at the line |
3511 | numbers for the section if section->lineno is NULL. | |
3512 | ||
cb84f028 ILT |
3513 | * elf.c (_bfd_elf_symbol_from_bfd_symbol): Print a useful error |
3514 | message rather than calling BFD_ASSERT. | |
3515 | * elfcode.h (write_relocs): Check return value of | |
3516 | _bfd_elf_symbol_from_bfd_symbol. | |
3517 | ||
6e036cf7 MM |
3518 | Fri Mar 1 09:42:59 1996 Michael Meissner <[email protected]> |
3519 | ||
3520 | * elf32-ppc.c (ppc_elf_add_symbol_hook): Don't set SEC_LOAD flag | |
3521 | for .sbss section. | |
3522 | ||
d08435de JL |
3523 | Wed Feb 28 11:25:47 1996 Jeffrey A Law ([email protected]) |
3524 | ||
3525 | * libhppa.h (hppa_reloc_field_selector_type): Add R_HPPA_NLSEL | |
3526 | and R_HPPA_NLRSEL. | |
3527 | (e_nsel, e_nlsel, e_nlrsel): Undefine. Add to | |
3528 | hppa_reloc_field_selector_type_alt. | |
3529 | (hppa_field_adjust): Handle e_nlsel, e_nlrsel. Fix e_nsel handling. | |
3530 | * som.c (hppa_som_gen_reloc_type): Handle N', NL' NLR' field | |
3531 | selectors. | |
3532 | (som_write_fixups): Finish handling of R_N0SEL and R_N1SEL. | |
3533 | ||
09609415 ILT |
3534 | Wed Feb 28 11:00:24 1996 Ian Lance Taylor <[email protected]> |
3535 | ||
3536 | * elf.c (assign_file_positions_for_segments): Adjust the segment | |
3537 | memory size for the alignment of a SEC_ALLOC section, not just a | |
3538 | SEC_LOAD section. | |
3539 | ||
55626bf0 ILT |
3540 | Tue Feb 27 14:17:31 1996 Andreas Schwab <[email protected]> |
3541 | ||
3542 | * m68klinux.c: New file. | |
3543 | * hosts/m68klinux.h: New file. | |
3544 | * config.bfd (m68*-*-linuxaout*, m68*-*-linux*): New targets. | |
3545 | * configure.in (m68*-*-linux*): New native host. | |
3546 | (m68klinux_vec): New vector. | |
3547 | * configure: Rebuild. | |
3548 | * targets.c (m68klinux_vec): Declare. | |
3549 | * i386linux.c (bfd_i386linux_size_dynamic_sections): Renamed from | |
3550 | bfd_linux_size_dynmic_sections to avoid clash with m68klinux.c. | |
3551 | * bfd-in.h (bfd_i386linux_size_dynamic_sections): Rename | |
3552 | declaration from bfd_linux_size_dynamic_sections. | |
3553 | (bfd_m68klinux_size_dynamic_sections): Declare. | |
3554 | * bfd-in2.h: Rebuild. | |
3555 | * Makefile.in: Rebuild dependencies. | |
3556 | (BFD32_BACKENDS): Add m68klinux.o. | |
3557 | (BFD32_BACKENDS_CFILES): Add m68klinux.c. | |
3558 | ||
6c7b3090 JL |
3559 | Tue Feb 27 11:31:34 1996 Jeffrey A Law ([email protected]) |
3560 | ||
3561 | * libhppa.h (pa_arch): Add pa20. | |
3562 | (hppa_reloc_field_selector_type): Add R_HPPA_NSEL. | |
3563 | (e_nsel): Undefine. Add to hppa_reloc_field_selector_type_alt. | |
3564 | (hppa_field_adjust): Handle e_nsel. | |
3565 | * som.c: Provide default definitions for many new relocs found only | |
3566 | in hpux10 include files. | |
3567 | (som_fixup_formats): Add several new relocs from hpux10. | |
3568 | (som_hppa_howto_table): Add hpux10 relocs. | |
3569 | (som_write_fixups): Handle R_N0SEL and R_N1SEL hpux10 relocs. | |
3570 | ||
14fd4616 SS |
3571 | Mon Feb 26 12:52:48 1996 Stan Shebs <[email protected]> |
3572 | ||
3573 | * mpw-make.sed: Edit out recent shared library support, and | |
3574 | rules to rebuild .h files using doc/chew. | |
3575 | ||
3d9f042c ILT |
3576 | Mon Feb 26 14:48:39 1996 David Mosberger-Tang <[email protected]> |
3577 | ||
3578 | * ecoff.c (ecoff_compute_section_file_positions): Adjust the file | |
3579 | size even of sections with no contents. | |
3580 | ||
bdec6228 ILT |
3581 | Mon Feb 26 14:01:13 1996 Ian Lance Taylor <[email protected]> |
3582 | ||
88358469 ILT |
3583 | * cofflink.c (_bfd_coff_link_input_bfd): When merging, skip names |
3584 | starting with '$' the way we skip names starting with '.'. When | |
3585 | updating x_endndx, don't be fooled by an index which has been | |
3586 | merged. | |
3587 | ||
bdec6228 ILT |
3588 | * cofflink.c (_bfd_coff_link_input_bfd): Don't try to optimize a |
3589 | struct/union/enum type with no elements. | |
3590 | ||
053ae1d7 ILT |
3591 | Sat Feb 24 11:38:58 1996 Ian Lance Taylor <[email protected]> |
3592 | ||
15f4406c ILT |
3593 | * bfd.c (bfd_errmsg): Handle a NULL return from strerror. |
3594 | ||
c8435133 ILT |
3595 | * archive.c (bfd_generic_archive_p): If the first file in the |
3596 | archive can not be recognized as an object, don't assume that this | |
3597 | is the wrong format. | |
3598 | ||
053ae1d7 ILT |
3599 | * elf.c (bfd_elf_set_dt_needed_name): Don't do anything if the |
3600 | format is not bfd_object. | |
3601 | (bfd_elf_get_dt_soname): Likewise. | |
3602 | ||
ea74d979 ILT |
3603 | Wed Feb 21 13:58:04 1996 Ian Lance Taylor <[email protected]> |
3604 | ||
3605 | * coff-sh.c (sh_relax_delete_bytes): Correct range of R_SH_USES | |
3606 | reloc. | |
3607 | ||
871a3f3b C |
3608 | Tue Feb 20 16:22:44 1996 J.T. Conklin <[email protected]> |
3609 | ||
3610 | * bfd.c (tdata): Add netbsd_core_data. | |
3611 | * bfd-in2.h: Regenerated. | |
3612 | ||
3613 | Tue Feb 20 16:50:02 1996 Ian Lance Taylor <[email protected]> | |
3614 | ||
fe6fc35f ILT |
3615 | * sunos.c (SUNOS_CONSTRUCTOR): Define. |
3616 | (sunos_add_one_symbol): Don't let a symbol from a dynamic object | |
3617 | override a constructor symbol. Set SUNOS_CONSTRUCTOR when | |
3618 | appropriate. | |
3619 | ||
871a3f3b C |
3620 | * bout.c (b_out_squirt_out_relocs): Use udata.i rather than flags |
3621 | to get the symbol index, matching 14 Jul 95 change. | |
3622 | ||
d3785301 FF |
3623 | Tue Feb 20 08:26:27 1996 Fred Fish <[email protected]> |
3624 | ||
3625 | * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): | |
3626 | Remove duplicate definition of gp. | |
3627 | ||
60a49e7f ILT |
3628 | Mon Feb 19 12:37:41 1996 Ian Lance Taylor <[email protected]> |
3629 | ||
81bdcecf ILT |
3630 | * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Don't |
3631 | assume that we can set the GP value and then get the same value, | |
3632 | since it won't be true if the output file is neither ELF nor | |
3633 | ECOFF. | |
3634 | * coff-mips.c (mips_adjust_reloc_in): Don't bother to use | |
3635 | _bfd_get_gp_value here. | |
3636 | (mips_gprel_reloc): Don't assume we can set and get the GP value. | |
3637 | * elf32-mips.c (mips_elf_hi16_reloc): Get gp value from | |
3638 | mips_elf_final_gp. | |
3639 | (mips_elf_lo16_reloc): Likewise. | |
3640 | (mips_elf_final_gp): Add pgp parameter. Set it to the GP value. | |
3641 | Don't require that the BFD be ELF. | |
3642 | (mips_elf_gprel16_reloc): Get gp value from mips_elf_final_gp. | |
3643 | (mips_elf_gprel32_reloc): Likewise. | |
3644 | (mips_elf_relocate_section): Don't assume we can set and get the | |
3645 | GP value. | |
3646 | (mips_elf_finish_dynamic_symbol): Don't bother to use | |
3647 | _bfd_get_gp_value here. | |
3648 | ||
3649 | * elf32-mips.c (mips_elf_create_procedure_table): Initialize sv. | |
3650 | Don't change epdr between malloc and free. Be careful not to free | |
3651 | NULL pointers. Zero out the first RPDR. | |
3652 | ||
7b61165a ILT |
3653 | * configure.host: On Linux, only pass -rpath option if $(libdir) |
3654 | is neither /lib nor /usr/lib. From Alan Modra | |
3655 | <[email protected]>. | |
3656 | ||
60a49e7f ILT |
3657 | * elf-bfd.h (struct elf_obj_tdata): Rename dt_needed_name to |
3658 | dt_name. | |
3659 | (elf_dt_name): Rename from elf_dt_needed_name. | |
3660 | * elf.c (bfd_elf_set_dt_needed_name): Use elf_dt_name, not | |
3661 | elf_dt_needed_name. | |
3662 | (bfd_elf_get_dt_soname): New function. | |
3663 | * elflink.h (elf_link_add_object_symbols): Use elf_dt_name, not | |
3664 | elf_dt_needed_name. Save the SONAME back in elf_dt_name. | |
3665 | * bfd-in.h (bfd_elf_get_dt_soname): Declare. | |
3666 | * bfd-in2.h: Rebuild. | |
3667 | ||
b268e261 DE |
3668 | Mon Feb 19 02:50:23 1996 Doug Evans <[email protected]> |
3669 | ||
3670 | * elf32-sparc.c (elf32_sparc_reloc_type_lookup): Renamed from | |
3671 | _bfd_sparc_elf_reloc_type_lookup. | |
3672 | (bfd_elf32_bfd_reloc_type_lookup): Update. | |
3673 | * elf64-sparc.c (SPARC64_OLD_RELOCS): Define. | |
3674 | (sparc64_elf_howto_table): Define. | |
3675 | (sparc_reloc_map): Define. | |
3676 | (sparc64_elf_reloc_type_lookup): New function. | |
3677 | (sparc_elf_wdisp16_reloc): New function. | |
3678 | (elf_info_to_howto): Use sparc64_elf_howto_table. | |
3679 | (sparc64_elf_relocate_section): Likewise. | |
3680 | (bfd_elf64_bfd_reloc_type_lookup): Update. | |
3681 | ||
9e2ef098 ILT |
3682 | Sun Feb 18 15:02:25 1996 Ian Lance Taylor <[email protected]> |
3683 | ||
3684 | * configure.host: Check for 'do not mix' from native linker before | |
3685 | trying to use -rpath. | |
3686 | ||
4c70373f ILT |
3687 | Fri Feb 16 12:46:18 1996 Ian Lance Taylor <[email protected]> |
3688 | ||
cba3f8a9 ILT |
3689 | * bfd.c (_bfd_get_gp_value): New function. |
3690 | (_bfd_set_gp_value): New function. | |
3691 | * libbfd-in.h (_bfd_get_gp_value): Declare. | |
3692 | (_bfd_set_gp_value): Declare. | |
3693 | * libbfd.h: Rebuild. | |
3694 | * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Use | |
3695 | _bfd_get_gp_value and _bfd_set_gp_value rather than referring | |
3696 | directly to the fields in the tdata information. | |
3697 | (alpha_relocate_section): Likewise. | |
3698 | * coff-mips.c (mips_adjust_reloc_in): Likewise. | |
3699 | (mips_gprel_reloc): Likewise. | |
3700 | (mips_relocate_section): Likewise. | |
3701 | * elf32-mips.c (mips_elf_hi16_reloc): Likewise. | |
3702 | (mips_elf_lo16_reloc): Likewise. | |
3703 | (mips_elf_final_gp): Likewise. | |
3704 | (mips_elf_gprel16_reloc): Likewise. | |
3705 | (mips_elf_gprel32_reloc): Likewise. | |
3706 | (mips_elf_relocate_section): Likewise. | |
3707 | (mips_elf_finish_dynamic_symbol): Likewise. | |
3708 | ||
4c70373f ILT |
3709 | * bout.c (b_out_set_arch_mach): Recognize bfd_mach_i960_jx. |
3710 | ||
a0a2dd54 ILT |
3711 | Thu Feb 15 11:29:13 1996 Ian Lance Taylor <[email protected]> |
3712 | ||
f54c7482 | 3713 | * configure.in: Call AC_PROG_CC before configure.host. |
65eed095 ILT |
3714 | * configure: Rebuild. |
3715 | * configure.host: Don't set information which autoconf should | |
3716 | figure out, namely CC, CFLAGS, LDFLAGS, AR, and RANLIB. | |
65eed095 | 3717 | |
14293419 ILT |
3718 | * configure.host: Remove go32 and win32 host information, since it |
3719 | should no longer be needed. | |
3720 | ||
edf3fe48 ILT |
3721 | * elf.c (map_sections_to_segments): If we have a .dynamic section, |
3722 | then start a new segment rather than put a writable section in a | |
3723 | readonly segment. | |
3724 | ||
b5e4f369 ILT |
3725 | * configure.host: Set RPATH_ENVVAR. |
3726 | ||
f2e33e27 ILT |
3727 | * Makefile.in: Rebuild dependencies. |
3728 | ||
a0a2dd54 ILT |
3729 | * elflink.c (_bfd_elf_create_linker_section): Remove unused |
3730 | zero_section variable. | |
3731 | ||
52c6bc4d ILT |
3732 | Thu Feb 15 10:39:17 1996 H.J. Lu <[email protected]> |
3733 | ||
3734 | * Makefile.in ($(srcdir)/bfd-in2.h): Rename target from bfd-in2.h. | |
3735 | ($(srcdir)/libbfd.h): Rename from libbfd.h. | |
3736 | ($(srcdir)/libcoff.h): Rename from libcoff.h. | |
3737 | ||
c9e5279f ILT |
3738 | Wed Feb 14 16:29:07 1996 Martin Anantharaman <[email protected]> |
3739 | ||
cb50baea ILT |
3740 | * ieee.c (ieee_write_expression): Only use an R variable for a |
3741 | local symbol. Don't output a zero offset. Handle a zero address. | |
3742 | (SRC_MASK, PCREL_OFFSET): Define based on KEEPMINUSPCININST. | |
3743 | (rel32_howto, rel16_howto, rel8_howto): Use SRC_MASK and | |
3744 | PCREL_OFFSET. | |
3745 | (parse_expression): Don't try to handle multiple occurrences of a | |
3746 | P variable. Handle I variables differently from X variables. Fix | |
3747 | the order of minus expressions. | |
3748 | (ieee_slurp_external_symbols): Generate an I variable for an NN | |
3749 | record. Fix handling of ATI and ATX records. | |
3750 | (ieee_slurp_sections): Only set minimal section attributes. | |
3751 | Adjust them later, based on the section contents. | |
3752 | (ieee_object_p): Read in the file until just after the ME record. | |
3753 | Call ieee_slurp_section_data to set the section flags. | |
3754 | (do_one): Add iterations parameter. Only repeat the first load | |
3755 | item. Set the section and file reloc flags. | |
3756 | (ieee_slurp_section_data): Set section flags. Pass iterations to | |
3757 | do_one. | |
3758 | (ieee_canonicalize_reloc): Handle I variables. | |
3759 | (do_with_relocs): Only emit relocation size when necessary. | |
3760 | Increase MAXRUN to 127. Change ov to be assigned, and take | |
3761 | src_mask and pcrel_offset into account. | |
3762 | (ieee_write_data_part): Skip sections that are not loaded. | |
3763 | (ieee_write_external_part): Don't output optional last entry of WX | |
3764 | records. | |
3765 | (ieee_write_me_part): Make setting of me_record neater. | |
3766 | (ieee_generic_stat_arch_elt): Get the size of an archive element. | |
3767 | ||
c9e5279f ILT |
3768 | * syms.c (stt): Add entries for zerovars, vars, and code. |
3769 | ||
3770 | * elfcode.h (validate_reloc): New static function. | |
3771 | (write_relocs): Call validate_reloc for non ELF relocs. | |
3772 | ||
3773 | * elfxx-target.h (elf_symbol_leading_char): Define if not defined. | |
3774 | (TARGET_BIG_SYM): Use elf_symbol_leading_char. | |
3775 | (TARGET_LITTLE_SYM): Likewise. | |
3776 | ||
3777 | * config.bfd (m68*-*-psos*): New target. | |
3778 | ||
d9d65be6 ILT |
3779 | Tue Feb 13 15:56:22 1996 Bryan Ford <[email protected]> |
3780 | ||
3781 | * i386msdos.c: Remove some #if 0 code. | |
3782 | (msdos_write_object_contents): Don't include empty sections in the | |
3783 | size computation, regardless of their address. | |
3784 | ||
3785 | Tue Feb 13 15:36:37 1996 Michael Meissner <[email protected]> | |
3786 | ||
3787 | * elf32-ppc.c (ppc_elf_relocate_section): Don't segfault if dynboj | |
3788 | is NULL, ie, the -r switch is used. | |
3789 | ||
db5970c7 ILT |
3790 | Tue Feb 13 14:35:15 1996 Ian Lance Taylor <[email protected]> |
3791 | ||
e9f03cd4 ILT |
3792 | * reloc.c (BFD_RELOC_MIPS_GOT_HI16): Define. |
3793 | (BFD_RELOC_MIPS_GOT_LO16): Define. | |
b7384d22 | 3794 | (BFD_RELOC_MIPS_CALL_HI16, BFD_RELOC_MIPS_CALL_LO16): Define. |
e9f03cd4 ILT |
3795 | * bfd-in2.h, libbfd.h: Rebuild. |
3796 | * elf32-mips.c (mips_reloc_map): Map new relocs. | |
3797 | ||
fe7c066a ILT |
3798 | * configure.host: Set HDLFLAGS for *-*-hpux with --enable-shared. |
3799 | ||
1ab628e4 ILT |
3800 | * Makefile.in ($(SHLINK)): Check ts against $(SHLIB), not |
3801 | $(SHLINK). | |
3802 | ||
db5970c7 ILT |
3803 | * ieee.c (get_symbol): Set the section to bfd_abs_section. |
3804 | (do_with_relocs): If EXEC_P is set and there are no relocs, use a | |
3805 | simple number for the section address, rather than an expression. | |
3806 | Limit the number of bytes between relocs to MAXRUN. | |
3807 | (ieee_write_me_part): Set me_record to the file offset after the | |
3808 | start address. | |
3809 | (ieee_write_processor): New static function. | |
3810 | (ieee_write_object_contents): Use ieee_write_processor. | |
3811 | ||
318b7c18 ILT |
3812 | Fri Feb 9 10:53:00 1996 Ian Lance Taylor <[email protected]> |
3813 | ||
db5970c7 ILT |
3814 | * configure.host: Use ${CC-gcc} when testing for -rpath on SunOS. |
3815 | ||
3816 | * coff-aux.c: Change include of aux.h to aux-coff.h. | |
318b7c18 | 3817 | |
56b64690 ILT |
3818 | Thu Feb 8 14:01:03 1996 Andreas Schwab <[email protected]> |
3819 | ||
3820 | * elf32-m68k.c (elf_m68k_relocate_section): For a R_68K_RELATIVE | |
3821 | relocation put the addend both in the reloc entry and the data. | |
3822 | (elf_m68k_finish_dynamic_symbol): Likewise. Mask out marker in | |
3823 | GOT offset value. | |
3824 | ||
3825 | * elf32-m68k.c (elf_m68k_relocate_section): If -Bsymbolic, resolve | |
3826 | a R_68K_PCxx reloc against a defined global symbol directly. | |
3827 | (elf_m68k_check_relocs): Don't count such a reloc. | |
3828 | ||
3829 | * elf32-m68k.c (elf_m68k_check_relocs): Don't record a symbol with | |
3830 | a PLTxx reloc as dynamic. Disallow PLTxxO reloc against a local | |
3831 | symbol for now, otherwise always record the symbol as dynamic. | |
3832 | (elf_m68k_adjust_dynamic_symbol): If a symbol with a PLTxx reloc | |
3833 | is not referenced by a dynamic object, and we are not making a | |
3834 | shared object, then don't make a PLT entry. If we do make a PLT | |
3835 | entry, make sure the symbol has been recorded as dynamic. | |
3836 | ||
5d649ca8 ILT |
3837 | Wed Feb 7 13:56:06 1996 Ian Lance Taylor <[email protected]> |
3838 | ||
3839 | * configure.host: When making a shared library, set HLDFLAGS to | |
3840 | pass an appropriate -rpath option. Use the make variable SONAME | |
3841 | as the shared library soname, rather than computing it here. On | |
3842 | SunOS, build stamp-tshlink in place of $(SHLINK). | |
3843 | * Makefile.in (SONAME): New variable. | |
3844 | ($(SHLINK)): Make a link to the transformed name, as well. | |
3845 | (stamp-tshlink): New target. | |
3846 | (install): Skip stamp-tshlink during install. | |
3847 | ||
8cc98cd5 MM |
3848 | Wed Feb 7 13:37:39 1996 Michael Meissner <[email protected]> |
3849 | ||
56b64690 ILT |
3850 | * elf32-ppc.c (ppc_elf_add_symbol_hook): Do not assume that the |
3851 | linker sections have been set up yet. | |
3852 | ||
8cc98cd5 MM |
3853 | * elf.c (make_mapping): Add an additional argument to suppress |
3854 | making the first section include the program headers. | |
3855 | (map_sections_to_segments): If the user used -Ttext such that the | |
3856 | program headers are on a different page, do not set the flags | |
3857 | saying that this section includes the program headers. | |
3858 | ||
fe16107d C |
3859 | Tue Feb 6 14:04:49 1996 J.T. Conklin <[email protected]> |
3860 | ||
3861 | * configure.in (*-*-netbsd*): Set COREFILE to netbsd-core.c. | |
3862 | don't define TRAD_HEADER. | |
3863 | * configure: Rebuild. | |
3864 | ||
3865 | * netbsd-core.c: New file, support for NetBSD core files. | |
3866 | * hosts/*nbsd.h: Removed. | |
3867 | ||
f1783016 DE |
3868 | Tue Feb 6 11:47:49 1996 Doug Evans <[email protected]> |
3869 | ||
3870 | * reloc.c (BFD_RELOC_SPARC_[567]): New reloc types. | |
3871 | (BFD_RELOC_SPARC_LO7 reloc type): Deleted. | |
3872 | * libbfd.h, bfd-in2.h: Regenerated. | |
3873 | * elf32-sparc.c (_bfd_sparc_elf_reloc_type_lookup): Renamed from | |
3874 | bfd_elf32_bfd_reloc_type_lookup. | |
3875 | (reloc_type{,_names}): Deleted. | |
3876 | (_bfd_sparc_elf_howto_table): Renamed from elf_sparc_howto_table. | |
3877 | Add sparc64 relocs. | |
3878 | (sparc_reloc_map): Add sparc64 relocs. | |
3879 | (sparc_elf_notsupported_reloc): New static function. | |
3880 | (sparc_elf_wdisp16_reloc): New static function. | |
3881 | (elf32_sparc_check_relocs): Handle R_SPARC_WDISP{16,19}. | |
3882 | (elf32_sparc_relocate_section): Likewise. | |
3883 | (bfd_elf32_bfd_reloc_type_lookup): Define. | |
3884 | * elf64-sparc.c (sparc64_elf_wdisp16_reloc): Deleted. | |
3885 | (reloc_type{,_names}): Deleted. | |
3886 | (elf_sparc_howto_table): Deleted. | |
3887 | (sparc_reloc_map): Deleted. | |
3888 | (_bfd_sparc_elf_howto_table): Renamed from elf_sparc_howto_table. | |
3889 | (bfd_elf64_bfd_reloc_type_lookup): Change from function to #define. | |
3890 | ||
48fd00b6 ILT |
3891 | Tue Feb 6 12:12:22 1996 Ian Lance Taylor <[email protected]> |
3892 | ||
2300e217 ILT |
3893 | * configure.host: Make SHLIB_CFLAGS include $(PICFLAG) on a |
3894 | *-*-hpux* host. | |
3895 | ||
48fd00b6 ILT |
3896 | * Makefile.in (program_transform_name): New variable. |
3897 | (install): Transform library name before installing it. | |
3898 | ||
8adca582 ILT |
3899 | Mon Feb 5 10:38:27 1996 Ian Lance Taylor <[email protected]> |
3900 | ||
cbe75cb6 ILT |
3901 | * archures.c (bfd_mach_i960_hx): Define. |
3902 | * bfd-in2.h: Rebuild. | |
3903 | * cpu-i960.c (scan_960_mach): Accept machine "hx". | |
3904 | (MATRIX): Expand entries for HX. | |
3905 | (arch_info_struct): Add i960:hx entry. | |
3906 | * bout.c (b_out_set_arch_mach): Handle bfd_mach_i960_hx. | |
3907 | * coffcode.h (coff_set_arch_mach_hook): Handle F_I960HX. | |
3908 | (coff_set_flags): Handle bfd_mach_i960_hx. | |
3909 | ||
44f795f7 ILT |
3910 | Support for building as a shared library, based on patches from |
3911 | Alan Modra <[email protected]>: | |
3912 | * configure.in: Add AC_ARG_ENABLE for shared and commonbfdlib. | |
3913 | New substitutions: ALLLIBS, PICFLAG, SHLIB, SHLIB_CC, | |
3914 | SHLIB_CFLAGS, COMMON_SHLIB, PICLIST, SHLINK. | |
3915 | * configure: Rebuild. | |
3916 | * configure.host: If --enable-shared, adjust shared library stuff | |
3917 | based on the host. If the host is SunOS, and the linker supports | |
3918 | -rpath, set HLDFLAGS to use it. | |
3919 | * Makefile.in (ALLLIBS): New variable. | |
3920 | (PICFLAG, SHLIB, SHLIB_CC, SHLIB_CFLAGS): New variables. | |
3921 | (COMMON_SHLIB, SHLINK): New variables. | |
3922 | (.c.o): If PICFLAG is set, compile twice, once PIC, once normal. | |
3923 | (STAGESTUFF): Remove variable. | |
3924 | (all): Depend upon $(ALLLIBS) and @PICLIST@ rather than | |
3925 | $(TARGETLIB). | |
3926 | (stamp-ofiles): New target, like old ofiles target, but build | |
3927 | using a temporary file and move-if-change, and touch stamp-ofiles | |
3928 | when done. | |
3929 | (ofiles): Just depend upon stamp-ofiles. | |
3930 | (stamp-piclist, piclist): New targets. | |
3931 | ($(SHLIB), $(SHLINK)): New targets. | |
3932 | (targets.o, archures.o): Build twice if PICFLAG is set. | |
3933 | (do_mostlyclean): Remove pic/*.o. | |
3934 | (do_clean): Remove stamp-ofiles, $(SHLIB), $(SHLINK), piclist, and | |
3935 | stamp-piclist. | |
3936 | (do_distclean): Remove pic and stamp-picdir. | |
3937 | (install): Install shared libraries. | |
3938 | ($(OFILES)): Depend upon stamp-picdir. | |
3939 | (stamp-picdir): New target. | |
3940 | ||
cb62d2bc ILT |
3941 | * libcoff-in.h: Add comment reminding people that libcoff.h is a |
3942 | generated file. | |
3943 | * libcoff.h: Rebuild. | |
3944 | ||
8adca582 ILT |
3945 | * elflink.h (elf_adjust_dynamic_symbol): Don't try to get the |
3946 | flavour of a section with no owner. | |
3947 | ||
3948 | * elf32-mips.c (mips_elf_create_dynamic_sections): Clear | |
3949 | ELF_LINK_NON_ELF flag. | |
3950 | (mips_elf_create_got_section): Likewise. | |
3951 | ||
3952 | * elf.c: Revert last change, since it breaks dynamic linking. | |
3953 | * elf-bfd.h (struct elf_backend_data): Remove want_hdr_in_seg | |
3954 | field. | |
3955 | * elf32-mips.c (elf_backend_want_hdr_in_seg): Don't define. | |
3956 | * elfxx-target.h (elf_backend_want_hdr_in_seg): Don't define. | |
3957 | (elfNN_bed): Don't initialize want_hdr_in_seg field. | |
3958 | ||
3959 | Sun Feb 4 20:45:13 1996 Michael Meissner <[email protected]> | |
3960 | ||
3961 | * elf.c (assign_file_positions_for_segments): If the backend does | |
3962 | not want the elf header or the program headers in the address | |
3963 | space, do not include them in the calculations. | |
3964 | ||
3965 | * elf32-ppc.c (ppc_elf_additional_program_headers): New hook | |
3966 | function to determine if we need additional program headers. | |
3967 | (ppc_elf_modify_segment_map): Define as a NOP function for now. | |
3968 | (ppc_elf_create_linker_section): .sdata2 is a read-only section. | |
3969 | ||
0f09ddd4 ILT |
3970 | Sat Feb 3 23:00:03 1996 Ian Lance Taylor <[email protected]> |
3971 | ||
3972 | * coffcode.h: Move today's libcoff.h change into coffcode.h. | |
3973 | ||
b48f10ba FF |
3974 | Sat Feb 3 15:43:44 1996 Fred Fish <[email protected]> |
3975 | ||
0f09ddd4 ILT |
3976 | * libcoff.h (bfd_coff_link_add_one_symbol): Combine macro args |
3977 | back into one line. Some compilers (sunos 4.1.3 for example) | |
3978 | won't accept args split across more than one line. | |
b48f10ba | 3979 | |
50761d3b SC |
3980 | Fri Feb 2 11:42:15 1996 Steve Chamberlain <[email protected]> |
3981 | ||
3982 | * aclocal.m4 (BFD_BINARY_FOPEN): Understand cygwin32. | |
3983 | * configure: Regenerate. | |
3984 | ||
9dce8260 JL |
3985 | Fri Feb 2 12:12:16 1996 Jeffrey A Law ([email protected]) |
3986 | ||
3987 | * elf32-hppa.c (elf32_hppa_backend_symbol_table_processing): Don't | |
3988 | try to do arithmetic on a void *, cast it to a unsigned char * first. | |
3989 | ||
6c55897c ILT |
3990 | Thu Feb 1 16:04:06 1996 Ian Lance Taylor <[email protected]> |
3991 | ||
869b7d80 ILT |
3992 | * elf-bfd.h (ELF_LINK_NON_ELF): Define. |
3993 | * elf.c (_bfd_elf_link_hash_newfunc): Set elf_link_hash_flags to | |
3994 | ELF_LINK_NON_ELF. | |
3995 | * elflink.h (elf_link_add_object_symbols): Reset ELF_LINK_NON_ELF | |
3996 | flag for a newly defined symbol. | |
3997 | (NAME(bfd_elf,record_link_assignment)): Likewise. | |
3998 | (elf_adjust_dynamic_symbol): If ELF_LINK_NON_ELF is set, try to | |
3999 | set the DEF or REF_REGULAR flags correctly. | |
4000 | ||
6f6956c6 ILT |
4001 | * Makefile.in (bfd-in2.h): Make bfd.h, not protos, in docdir. |
4002 | (libbfd.h, libcoff.h): Corresponding change. | |
4003 | ||
6c55897c ILT |
4004 | * elf32-i386.c (elf_i386_check_relocs): Don't record a symbol with |
4005 | a PLT32 reloc as dynamic. | |
4006 | (elf_i386_adjust_dynamic_symbol): If a symbol with a PLT32 reloc | |
4007 | is not referenced by a dynamic object, and we are not making a | |
4008 | shared object, then don't make a PLT entry. If we do make a PLT | |
4009 | entry, make sure the symbol has been recorded as dynamic. | |
4010 | ||
b06136f2 SC |
4011 | Wed Jan 31 17:23:32 1996 Steve Chamberlain <[email protected]> |
4012 | ||
4013 | * coff-i386.c (coff_i386_reloc_type_lookup): Add BFD_RELOC_32_PCREL. | |
4014 | * config.bfd (i[345]86-*-win32): Becomes i[345]86-*-cygwin32. | |
4015 | (powerpcle-*-cygwin32): New. | |
4016 | * peicode.h (add_data_entry): Get address from vma. | |
4017 | ||
5c867ecd MM |
4018 | Wed Jan 31 16:23:57 1996 Michael Meissner <[email protected]> |
4019 | ||
4020 | * elflink.c (_bfd_elf_create_linker_section): If the symbol | |
4021 | attached to the section has already been created as an undefined | |
4022 | symbol, treat it as if it hasn't been created yet. | |
4023 | ||
28c16b55 ILT |
4024 | Wed Jan 31 16:16:53 1996 Ian Lance Taylor <[email protected]> |
4025 | ||
4026 | * elflink.h (elf_bfd_final_link): Don't output initial dummy | |
4027 | symbol or section symbols if stripping all symbols and this is not | |
4028 | a relocateable link. Don't output the symbol string table if | |
4029 | there are no symbols. | |
4030 | (elf_link_flush_output_syms): Don't do anything if there are no | |
4031 | symbols to flush. | |
4032 | ||
d19df9b5 ILT |
4033 | Wed Jan 31 12:55:49 1996 Richard Henderson <[email protected]> |
4034 | ||
4035 | * coff-aux.c: New file. | |
4036 | * hosts/m68kaux.h: New file. | |
4037 | * config.bfd (m68*-apple-aux*): New target. | |
4038 | * configure.in (m68*-apple-aux*): New native host. | |
4039 | (m68kaux_coff_vec): New vector. | |
4040 | * configure: Rebuild. | |
4041 | * targets.c (m68kaux_coff_vec): Declare. | |
4042 | * coffcode.h (bfd_coff_backend_data): Add field | |
4043 | _bfd_coff_link_add_one_symbol. | |
4044 | (bfd_coff_link_add_one_symbol): Define. | |
4045 | (compare_arelent_ptr): New static function if TARG_AUX. | |
4046 | (coff_write_relocs): If TARG_AUX, sort the relocs. | |
4047 | (coff_write_object_contents): Set A/UX aouthdr magic number. | |
4048 | (coff_link_add_one_symbol): Define if not defined. | |
4049 | (bfd_coff_std_swap_table): Initialize new field. | |
4050 | * libcoff.h: Rebuild. | |
4051 | * cofflink.c (coff_link_add_symbols): Call | |
4052 | bfd_coff_link_add_one_symbol rather than | |
4053 | _bfd_generic_link_add_one_symbol. | |
4054 | * coff-m68k.c (COFF_PAGE_SIZE): Don't define if already defined. | |
4055 | * coff-alpha.c (alpha_ecoff_backend_data): Initialize new field. | |
4056 | * coff-mips.c (mips_ecoff_backend_data): Likewise. | |
4057 | * Makefile.in: Rebuild dependencies. | |
4058 | (BFD32_BACKENDS): Add coff-aux.o. | |
4059 | (BFD32_BACKENDS_CFILES): Add coff-aux.c. | |
4060 | ||
a796aafd ILT |
4061 | Wed Jan 31 11:37:46 1996 Andreas Schwab <[email protected]> |
4062 | ||
4063 | * elf32-m68k.c (elf_m68k_relocate_section): Fix R_68K_GOT* | |
4064 | relocation; ignore addend with R_68K_{GOT,PLT}*O relocation. | |
4065 | ||
a8763553 ILT |
4066 | Tue Jan 30 12:09:04 1996 Ian Lance Taylor <[email protected]> |
4067 | ||
66761e59 ILT |
4068 | * Makefile.in (do_maintainer_clean): Remove $(srcdir)/bfd-in2.h, |
4069 | $(srcdir)/libbfd.h and $(srcdir)/libcoff.h. | |
4070 | (maintainer-clean): Warn about deleting special files. | |
4071 | (bfd-in2.h, libbfd.h, libcoff.h): New targets. | |
4072 | ||
cf5138e3 ILT |
4073 | * elf32-hppa.c (elf32_hppa_relocate_section): Handle indirect and |
4074 | warning symbols correctly. | |
4075 | * elf32-i386.c (elf_i386_relocate_section): Likewise. | |
4076 | * elf32-m68k.c (elf_m68k_relocate_section): Likewise. | |
4077 | * elf32-mips.c (mips_elf_relocate_section): Likewise. | |
4078 | * elf32-ppc.c (ppc_elf_relocate_section): Likewise. | |
4079 | * elf32-sparc.c (elf32_sparc_relocate_section): Likewise. | |
4080 | * elf64-sparc.c (sparc64_elf_relocate_section): Likewise. | |
4081 | ||
a8763553 ILT |
4082 | * syms.c (_bfd_stab_section_find_nearest_line): Add casts to avoid |
4083 | warnings. | |
4084 | ||
bdd2e7f1 KK |
4085 | Mon Jan 29 14:27:24 1996 Kim Knuttila <[email protected]> |
4086 | ||
4087 | * libcoff-in.h: aligned newly exported names with bfd naming | |
4088 | conventions. Removed an erroneous define of POWERPC_LE_PE. | |
4089 | * libcoff.h: Rebuild. | |
4090 | * cofflink.c, coff-ppc.c: the above function name changes | |
4091 | ||
d2bb6c79 ILT |
4092 | Mon Jan 29 13:06:28 1996 Ian Lance Taylor <[email protected]> |
4093 | ||
eb5bc1f3 ILT |
4094 | From Basim Kadhim <[email protected]>: |
4095 | * ecoff.c (struct extsym_info): Define. | |
4096 | (_bfd_ecoff_bfd_final_link): Pass a pointer to struct extsym_info | |
4097 | to ecoff_link_write_external. | |
4098 | (ecoff_link_write_external): Accept a struct extsym_info pointer. | |
4099 | Strip symbols when appropriate. | |
4100 | ||
052b35d2 ILT |
4101 | Based on patches from Ronald F. Guilmette <[email protected]>: |
4102 | * syms.c (BSF_OBJECT): Define. | |
4103 | (bfd_print_symbol_vandf): Print 'O' for BSF_OBJECT. | |
4104 | * bfd-in2.h: Rebuild. | |
4105 | * elfcode.h (elf_slurp_symbol_table): Set BSF_OBJECT for an | |
4106 | STT_OBJECT symbol. | |
4107 | * elf.c (swap_out_syms): Only set type to STT_OBJECT if BSF_OBJECT | |
4108 | is set. | |
4109 | ||
53787b23 ILT |
4110 | * elf32-i386.c (elf_i386_relocate_section): If -Bsymbolic, when |
4111 | copying relocs into a shared object, treat a defined global symbol | |
4112 | as a local symbol. | |
4113 | * elf32-m68k.c (elf_m68k_relocate_section): Likewise. | |
4114 | * elf32-mips.c (mips_elf_relocate_section): Likewise. | |
4115 | * elf32-sparc.c (elf32_sparc_relocate_section): Likewise. | |
4116 | ||
d2bb6c79 ILT |
4117 | * elflink.h (elf_link_add_object_symbols): Only set weakdef to a |
4118 | real defined symbol, not to a weak defined symbol. | |
4119 | ||
13d1a4dd KK |
4120 | Mon Jan 29 11:34:36 1996 Kim Knuttila <[email protected]> |
4121 | ||
4122 | * cofflink.c: removed the POWERPC_LE_PE hack, promoted some types | |
4123 | and made a few static functions externs. | |
4124 | ||
4125 | * coff-ppc.c (ppc_bfd_coff_final_link): new function, replaces the | |
4126 | POWERPC_LE_PE hack in cofflink. | |
4127 | ||
4128 | * libcoff-in.h: promoted the following from cofflink.c to allow | |
4129 | _bfd_coff_final_link to be overridden - STRING_SIZE_SIZE, | |
4130 | coff_debug_merge_element, struct coff_debug_merge_type, | |
4131 | coff_debug_merge_hash_entry, coff_debug_merge_hash_table, | |
4132 | coff_debug_merge_hash_table_init, coff_debug_merge_hash_table_free, | |
4133 | coff_debug_merge_hash_lookup, coff_link_section_info, | |
4134 | coff_final_link_info, coff_debug_merge_hash_newfunc, | |
4135 | coff_write_global_sym, coff_link_input_bfd, coff_reloc_link_order. | |
4136 | ||
4137 | * libcoff.h: re-gen'd | |
4138 | ||
86aac8ea ILT |
4139 | Fri Jan 26 18:33:35 1996 Ian Lance Taylor <[email protected]> |
4140 | ||
4141 | * syms.c: Include "bfdlink.h". | |
4142 | (struct stab_find_info): Define. | |
4143 | (_bfd_stab_section_find_nearest_line): New function. | |
4144 | * libbfd-in.h (_bfd_stab_section_find_nearest_line): Declare. | |
4145 | * libbfd.h: Rebuild. | |
4146 | * elf-bfd.h (struct elf_obj_tdata): Add line_info field. | |
4147 | * elf.c (_bfd_elf_find_nearest_line): Try calling | |
4148 | _bfd_stab_section_find_nearest_line before searching the ELF | |
4149 | symbol table. Find the closest STT_FUNC symbol, not the last one. | |
4150 | * libcoff-in.h (coff_data_type): Add line_info field. | |
bdd2e7f1 | 4151 | * libcoff.h: Rebuild. |
86aac8ea ILT |
4152 | * coffgen.c (coff_find_nearest_line): Try calling |
4153 | _bfd_stab_section_find_nearest_line before searching the COFF | |
4154 | symbol table. | |
4155 | * Makefile.in: Rebuild dependencies. | |
4156 | ||
4157 | Fri Jan 26 16:11:19 1996 Michael Meissner <[email protected]> | |
4158 | ||
4159 | * elf32-ppc.c (R_PPC_EMB_SDA21 relocations): Make relocation size | |
4160 | 4 bytes, so we get the correct value when updating the register | |
4161 | field in little endian mode. | |
4162 | ||
43d36aad ILT |
4163 | Thu Jan 25 12:14:16 1996 Ian Lance Taylor <[email protected]> |
4164 | ||
f0a97077 ILT |
4165 | * libcoff-in.h (struct xcoff_tdata): Remove toc_section and |
4166 | entry_section fields. Add sntoc and snentry fields. | |
4167 | * libcoff.h: Rebuild. | |
4168 | * coffcode.h (coff_mkobject_hook): Initialize sntoc and snentry, | |
4169 | not toc_section and entry_section (the COFF file does not have any | |
4170 | sections at this point). | |
4171 | (coff_write_object_contents): Set o_snentry and o_sntoc from | |
4172 | snentry and sntoc rather than entry_section and toc_section. | |
4173 | * coff-rs6000.c (xcoff_copy_private_bfd_data): Copy sntoc and | |
4174 | snentry, not toc_section and entry_section. | |
4175 | * xcofflink.c (bfd_xcoff_size_dynamic_sections): Don't set | |
4176 | entry_section from hentry. | |
4177 | (xcoff_link_input_bfd): If a defined symbol has XCOFF_ENTRY set, | |
ea2504d5 | 4178 | set snenty. |
f0a97077 ILT |
4179 | (xcoff_link_input_bfd): Set sntoc, not toc_section. |
4180 | (xcoff_write_global_symbol): Get toc_section from sntoc, rather | |
4181 | than using toc_section directly. | |
4182 | ||
9b4598d0 ILT |
4183 | * archures.c: Add missing `.' in enum bfd_architecture. |
4184 | * bfd-in2.h: Rebuild. | |
4185 | ||
43d36aad ILT |
4186 | * config.bfd (i[345]86-*-sco*elf*): Use bfd_elf32_i386_vec. From |
4187 | Robert Lipe <[email protected]>. | |
4188 | ||
eb82bc60 MM |
4189 | Thu Jan 25 12:08:51 1996 Michael Meissner <[email protected]> |
4190 | ||
4191 | * elf32-ppc.c (ppc_elf_size_dynamic_sections): Add .rela.sdata{,2} | |
4192 | to sections we allocate. Use bfd_zalloc to allocate initialial | |
4193 | sections, not bfd_alloc. | |
4194 | (ppc_elf_check_relocs): Remove BFD_ASSERTs for !shared from | |
4195 | SDA{,2}I16 relocations. | |
4196 | (ppc_elf_add_symbol_hook): Use the value of -G nn to determine | |
4197 | whether to put something in .sbss or not. | |
4198 | (ppc_elf_relocate_section): Add support for more relocations. Add | |
c1e65e24 MM |
4199 | in sec->output_offset where appropriate. Make error messages |
4200 | include the symbol name. | |
eb82bc60 MM |
4201 | |
4202 | * elflink.c (_bfd_elf_create_linker_section): Lookup symbol before | |
4203 | trying to add it to the symbol table, so _GLOBAL_OFFSET_TABLE_ | |
4204 | doesn't get redefined messages if -shared. | |
4205 | ||
4206 | * elflink.h (elf_create_pointer_linker_section) Only bump RELA | |
4207 | section if the rel_section field has been set up. | |
4208 | ||
9d621c7d MM |
4209 | Wed Jan 24 20:40:26 1996 Michael Meissner <[email protected]> |
4210 | ||
4211 | * elf32-ppc.c (ppc_elf_relocate_section): Fix typo in eabi | |
4212 | relocations. | |
4213 | ||
75c9ddc9 DE |
4214 | Wed Jan 24 10:38:34 1996 Doug Evans <[email protected]> |
4215 | ||
4216 | * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Delete checking | |
4217 | of flags, only flags used are controlled by mach number. Bump up | |
4218 | output file mach number to highest of input file mach numbers. | |
4219 | (elf32_sparc_object_p): Watch for EF_SPARC_SUN_US1. | |
4220 | (elf32_sparc_final_write_processing): Set EF_SPARC_SUN_US1 if v8plusa. | |
4221 | ||
72c513bc DE |
4222 | * config.bfd (sparc64-*-{sysv4*,solaris2*}): Comment out |
4223 | bfd_elf64_sparc_vec support. | |
4224 | ||
3cbe19d2 MM |
4225 | Tue Jan 23 14:33:05 1996 Michael Meissner <[email protected]> |
4226 | ||
4227 | * elf32-ppc.c (ppc_elf_copy_private_bfd_data): Don't complain if | |
4228 | the embedded bit is set on some objects and not on others. Just | |
4229 | or it together. | |
d8fd85ad MM |
4230 | (ppc_elf_relocate_section): Implement R_PPC_EMB_{SDA21,RELSDA} |
4231 | relocations. | |
3cbe19d2 | 4232 | |
5eb83ede ILT |
4233 | Tue Jan 23 14:22:45 1996 Ian Lance Taylor <[email protected]> |
4234 | ||
4a3d3b42 ILT |
4235 | * coffcode.h (coff_new_section_hook): Don't try to align the |
4236 | .stabstr section. | |
4237 | ||
5eb83ede ILT |
4238 | * coffcode.h (coff_set_section_contents): Fix the handling of the |
4239 | .lib section to work even if the entire section contents are | |
4240 | written at once. From Gvran Uddeborg <[email protected]> and | |
4241 | Robert Lipe <[email protected]>. | |
4242 | ||
05f927dd MM |
4243 | Mon Jan 22 18:45:51 1996 Michael Meissner <[email protected]> |
4244 | ||
4245 | * elflink.h (elf_finish_pointer_linker_section): Don't allocate | |
4246 | memory here for contents. | |
4247 | ||
4248 | * elf32-ppc.c (ppc_elf_relocate_section): Bump up _SDA_BASE_ and | |
4249 | _SDA2_BASE_ by 32768. | |
4250 | (ppc_elf_size_dynamic_sections): #if out PLT code which we haven't | |
4251 | started using. Allocate contents for .sdata and .sdata2 sections | |
4252 | also. | |
4253 | (ppc_elf_check_relocs): Use bfd_get_section_name in debug message, | |
4254 | rather than _name. | |
4255 | (ppc_elf_finish_dynamic_symbol): Remove code that attempted to | |
4256 | size _SDA{,2}_BASE_. | |
4257 | (ppc_elf_relocate_section): Change how sdata{,2} relocations are | |
4258 | done. | |
4259 | ||
5bc513b4 DE |
4260 | Mon Jan 22 08:52:04 1996 Doug Evans <[email protected]> |
4261 | ||
5a5bac64 DE |
4262 | * elflink.h (elf_finish_pointer_linker_section): Fix typo. |
4263 | ||
5bc513b4 | 4264 | * archures.c (bfd_mach_sparc_v9): Renamed from bfd_mach_sparc64. |
5bc513b4 | 4265 | (bfd_mach_sparc_{v8plus,v8plusa}): Define. |
5bc513b4 | 4266 | (bfd_mach_sparc_v9a): Define. |
049f3d4c | 4267 | (bfd_mach_sparc_v9_p): Define. |
5bc513b4 DE |
4268 | * bfd-in2.h: Regenerated. |
4269 | * aoutx.h (aout,machine_type): bfd_mach_sparc64 renamed to | |
4270 | bfd_mach_sparc_v9. | |
d3366d23 | 4271 | * elf64-sparc.c (sparc64_elf_object_p): Likewise. |
5bc513b4 DE |
4272 | * config.bfd (sparc64-*-sysv4*,sparc64-*-solaris2*): Set targ_defvec |
4273 | to bfd_elf32_sparc_vec. | |
4274 | * cpu-sparc.c (arch_info_struct): Renamed from sparc_arch_info. | |
5bc513b4 | 4275 | Add v8plus{,a} support. |
5bc513b4 | 4276 | Add v9a support. |
768b8ade | 4277 | (sparc_compatible): New function. |
5bc513b4 | 4278 | * elf32-sparc.h: #include "elf/sparc.h". |
75c9ddc9 | 4279 | (elf32_sparc_merge_private_bfd_data, elf32_sparc_object_p, |
5bc513b4 | 4280 | elf32_sparc_final_write_processing): New functions. |
75c9ddc9 | 4281 | (bfd_elf32_bfd_merge_private_bfd_data, elf_backend_object_p, |
5bc513b4 | 4282 | elf_backend_final_write_processing): Define. |
5bc513b4 | 4283 | |
3b3753b8 MM |
4284 | Mon Jan 22 11:21:51 1996 Michael Meissner <[email protected]> |
4285 | ||
4286 | * elf-bfd.h (struct elf_link_hash_entry): Add | |
4287 | linker_section_pointer field. | |
4288 | (enum elf_linker_section_enum): Enumeration for new way of | |
4289 | creating linker dynamic sections and symbols. | |
4290 | (elf_linker_section{,_pointers}): New structures for creating | |
4291 | dynamic sections and symbols. | |
4292 | (elf_obj_tdata): Add linker_section_pointers and linker_section | |
4293 | fields. | |
4294 | (elf_local_ptr_offsets,elf_linker_section): New accessor macros. | |
4295 | (_bfd_elf_create_linker_section): New declarations. | |
4296 | (_bfd_elf_find_pointer_linker_section): Ditto. | |
4297 | (bfd_elf{32,64}_{create,finish}_pointer_linker_section): Ditto. | |
4298 | (_bfd_elf_make_linker_section_rela): Ditto. | |
4299 | ||
4300 | * elf.c (_bfd_elf_link_hash_newfunc): Initialize new fields. | |
4301 | ||
4302 | * elf32-ppc.c (ppc_elf_create_dynamic_sections): Delete. | |
4303 | (ppc_elf_create_linker_section): New function to create the | |
4304 | sections .got, .sdata, and .sdata2. | |
4305 | (ppc_elf_size_dynamic_sections): Zap .rela.{sdata,sdata2} if | |
4306 | needed. | |
4307 | (ppc_elf_check_relocs): Support more of the eabi relocations. | |
4308 | (ppc_elf_relocate_section): Ditto. | |
4309 | (ppc_elf_finish_dynamic_symbols): Adjust _SDA{,2}_BASE_ by 32768 | |
4310 | if the .sdata{,2} + .sbss{,2} section size is > 32k. | |
4311 | ||
4312 | * elflink.h (elf_create_pointer_linker_section): New function to | |
4313 | create initialized pointers in dynamic linker sections. | |
4314 | (elf_finish_pointer_linker_section): Actually intialize the | |
4315 | pointers created above. | |
4316 | ||
4317 | * elfcode.h (bfd_elf{32,64}_create_pointer_linker_section): New | |
4318 | macros to provide both 32 and 64 bit versions of | |
4319 | elf_create_pointer_linker_section. | |
4320 | (bfd_elf{32,64}_finish_pointer_linker_section): New macros to | |
4321 | provide both 32 and 64 bit versions of | |
4322 | elf_finish_pointer_linker_section. | |
4323 | ||
4324 | * elflink.c (_bfd_elf_create_linker_section): New function to | |
4325 | create a linker section. | |
4326 | (_bfd_elf_find_pointer_linker_section): Find a unique pointer to a | |
4327 | given address in the linker pointer offsets created for a given | |
4328 | symbol. | |
4329 | (_bfd_elf_make_linker_section_rela): Make a RELA section | |
4330 | corresponding to the generated linker section. | |
4331 | ||
6b3eb07e DE |
4332 | Sat Jan 20 08:36:10 1996 Doug Evans <[email protected]> |
4333 | ||
4334 | * elf32-sparc.c (ELF_MACHINE_ALT1): Define. | |
4335 | ||
e7894f6b KK |
4336 | Thu Jan 18 18:25:34 1996 Kim Knuttila <[email protected]> |
4337 | ||
4338 | * coff-ppc.c (coff_ppc_relocate_section): changed TOCDEFN relocs. | |
4339 | (coff_ppc_relocate_section): Handle special values for gcc built dlls. | |
4340 | (dump_toc): fix diagnosing code to identify out-of-toc-bounds entries. | |
4341 | Also begin the toc at 4 as an eye catcher ('31313131' marks the first | |
4342 | toc entry in an objdump) for now. | |
4343 | (ppc_do_last, ppc_get_last): New function - needed to save processing | |
4344 | the toc owner to the end. | |
4345 | (ppc_coff_swap_sym_in_hook): Removed an incorrect hack for doing the | |
4346 | toc owner last. | |
4347 | ||
4348 | * cofflink.c (_bfd_coff_final_link): Added a new hack to keep the | |
4349 | toc owner from being done till last. Must define POWERPC_LE_PC | |
4350 | to enable it. | |
4351 | ||
4352 | * coffcode.h (coff_set_alignment_hook): alignment setting for .stab | |
4353 | ||
4354 | * peicode.h (coff_swap_scnhdr_out): set section flags for stab/str | |
4355 | to INFO. | |
4356 | (coff_swap_aouthdr_out): Removed a non-working hack for computing the | |
4357 | SizeOfImage for PowerPC. Ignore the size of the .junk section. | |
4358 | ||
80b99ca0 ILT |
4359 | Thu Jan 18 17:42:12 1996 Ian Lance Taylor <[email protected]> |
4360 | ||
4361 | * elfcore.h: Include <signal.h> before <sys/procfs.h>. | |
4362 | ||
df96df4c ILT |
4363 | Wed Jan 17 12:40:14 1996 Ian Lance Taylor <[email protected]> |
4364 | ||
4365 | * cpu-powerpc.c (arch_info_struct): Change last entry to not point | |
4366 | back to first. | |
4367 | (bfd_powerpc_arch): Point at first entry in arch_info_struct. | |
4368 | ||
d49ddb85 ILT |
4369 | Tue Jan 16 15:10:49 1996 Ian Lance Taylor <[email protected]> |
4370 | ||
4371 | * elf.c (assign_file_positions_for_segments): Don't increment file | |
4372 | offset for a segment which contains no loadable sections. | |
4373 | ||
4500a112 MM |
4374 | Mon Jan 15 17:46:27 1996 Michael Meissner <[email protected]> |
4375 | ||
4376 | * reloc.c: Add new PowerPC relocations. | |
4377 | * {bfd-in2,libbfd}.h: Regenerate. | |
4378 | ||
4379 | * elf32-ppc.c (ppc_elf_howto_raw): Add more PPC relocations. | |
4380 | (ppc_elf_reloc_type_lookup): Lookup new relocations. | |
4381 | ||
252239f8 ILT |
4382 | Mon Jan 15 14:29:44 1996 Ian Lance Taylor <[email protected]> |
4383 | ||
20ab764e ILT |
4384 | * aoutx.h (howto_table_ext): Fix RELOC_BASE10 and RELOC_BASE22 |
4385 | entries. | |
4386 | ||
0a4ffa2d ILT |
4387 | * sunos.c (sunos_scan_ext_relocs): Don't fail assert if |
4388 | info->shared. | |
4389 | ||
45ca3195 ILT |
4390 | * coffgen.c (coff_find_nearest_line): Don't try to cache |
4391 | information in sections that are not owned by a BFD. From Richard | |
4392 | Henderson <[email protected]>. | |
4393 | ||
252239f8 ILT |
4394 | * elf32-mips.c: Numerous changes to dynamic linking code, mostly |
4395 | from Kazumoto Kojima <[email protected]>. | |
4396 | * elflink.h (elf_link_output_extsym): Remove special check for | |
4397 | _rld_new_interface. | |
4398 | ||
4399 | * ecoffswap.h: Add prototypes for static functions. | |
4400 | ||
bd2d10c0 MM |
4401 | Sun Jan 14 21:36:08 1996 Michael Meissner <[email protected]> |
4402 | ||
4403 | * elf32-ppc.c (ppc_elf_{unsupported,std}_reloc): Remove functions. | |
4404 | (ppc_elf_howto_raw): Remove ppc_elf_{unsupported,std}_reloc | |
4405 | references. | |
4406 | (ppc_elf_relocate_section): No longer allow .sdata/.sbss sections | |
4407 | to satisfy a TOC16 relocation. Rewrite unsupported relocation | |
4408 | support. Begin support for R_PPC_SDA{2,}REL. | |
4409 | ||
1c3a295b MM |
4410 | Sat Jan 13 09:36:52 1996 Michael Meissner <[email protected]> |
4411 | ||
4412 | * elf32-ppc.c (ppc_elf_create_dynamic_sections): New function to | |
4413 | create the .got and .got.neg sections. | |
4414 | (ppc_elf_size_dynamic_sections): Call it. | |
4415 | (ppc_elf_check_relocs): Call it. | |
4416 | (ppc_elf_size_dynamic_sections): Support .got.neg, just like .got. | |
4417 | (ppc_elf_check_relocs): Add error messages for relocations we | |
4418 | don't yet support. Do not include R_PPC_SDAREL16 like a GOT | |
4419 | relocation. | |
4420 | ||
57081126 MM |
4421 | Fri Jan 12 15:27:59 1996 Michael Meissner <[email protected]> |
4422 | ||
4423 | * elf32-ppc.c (ppc_elf_fake_sections): Define, and handle the new | |
4424 | section flags for V.4 and eabi. | |
4425 | ||
3c38b3df ILT |
4426 | Fri Jan 12 13:59:16 1996 Ian Lance Taylor <[email protected]> |
4427 | ||
14899eb7 ILT |
4428 | * elf.c (assign_file_positions_for_segments): If a segment |
4429 | contains no sections, don't mark it as readable. | |
4430 | ||
98bb57ad ILT |
4431 | * elf-bfd.h (_bfd_elf_section_from_bfd_section): Declare. |
4432 | * elfcode.h (_bfd_elf_section_from_bfd_section): Don't declare. | |
4433 | ||
02fcd126 ILT |
4434 | * elf.c (_bfd_elf_print_private_bfd_data): Dump contents of |
4435 | dynamic section, if there is one. | |
4436 | * elf-bfd.h (struct elf_size_info): Add swap_dyn_in field. | |
4437 | (bfd_elf32_swap_dyn_in): Change type of second parameter to PTR. | |
4438 | (bfd_elf64_swap_dyn_in): Likewise. | |
4439 | * elfcode.h (elf_swap_dyn_in): Change type of second parameter to | |
4440 | PTR. | |
4441 | (NAME(_bfd_elf,size_info)): Initialize swap_dyn_in field. | |
4442 | ||
3c38b3df ILT |
4443 | * elf32-i386.c (elf_i386_size_dynamic_sections): Don't create a |
4444 | DT_TEXTREL entry because of .rel.plt. From Martin Pirker | |
4445 | <[email protected]>. | |
4446 | ||
83f4323e MM |
4447 | Thu Jan 11 17:06:14 1996 Michael Meissner <[email protected]> |
4448 | ||
4449 | * section.c (SEC_{EXCLUDE,SORT_ENTRIES}): New section flags for | |
4450 | PowerPC V.4 and eabi. | |
4451 | * bfd-in2.h: Regenerate. | |
4452 | * libfd.h: Regenerate. | |
4453 | ||
4454 | * elfxx-target.h (TARGET_{BIG,LITTLE}_SYM): Add new flags. | |
4455 | ||
4456 | * elf32-ppc.c (ppc_elf_section_from_shdr): Support SHT_ORDERED | |
4457 | section type and SHF_EXCLUDE section flag, turning them into the | |
4458 | appropriate bfd section flag. | |
4459 | ||
a0271667 ILT |
4460 | Thu Jan 11 11:23:30 1996 Ian Lance Taylor <[email protected]> |
4461 | ||
c9746fb6 ILT |
4462 | * xcofflink.c (xcoff_link_add_symbols): Create the special |
4463 | sections if we see a DYNAMIC object, in case that is the only | |
4464 | XCOFF input object we see. | |
4465 | ||
5b3b9ff6 ILT |
4466 | * elf32-mips.c: Extensive changes for a start at dynamic linking |
4467 | support, from Kazumoto Kojima <[email protected]>. | |
4468 | ||
4469 | * elf-bfd.h (struct elf_backend_data): Add type_change_ok field. | |
4470 | (struct elf_backend_data): Remove | |
4471 | elf_backend_create_program_headers field. Add | |
4472 | elf_backend_additional_program_headers and | |
4473 | elf_backend_modify_segment_map fields. | |
4474 | * elfxx-target.h (elf_backend_type_change_ok): Define if not | |
4475 | defined. | |
4476 | (elf_backend_additional_program_headers): Likewise. | |
4477 | (elf_backend_modify_segment_map): Likewise. | |
4478 | (elf_backend_create_program_headers): Don't define. | |
4479 | (elfNN_bed): Change to account for field changes. | |
4480 | * elf.c (assign_file_positions_for_segments): Call new | |
4481 | modify_segment_map backend function. Don't call old | |
4482 | create_program_headers backend function. | |
4483 | (get_program_header_size): Call additional_program_headers rather | |
4484 | than create_program_headers. | |
4485 | * elflink.h (elf_link_add_object_symbols): Initialize | |
4486 | type_change_ok from new backend field. | |
4487 | (elf_link_output_extsym): Don't warn if _rld_new_interface is | |
4488 | defined. | |
4489 | (elf_reloc_link_order): Treat a reloc against a defined symbol as | |
4490 | a reloc against the appropriate section. | |
4491 | ||
761f377f ILT |
4492 | * elf-bfd.h (struct bfd_elf_section_data): Add tdata field. |
4493 | (struct elf_obj_tdata): Rename ppc_flags_init field to flags_init. | |
4494 | (elf_flags_init): Rename from elf_ppc_flags_init. | |
4495 | * elf32-ppc.c (ppc_elf_set_private_flags): Use elf_flags_init, not | |
4496 | elf_ppc_flags_init. | |
4497 | (ppc_elf_copy_private_bfd_data): Likewise. | |
4498 | (ppc_elf_merge_private_bfd_data): Likewise. | |
4499 | ||
a0271667 ILT |
4500 | * elf32-m68k.c (howto_table): Change src_mask to 0 for all |
4501 | relocation entries. | |
4502 | ||
64d5f5d0 ILT |
4503 | Tue Jan 9 15:22:53 1996 David Mosberger-Tang <[email protected]> |
4504 | ||
4505 | * coff-alpha.c (alpha_relocate_section): During final link, allow | |
4506 | output .lita section to be bigger than 64k by adjusting gp value | |
4507 | on a per-input section basis. | |
4508 | * libecoff.h (struct ecoff_tdata): Add issued_multiple_gp_warning | |
4509 | field. | |
4510 | (struct ecoff_section_tdata): Add gp field. | |
4511 | ||
c40d9c77 ILT |
4512 | Tue Jan 9 12:00:36 1996 Ian Lance Taylor <[email protected]> |
4513 | ||
64d5f5d0 ILT |
4514 | Handle Alpha ECOFF changes in OSF/1 3.2. |
4515 | * libecoff.h (struct ecoff_backend_data): Add get_elt_at_filepos | |
4516 | field. | |
4517 | * coff-alpha.c: Include "aout/ar.h". | |
4518 | (alpha_ecoff_get_relocated_section_contents): Don't require an | |
4519 | ALPHA_R_IGNORE reloc after an ALPHA_R_GPDISP reloc, since OSF/1 | |
4520 | 3.2 doesn't generate one. | |
4521 | (alpha_relocate_section): Likewise. | |
4522 | (alpha_ecoff_slurp_armap): Define. | |
4523 | (alpha_ecoff_slurp_extended_name_table): Define. | |
4524 | (alpha_ecoff_construct_extended_name_table): Define. | |
4525 | (alpha_ecoff_truncate_arname): Define. | |
4526 | (alpha_ecoff_write_armap): Define. | |
4527 | (alpha_ecoff_generic_stat_arch_elt): Define. | |
4528 | (alpha_ecoff_update_armap_timestamp): Define. | |
4529 | (ARFZMAG): Define. | |
4530 | (alpha_ecoff_read_ar_hdr): New static function. | |
4531 | (alpha_ecoff_get_elt_at_filepos): New static function. | |
4532 | (alpha_ecoff_openr_next_archived_file): New static function. | |
4533 | (alpha_ecoff_get_elt_at_index): New static function. | |
4534 | (alpha_ecoff_backend_data): Initialize get_elt_at_filepos field. | |
4535 | (ecoffalpha_little_vec): Change BFD_JUMP_TABLE_ARCHIVE from | |
4536 | _bfd_ecoff to alpha_ecoff. | |
4537 | * ecoff.c (ecoff_link_add_archive_symbols): Use get_elt_at_filepos | |
4538 | field from backend structure, rather than always calling | |
4539 | _bfd_get_elt_at_filepos. | |
4540 | * coff-mips.c (mips_ecoff_backend_data): Initialize | |
4541 | get_elt_at_filepos field. | |
4542 | * archive.c (_bfd_generic_read_ar_hdr_mag): New function, copied | |
4543 | from _bfd_generic_read_ar_hdr with minor changes. | |
4544 | (_bfd_generic_read_ar_hdr): Use _bfd_generic_read_ar_hdr_mag. | |
4545 | * libbfd-in.h (_bfd_generic_read_ar_hdr_mag): Declare. | |
4546 | * libbfd.h: Rebuild. | |
4547 | ||
4548 | * bfd-in.h (BFD_IN_MEMORY): Define. | |
4549 | * libbfd-in.h (struct bfd_in_memory): Define. | |
4550 | * libbfd.c (bfd_read): Handle BFD_IN_MEMORY flag. | |
4551 | (bfd_get_file_window): Don't try to map a BFD_IN_MEMORY file. | |
4552 | (bfd_write, bfd_stat): Abort if BFD_IN_MEMORY is set. | |
4553 | (bfd_tell, bfd_flush, bfd_seek): Handle BFD_IN_MEMORY flag. | |
4554 | * bfd.c (struct _bfd): Change iostream field from char * to PTR. | |
4555 | (bfd_get_size): Handle BFD_IN_MEMORY flag. | |
4556 | * cache.c (bfd_cache_close): Ignore BFD_IN_MEMORY files. | |
4557 | (bfd_open_file): Cast to PTR, not char *, when setting iostream. | |
4558 | (bfd_cache_lookup_worker): Abort if BFD_IN_MEMORY is set. | |
4559 | * opncls.c (bfd_fdopenr): Cast to PTR, not char *, when setting | |
4560 | iostream. | |
4561 | (bfd_openstreamr): Likewise. | |
4562 | * aoutx.h (NAME(aout,some_aout_object_p)): Only fstat iostream if | |
4563 | BFD_IN_MEMORY is not set. | |
4564 | * riscix.c (riscix_some_aout_object_p): Likewise. | |
4565 | * bfd-in2.h, libbfd.h: Rebuild. | |
4566 | ||
4567 | * targets.c (bfd_target): Add _bfd_get_elt_at_index field. | |
4568 | (BFD_JUMP_TABLE_ARCHIVE): Add _get_elt_at_index. | |
4569 | (bfd_get_elt_at_index): Define. | |
4570 | * archive.c (_bfd_generic_get_elt_at_index): Rename from | |
4571 | bfd_get_elt_at_index. Change index parameter from int to | |
4572 | symindex. | |
4573 | * libbfd-in.h (_bfd_generic_get_elt_at_index): Declare. | |
4574 | (_bfd_noarchive_get_elt_at_index): Define. | |
4575 | (_bfd_archive_bsd_get_elt_at_index): Define. | |
4576 | (_bfd_archive_coff_get_elt_at_index): Define. | |
4577 | * bfd-in2.h, libbfd.h: Rebuild. | |
4578 | * aout-target.h (MY_get_elt_at_index): Define if not defined. | |
4579 | * coff-rs6000.c (xcoff_get_elt_at_index): Define. | |
4580 | * ieee.c (ieee_get_elt_at_index): Define. | |
4581 | * libecoff.h (_bfd_ecoff_get_elt_at_index): Define. | |
4582 | * oasys.c (oasys_get_elt_at_index): Define. | |
4583 | * som.c (som_get_elt_at_index): Define. | |
4584 | ||
c40d9c77 ILT |
4585 | * ecoff.c (_bfd_ecoff_find_nearest_line): Don't restrict line |
4586 | numbers to the .text section. | |
4587 | ||
efa77952 ILT |
4588 | Mon Jan 8 17:00:57 1996 Ian Lance Taylor <[email protected]> |
4589 | ||
4590 | * ieee.c (ieee_write_debug_part): Change return type to boolean. | |
4591 | If there is a SEC_DEBUGGING section, get the contents of the debug | |
4592 | information part from it. | |
4593 | (ieee_set_section_contents): Store the contents of a SEC_DEBUGGING | |
4594 | section in memory. | |
4595 | (ieee_write_object_contents): Check ieee_write_debug_part return. | |
4596 | ||
767f22d5 FF |
4597 | Thu Jan 4 17:12:37 1996 Fred Fish <[email protected]> |
4598 | ||
4599 | * config.bfd (i[345]86-*-freebsd*): Add target. | |
4600 | * configure.in (i386freebsd_vec): Add vec. | |
4601 | * configure: Regenerate. | |
4602 | * Makefile.in (BFD32_BACKENDS): Add i386freebsd.o. | |
4603 | (BFD32_BACKENDS_CFILES): Add i386freebsd.c. | |
4604 | Rebuild dependencies.. | |
4605 | * freebsd.h: New file. | |
4606 | * i386freebsd.c: New file. | |
4607 | * targets.c (i386freebsd_vec): Declare. | |
4608 | (bfd_target_vector): Add i386freebsd_vec. | |
4609 | * i386linux.c (SEGMENT_SIZE): Define as TARGET_PAGE_SIZE | |
4610 | * i386netbsd.c (SEGMENT_SIZE): Define as TARGET_PAGE_SIZE | |
4611 | ||
f8254a3c ILT |
4612 | Thu Jan 4 16:27:46 1996 Ian Lance Taylor <[email protected]> |
4613 | ||
4614 | * ieee.c (ieee_slurp_debug): New static function. | |
4615 | (ieee_object_p): Call it. | |
4616 | (ieee_slurp_section_data): Skip debugging sections. | |
4617 | (ieee_get_reloc_upper_bound): Likewise. | |
4618 | (ieee_get_section_contents): Likewise. | |
4619 | (ieee_canonicalize_reloc): Likewise. | |
4620 | (ieee_write_section_part): Likewise. | |
4621 | (ieee_write_debug_part): Likewise. | |
4622 | (ieee_write_data_part): Likewise. | |
4623 | (init_for_output): Likewise. | |
4624 | ||
07a159db MM |
4625 | Wed Jan 3 19:42:47 1996 Michael Meissner <[email protected]> |
4626 | ||
4627 | * elf32-ppc.c (ppc_elf_relocate_section): Make @GOT relocations | |
4628 | work. | |
4629 | (ppc_elf_howto_raw): Just use bfd_elf_generic_reloc for all howto | |
4630 | relocs, since ppc_elf_relocate_section handles the linker case. | |
4631 | (ppc_elf_{addr16_ha,got16,toc16,brtaken}_reloc): Delete, no longer | |
4632 | used. | |
4633 | (ppc_elf_{addr16_ha,got16,toc16,brtaken}_inner): Merge these into | |
4634 | ppc_elf_relocate_section since that is now the only caller. | |
4635 | (ppc_elf_relocate_section): Ditto. | |
4636 | ||
d812945a ILT |
4637 | Wed Jan 3 15:11:30 1996 Ian Lance Taylor <[email protected]> |
4638 | ||
4639 | * coffcode.h (coff_write_object_contents): If we don't know the | |
4640 | section of the entry point for an XCOFF executable, always set the | |
4641 | entry address to -1. | |
4642 | ||
3a56d0b4 MM |
4643 | Tue Jan 2 14:17:15 1996 Michael Meissner <[email protected]> |
4644 | ||
4645 | * elf.c (bfd_section_from_shdr): Add support for note sections. | |
4646 | ||
c4406e50 ILT |
4647 | Tue Jan 2 13:10:25 1996 Ian Lance Taylor <[email protected]> |
4648 | ||
d812945a ILT |
4649 | * bfd-in.h (struct _symbol_info): Add stab_type field. |
4650 | * bfd-in2.h: Rebuild. | |
4651 | * aoutx.h (NAME(aout,get_symbol_info)): Set stab_type. | |
4652 | ||
c4406e50 ILT |
4653 | * elf32-ppc.c: Remove trailing newline from calls to |
4654 | _bfd_error_handler. | |
4655 | (ppc_elf_merge_private_bfd_data): Only warn about endianness | |
4656 | difference if target endianness is known. | |
4657 | ||
08556813 MM |
4658 | Thu Dec 21 12:43:49 1995 Michael Meissner <[email protected]> |
4659 | ||
4660 | * elf32-ppc.c (ppc_elf_howto_raw): Add a phony reloc to handle the | |
4661 | old style TOC16 references without using R_PPC_GOT. | |
4662 | (ppc_reloc_type): Ditto. | |
4663 | (ppc_elf_reloc_type_lookup): Add support for TOC16. | |
4664 | (ppc_elf_toc16_inner): Renamed from ppc_elf_got16_inner. | |
4665 | (ppc_elf_toc16_reloc): Renamed from ppc_elf_toc16_reloc. | |
4666 | (ppc_elf_got16_{inner,reloc}): Stubs for real GOT support. | |
4667 | (ppc_elf_check_relocs): New function for GOT/PLT support that is | |
4668 | work in progress. | |
4669 | (ppc_elf_adjust_dynamic_symbol): Ditto. | |
4670 | (ppc_elf_adjust_dynindx): Ditto. | |
4671 | (ppc_elf_size_dynamic_sections): Ditto. | |
4672 | (ppc_elf_finish_dynamic_symbol): Ditto. | |
4673 | (ppc_elf_finish_dynamic_sections): Ditto. | |
4674 | (ELF_DYNAMIC_INTERPRETER): Define. | |
4675 | ||
86587dd4 KR |
4676 | Wed Dec 20 19:14:18 1995 Ken Raeburn <[email protected]> |
4677 | ||
4678 | * elf.c (copy_private_bfd_data): When attaching sections to | |
4679 | segments ignore sections that won't be allocated. Patch from | |
4680 | Andreas Schwab. | |
4681 | ||
bf7f243f KR |
4682 | Tue Dec 19 20:01:43 1995 Ken Raeburn <[email protected]> |
4683 | ||
4684 | * config.bfd: Match on m68k-cbm-* only if OS doesn't match | |
4685 | anything else. | |
4686 | ||
d9518e2e ILT |
4687 | Tue Dec 19 16:38:59 1995 Ian Lance Taylor <[email protected]> |
4688 | ||
4689 | * coff-i960.c (CALC_ADDEND): Define. | |
4690 | (coff_i960_relocate_section): Add the input section VMA to the | |
4691 | addend for PC relative relocs. | |
4692 | ||
4693 | Sun Dec 17 20:11:55 1995 Kim Knuttila <[email protected]> | |
4694 | ||
4695 | * peicode.h (pe_print_pdata): Must test the entire entry for zero | |
4696 | to correctly terminate. | |
4697 | ||
010a405a ILT |
4698 | Fri Dec 15 12:05:57 1995 Ian Lance Taylor <[email protected]> |
4699 | ||
dc092b6b ILT |
4700 | * targets.c (enum bfd_endian): Define. |
4701 | (bfd_target): Rename byteorder_big_p to byteorder, and change it | |
4702 | from boolean to enum bfd_endian. Change header_byteorder_big_p | |
4703 | correspondingly. | |
4704 | * bfd-in.h (bfd_big_endian, bfd_little_endian): New macros. | |
4705 | (bfd_header_big_endian, bfd_header_little_endian): New macros. | |
4706 | * bfd-in2.h: Rebuild. | |
4707 | * All targets: Change initialization of byteorder and | |
4708 | header_byteorder to use enum bfd_endian values rather than | |
4709 | booleans. | |
4710 | * All files: Change all references to byteorder_big_p and | |
4711 | header_byteorder_big_p to use new bfd_*_endian macros. | |
4712 | ||
010a405a ILT |
4713 | * coffgen.c (make_a_section_from_file): Set lma to s_paddr, not |
4714 | s_vaddr. | |
4715 | * coffcode.h (coff_write_object_contents): Set s_paddr to lma, not | |
4716 | vma. | |
4717 | * ecoff.c (_bfd_ecoff_write_object_contents): Likewise. | |
4718 | ||
fcb43906 SC |
4719 | Fri Dec 15 07:32:09 1995 steve chamberlain <[email protected]> |
4720 | ||
4721 | * pe[i]-i386.c (TARGET_UNDERSCORE): Define to '_'. | |
4722 | ||
0d709d31 ILT |
4723 | Thu Dec 14 13:45:37 1995 Ian Lance Taylor <[email protected]> |
4724 | ||
14578105 ILT |
4725 | * ieee.c: Lots of minor cleanups. Make many functions return |
4726 | errors rather than calling abort. Also: | |
4727 | (ieee_write_twobyte): Remove; change callers to call existing | |
4728 | ieee_write_2bytes function. | |
4729 | (ieee_write_expression): Don't output the section twice when | |
4730 | outputting a local symbol. Don't emit an extraneous zero if there | |
4731 | is only one term. | |
4732 | (ieee_slurp_sections): Set the lma as well as the vma. | |
4733 | (ieee_archive_p): Use bfd_alloc_grow rather than an obstack. | |
4734 | ||
0d709d31 ILT |
4735 | * ihex.c (ihex_set_arch_mach): Don't accept any architecture, just |
4736 | a recognized one or bfd_arch_unknown. | |
4737 | (ihex_get_symtab_upper_bound): Define as bfd_0l, to permit objcopy | |
4738 | to succeed. | |
4739 | (ihex_get_symtab): Likewise. | |
4740 | ||
14dc2f77 ILT |
4741 | Wed Dec 13 15:44:06 1995 Ian Lance Taylor <[email protected]> |
4742 | ||
4743 | * aoutx.h: Include <ctype.h>. | |
4744 | (struct aout_link_includes_table): Define. | |
4745 | (struct aout_link_includes_totals): Define. | |
4746 | (struct aout_link_includes_entry): Define. | |
4747 | (aout_link_includes_lookup): Define macro. | |
4748 | (struct aout_final_link_info): Add includes field. | |
4749 | (aout_link_includes_newfunc): New static function. | |
4750 | (NAME(aout,final_link)): Initialize includes hash table. | |
4751 | (aout_link_write_symbols): Eliminate duplicate N_BINCL entries. | |
4752 | ||
480ccad5 SS |
4753 | Wed Dec 13 10:52:14 1995 Stan Shebs <[email protected]> |
4754 | ||
4755 | * mpw-config.in: Match on mips-*-* instead of mips-idt-ecoff. | |
4756 | ||
3920d9c9 KK |
4757 | Wed Dec 13 11:07:45 1995 Kim Knuttila <[email protected]> |
4758 | ||
4759 | * coff-ppc.c (coff_ppc_relocate_section): removed debugging code. | |
4760 | ||
207345f2 KK |
4761 | Tue Dec 12 17:42:06 1995 Kim Knuttila <[email protected]> |
4762 | ||
4763 | * peicode.h (pe_print_reloc): New function to dump the .reloc section. | |
4764 | (pe_print_private_bfd_data): call pe_print_reloc. | |
4765 | * coffcode.h (coff_set_alignment_hook): .reloc section alignment. | |
4766 | * coff-ppc.c (in_reloc_p): Added missing non-eligible relocs. Spiffed | |
4767 | up some debugging as well. | |
4768 | ||
273c019e ILT |
4769 | Tue Dec 12 11:34:23 1995 Ian Lance Taylor <[email protected]> |
4770 | ||
4771 | * config.bfd: Handle sparc-*-elf*. From Ronald F. Guilmette | |
4772 | <[email protected]>. | |
4773 | ||
010d9f2d ILT |
4774 | Fri Dec 8 17:47:07 1995 Ian Lance Taylor <[email protected]> |
4775 | ||
4776 | * elflink.h (elf_link_add_object_symbols): Set section_count to 0 | |
4777 | when setting sections to NULL. | |
4778 | ||
4a4a66bd ILT |
4779 | Wed Dec 6 17:05:37 1995 Ian Lance Taylor <[email protected]> |
4780 | ||
4781 | * xcofflink.c (struct xcoff_loader_info): Add export_defineds | |
4782 | field. | |
4783 | (bfd_xcoff_size_dynamic_sections): Add export_defineds parameter. | |
4784 | (xcoff_build_ldsyms): If export_defineds is set, set XCOFF_EXPORT | |
4785 | for all symbols. | |
4786 | * bfd-in.h (bfd_xcoff_size_dynamic_sections): Update declaration. | |
4787 | * bfd-in2.h: Rebuild. | |
4788 | ||
545bf026 KK |
4789 | Mon Dec 4 16:40:47 1995 Kim Knuttila <[email protected]> |
4790 | ||
4791 | * coffcode.h (coff_set_alignment_hook): Removed some debugging printf's | |
4792 | ||
1f4ae0d6 ILT |
4793 | Mon Dec 4 11:25:39 1995 Ian Lance Taylor <[email protected]> |
4794 | ||
55cac920 ILT |
4795 | * ihex.c (ihex_scan): Handle record types 4 and 5. |
4796 | (ihex_object_p): Permit types 4 and 5. | |
4797 | (ihex_set_section_contents): Remove check for out of range | |
4798 | addresses. | |
4799 | (ihex_write_object_contents): Generate types 4 and 5. | |
4800 | ||
1f4ae0d6 ILT |
4801 | * elflink.h (elf_link_output_extsym): Just ignore warning and |
4802 | indirect references to symbols which don't really exist. | |
4803 | ||
53d45489 KK |
4804 | Sun Dec 3 19:00:27 1995 Kim Knuttila <[email protected]> |
4805 | ||
4806 | * peicode.h (pe_print_idata): Minor format fixes | |
4807 | (pe_print_edata): New function. Under private printing, this formats | |
4808 | the edata section of a PE file. | |
4809 | (pe_print_private_bfd_data): Added call to pe_print_edata. | |
4810 | ||
361e8876 DE |
4811 | Sun Dec 3 16:46:54 1995 Richard Earnshaw ([email protected]) |
4812 | ||
4813 | * aout-arm.c (MY_swap_std_reloc_out): Use KEEPIT to get the symbol | |
4814 | index, don't call stoi. | |
4815 | ||
58142f10 ILT |
4816 | Fri Dec 1 14:46:51 1995 Ian Lance Taylor <[email protected]> |
4817 | ||
ffd15489 ILT |
4818 | * srec.c (srec_scan): Set lma as well as vma. |
4819 | ||
4820 | * ihex.c: New file; support for Intel Hex format. | |
4821 | * targets.c (enum bfd_flavour): Add bfd_target_ihex_flavour. | |
4822 | (ihex_vec): Declare. | |
4823 | (bfd_target_vector): Always include ihex_vec. | |
4824 | * bfd.c (struct _bfd): Add ihex_data field to tdata union. | |
4825 | * Makefile.in: Rebuild dependencies. | |
4826 | (BFD_LIBS): Add ihex.o | |
4827 | (BFD_LIBS_CFILES): Add ihex.c. | |
4828 | * bfd-in2.h: Rebuild. | |
4829 | ||
ae0a6bea ILT |
4830 | * elf.c (assign_file_positions_for_segments): Sort the sections in |
4831 | each segment. | |
4832 | (get_program_header_size): Return the right size if segment_map is | |
4833 | not NULL. | |
4834 | (copy_private_bfd_data): Don't bother to sort the sections. | |
4835 | ||
4836 | * bfd.c (bfd_record_phdr): New function. | |
4837 | * bfd-in.h (bfd_record_phdr): Declare. | |
4838 | * bfd_in2.h: Rebuild. | |
4839 | ||
ce0ee4bf ILT |
4840 | * elf32-sparc.c (elf32_sparc_relocate_section): Remove bogus |
4841 | BFD_ASSERT. | |
4842 | ||
58142f10 ILT |
4843 | * libbfd.c (bfd_malloc, bfd_realloc): New functions. |
4844 | (bfd_zmalloc): Return PTR, not char *. Take size_t, not | |
4845 | bfd_size_type. | |
4846 | * libbfd-in.h (bfd_malloc, bfd_realloc): Declare. | |
4847 | (bfd_zmalloc): Change declaration. | |
4848 | * libbfd.h: Rebuild. | |
4849 | * Many files: Use bfd_malloc and bfd_realloc rather than malloc | |
4850 | and realloc. Don't set bfd_error_no_memory if they fail. | |
4851 | ||
59066248 KK |
4852 | Thu Nov 30 19:32:26 1995 Kim Knuttila <[email protected]> |
4853 | ||
4854 | * coff-ppc.c: Added macros to tidy up toc cell treatment. Numerous | |
4855 | uses as well. Added a new howto to deal with TOCREL16 relocs that | |
4856 | are TOCDEFN as well. | |
4857 | (coff_ppc_relocate_section): Expanded treatment of ADDR32NB relocs | |
4858 | to handle RVA relocs from dlltool. | |
4859 | (ppc_coff_rtype2howto): TOCDEFN reloc addition. | |
4860 | (coff_ppc_rtype_to_howto): TOCDEFN reloc addition. | |
4861 | (ppc_coff_reloc_type_lookup): TOCDEFN reloc addition. | |
4862 | ||
4863 | * coffcode.h (coff_set_alignment_hook): check idata$X sections | |
4864 | to get the right section alignment. | |
4865 | ||
6933148a ILT |
4866 | Thu Nov 30 16:48:18 1995 Ian Lance Taylor <[email protected]> |
4867 | ||
4868 | * elf.c (_bfd_elf_make_section_from_shdr): Don't set lma based on | |
4869 | p_paddr if p_paddr is zero. | |
4870 | (make_mapping): Set includes_filehdr and includes_phdrs for first | |
4871 | PT_LOAD segment. | |
4872 | (map_sections_to_segments): Set includes_phdrs for PT_PHDR | |
4873 | segment. | |
4874 | (assign_file_positions_for_segments): Handle includes_filehdr and | |
4875 | includes_phdrs. Remove special handling of PT_PHDR and first | |
4876 | PT_LOAD segments. | |
4877 | (copy_private_bfd_data): Set includes_filehdr and includes_phdr | |
4878 | when appropriate. Remove special handling of PT_PHDR segment. | |
4879 | Use a more complex condition for when a section is included in a | |
4880 | segment to handle Solaris linker oddities. | |
4881 | ||
f62fed1c ILT |
4882 | Thu Nov 30 11:17:33 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <[email protected]> |
4883 | ||
4884 | * coff-m88k.c (howto_table): Reformatted for easier reading; | |
4885 | special_function now points to new function m88k_special_reloc. | |
4886 | (howto_hvrt16): Function previously used for handling HVRT16 relocs | |
4887 | removed. | |
4888 | (rtype2howto): Do not add reloc's r_offset to the addend, this will | |
4889 | be done correctly by m88k_special_reloc. | |
4890 | (reloc_processing): New function to be used by RELOC_PROCESSING. | |
4891 | (RELOC_PROCESSING): Define to call reloc_processing. | |
4892 | ||
64ecde46 ILT |
4893 | Wed Nov 29 12:42:36 1995 Ian Lance Taylor <[email protected]> |
4894 | ||
b00c57ec ILT |
4895 | * peicode.h (pe_print_idata): Call malloc rather than xmalloc. |
4896 | (pe_print_pdata): Likewise. | |
4897 | ||
a9713b91 ILT |
4898 | * opncls.c (bfd_alloc_by_size_t): Set bfd_error_no_memory if |
4899 | obstack_alloc fails. | |
4900 | (bfd_alloc_finish): Set bfd_error_no_memory if obstack_finish | |
4901 | fails. | |
4902 | * libbfd.c (bfd_zmalloc): Set bfd_error_no_memory if malloc fails. | |
4903 | * Many files: don't set bfd_error_no_memory if one of the above | |
4904 | routines fails. | |
4905 | ||
3dbf33ee ILT |
4906 | * elf.c (assign_file_positions_for_segments): Don't adjust p_paddr |
4907 | if p_paddr_valid is set. | |
4908 | (copy_private_bfd_data): New static function. | |
4909 | (_bfd_elf_copy_private_section_data): Call copy_private_bfd_data. | |
4910 | ||
44ef8897 ILT |
4911 | * elf.c (assign_file_positions_for_segments): Fix case where extra |
4912 | program headers were allocated. | |
4913 | ||
27fb8f29 ILT |
4914 | * elf.c (_bfd_elf_print_private_bfd_data): New function. |
4915 | * elf-bfd.h (_bfd_elf_print_private_bfd_data): Declare. | |
4916 | * elfxx-target.h (bfd_elfNN_bfd_print_private_bfd_data): Define to | |
4917 | _bfd_elf_print_private_bfd_data. | |
4918 | ||
64ecde46 ILT |
4919 | * coff-alpha.c (alpha_ecoff_swap_reloc_in): Don't abort if |
4920 | r_symndx is RELOC_SECTION_NONE for an ALPHA_R_IGNORE reloc. | |
4921 | Change a RELOC_SECTION_LITA symndx to RELOC_SECTION_ABS. | |
4922 | (alpha_ecoff_swap_reloc_out): Change RELOC_SECTION_ABS to | |
4923 | RELOC_SECTION_LITA for ALPHA_R_IGNORE. | |
4924 | (alpha_adjust_reloc_out): For ALPHA_R_IGNORE, don't change | |
4925 | RELOC_SECTION_ABS to RELOC_SECTION_NONE. | |
4926 | ||
fd0198f0 ILT |
4927 | Tue Nov 28 16:59:50 1995 Ian Lance Taylor <[email protected]> |
4928 | ||
4929 | * elf-bfd.h (struct elf_obj_tdata): Add segment_map field. | |
4930 | * elf.c (make_mapping): New static function. | |
4931 | (map_sections_to_segments): New static function. | |
4932 | (elf_sort_sections): New static function. | |
4933 | (assign_file_positions_for_segments): New static function. | |
4934 | (map_program_segments): Remove. | |
4935 | (get_program_header_size): Remove sorted_hdrs, count, and | |
4936 | maxpagesize parameters. Simplify. | |
4937 | (assign_file_positions_except_relocs): When generating an | |
4938 | executable, use assign_file_positions_for_segments. | |
4939 | (elf_sort_hdrs): Remove. | |
4940 | (_bfd_elf_sizeof_headers): Remove eliminated parameters from call | |
4941 | to get_program_header_size. | |
4942 | ||
3b3f7625 ILT |
4943 | Mon Nov 27 12:27:46 1995 Ian Lance Taylor <[email protected]> |
4944 | ||
1ff0461b ILT |
4945 | * hp300hpux.c (MY(callback)): Set lma as well as vma. |
4946 | ||
80c8485c ILT |
4947 | * configure, config.in: Regenerate with autoconf 2.7. |
4948 | ||
3b3f7625 ILT |
4949 | * elf32-i386.c (elf_backend_plt_readonly): Set correctly, to 1. |
4950 | * elf32-sparc.c (elf_backend_plt_readonly): Set correctly, to 0. | |
4951 | ||
fa63d1ef ILT |
4952 | Wed Nov 22 12:02:09 1995 Ian Lance Taylor <[email protected]> |
4953 | ||
a877f591 ILT |
4954 | * ecoff.c (_bfd_ecoff_new_section_hook): Handle .rconst section. |
4955 | (ecoff_sec_to_styp_flags): Likewise. | |
4956 | (_bfd_ecoff_styp_to_sec_flags): Handle STYP_RCONST. | |
4957 | (ecoff_set_symbol_info): Handle scRConst. | |
4958 | (ecoff_slurp_reloc_table): Handle RELOC_SECTION_RCONST. | |
4959 | (ecoff_compute_section_file_positions): Handle .rconst section. | |
4960 | (_bfd_ecoff_write_object_contents): Likewise. | |
4961 | (ecoff_link_check_archive_element): Handle scRConst. | |
4962 | (ecoff_link_add_externals): Likewise. | |
4963 | (ecoff_link_write_external): Handle .rconst section. | |
4964 | (ecoff_reloc_link_order): Likewise. | |
4965 | * ecofflink.c (bfd_ecoff_debug_accumulate): Handle scRConst. | |
4966 | * coff-alpha.c (alpha_convert_external_reloc): Handle .rconst | |
4967 | section. | |
4968 | (alpha_relocate_section): Handle RELOC_SECTION_RCONST. | |
4969 | ||
fa63d1ef ILT |
4970 | * sunos.c (sunos_scan_dynamic_symbol): Only set written if the |
4971 | DEF_DYNAMIC flag is set. | |
4972 | ||
25bada65 KR |
4973 | Tue Nov 21 13:25:29 1995 Ken Raeburn <[email protected]> |
4974 | ||
4975 | * host-aout.c: If TRAD_HEADER is defined, include it. | |
4976 | ||
7938b4cb ILT |
4977 | Tue Nov 21 13:03:57 1995 Ian Lance Taylor <[email protected]> |
4978 | ||
85e493f0 ILT |
4979 | * aclocal.m4 (AC_PROG_CC): Remove local definition. |
4980 | (BFD_BINARY_FOPEN): Require AC_CANONICAL_SYSTEM. | |
4981 | (BFD_NEED_DECLARATION): New function. | |
4982 | * configure.in: Use BFD_NEED_DECLARATION. | |
bd77213b ILT |
4983 | * acconfig.h: Put NEED_DECLARATION_* in @TOP@ section. |
4984 | * configure, config.in: Rebuild with autoconf 2.6. | |
85e493f0 | 4985 | |
83dcdc61 ILT |
4986 | * xcofflink.c (bfd_xcoff_size_dynamic_sections): Clear |
4987 | special_sections before returning when called with a non XCOFF | |
4988 | BFD. | |
4989 | ||
7938b4cb ILT |
4990 | * coffgen.c (coff_renumber_symbols): Sort common symbols with |
4991 | global symbols. | |
4992 | ||
4993 | * coffcode.h (coff_compute_section_file_positions): Only pad the | |
4994 | previous section to force file alignment when creating an | |
4995 | executable. | |
4996 | ||
b5403ad7 ILT |
4997 | Mon Nov 20 14:54:09 1995 Ian Lance Taylor <[email protected]> |
4998 | ||
a418e05d ILT |
4999 | * coffcode.h (coff_compute_section_file_positions): If |
5000 | RS6000COFF_C, set up the .debug section. | |
5001 | ||
b5403ad7 ILT |
5002 | * xcofflink.c (xcoff_link_input_bfd): Adjust the TOC anchor value |
5003 | if it is not large enough to accomodate the entire TOC area with | |
5004 | signed 16 bit offsets. | |
5005 | (xcoff_write_global_symbol): Handle negative TOC offsets in global | |
5006 | linkage code. | |
5007 | (_bfd_ppc_xcoff_relocate_section): Adjust relocations against a | |
5008 | TOC anchor to use the TOC value used in the output file. | |
5009 | ||
90a7abbc ILT |
5010 | Sat Nov 18 18:01:41 1995 Ian Lance Taylor <[email protected]> |
5011 | ||
5012 | * coffgen.c (_bfd_coff_get_external_symbols): Cast malloc return. | |
5013 | (_bfd_coff_read_string_table): Likewise. | |
5014 | ||
177b1932 DE |
5015 | Sat Nov 18 19:43:04 1995 Richard Earnshaw ([email protected]) |
5016 | ||
5017 | * pe-arm.c: Fix typos. | |
5018 | * coff-arm.c: Likewise. | |
5019 | ||
5020 | Fri Nov 17 16:22:04 1995 Kim Knuttila <[email protected]> | |
5021 | ||
5022 | * coff-ppc.c (list_ele): Added "cat"egory member. | |
5023 | (record_toc): New category parameter (priv or pub). | |
5024 | (ppc_record_toc_entry): Check to see if toc bounds exceeded. | |
5025 | (ppc_process_before_allocation): Removed embrionic data-in-toc from | |
5026 | the mainline. It addes extra toc cells in error. | |
5027 | (ppc_coff_swap_sym_in_hook): Added some documentation. | |
5028 | (dump_toc): Can now diagnose "virtual toc" chicanery. | |
5029 | ||
e34314c4 ILT |
5030 | Fri Nov 17 10:41:25 1995 Philippe De Muyter <[email protected]> |
5031 | ||
5032 | * elf-bfd.h (struct elf_link_hash_table): Change type of | |
5033 | dynsymcount and bucketcount fields from size_t to bfd_size_type. | |
5034 | ||
73a68447 ILT |
5035 | Fri Nov 17 10:02:58 1995 Ian Lance Taylor <[email protected]> |
5036 | ||
535e9e29 ILT |
5037 | * coffcode.h (coff_pointerize_aux_hook): I960 version: don't |
5038 | pointerize C_LEAFSTAT or C_LEAFEXT entries. | |
5039 | ||
73a68447 ILT |
5040 | * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Only create |
5041 | DT_INIT and DT_FINI entries if the _init or _fini symbol is | |
5042 | defined or mentioned in a regular file. | |
5043 | ||
cd2b2402 KK |
5044 | Thu Nov 16 15:16:42 1995 Kim Knuttila <[email protected]> |
5045 | ||
5046 | * coff-ppc.c (ppc_record_data_in_toc_entry): new function | |
5047 | (coff_ppc_relocate_section): Handle TOCDEFN attribute | |
5048 | (coff_ppc_relocate_section): Correct REL24 handling | |
5049 | (ppc_process_before_allocation): Correct TOCDEFN handling | |
5050 | ||
5051 | * peicode.h (dir_names): Added name descriptions | |
5052 | ||
b218076e KR |
5053 | Thu Nov 16 03:38:03 1995 Ken Raeburn <[email protected]> |
5054 | ||
5055 | * VERSION: Updated to cygnus-2.6. | |
5056 | ||
5057 | Wed Nov 15 19:30:07 1995 Ken Raeburn <[email protected]> | |
5058 | ||
5059 | * targets.c (m68k4knetbsd_vec): Declare. | |
5060 | ||
e9f30616 ILT |
5061 | Wed Nov 15 18:05:52 1995 Ian Lance Taylor <[email protected]> |
5062 | ||
5063 | * targets.c (bfd_target): Change type of second argument to | |
5064 | _bfd_print_private_bfd_data from void * to PTR. | |
5065 | * libbfd-in.h (_bfd_generic_bfd_print_private_bfd_data): Cast | |
5066 | using PTR rather than void *. | |
5067 | * bfd-in2, libbfd.h: Rebuild. | |
5068 | * peicode.h (pe_print_private_bfd_data): Change vfile from void * | |
5069 | to PTR. | |
5070 | * elfxx-target.h (bfd_elfNN_bfd_print_private_bfd_data): Define as | |
5071 | _bfd_generic_bfd_print_private_bfd_data rather than casting | |
5072 | bfd_true. | |
5073 | ||
ae75c4a4 KR |
5074 | Wed Nov 15 04:09:14 1995 Ken Raeburn <[email protected]> |
5075 | ||
5076 | * Makefile.in (.dep1): Fix stupid typo in last change. Remove any | |
5077 | "DO NOT DELETE" lines or blank lines that mkdep writes on some | |
5078 | systems. | |
5079 | (BFD_LIBS_CFILES, ALL_MACHINES_CFILES, BFD32_BACKENDS_CFILES, | |
5080 | BFD64_BACKENDS_CFILES): New variables. | |
5081 | (CFILES): Use them. | |
5082 | ||
bebcd3db ILT |
5083 | Tue Nov 14 11:52:23 1995 Ian Lance Taylor <[email protected]> |
5084 | ||
4b71e164 ILT |
5085 | * peicode.h (coff_swap_aouthdr_out): For PPC PE, start isize at 0, |
5086 | not at the file position of the first section. | |
5087 | * coffcode.h (coff_compute_section_file_positions): Avoid using | |
5088 | unportable #elif. | |
5089 | (coff_write_object_contents): When generating a PPC PE executable | |
5090 | with no symbols, round up the file size to a COFF_PAGE_SIZE | |
5091 | boundary. | |
5092 | * cofflink.c (_bfd_coff_final_link): If there are no symbols, | |
5093 | don't write out a string table. | |
5094 | ||
631b10f4 ILT |
5095 | * elf.c (bfd_section_from_shdr): When using a different section |
5096 | header, pass the new one to _bfd_elf_make_section_from_shdr. | |
5097 | (elf_fake_sections): Don't set sh_info and sh_entsize fields. | |
5098 | (elf_map_symbols): Add section VMA to symbol value when comparing | |
5099 | against 0. | |
5100 | (_bfd_elf_compute_section_file_positions): Only build symbol table | |
5101 | if there are some symbols. Set file offset of symtab and strtab | |
5102 | sections. | |
5103 | (assign_file_positions_except_relocs): Remove dosyms parameter. | |
5104 | Change all callers. Never set file offset of symtab and strtab | |
5105 | sections. | |
5106 | (_bfd_elf_copy_private_section_data): New function. | |
5107 | (MAP_ONESYMTAB, MAP_DYNSYMTAB, MAP_STRTAB, MAP_SHSTRTAB): Define. | |
5108 | (_bfd_elf_copy_private_symbol_data): New function. | |
5109 | (swap_out_syms): Check for special mapping of st_shndx created by | |
5110 | copy_private_symbol_data. | |
5111 | * elfxx-target.h: Use new copy routines. | |
5112 | * elf-bfd.h (_bfd_elf_copy_private_symbol_data): Declare. | |
5113 | (_bfd_elf_copy_private_section_data): Declare. | |
5114 | ||
5115 | * config.bfd (sh-*-*): Set targ_defvec to shcoff_vec. | |
5116 | ||
5117 | * coffcode.h (coff_slurp_symbol_table): If COFF_WITH_PE, handle | |
5118 | C_NT_WEAK. | |
5119 | ||
bebcd3db ILT |
5120 | * coff-sh.c (shlcoff_vec): Use _bfd_generic_archive_p, not |
5121 | _bfd_dummy_target, matching the recent change to archive | |
5122 | recognition. | |
5123 | ||
7ad4ba81 ILT |
5124 | Mon Nov 13 13:24:38 1995 Ian Lance Taylor <[email protected]> |
5125 | ||
afa67334 ILT |
5126 | * libbfd.c (bfd_get_file_window): Use casts to avoid doing |
5127 | arithmetic on PTR types. | |
5128 | ||
f2bd8915 ILT |
5129 | * aout-target.h (MY(callback)): Set the lma of the sections. |
5130 | ||
7ad4ba81 ILT |
5131 | * ecoff.c (ecoff_reloc_link_order): Turn a reloc against a defined |
5132 | symbol into a reloc against the section. | |
5133 | ||
93b6a3f8 KK |
5134 | Mon Nov 13 07:31:35 1995 Kim Knuttila <[email protected]> |
5135 | ||
5136 | * coff-ppc.c (ppc_coff_link_hash_entry): added support for inline | |
5137 | glue for the relocs: IMGLUE and IFGLUE. | |
5138 | (record_toc): new function - tracks toc contents | |
5139 | (ppc_mark_symbol_as_glue): new function - supports the IMGLUE reloc | |
5140 | (coff_ppc_relocate_section): Added support and fixes for IMGLUE/IFGLUE | |
5141 | (ppc_coff_rtype2howto): removed invalid IMGLUE hack | |
5142 | (coff_ppc_rtype_to_howto): removed invalid IMGLUE hack | |
125d37c4 | 5143 | (ppc_record_toc_entry): Removed a debug define (duh) |
93b6a3f8 KK |
5144 | |
5145 | * peicode.h (coff_swap_scnhdr_out): Fixed invalid strcmp for ".reldata" | |
5146 | (pe_print_idata): New function - formats the idata section data | |
5147 | (pe_print_pdata): New function - formats the pdata section data | |
5148 | (pe_print_private_bfd_data): calls to above | |
5149 | ||
c769947b SS |
5150 | Sun Nov 12 12:23:24 1995 Stan Shebs <[email protected]> |
5151 | ||
5152 | * Makefile.in (bfd_libs_here, etc): Provide empty definitions. | |
5153 | * coff-rs6000.c (rs6000coff_vec): Add conditional defines | |
5154 | TARGET_SYM and TARGET_NAME for vector and BFD name. | |
5155 | * coff-pmac.c (pmac_xcoff_vec): Remove. | |
5156 | (TARGET_SYM, TARGET_NAME): Define. | |
5157 | * coffcode.h (coff_set_arch_mach_hook) [POWERMAC]: Set the | |
5158 | machine to 0, not all PowerMacs are 601s. | |
5159 | ||
5160 | Fri Nov 10 12:10:14 1995 Ian Lance Taylor <[email protected]> | |
5161 | ||
5162 | * elfcode.h (elf_object_p): Read in any program headers. | |
5163 | * elf.c (_bfd_elf_make_section_from_shdr): Adjust section lma | |
5164 | based on the program headers, if any. | |
5165 | (elf_fake_sections): Set sh_addr from the vma, not the lma. | |
5166 | (map_program_segments): Set p_paddr of program headers based on | |
5167 | the lma. | |
5168 | ||
ee174815 ILT |
5169 | Thu Nov 9 13:01:31 1995 Ian Lance Taylor <[email protected]> |
5170 | ||
839087b7 ILT |
5171 | * archive.c (bfd_generic_archive_p): Preserve tdata in case of |
5172 | failure. | |
5173 | ||
922530a6 ILT |
5174 | * aoutx.h (NAME(aout,final_link)): Report a reasonable error when |
5175 | trying to do a relocateable link with a non-a.out object file. | |
5176 | ||
5177 | * archive.c (bfd_generic_archive_p): Check the first object file | |
5178 | in an archive even if target_defaulted is set. If the object file | |
5179 | has the wrong xvec, reject it. | |
5180 | ||
a1774c51 ILT |
5181 | * aoutx.h (NAME(aout,set_section_contents)): If a section can not |
5182 | be represented, report the name via _bfd_error_handler. | |
5183 | (translate_to_native_sym_flags): Likewise. | |
5184 | * elf32-mips.c (mips_elf_final_link): Likewise. | |
5185 | * oasys.c (oasys_write_sections): Likewise. | |
5186 | ||
4a378b13 ILT |
5187 | * coffcode.h (coff_set_alignment_hook): Write RS6000COFF_C version |
5188 | which checks for STYP_OVRFLO sections. | |
5189 | (coff_compute_section_file_positions): If RS6000COFF_C, handle | |
5190 | reloc and lineno count overflows. | |
5191 | (coff_write_object_contents): Call coff_count_linenumbers before | |
5192 | coff_compute_section_file_positions. If RS6000COFF_C, handle | |
5193 | reloc and lineno count overflows. | |
5194 | * xcofflink.c (_bfd_xcoff_bfd_final_link): Count line numbers and | |
5195 | relocs before dealing with .pad sections. Count overflow section | |
5196 | headers when handling .pad sections. | |
5197 | ||
7906bf87 ILT |
5198 | * coffcode.h (coff_write_object_contents): Set a.out vstamp to 1 |
5199 | if RS6000COFF_C. | |
5200 | ||
ee174815 ILT |
5201 | * xcofflink.c (XCOFF_DESCRIPTOR): Define. |
5202 | (struct xcoff_link_hash_table): Add descriptor_section and | |
5203 | special_sections fields. | |
5204 | (_bfd_xcoff_bfd_link_hash_table_create): Initialize new fields. | |
5205 | (xcoff_link_add_symbols): Set linkage section alignment. Create | |
5206 | descriptor section. Check for magic symbol names (_text, etc.), | |
5207 | and record them in special_sections if found. Set | |
5208 | XCOFF_DESCRIPTOR flag for a function descriptor, and set its | |
5209 | descriptor field to point back to the function code symbol. | |
5210 | (xcoff_sweep): Always mark the special descriptor_section. | |
5211 | (bfd_xcoff_export_symbol): Check whether the symbol might be a | |
5212 | function descriptor, and mark it if it is. | |
5213 | (bfd_xcoff_size_dynamic_sections): Add new special_sections | |
5214 | parameter, and fill it in. Allocate space for the descriptor | |
5215 | section. | |
5216 | (xcoff_build_ldsyms): Set XCOFF_DEF_REGULAR flag when defining | |
5217 | global linkage code. If an undefined function descriptor is | |
5218 | exported, arrange to define it. Warn about any other undefined | |
5219 | exported symbol. | |
5220 | (_bfd_xcoff_bfd_final_link): Write out the descriptor section. | |
5221 | (xcoff_write_global_symbol): Create a function descriptor when | |
5222 | necessary. | |
5223 | * bfd-in.h (bfd_xcoff_size_dynamic_sections): Update declaration. | |
5224 | * bfd-in2.h: Rebuild. | |
5225 | ||
0e829f18 KK |
5226 | Thu Nov 9 08:40:23 1995 Kim Knuttila <[email protected]> |
5227 | ||
5228 | * coff-ppc.c (ppc_coff_link_hash_entry): new types for hashing | |
5229 | (ppc_coff_link_hash_table): new types for hashing | |
5230 | (ppc_coff_link_hash_newfunc): hash entry constructor | |
5231 | (ppc_coff_link_hash_table_init): hash table initializer | |
5232 | (ppc_coff_link_hash_table_create): hash table constructor | |
5233 | (ppc_record_toc_entry): changed references to hash table | |
5234 | (coff_ppc_relocate_section): changed references to hash table | |
5235 | ||
5236 | * libcoff-in.h (coff_link_hash_entry): removed toc_offset | |
5237 | * libcoff.h: Rebuild | |
5238 | ||
5239 | * cofflink.c (_bfd_coff_link_hash_newfunc): removed toc_offset init | |
5240 | (coff_link_add_symbols): removed toc_offset init | |
5241 | ||
7ac84736 KR |
5242 | Thu Nov 9 04:00:38 1995 Ken Raeburn <[email protected]> |
5243 | ||
b27cc4bc KR |
5244 | * Makefile.in (.dep1): Make sure the file mkdep is to write exists |
5245 | first. | |
5246 | ||
7ac84736 KR |
5247 | * configure.in: Added new option --with[out]-mmap. Set USE_MMAP |
5248 | if it is given and mmep is available. | |
5249 | * acconfig.h: Undef USE_MMAP. | |
5250 | * configure, config.in: Regenerated. | |
5251 | * aoutx.h: If USE_MMAP is not defined, do all symbol and string | |
5252 | table handling the old way. | |
5253 | (aout_get_external_symbols): Don't complain if last byte of string | |
5254 | table is nonzero. | |
5255 | * libbfd.c [HAVE_MADVISE]: Include sys/types.h and sys/mman.h. | |
5256 | (bfd_free_window) [! USE_MMAP]: Don't define. | |
5257 | (bfd_get_file_window, | |
5258 | _bfd_generic_get_section_contents_in_window) [! USE_MMAP]: Abort. | |
5259 | ||
1b3b0c03 ILT |
5260 | Wed Nov 8 20:03:44 1995 Eric Freudenthal <[email protected]> |
5261 | ||
5262 | * coff-a29k.c (SIGN_EXTEND_HWORD): Use ~0xffff rather than | |
5263 | 0xffff0000. | |
5264 | ||
092abcdf ILT |
5265 | Wed Nov 8 11:31:11 1995 Ian Lance Taylor <[email protected]> |
5266 | ||
33698029 ILT |
5267 | * coff-a29k.c (a29k_reloc): Change handling of R_IREL reloc to be |
5268 | compatible with AMD generated COFF files. Try to support both AMD | |
5269 | and GNU formats simultaneously. | |
5270 | (coff_a29k_relocate_section): Likewise. | |
5271 | ||
0bb8ff19 ILT |
5272 | * libbfd.c (bfd_get_file_window): Change writable parameter from |
5273 | int to boolean; update all callers. Pass MAP_SHARED if not | |
5274 | writable--it's required on Solaris. Cast fprintf argument to | |
5275 | avoid warning. | |
5276 | * bfd-in.h (bfd_get_file_window): Update declaration. | |
5277 | * bfd-in2.h: Rebuild. | |
5278 | * aoutx.h: Update calls to bfd_get_file_window. | |
5279 | ||
0634a431 ILT |
5280 | * xcofflink.c (XCOFF_DEF_DYNAMIC): Rename from XCOFF_REF_DYNAMIC. |
5281 | Change all uses. | |
5282 | (xcoff_swap_ldhdr_in): New static function. | |
5283 | (xcoff_swap_ldsym_in): New static function. | |
7812bf9c | 5284 | (xcoff_find_reloc): Handle the case of a single reloc correctly. |
0634a431 ILT |
5285 | (xcoff_link_add_symbols): If we just created a descriptor, pass it |
5286 | to _bfd_generic_link_add_one_symbol, to save a hash lookup. | |
417acf22 | 5287 | Handle XTY_ER/XMC_XO symbols correctly. |
0634a431 ILT |
5288 | (xcoff_link_add_dynamic_symbols): Rewrite to read .loader symbols |
5289 | rather than normal symbol table. | |
417acf22 ILT |
5290 | (bfd_xcoff_import_symbol): It's not an error if the symbol is |
5291 | already defined with the same absolute value. | |
0634a431 ILT |
5292 | (xcoff_mark): When considering called symbols, check whether the |
5293 | descriptor is from a dynamic object, rather than the symbol | |
5294 | itself. | |
5295 | (xcoff_build_ldsyms): Likewise. | |
5296 | ||
092abcdf ILT |
5297 | * libbfd.c (bfd_get_file_window): Change return type to boolean. |
5298 | Cast realloc and malloc return values. If malloc or realloc fail, | |
5299 | set bfd_error_no_memory. | |
5300 | * bfd-in.h (bfd_get_file_window): Change type to boolean. | |
5301 | * bfd-in2.h: Rebuild. | |
5302 | ||
d6f41a7d KK |
5303 | Tue Nov 7 11:53:48 1995 Kim Knuttila <[email protected]> |
5304 | ||
5305 | * coff-ppc.c (ppc_record_toc_entry): new function. | |
5306 | (in_reloc_p): changed return value. | |
5307 | (coff_ppc_relocate_section): much rework. | |
5308 | (ppc_allocate_toc_section): new function. | |
5309 | (ppc_process_before_allocation): new function. | |
5310 | (ppc_coff_swap_sym_in_hook): new function. | |
5311 | ||
5312 | * cofflink.c (_bfd_coff_link_hash_newfunc): initialize toc_offset. | |
5313 | (coff_link_add_symbols): initialize toc_offset. | |
5314 | ||
5315 | * peicode.h (coff_swap_sym_in): Added coff_swap_sym_in_hook | |
5316 | (coff_swap_aouthdr_out): Added more sections to the data | |
5317 | dictionary for the pe file header. Also changed linker version | |
5318 | number on the ppc side. | |
5319 | (dir_names): small improvements to the dictionary printing. | |
5320 | (pe_mkobject_hook): save the file level flags. | |
5321 | ||
5322 | * libcoff-in.h (coff_link_hash_entry): added toc_offset field | |
5323 | (pe_tdata): added real_flags field | |
5324 | (coff_tdata): added local_toc_sym_map and access macro | |
5325 | ||
5326 | * libcoff.h (coff_link_hash_entry): added toc_offset field | |
5327 | (pe_tdata): added real_flags field | |
5328 | (coff_tdata): added local_toc_sym_map and access macro | |
5329 | ||
5330 | * coffcode.h (coff_set_alignment_hook): added hook for PE. | |
5331 | (coff_mkobject): init for local_toc_sym_map | |
5332 | (coff_write_object_contents): set the internal_a.magic to | |
5333 | IMAGE_NT_OPTIONAL_HDR_MAGIC which appears to be what other | |
5334 | ppc compilers use. | |
5335 | ||
6bc200f2 ILT |
5336 | Tue Nov 7 13:48:58 1995 Ian Lance Taylor <[email protected]> |
5337 | ||
c0971298 ILT |
5338 | * ecofflink.c (_bfd_ecoff_locate_line): Keep looking through stabs |
5339 | entries until both the line number address and the function name | |
5340 | address are too large. | |
5341 | ||
6a468850 ILT |
5342 | * configure.in: Call AC_CHECK_PROG to find and cache AR. |
5343 | * configure: Rebuilt. | |
5344 | ||
6bc200f2 ILT |
5345 | * aclocal.m4 (BFD_CC_FOR_BUILD): Don't define CC_FOR_BUILD if it |
5346 | is defined in the environment. | |
5347 | ||
c44bf94c JL |
5348 | Tue Nov 7 10:57:24 1995 Jeffrey A Law ([email protected]) |
5349 | ||
5350 | * som.c (som_get_section_contents_in_window): Define to use | |
5351 | generic version. | |
5352 | ||
cf587de8 ILT |
5353 | Mon Nov 6 17:13:15 1995 Harry Dolan <[email protected]> |
5354 | ||
5355 | * coff-i860.c: New file, based on coff-i386.c. | |
5356 | * cpu-i860.c: New file, based on cpu-i386.c. | |
5357 | * hosts/i860mach3.h: New file, based on hosts/i386mach3.h. | |
5358 | * config.bfd (i860-*-mach3*, i860-*-osf1*, i860-*-coff*): New | |
5359 | targets, using i860coff_vec. | |
5360 | * configure.in (i860-*-mach3*, i860-*-osf1*): New hosts, using | |
5361 | trad-core.o and hosts/i860mach3.h. | |
5362 | (i860coff_vec): Use coff-i860.o and cofflink.o. | |
5363 | * configure: Rebuild. | |
5364 | * Makefile.in: Rebuild dependencies. | |
5365 | (ALL_MACHINES): Add cpu-i860.o. | |
5366 | (BFD32_BACKENDS): Add coff-i860.o. | |
5367 | (CFILES): Add cpu-i860.c and coff-i860.c. | |
5368 | * targets.c (i860coff_vec): Declare. | |
5369 | (bfd_target_vector): Add &i860coff_vec. | |
5370 | * archures.c (bfd_i860_arch): Declare. | |
5371 | (bfd_archures_list): Add &bfd_i860_arch. | |
5372 | * coffcode.h (coff_set_arch_mach_hook): Handle I860 magic number. | |
5373 | (coff_set_flags): Handle bfd_arch_i860. | |
5374 | (coff_write_object_contents): Handle I860 a.out magic number. | |
5375 | ||
83c23fca ILT |
5376 | Mon Nov 6 14:34:07 1995 Ian Lance Taylor <[email protected]> |
5377 | ||
5378 | * xcofflink.c (xcoff_link_add_symbols): Set the alignment power of | |
5379 | the created .tc section to 2. | |
5380 | (xcoff_mark): Don't keep a .loader reloc for a call to an | |
5381 | undefined symbol when creating a shared library. | |
5382 | (xcoff_build_ldsyms): When creating a shared library, generate | |
5383 | global linkage code for a call to an undefined symbol. | |
5384 | ||
5d9eb9c3 KR |
5385 | Sun Nov 5 21:44:13 1995 Ken Raeburn <[email protected]> |
5386 | ||
5387 | * Makefile.in (CFILES): Rebuild list from BFD_LIBS, ALL_MACHINES, | |
5388 | BFD32_BACKENDS, BFD64_BACKENDS. | |
5389 | (.dep1): Put mkdep output in a separate file. | |
5390 | Rebuilt dependencies. | |
5391 | ||
ffacb892 KR |
5392 | * ecoff.c (_bfd_ecoff_slurp_armap): Cast _bfd_read_ar_hdr return |
5393 | value. | |
5394 | ||
4fe6d901 KR |
5395 | Permit use of mmap when available: |
5396 | ||
5397 | * configure.in: Check for mmap, madvise, mprotect. | |
5398 | * config.in, configure: Regenerated. | |
5399 | ||
5400 | * libbfd.c (struct _bfd_window_internal): Define type. | |
5401 | (bfd_init_window, bfd_free_window, bfd_get_file_window): New | |
5402 | functions. | |
5403 | (ok_to_map): New static variable for debugging. | |
5404 | (_bfd_generic_get_section_contents_in_window): New function. | |
5405 | * bfd-in.h (bfd_window_internal): Declare type. | |
5406 | (bfd_window): Define type. | |
5407 | (bfd_init_window, bfd_free_window, bfd_get_file_window): Declare. | |
5408 | * libbfd-in.h (_bfd_generic_get_section_contents_in_window): | |
5409 | Declare. | |
5410 | ||
5411 | * libaout.h (struct aoutdata): Add two window fields. | |
5412 | (obj_aout_sym_window, obj_aout_string_window): New macros. | |
5413 | * aoutx.h (some_aout_object_p): Initialize windows. | |
5414 | (aout_get_external_symbols): Get symbol data and strings in | |
5415 | windows instead of explicitly allocated buffers. | |
5416 | (slurp_symbol_table): Free window instead of memory. | |
5417 | (bfd_free_cached_info): Release windows instead of freeing storage | |
5418 | directly. | |
5419 | (aout_link_free_symbols): Ditto. | |
5420 | ||
5421 | * targets.c (bfd_target): Add new field for | |
5422 | get_section_contents_in_window. | |
5423 | (BFD_JUMP_TABLE_GENERIC): Updated. | |
5424 | * aout-adobe.c, aout-target.h, binary.c, bout.c, coff-alpha.c, | |
5425 | coff-mips.c, elfxx-target.h, i386msdos.c, i386os9k.c, ieee.c, | |
5426 | libcoff-in.h, oasys.c, srec.c, tekhex.c, versados.c: Added new | |
5427 | macros for get_section_contents_in_window field. | |
5428 | ||
d9e771e3 FF |
5429 | Sat Nov 4 12:23:26 1995 Fred Fish <[email protected]> |
5430 | ||
5431 | * core.c: Renamed to corefile.c | |
5432 | * makefile.dos (OBJS): Change core.o to corefile.o | |
5433 | * Makefile.in (CFILES, BFD_LIBS): Use corefile.c instead of core.c | |
5434 | ||
bf917766 SG |
5435 | start-sanitize-gm |
5436 | Sat Nov 4 10:16:54 1995 Stu Grossman ([email protected]) | |
5437 | ||
5438 | * config.bfd (mips*-*-magic*): Add bfd_elf32_bigmips_vec to | |
5439 | targ_selvecs to allow debugging under Irix-5 native. | |
5440 | ||
5441 | end-sanitize-gm | |
583db7a8 ILT |
5442 | Fri Nov 3 15:54:59 1995 Ian Lance Taylor <[email protected]> |
5443 | ||
5444 | * xcofflink.c (xcoff_link_add_symbols): Rename local variable sub | |
5445 | to o. Clobber and restore the list of new csects around the call | |
5446 | to _bfd_generic_link_add_one_symbol, in case it wants to report a | |
5447 | linker error and the linker wants to read the symbol table. Reset | |
5448 | the line number count of a real section even if it has no relocs. | |
5449 | (_bfd_xcoff_bfd_final_link): If shared, set the DYNAMIC flag. | |
5450 | ||
5451 | * coffgen.c (_bfd_coff_read_string_table): Warn if the string size | |
5452 | is too small. | |
5453 | ||
68aed7db ILT |
5454 | Thu Nov 2 23:16:39 1995 Ian Lance Taylor <[email protected]> |
5455 | ||
18a9609c ILT |
5456 | * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Don't warn about |
5457 | an undefined symbol in a shared link. | |
5458 | ||
68aed7db ILT |
5459 | * linker.c (_bfd_generic_link_add_one_symbol): Correct type of |
5460 | oldtype from bfd_link_order_type to bfd_link_hash_type. From | |
5461 | [email protected] (Philippe De Muyter). | |
5462 | ||
7f82c7e1 ILT |
5463 | Wed Nov 1 14:26:02 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <[email protected]> |
5464 | ||
5465 | * coff-m88k.c (rtype2howto): New static function. | |
5466 | (RTYPE2HOWTO): Use it rather than a macro definition. | |
5467 | ||
5468 | * coffcode.h (coff_write_object_contents): set internal_a.magic | |
5469 | to PAGEMAGICPEXECPAGED #if defined (M68) && !defined (LYNXOS). | |
5470 | ||
4c8b9746 | 5471 | * configure.in: m68*-motorola-sysv* does not use ptrace-core.o; |
7f82c7e1 ILT |
5472 | define TRAD_HEADER to new file hosts/delta68.h. |
5473 | m88*-motorola-sysv*, however, does use ptrace-core.o. | |
5474 | * hosts/delta68.h: New file. | |
5475 | ||
5476 | * ptrace-core.c (ptrace_unix_core_file_p): change bfd_zmalloc to | |
5477 | bfd_zalloc; provide proper parm abfd to calls to bfd_zalloc. | |
5478 | ||
619c7730 KR |
5479 | Wed Nov 1 13:51:54 1995 Ken Raeburn <[email protected]> |
5480 | ||
5481 | * i386linux.c (MY(vec)): Declare before use. | |
5482 | ||
73246ff8 ILT |
5483 | Wed Nov 1 11:45:07 1995 Ian Lance Taylor <[email protected]> |
5484 | ||
e8d6d5d0 ILT |
5485 | * reloc16.c (bfd_coff_reloc16_get_relocated_section_contents): |
5486 | Pass input_bfd, not in_bfd, to bfd_coff_reloc16_extra_cases. | |
5487 | ||
b2193cc5 ILT |
5488 | * elf.c (bfd_elf_set_dt_needed_name): Don't do anything if the |
5489 | BFD is not of the right type. | |
5490 | (bfd_elf_get_needed_list): Likewise. | |
5491 | * i386linux.c (bfd_linux_size_dynamic_sections): Likewise. | |
5492 | * sunos.c (bfd_sunos_get_needed_list): Likewise. | |
5493 | * xcofflink.c (XCOFF_XVECP): Define. | |
5494 | (bfd_xcoff_link_record_set): Don't do anything if the BFD is not | |
5495 | of the right type. | |
5496 | (bfd_xcoff_import_symbol): Likewise. | |
5497 | (bfd_xcoff_export_symbol): Likewise. | |
5498 | (bfd_xcoff_link_count_reloc): Likewise. | |
5499 | (bfd_xcoff_record_link_assignment): Likewise. | |
5500 | (bfd_xcoff_size_dynamic_sections): Likewise. | |
5501 | ||
baabeb74 ILT |
5502 | * sunos.c (sunos_scan_ext_relocs): Only check the reloc symbol |
5503 | table index against the number of symbols for a base relative | |
5504 | reloc. | |
5505 | ||
73246ff8 ILT |
5506 | * coff-rs6000.c (_bfd_xcoff_sizeof_headers): Change from macro to |
5507 | static function. | |
5508 | * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): Set | |
5509 | full_aouthdr flag here... | |
5510 | (_bfd_xcoff_bfd_final_link): ...not here. | |
5511 | ||
6ab826bd FF |
5512 | Tue Oct 31 12:52:02 1995 Fred Fish <[email protected]> |
5513 | ||
5514 | * libelf.h: Rename to elf-bfd.h to avoid conflict with | |
5515 | systems that have a system <libelf.h>. | |
5516 | * Makefile.in: Globally replace libelf.h with elf-bfd.h. | |
5517 | * bfd.c, elf.c, elf32-arc.c, elf32-gen.c, elf32-hppa.c, | |
5518 | elf32-hppa.h, elf32-i386.c, elf32-i860.c, elf32-m68k.c, | |
5519 | elf32-m88k.c, elf32-mips.c, elf32-ppc.c, elf32-sparc.c, | |
5520 | elf64-gen.c, elf64-sparc.c, elfcode.h, elflink.c, | |
5521 | elfxx-target.h: Include elf-bfd.h rather than libelf.h. | |
5522 | * elfxx-target.h: Change libelf.h reference to elf-bfd.h. | |
5523 | ||
999cc186 ILT |
5524 | Tue Oct 31 15:30:07 1995 David Mosberger-Tang <[email protected]> |
5525 | ||
0652d579 ILT |
5526 | * ecoff.c (ecoff_set_symbol_info): Add new parameter weak. If |
5527 | set, set BSF_WEAK in symbol. Change all callers. | |
5528 | (ecoff_get_extr): Set weakext based on BSF_WEAK. | |
5529 | (ecoff_link_add_externals): If weakext is set, pass BSF_WEAK to | |
5530 | _bfd_generic_link_add_one_symbol. | |
5531 | (ecoff_indirect_link_order): Check that the section tdata relocs | |
5532 | are not NULL before using them. | |
5533 | ||
999cc186 ILT |
5534 | * configure.in (alpha*-*-linux*): Set COREFILE to trad-core.o and |
5535 | define TRAD_HEADER as hosts/alphalinux.h. | |
5536 | * configure: Rebuild. | |
5537 | * hosts/alphalinux.h: New file. | |
5538 | * trad-core.c (trad_unix_core_file_p): Cast u.u_ar0 to bfd_vma, | |
5539 | not int. | |
5540 | ||
e6080520 ILT |
5541 | Tue Oct 31 12:34:11 1995 Ian Lance Taylor <[email protected]> |
5542 | ||
2bd0aeb9 ILT |
5543 | * coffcode.h (coff_slurp_symbol_table): Accept C_BCOMM and |
5544 | C_ECOMM storage classes. | |
5545 | ||
e6080520 ILT |
5546 | * xcofflink.c (xcoff_mark_symbol): New static function, broken out |
5547 | of xcoff_mark. | |
5548 | (xcoff_mark): Call xcoff_mark_symbol. | |
5549 | (bfd_xcoff_export_symbol): Call xcoff_mark_symbol. | |
5550 | (bfd_xcoff_link_count_reloc): Call xcoff_mark_symbol rather than | |
5551 | doing it by hand. | |
5552 | (xcoff_build_ldsyms): Build a .loader symbol for an export symbol. | |
5553 | ||
5fe14a9f ILT |
5554 | Mon Oct 30 14:53:48 1995 Ian Lance Taylor <[email protected]> |
5555 | ||
f630a0a4 ILT |
5556 | * xcofflink.c (struct xcoff_final_link_info): Add new line_filepos |
5557 | field. | |
5558 | (xcoff_find_reloc): New static function. | |
5559 | (xcoff_link_add_symbols): Use it. | |
5560 | (_bfd_xcoff_bfd_final_link): Set finfo.line_filepos. | |
5561 | (xcoff_link_input_bfd): Handle C_BINCL and C_EINCL. Don't | |
5562 | relocate the value of C_DECL. | |
5563 | ||
5fe14a9f ILT |
5564 | * elf.c (elf_fake_sections): Remove bogus BFD_ASSERT. |
5565 | ||
dff77ed7 SC |
5566 | Sat Oct 28 01:25:34 1995 steve chamberlain <[email protected]> |
5567 | ||
5568 | * cofflink.c (_bfd_coff_generic_relocate_section): Make | |
5569 | callback decide what goes in .relocs. | |
5570 | * pe[i]-i386.c (TARGET_UNDERSCORE): Define. | |
5571 | * peicode.h (pe_mkobject_hook): Only copy aouthdr if | |
5572 | there is one. | |
5573 | ||
697a8fe8 ILT |
5574 | Sat Oct 28 01:51:02 1995 Ian Lance Taylor <[email protected]> |
5575 | ||
5576 | * xcofflink.c (xcoff_link_add_symbols): Handle csects in the | |
5577 | absolute section. | |
5578 | ||
2d7de17d ILT |
5579 | Fri Oct 27 18:14:39 1995 Ian Lance Taylor <[email protected]> |
5580 | ||
5581 | * xcofflink.c: More improvements, mostly to fix handling of | |
5582 | constructors and a few other special cases. | |
5583 | * coff-rs6000.c (rs6000coff_vec): Set symbol_leading_char back to | |
5584 | zero, reverting yesterday's change. | |
5585 | * bfd-in.h (bfd_xcoff_link_record_set): Declare. | |
5586 | (bfd_xcoff_link_count_reloc): Declare. | |
5587 | (bfd_xcoff_record_link_assignment): Declare. | |
5588 | * bfd-in2.h: Rebuild. | |
5589 | ||
f552f751 NH |
5590 | Fri Oct 27 14:42:15 1995 Niklas Hallqvist <[email protected]> |
5591 | ||
4906b2a3 | 5592 | * PORTING, aout-arm.c, aout-encap.c, aout-target.h, |
f552f751 NH |
5593 | aoutx.h, gen-aout.c, host-aout.c, hp300bsd.c, i386aout.c |
5594 | i386bsd.c, i386dynix.c, i386linux.c, i386lynx.c, i386mach3.c, | |
5595 | i386netbsd.c, m68klynx.c, m88kmach3.c, mipsbsd.c, newsos3.c, | |
5596 | ns32knetbsd.c, pc532-mach.c, riscix.c, sparclynx.c, sparcnetbsd.c: | |
5597 | Change PAGE_SIZE to TARGET_PAGE_SIZE. | |
5598 | ||
5599 | * m68knetbsd.c: Ditto as well as add support for the m68k4k object | |
5600 | format. | |
5601 | ||
5602 | * netbsd.h: Double ditto (incl. m68k4k support). NetBSD's text | |
5603 | segments includes the a.out header. See to that the magic number | |
5604 | *always* is big-endian. | |
5605 | ||
5606 | * config.bfd: Add m68*-hp*-netbsd* case. Cross-pollinate m68k and | |
5607 | m68k4k NetBSD configurations. | |
5608 | ||
5609 | * configure.in, configure: Separate i386 & mips NetBSD | |
5610 | configurations from other BSD ones. Don't assume DEC is the only | |
5611 | thing NetBSD/mips run on. Add {m68k,ns32k,sparc}-*-netbsd* | |
5612 | configurations. Add support for m68k4k NetBSD object format. | |
5613 | ||
5614 | * libaout.h: Added M_68K4K_NETBSD magic. | |
6fd1f40d NH |
5615 | |
5616 | * m68k4knetbsd.c: New file. | |
f552f751 NH |
5617 | |
5618 | * hosts/{m68k,sparc}nbsd.h: Don't define HOST_BIG_ENDIAN_P. | |
5619 | ||
5620 | * hosts/nbsd.h: Define HOST_BIG_ENDIAN_P according to | |
5621 | <machine/endian.h>. | |
5622 | ||
6fd1f40d NH |
5623 | * hosts/mipsnbsd.h: New file. |
5624 | ||
d6d44ef9 SG |
5625 | start-sanitize-gm |
5626 | Fri Oct 27 09:41:51 1995 Stu Grossman ([email protected]) | |
5627 | ||
5628 | * config.bfd: Add config stuff for mips*-*-magic* to set | |
5629 | targ_defvec to ecoff_big_vec. | |
5630 | ||
5631 | end-sanitize-gm | |
867d923d ILT |
5632 | Thu Oct 26 14:16:47 1995 Ian Lance Taylor <[email protected]> |
5633 | ||
5634 | * xcofflink.c: Numerous changes to get closer to a working XCOFF | |
5635 | linker. | |
5636 | * libcoff-in.h (struct xcoff_tdata): Add full_aouthdr, | |
5637 | toc_section, and entry_section fields. | |
5638 | (struct xcoff_section_tdata): Remove ldrel_count field. | |
5639 | * libcoff.h: Rebuild. | |
5640 | * coffcode.h (coff_mkobject_hook): Initialize new xcoff_data | |
5641 | fields. | |
5642 | (coff_compute_section_file_positions): If RS6000COFF_C, generate | |
5643 | full a.out header if full_aouthdr is set in xcoff_data. | |
5644 | (coff_write_object_contents): Likewise. Set o_snentry and o_sntoc | |
5645 | based on sections stored in xcoff_data. | |
5646 | * coff-rs6000.c (xcoff_copy_private_bfd_data): Copy new xcoff_data | |
5647 | fields. | |
aad2c618 ILT |
5648 | (xcoff_reloc_type_lookup): Handle BFD_RELOC_CTOR. |
5649 | (rs6000coff_vec): Set symbol_leading_char to '.'. | |
867d923d ILT |
5650 | * coffgen.c (coff_get_symbol_info): If fix_value is set, fix the |
5651 | value stored in ret rather than returning a pointer value. | |
5652 | ||
6bd9ffdb MM |
5653 | Wed Oct 25 23:10:39 1995 Michael Meissner <[email protected]> |
5654 | ||
5655 | * config.bfd (powerpc{,le}-{elf,sysv4,eabi,solaris2}): Remove MAC | |
5656 | format for now. | |
5657 | ||
9d14250f JL |
5658 | Wed Oct 25 16:19:27 1995 Jeffrey A Law ([email protected]) |
5659 | ||
5660 | * som.c (som_slurp_string_table): Allocate the strings with malloc | |
5661 | since they're free'd by free_cached_info. | |
5662 | (som_slurp_symbol_table): Similarly for the symbol table. | |
5663 | ||
a2bd0529 PB |
5664 | Wed Oct 25 14:59:22 1995 Per Bothner <[email protected]> |
5665 | ||
5666 | * Makefile.in (diststuff): Don't make headers. | |
5667 | ||
28a0c103 ILT |
5668 | Wed Oct 25 11:32:54 1995 Ian Lance Taylor <[email protected]> |
5669 | ||
356cd465 ILT |
5670 | * Makefile.in: Rebuild dependencies. |
5671 | ||
1edd3a7b ILT |
5672 | * sunos.c (bfd_sunos_record_link_assignment): Don't do anything if |
5673 | output_bfd is not SunOS. | |
5674 | (bfd_sunos_size_dynamic_sections): Likewise. Don't scan relocs of | |
5675 | non-SunOS input files. | |
5676 | ||
28a0c103 ILT |
5677 | * xcofflink.c: Extensive changes to support linking shared objects |
5678 | and generating a .loader section. | |
5679 | * libcoff-in.h (struct xcoff_tdata): Add import_file_id field. | |
b73322d9 ILT |
5680 | (struct xcoff_section_tdata): Add lineno_count, first_symndx, |
5681 | last_symndx, and ldrel_count fields. | |
28a0c103 ILT |
5682 | * libcoff.h: Rebuild. |
5683 | * coff-rs6000.c (xcoff_howto_table): Correct reloc names. | |
5684 | * coffcode.h (styp_to_sec_flags): Don't set any flags if STYP_PAD | |
5685 | is set. | |
5686 | * bfd-in.h (bfd_xcoff_import_symbol): Declare. | |
5687 | (bfd_xcoff_export_symbol): Declare. | |
5688 | (bfd_xcoff_size_dynamic_sections): Declare. | |
5689 | * bfd-in2.h: Rebuild. | |
5690 | ||
aadf04f7 SS |
5691 | Tue Oct 24 17:44:20 1995 Stan Shebs <[email protected]> |
5692 | ||
5693 | * configure.in: Add xcofflink.o to pmac_xcoff_vec. | |
5694 | * configure: Rebuild. | |
5695 | * mpw-config.in: Add xcofflink.c.o to powerpc-apple-macos. | |
5696 | * coff-pmac.c: Include coff-rs6000.c instead of duplicating its | |
5697 | contents. | |
5698 | (pmac_xcoff_vec): Update to use new xcoff support. | |
5699 | * coff-rs6000.c (xcoff_generic_stat_arch_elt): Make static. | |
5700 | (xcoff_write_armap): Declare buf as unsigned char. | |
5701 | * xcofflink.c (xcoff_link_add_symbols): Declare a local as PTR. | |
5702 | ||
5703 | * mpw-make.sed: Generalize subdir_do edit. | |
5704 | ||
ddf4639b JL |
5705 | Tue Oct 24 10:25:01 1995 Jeffrey A Law ([email protected]) |
5706 | ||
5707 | * hppabsd-core.c (make_bfd_asection): Initialize asect->filepos | |
5708 | correctly. Don't initialize asect->vma. | |
5709 | ||
e7bedf65 KR |
5710 | Fri Oct 20 13:23:48 1995 Ken Raeburn <[email protected]> |
5711 | ||
5712 | * opncls.c (_bfd_new_bfd): If _bfd_chunksize wasn't preset, use | |
5713 | something a little less than the page size. | |
5714 | ||
5715 | Thu Oct 19 13:06:09 1995 Ian Lance Taylor <[email protected]> | |
5716 | ||
5717 | * coff-i960.c (coff_i960_adjust_symndx): Clear *adjustedp. | |
5718 | ||
3a70e298 SC |
5719 | Wed Oct 18 16:20:08 1995 steve chamberlain <[email protected]> |
5720 | ||
5721 | * coff-i386.c (coff_i386_reloc_type_lookup): New. | |
5722 | * coffcode.h (coff_write_object_contents): If .bss is before | |
5723 | .data us that as data_start. | |
5724 | * cofflink.c (_bfd_coff_generic_relocate_section): Get reloc | |
5725 | calc correct. | |
5726 | * peicode.h (add_data_entry): Use _cooked_size of data directory. | |
5727 | (coff_swap_outhdr_out): Hardwire in version number. | |
5728 | ||
5a2846e3 KR |
5729 | Wed Oct 18 16:50:54 1995 Ken Raeburn <[email protected]> |
5730 | ||
3c3a5268 KR |
5731 | * sunos.c (sunos_add_dynamic_symbols): Rename local variables |
5732 | major and minor to *_vno, since the former are also macros in | |
5733 | SunOS header files. Cast result of bfd_alloc to appropriate | |
5734 | type. | |
5735 | ||
5a2846e3 KR |
5736 | * coffgen.c (coff_find_nearest_line): Cast used_by_bfd value |
5737 | before assigning to sec_data. | |
5738 | ||
0f6c885e ILT |
5739 | Wed Oct 18 13:25:17 1995 Ian Lance Taylor <[email protected]> |
5740 | ||
5741 | * ecoff.c (_bfd_ecoff_find_nearest_line): The offset argument is | |
5742 | now relative to the section, not absolute. | |
5743 | * ecofflink.c (_bfd_ecoff_locate_line): Use the right symbol to | |
5744 | get the file name when there is a N_SO directory name. When | |
5745 | handling stabs, remember that section->vma was added to the | |
5746 | offset. | |
5747 | ||
11fa6636 ILT |
5748 | Tue Oct 17 18:24:54 1995 Ian Lance Taylor <[email protected]> |
5749 | ||
5750 | * sunos.c (struct sunos_link_hash_table): Add needed field. | |
5751 | (sunos_link_hash_table_create): Call bfd_release, not free. | |
5752 | (sunos_link_hash_table_create): Initialize needed field. | |
5753 | (sunos_add_dynamic_symbols): Record needed objects. | |
5754 | (bfd_sunos_get_needed_list): New function. | |
5755 | * bfd-in.h (bfd_sunos_get_needed_list): Declare. | |
5756 | * bfd-in2.h: Rebuild. | |
5757 | ||
c974e19e SC |
5758 | Mon Oct 16 14:43:59 1995 steve chamberlain <[email protected]> |
5759 | ||
5760 | * libcoff-in.h (pe_data_type.in_reloc_p): New. | |
5761 | ||
22a35f0b ILT |
5762 | Mon Oct 16 10:52:50 1995 Ian Lance Taylor <[email protected]> |
5763 | ||
54406786 ILT |
5764 | * bfd-in.h (struct bfd_link_needed_list): Rename from |
5765 | bfd_elf_link_needed_list. | |
5766 | * bfd-in2.h: Rebuild. | |
5767 | * elf.c, elflink.h, libelf.h: Corresponding changes. | |
5768 | ||
dd984644 ILT |
5769 | Add start at AIX linker support; no shared libraries yet. |
5770 | * xcofflink.c: New file. | |
5771 | * configure.in (rs600coff_vec): Use xcofflink.o. | |
5772 | * configure: Rebuild. | |
5773 | * libcoff-in.h (struct xcoff_tdata): Add csects and debug_indices | |
5774 | fields. | |
5775 | (struct xcoff_section_tdata): Define. | |
5776 | (xcoff_section_data): Define macro. | |
5777 | (_bfd_xcoff_bfd_link_hash_table_create): Declare. | |
5778 | (_bfd_xcoff_bfd_link_add_symbols): Declare. | |
5779 | (_bfd_xcoff_bfd_final_link): Declare. | |
5780 | (_bfd_ppc_xcoff_relocate_section): Declare. | |
5781 | * libcoff.h: Rebuild. | |
5782 | * coff-rs6000.c: Clean up a bit. | |
5783 | (xcoff_mkobject): Default modtype to 1L, not RE. Initialize | |
5784 | cputype, csects, and debug_indices. | |
5785 | (xcoff_copy_private_bfd_data): Copy cputype. | |
5786 | (xcoff_howto_table): Rename from rs6000coff_howto_table. | |
5787 | (xcoff_rtype2howto): Rename from rs6000coff_rtype2howto. | |
5788 | (xcoff_reloc_type_lookup): Rename from | |
5789 | rs6000coff_reloc_type_lookup. | |
5790 | (coff_relocate_section): Define. | |
5791 | (_bfd_xcoff_sizeof_headers): Define. | |
5792 | (_bfd_xcoff_bfd_get_relocated_section_contents): Define. | |
5793 | (_bfd_xcoff_bfd_relax_section): Define. | |
5794 | (_bfd_xcoff_bfd_link_split_section): Define. | |
5795 | (rs6000coff_vec): For BFD_JUMP_TABLE_LINK, use _bfd_xcoff, not | |
5796 | coff. | |
5797 | * coffcode.h (coff_compute_section_file_positions): If AIX, | |
5798 | increment sofar by SMALL_AOUTSZ if not executable. | |
5799 | (coff_write_object_contents): If AIX, always output an a.out | |
5800 | header; if not executable, header size of SMALL_AOUTSZ. | |
5801 | * hash.c (struct bfd_strtab_hash): Add xcoff field. | |
5802 | (_bfd_stringtab_init): Initialize xcoff field. | |
5803 | (_bfd_xcoff_stringtab_init): New function. | |
5804 | (_bfd_stringtab_add): In XCOFF mode, leave two bytes for length. | |
5805 | (_bfd_stringtab_emit): In XCOFF mode, write out length. | |
5806 | * libbfd-in.h (_bfd_xcoff_stringtab_init): Declare. | |
5807 | * libbfd.h: Rebuild. | |
5808 | * Makefile.in: Rebuild dependencies. | |
5809 | (BFD32_BACKENDS): Add xcofflink.o. | |
5810 | (CFILES): Add xcofflink.c. | |
5811 | ||
22a35f0b ILT |
5812 | * elf32-mips.c (mips_elf_symbol_processing): Set SEC_ALLOC, not |
5813 | SEC_NO_FLAGS, for .acommon section. From Peter Schauer | |
5814 | <[email protected]>. | |
5815 | ||
fb417a21 MM |
5816 | Sat Oct 14 21:36:02 1995 Michael Meissner <[email protected]> |
5817 | ||
5818 | * coff-ppc.c (in_reloc_p): Add, clone from coff-i386.c. | |
5819 | ||
5820 | Fri Oct 13 17:48:43 1995 Ken Raeburn <[email protected]> | |
5821 | ||
5822 | * acconfig.h (HAVE_SYS_PROCFS_H): Undef, with comment. | |
5823 | * config.in: Regenerated. | |
5824 | ||
5825 | * opncls.c (getpagesize) [!HAVE_GETPAGESIZE]: Define as 2048. | |
5826 | (_bfd_chunksize): New variable. | |
5827 | (_bfd_new_bfd): Set it to getpagesize() if negative, and use it | |
5828 | for obstack chunk size. | |
5829 | * configure.in: Check for getpagesize. | |
5830 | * configure: Regenerated. | |
5831 | ||
5832 | Mon Sep 25 22:49:32 1995 Andreas Schwab <[email protected]> | |
5833 | ||
5834 | * trad-core.c (rawptr): Make it a local variable of | |
5835 | ptrace_unix_core_file_p. | |
5836 | ||
b1e46369 SC |
5837 | Fri Oct 13 11:22:01 1995 steve chamberlain <[email protected]> |
5838 | ||
5839 | * coff-arm.c (in_reloc_p): New. | |
5840 | * coff-i386.c (in_reloc_p): New. | |
5841 | * coffcode.h: Allways include peicode.h if COFF_WITH_PE. | |
5842 | (coff_write_object_contents): Only set has_reloc_section | |
5843 | if PE_IMAGE. | |
5844 | * cofflink.c (_bfd_coff_generic_relocate_section): Call | |
5845 | in_reloc_p to decide if reloc should be emitted. | |
5846 | * libcoff.h (pe_data_type.in_reloc_p): New. | |
5847 | * peicode.h (pe_mkobject): Initialize in_reloc_p. | |
5848 | ||
ee9f09cd ILT |
5849 | Wed Oct 11 00:49:29 1995 Ian Lance Taylor <[email protected]> |
5850 | ||
b1e46369 SC |
5851 | * cofflink.c (_bfd_coff_internal_syment_name): Move to coffgen.c. |
5852 | (_bfd_coff_read_internal_relocs): Likewise. | |
5853 | * coffgen.c (_bfd_coff_internal_syment_name): Copy from coffgen.c. | |
5854 | (_bfd_coff_read_internal_relocs): Likewise. | |
5855 | ||
ee9f09cd ILT |
5856 | * elflink.h (elf_link_add_object_symbols): Correct conditions |
5857 | under which type and size change warnings are issued. | |
5858 | ||
78b31b6b ILT |
5859 | Tue Oct 10 18:32:46 1995 Ian Lance Taylor <[email protected]> |
5860 | ||
5861 | * coffgen.c (coff_count_linenumbers): Don't count line numbers for | |
5862 | a symbol which is not in a real section. | |
5863 | (coff_write_native_symbol): Corresponding change. | |
5864 | ||
5865 | * cofflink.c (_bfd_coff_link_hash_newfunc): Rename from | |
5866 | coff_link_hash_newfunc and make non-static. | |
5867 | (_bfd_coff_link_hash_table_init): New function, broken out of | |
5868 | _bfd_coff_link_hash_table_create. | |
5869 | (_bfd_coff_link_hash_table_create): Use it. | |
5870 | (process_embedded_commands): Make static. | |
5871 | * libcoff-in.h ((_bfd_coff_link_hash_newfunc): Declare. | |
5872 | (_bfd_coff_link_hash_table_init): Declare. | |
5873 | * libcoff.h: Rebuild. | |
5874 | ||
5875 | * coffcode.h (coff_mkobject_hook): If RS6000COFF_C, set cputype | |
5876 | field in XCOFF tdata. | |
5877 | (coff_set_arch_mach_hook): Check ifdef RS6000COFF_C, not ifdef | |
5878 | U802ROMAGIC, for clarity. Try to set arch and machine correctly | |
5879 | based on cputype stored in a.out header, or in n_type of initial | |
5880 | .file symbol. | |
5881 | (coff_write_object_contents): Set cputype correctly in a.out | |
5882 | header. | |
5883 | (coff_slurp_symbol_table): Add casts to file_ptr to avoid | |
5884 | warnings. | |
5885 | * coffswap.h (coff_swap_aouthdr_in): Swap in cputype field. | |
5886 | (coff_swap_aouthdr_out): Swap out cputype field. Don't clear | |
5887 | old resv1 field. | |
5888 | * libcoff-in.h (struct xcoff_tdata): Add cputype field. | |
5889 | * libcoff.h: Rebuild. | |
5890 | ||
5891 | * cpu-rs6000.c (rs6000_compatible): New static function. | |
5892 | (bfd_rs6000_arch): Use it. | |
5893 | * cpu-powerpc.c (powerpc_compatible): New static function. | |
5894 | (arch_info_struct): Define various flavours of PowerPC. | |
5895 | (bfd_powerpc_arch): Use powerpc_compatible. Point at | |
5896 | arch_info_struct. | |
5897 | ||
9dd7e56f FF |
5898 | Tue Oct 10 10:50:46 1995 Fred Fish <[email protected]> |
5899 | ||
78b31b6b | 5900 | * Makefile.in (FLAGS_TO_PASS): Remove BISON. |
9dd7e56f | 5901 | |
8235c112 ILT |
5902 | Tue Oct 10 01:28:29 1995 Ian Lance Taylor <[email protected]> |
5903 | ||
5904 | * elflink.h (elf_link_add_object_symbols): Don't warn about | |
5905 | changing the size or type if the old definition was weak. | |
5906 | ||
0322af0d ILT |
5907 | Mon Oct 9 11:24:08 1995 Ian Lance Taylor <[email protected]> |
5908 | ||
49488f2b ILT |
5909 | * coffcode.h (combined_entry_type): Add fix_line field. |
5910 | (coff_slurp_line_table): Warn if we try to set the lineno field of | |
5911 | a symbol twice. | |
5912 | (coff_slurp_symbol_table): If RS6000COFF_C, handle C_BINCL and | |
5913 | C_EINCL by setting fix_line. Fix C_BSTAT symbol value. | |
5914 | * coffgen.c (coff_mangle_symbols): Handle fix_line. | |
5915 | (coff_write_symbol): Only use N_DEBUG if the symbol is in the | |
5916 | absolute section. | |
5917 | (coff_print_symbol): Print fix_value symbols in a useful fashion. | |
5918 | * libcoff.h: Rebuild. | |
5919 | ||
5f710a3a ILT |
5920 | * libcoff-in.h (struct xcoff_tdata): Define. |
5921 | (xcoff_data): Define. | |
5922 | * bfd.c (struct _bfd): Add xcoff_obj_data field to tdata union. | |
5923 | * bfd-in2.h, libcoff.h: Rebuild. | |
5924 | * coff-rs6000.c (xcoff_mkobject): New static function. | |
5925 | (coff_mkobject): Define. | |
5926 | (xcoff_copy_private_bfd_data): New static function. | |
5927 | (coff_bfd_copy_private_bfd_data): Define. | |
5928 | (rs6000coff_howto_table): Change R_TOC complain_on_overflow from | |
5929 | signed to bitfield. | |
5930 | (rs6000coff_vec): Add DYNAMIC to object_flags. | |
5931 | * coffcode.h (sec_to_styp_flags): If RS6000COFF_C, handle .pad and | |
5932 | .loader sections specially. | |
5933 | (coff_new_section_hook): If RS6000COFF_C, get the .text and .data | |
5934 | section alignment from the XCOFF tdata information. | |
5935 | (coff_mkobject_hook): If RS6000COFF_C, set DYNAMIC based on | |
5936 | F_SHROBJ, and copy the extra a.out header information into the | |
5937 | XCOFF tdata structure. | |
5938 | (coff_write_object_contents): If RS6000COFF_C, set F_SHROBJ, | |
5939 | F_DYNLOAD and the extra a.out header information. | |
5940 | (coff_slurp_symbol_table): Set BSF_NOT_AT_END for a C_EXT or | |
5941 | C_HIDEXT symbol with attached csect information. | |
5942 | * coffswap.h (coff_swap_aouthdr_in): If RS6000COFF_C, swap | |
5943 | in the o_maxdata field. | |
5944 | (coff_swap_aouthdr_out): If RS6000COFF_C, swap extra XCOFF fields. | |
5945 | * coffgen.c (coff_renumber_symbols): Don't move any symbol to the | |
5946 | end if BSF_NOT_AT_END is set. | |
3f2c5b2d | 5947 | |
0322af0d ILT |
5948 | * targets.c (bfd_target): Rename _bfd_read_ar_hdr field to |
5949 | _bfd_read_ar_hdr_fn. | |
5950 | * libbfd-in.h (_bfd_read_ar_hdr): Update accordingly. | |
5951 | * bfd-in2.h, libbfd.h: Rebuild. | |
5952 | * archive.c (_bfd_get_elt_at_filepos): Cast _bfd_read_ar_hdr | |
5953 | return value. | |
5954 | (do_slurp_bsd_armap, do_slurp_coff_armap): Likewise. | |
5955 | (bfd_slurp_bsd_armap_f2): Likewise. | |
5956 | (_bfd_slurp_extended_name_table): Likewise. | |
5957 | ||
3266eaff KR |
5958 | Fri Oct 6 16:18:35 1995 Ken Raeburn <[email protected]> |
5959 | ||
5960 | Mon Sep 25 22:49:32 1995 Andreas Schwab <[email protected]> | |
5961 | ||
5962 | * archive.c (bfd_get_next_mapent): Return BFD_NO_MORE_SYMBOLS | |
5963 | when the symbol table is empty. | |
5964 | ||
5965 | * elf32-m68k.c (elf_m68k_size_dynamic_sections): Don't reserve | |
5966 | space for section symbols, since we don't output them either. | |
5967 | (elf_m68k_adjust_dynindx): Removed. | |
5968 | ||
5969 | * ptrace-core.c (rawptr): Make it a local variable of | |
5970 | ptrace_unix_core_file_p. | |
3266eaff | 5971 | |
249479fa MM |
5972 | Fri Oct 6 12:24:47 1995 Michael Meissner <[email protected]> |
5973 | ||
45b5d2f0 MM |
5974 | * coff-rs6000.c (xcoff_write_archive_contents): Return false, not |
5975 | NULL. | |
5976 | ||
249479fa MM |
5977 | * config.bfd (powerpc{,le}-{elf,sysv4,eabi,solaris2}): Add NT, and |
5978 | Mac object file formats. | |
5979 | ||
c53fac12 ILT |
5980 | Fri Oct 6 12:04:02 1995 Ian Lance Taylor <[email protected]> |
5981 | ||
4372f33f ILT |
5982 | * coffgen.c (coff_fix_symbol_name): Don't try to set up file |
5983 | auxent if there isn't one. | |
5984 | (coff_write_symbols): If there is no file auxent, use SYMNMLEN | |
5985 | rather than FILNMLEN as the maximum name length. | |
5986 | ||
0fc9ada9 ILT |
5987 | * coffcode.h (bfd_coff_backend_data): Add new field |
5988 | _bfd_coff_print_aux. | |
5989 | (bfd_coff_print_aux): New static function. | |
5990 | (coff_pointerize_aux_hook (RS6000COFF_C version)): Pointerize the | |
5991 | scnlen field of an XTY_LD csect aux entry. | |
5992 | (coff_print_aux): New static function. | |
5993 | (coff_slurp_symbol_table): Don't pointerize scnlen field; now done | |
5994 | in coff_pointerize_aux_hook. | |
5995 | (bfd_coff_std_swap_table): Initialize new field. | |
5996 | * coffgen.c (coff_print_symbol): Call bfd_coff_print_aux. | |
5997 | * libcoff.h: Rebuild. | |
5998 | * coff-alpha.c (alpha_ecoff_backend_data): Initialize new field. | |
5999 | * coff-mips.c (mips_ecoff_backend_data): Likewise. | |
6000 | ||
7860fe38 ILT |
6001 | * coffcode.h (coff_write_object_contents): On AIX, clear F_RELFLG |
6002 | if there are symbols, for native AIX ld compatibility. | |
6003 | ||
c80cc833 ILT |
6004 | * coffcode.h (bfd_coff_backend_data): Add new field |
6005 | _bfd_coff_pointerize_aux_hook. | |
6006 | (coff_pointerize_aux_hook): Define as a function if RS6000COFF_C | |
6007 | or I960, and as 0 otherwise. | |
6008 | (bfd_coff_std_swap_table): Initialize new field. | |
6009 | * libcoff.h: Rebuild. | |
6010 | * coffgen.c (coff_pointerize_aux): Change parameters to take | |
6011 | symbol pointer instead of type and class, and to take aux index. | |
6012 | Call _bfd_coff_pointerize_aux_hook if it is defined. | |
6013 | (coff_get_normalized_symtab): Always call coff_pointerize_aux. | |
6014 | * coff-alpha.c (alpha_ecoff_backend_data): Initialize all fields. | |
6015 | * coff-mips.c (mips_ecoff_backend_data): Likewise. | |
6016 | ||
c53fac12 ILT |
6017 | * coff-rs6000.c: Add full support for AIX archives. Rewrite old |
6018 | read-only/host-only support. | |
6019 | ||
6020 | * coffcode.h (coff_slurp_symbol_table): Set C_HIDEXT symbols to be | |
6021 | BSF_LOCAL. | |
d11e6b52 ILT |
6022 | (OTHER_GLOBAL_CLASS): Do not define to be C_HIDEXT if |
6023 | RS6000COFF_C. | |
c53fac12 ILT |
6024 | |
6025 | * targets.c (bfd_target): Add _bfd_read_ar_hdr field. Modify | |
6026 | BFD_JUMP_TABLE_ARCHIVE accordingly. | |
6027 | * libbfd-in.h (_bfd_snarf_ar_hdr): Don't declare. | |
6028 | (_bfd_compute_and_write_armap): Declare. | |
6029 | (_bfd_generic_read_ar_hdr): Declare. | |
6030 | (_bfd_read_ar_hdr): Define. | |
6031 | (_bfd_noarchive_read_ar_hdr): Define. | |
6032 | (_bfd_archive_bsd_read_ar_hdr): Define. | |
6033 | (_bfd_archive_coff_read_ar_hdr): Define. | |
6034 | * archive.c: Change all callers of _bfd_snarf_ar_hdr to call | |
6035 | _bfd_read_ar_hdr instead. | |
6036 | (_bfd_generic_read_ar_hdr): Rename from _bfd_snarf_ar_hdr. | |
6037 | (_bfd_compute_and_write_armap): Rename from | |
6038 | compute_and_write_armap. Make non-static. Change all callers. | |
6039 | * ecoff.c (_bfd_ecoff_slurp_armap): Call _bfd_read_ar_hdr rather | |
6040 | than _bfd_snarf_ar_hdr. | |
6041 | * aout-target.h (MY_read_ar_hdr): Define if not defined. | |
6042 | * ieee.c (ieee_read_ar_hdr): Define. | |
6043 | * libecoff.h (_bfd_ecoff_read_ar_hdr): Define. | |
6044 | * oasys.c (oasys_read_ar_hdr): Define. | |
6045 | * som.c (som_read_ar_hdr): Define. | |
6046 | * bfd-in2.h, libbfd.h: Rebuild. | |
6047 | ||
f8e47484 SC |
6048 | Thu Oct 5 14:04:07 1995 steve chamberlain <[email protected]> |
6049 | ||
6050 | * peicode.c (coff_swap_filehdr_in): If symptr is | |
6051 | zero, there aren't any symbols, even if nsyms is set. | |
6052 | ||
2b874a2d ILT |
6053 | Thu Oct 5 11:45:02 1995 Ian Lance Taylor <[email protected]> |
6054 | ||
aca73687 ILT |
6055 | * libecoff.h (struct ecoff_backend_data): Add adjust_headers |
6056 | field. | |
6057 | * ecoff.c (ecoff_sec_to_styp_flags): Check for various Alpha | |
6058 | sections, and set styp correctly for them: .got, .hash, .dynamic, | |
6059 | .liblist, .rel.dyn, .conflic, .dynstr, .dynsym, .comment. | |
6060 | (_bfd_ecoff_styp_to_sec_flags): Check for various Alpha section | |
6061 | types. | |
6062 | (ecoff_sort_hdrs): New static function. | |
6063 | (ecoff_compute_section_file_positions): Return boolean, not void. | |
6064 | Sort the sections by VMA before looking through them. Put the | |
6065 | first non SEC_ALLOC section on a new page. Put every SEC_ALLOC | |
6066 | section on an appropriate boundary within the page. | |
6067 | (ecoff_compute_reloc_file_positions): Check return value of | |
6068 | ecoff_compute_section_file_positions. | |
6069 | (_bfd_ecoff_set_section_contents): Likewise. | |
6070 | (_bfd_ecoff_write_object_contents): Check for various Alpha | |
6071 | section types when incrementing text_size and data_size. Call | |
6072 | adjust_headers backend function if it exists. | |
6073 | * coff-alpha.c (alpha_adjust_headers): New static function. | |
6074 | (alpha_ecoff_backend_data): Initialize adjust_headers field. | |
6075 | * coff-mips.c (mips_ecoff_backend_data): Likewise. | |
6076 | ||
2b874a2d ILT |
6077 | * hosts/i386bsd.h: Restore file incorrectly deleted on Sep 6. |
6078 | ||
c780e5db JL |
6079 | Wed Oct 4 18:15:02 1995 Jeff Law ([email protected]) |
6080 | ||
6081 | * rs6000-core.c (CORE_VERSION_1): Use CORE_VERSION_1 instead | |
6082 | of ALTERNATE_AIX_CORE_FORMAT. | |
6083 | * configure.in (aix4): No longer need CORE_FLAGS. | |
6084 | * configure: Updated. | |
6085 | ||
2a01c351 KR |
6086 | Wed Oct 4 15:36:36 1995 Ken Raeburn <[email protected]> |
6087 | ||
6088 | NS32k changes from Ian Dall: | |
6089 | * aoutx.h (MY_final_link_relocate, MY_relocate_contents): New | |
6090 | macros. | |
6091 | (aout_link_input_section_std, aout_link_input_section_ext, | |
6092 | aout_link_reloc_link_order): Call them instead of _bfd_* | |
6093 | versions. | |
6094 | * aout-target.h (MY_exec_header_not_counted): New macro, defaults | |
6095 | to zero. | |
6096 | (backend_data): Use it instead of hardcoded zero. | |
6097 | ||
6098 | * aout-ns32k.c (CTOR_TABLE_RELOC_HOWTO): New macro. | |
6099 | (MY_swap_std_reloc_out): Use udata.i for KEEPIT, don't call stoi. | |
6100 | ||
6101 | * ns32knetbsd.c: Include bfd.h. | |
6102 | (MY_text_includes_header, MY_bfd_reloc_type_lookup): New macros. | |
6103 | (MY_bfd_reloc_type_lookup): Declare function too. | |
6104 | * pc532-mach.c (set_sizes): Don't declare. | |
6105 | (MY_text_includes_header, MY_exec_header_not_counted): Define. | |
6106 | (backend_data, MY_backend_data): Don't define. | |
6107 | ||
6108 | * config.bfd: Treat ns32k-pc532-ux* like ns32k-pc532-mach*, and | |
6109 | ns32k-*-lites* like ns32k-*-netbsd*. | |
6110 | ||
6111 | * hosts/nbsd.h: Swap order of sys/vmparam.h and sys/param.h, to | |
6112 | compile on lites. | |
6113 | ||
5944d75b ILT |
6114 | Wed Oct 4 14:15:52 1995 Ian Lance Taylor <[email protected]> |
6115 | ||
6116 | * coffcode.h (coff_write_object_contents): Restore setting | |
6117 | f_timdat to 0, deleted on August 22. | |
6118 | ||
db344f82 SC |
6119 | Tue Oct 3 16:28:32 1995 steve chamberlain <[email protected]> |
6120 | ||
6121 | * coffcode.h (coff_bfd_copy_private_symbol_data, | |
6122 | coff_bfd_copy_private_section_data, | |
6123 | coff_bfd_copy_private_bfd_data): ifdef to allow overrides. | |
6124 | * peicode.h (coff_bfd_copy_private_bfd_data): New | |
6125 | (pe_bfd_copy_private_bfd_data): New. | |
6126 | (coff_swap_scnhdr_in): Swap bss size into the right place. | |
6127 | (pe_print_private_bfd_data): Add some newlines. | |
5944d75b | 6128 | |
c780e5db | 6129 | Tue Oct 3 11:53:04 1995 Jeff Law ([email protected]) |
97f1feda JL |
6130 | |
6131 | * som.c (setup_sections): Don't die if a space has no subspaces. | |
6132 | ||
3d7c42c9 ILT |
6133 | Mon Oct 2 14:08:55 1995 Ian Lance Taylor <[email protected]> |
6134 | ||
6135 | * elflink.h (elf_link_add_object_symbols): Don't let a weak | |
6136 | dynamic symbol override a common symbol. Don't change the size or | |
6137 | type if they have been set and the new symbol is not a definition. | |
6138 | Warn if the size or type changes. | |
6139 | ||
c780e5db | 6140 | Sun Oct 1 01:34:41 1995 Jeff Law ([email protected]) |
709af562 JL |
6141 | |
6142 | * som.c (som_begin_writing): Don't write the symbol table or | |
6143 | symbol strings. | |
6144 | (som_finish_writing): Write them here. Place them after the | |
6145 | subspace data, but before the relocs. | |
6146 | ||
6147 | Fri Sep 29 11:01:55 1995 Ian Lance Taylor <[email protected]> | |
6148 | ||
6149 | * sunos.c (sunos_add_one_symbol): Just pass false, not | |
6150 | info->shared_library, to sunos_create_dynamic_sections. | |
6151 | (sunos_scan_ext_relocs): Don't warn about a reloc in the .text | |
6152 | section. | |
6153 | (sunos_check_dynamic_reloc): Remove .text section assertion. | |
6154 | ||
7009e451 SS |
6155 | Thu Sep 28 18:48:47 1995 Stan Shebs <[email protected]> |
6156 | ||
6157 | * config.bfd: Add powerpc-*-macos*, powerpc-*-mpw*. | |
6158 | * configure, configure.in: Add pmac_xcoff_vec case. | |
6159 | * Makefile.in (BFD32_BACKENDS): Add coff-pmac.o. | |
6160 | * coff-pmac.c: New file, PowerMac XCOFF support. | |
6161 | * coffcode.h (coff_set_arch_mach_hook): Add PowerMac case. | |
6162 | * targets.c (pmac_xcoff_vec): Declare. | |
6163 | ||
6164 | * mpw-config.in: Various changes to be compatible with the | |
6165 | autoconf-based configury. | |
6166 | * mpw-make.sed: New file, sed commands to translate Unix | |
6167 | makefile into MPW syntax. | |
6168 | * mpw-make.in: Remove. | |
6169 | * hosts/mpw.h: Remove. | |
6170 | * bfd-in.h, bfd-in2.h: If MPW, include the file that defines | |
6171 | true and false as enums, then define TRUE_FALSE_ALREADY_DEFINED. | |
6172 | ||
b91537be SC |
6173 | Thu Sep 28 17:06:23 1995 steve chamberlain <[email protected]> |
6174 | ||
6175 | * binary.c (binary_get_symtab): Return an empty string on error. | |
6176 | * opncls.c (bfd_fdpenr): Change WIN32 restriction to WINGDB. | |
6177 | ||
30360a6f KK |
6178 | Thu Sep 28 15:30:44 1995 Kim Knuttila <krk@nellie> |
6179 | ||
6180 | * coff-ppc.c: Reformatted according to gnu conventions | |
6181 | Removed irrelevant "if 0" code | |
6182 | ||
20d1e233 ILT |
6183 | Thu Sep 28 11:19:53 1995 Ian Lance Taylor <[email protected]> |
6184 | ||
69fd4fdd ILT |
6185 | * hp300hpux.c (convert_sym_type): Treat secondary symbols as weak |
6186 | symbols rather than as indirect symbols. | |
6187 | (MY(slurp_symbol_table)): Don't do anything special about | |
6188 | secondary symbols. | |
6189 | ||
46b5a892 ILT |
6190 | * coffcode.h (coff_new_section_hook): Make sure that the alignment |
6191 | of .ctors and .dtors sections is no larger than 2. | |
6192 | ||
9db59230 ILT |
6193 | * sunos.c (sunos_add_one_symbol): Don't change |
6194 | bfd_link_hash_common to bfd_link_hash_new, since it may be on the | |
6195 | undef list. | |
6196 | (bfd_sunos_record_link_assignment): Don't put __DYNAMIC in the | |
6197 | dynamic symbols when creating a shared library. | |
6198 | (sunos_scan_ext_relocs): Handle relocs correctly when creating a | |
6199 | shared library. | |
6200 | (sunos_scan_dynamic_symbol): Don't mark the __DYNAMIC symbol as | |
6201 | written even if it is not defined in a regular object. | |
6202 | (sunos_write_dynamic_symbol): Use plt_offset for the address of | |
6203 | the jump table reloc. Add an assertion. Use RELOC_JMP_SLOT | |
6204 | rather than the constant 22. | |
6205 | (sunos_check_dynamic_reloc): Handle creating a shared library. | |
6206 | (sunos_finish_dynamic_link): Set the first entry in the GOT to | |
6207 | zero when creating a shared library. | |
6208 | * aoutx.h (NAME(aout,final_link)): If there is a symbol __DYNAMIC, | |
6209 | write it out at the start of the symbol table. | |
6210 | ||
20d1e233 ILT |
6211 | * Makefile.in (BFD32_BACKENDS): Add coff-arm.o. |
6212 | ||
a11e10fe DE |
6213 | Thu Sep 28 00:58:05 1995 Doug Evans <[email protected]> |
6214 | ||
6215 | * config.bfd: Add arm-*-coff. | |
6216 | * configure.in, configure: Add armcoff_{little,big}_vec. | |
6217 | * targets.c (armcoff_{little,big}_vec): Declare. | |
6218 | (bfd_target_vector): Add armcoff_{little,big}_vec. | |
6219 | * coff-arm.c (armcoff_{little,big}_vec): Always define. | |
6220 | ||
99062cfc ILT |
6221 | Wed Sep 27 10:37:14 1995 Ian Lance Taylor <[email protected]> |
6222 | ||
6223 | * targets.c (bfd_find_target): Remove debugging code. | |
6224 | ||
deacbe0f KK |
6225 | Wed Sep 27 07:23:39 1995 Kim Knuttila <krk@nellie> |
6226 | ||
6227 | * coff-ppc.c, pe-ppc.c, pei-ppc.c: Initial bfd for coff/PE | |
6228 | support on powerpc. | |
6229 | * Makefile.in: added *-ppc files | |
6230 | * coffcode.h: ppc MAGIC, and use peicode.h rather than coffswap.h to | |
6231 | allow pe based .o's to be shared with other tools on ppc/NT | |
6232 | * config.bfd: added powerpc[le]-[pe|winnt] config support | |
6233 | * configure, configure.in: added bfd_powerpc[le]_pe[i]_vec | |
6234 | * peicode.h: Added more section flags for PE on ppc | |
6235 | Added coff_swap_filehdr_out to allow peicode.h to be | |
6236 | used for non-image PE files on ppc. | |
6237 | Check for image, or not, before copying pe_opthdr | |
6238 | * targets.c: Added new bfd's | |
30360a6f KK |
6239 | * targets.c: Removed two inactive bfds that shouldn't have made it this |
6240 | far. | |
deacbe0f | 6241 | |
d22b02e0 MM |
6242 | Tue Sep 26 14:06:41 1995 Michael Meissner <[email protected]> |
6243 | ||
6244 | * elf32-ppc.c (ppc_reloc_type): Rename from reloc_type, and use | |
6245 | explicit values to initialize all relocs. Change all users. | |
6246 | (ppc_elf_brtaken_inner): New function to handle branch predicition | |
6247 | relocs. | |
6248 | (ppc_elf_brtaken_reloc): Ditto. | |
6249 | (ppc_elf_howto_raw): Use new functions. Make sure all unsupported | |
6250 | relocs use ppc_elf_unsupported_reloc. | |
6251 | (ppc_elf_merge_private_bfd_data): Keep track of whether an error | |
6252 | needs to be reported. | |
6253 | (ppc_elf_relocate_section): Support branch prediction relocs. | |
6254 | ||
fcf490c0 ILT |
6255 | Tue Sep 26 12:48:05 1995 Ian Lance Taylor <[email protected]> |
6256 | ||
e6cb7b41 ILT |
6257 | * bfd.c (bfd_assert): Remove \n from string passed to |
6258 | _bfd_error_handler. | |
6259 | ||
1af85fbb ILT |
6260 | * coff-i386.c: (TWO_DATA_SECS): Don't define. |
6261 | * coffcode.h (bfd_coff_backend_data): Remove _bfd_make_section_hook. | |
6262 | (bfd_coff_make_section_hook): Don't define. | |
6263 | (coff_make_section_hook): Remove. | |
6264 | (sec_to_styp_flags): Remove TWO_DATA_SECS case. | |
6265 | (styp_to_sec_flags): Likewise. | |
6266 | (coff_write_object_contents): Likewise. | |
6267 | (bfd_coff_std_swap_table): Don't initialize make_section_hook | |
6268 | field. | |
6269 | * libcoff.h: Rebuild. | |
6270 | * coffgen.c (make_a_section_from_file): Just call | |
6271 | bfd_make_section_anyway, not bfd_make_section or | |
6272 | bfd_coff_make_section_hook. | |
6273 | * ecoff.c (_bfd_ecoff_make_section_hook): Remove. | |
6274 | * libecoff.h (_bfd_ecoff_make_section_hook): Don't declare. | |
6275 | * coff-alpha.c (alpha_ecoff_backend_data): Don't initialize | |
6276 | make_section_hook field. | |
6277 | * coff-mips.c (mips_ecoff_backend_data): Likewise. | |
6278 | ||
fcf490c0 ILT |
6279 | * aoutx.h (translate_from_native_sym_flags): Don't try to stuff |
6280 | pointers into value field for warning and indirect symbols; just | |
6281 | leave the value field alone. | |
6282 | * linker.c (generic_link_add_symbol_list): Use next symbol for | |
6283 | warning and indirect symbols, rather than looking in symbol value. | |
6284 | * ecoff.c (ecoff_set_symbol_info): Remove indirect_ptr_ptr | |
6285 | parameter. Change all callers. Remove support for indirect | |
6286 | symbols; it didn't work anyhow. | |
6287 | (_bfd_ecoff_slurp_symbol_table): Remove indirect_ptr variable. | |
6288 | * syms.c: Change comments about BSF_WARNING and BSF_INDIRECT. | |
6289 | * bfd-in2.h: Rebuild. | |
6290 | ||
cc47d19a MM |
6291 | Mon Sep 25 16:04:09 1995 Michael Meissner <[email protected]> |
6292 | ||
6293 | * elf32-ppc.c (ppc_elf_howto_raw): For all 14-bit branch relocs, | |
6294 | go back to telling the tools this reloc operates on 32 bits. | |
6295 | ||
81449d47 ILT |
6296 | Mon Sep 25 11:48:02 1995 Ian Lance Taylor <[email protected]> |
6297 | ||
7a7fbffb ILT |
6298 | * aout-adobe.c (aout_adobe_callback): Use _bfd_error_handler |
6299 | rather than a direct fprintf. | |
6300 | * archive.c (_bfd_write_archive_contents): Likewise. | |
6301 | * coffcode.h (coff_slurp_symbol_table): Likewise. | |
6302 | * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Likewise. | |
6303 | (ppc_elf_unsupported_reloc): Likewise. | |
6304 | (ppc_elf_relocate_section): Likewise. | |
6305 | * i386linux.c (linux_tally_symbols): Likewise. | |
6306 | (linux_finish_dynamic_link): Likewise. | |
6307 | * osf-core.c (osf_core_core_file_p): Likewise. | |
6308 | * rs6000-core.c (rs6000coff_get_section_contents): Likewise. | |
6309 | * som.c (som_sizeof_headers): Likewise. | |
6310 | * srec.c (srec_bad_byte): Likewise. | |
6311 | * bfd.c (bfd_assert): Likewise. Also change file to be const. | |
6312 | * libbfd-in.h (bfd_assert): Declare first parameter const. | |
6313 | * libbfd.h: Rebuild. | |
6314 | * coff-a29k.c (a29k_reloc): Don't bother to fprintf; returning | |
6315 | bfd_reloc_overflow is enough. | |
6316 | * coff-h8300.c (rtype2howto): Don't bother to fprintf; just abort. | |
6317 | * coff-h8500.c (rtype2howto): Likewise. | |
6318 | * coff-z8k.c (rtype2howto): Likewise. | |
6319 | * coffcode.h (dummy_reloc16_extra_cases): Likewise. | |
6320 | * elf.c (_bfd_elf_get_lineno): Likewise. | |
6321 | (_bfd_elf_no_info_to_howto): Likewise. | |
6322 | (_bfd_elf_no_info_to_howto_rel): Likewise. | |
6323 | * hp300hpux.c (convert_sym_type): Likewise. | |
6324 | (MY(swap_std_reloc_in)): Likewise. | |
6325 | * elf.c (bfd_section_from_shdr): Remove #if 0 sections. | |
6326 | ||
f1c6dd5d ILT |
6327 | * libaout.h (struct aoutdata): Add line_buf field. |
6328 | * aoutx.h (NAME(aout,find_nearest_line)): Remove statics buffer | |
6329 | and filename_buffer. Instead, use a malloc buffer stored in the | |
6330 | new line_buf field. Remove length restrictions. | |
6331 | ||
f0500a41 ILT |
6332 | * coffgen.c (string_size): Remove static variable. |
6333 | (debug_string_size, debug_string_section): Likewise. | |
6334 | (coff_fix_symbol_name): Add string_size_p, debug_string_section_p, | |
6335 | and debug_string_size_p parameters. Use them instead of the | |
6336 | global variables. Change all callers. | |
6337 | (coff_write_symbol): Likewise. | |
6338 | (coff_write_alien_symbol, coff_write_native_symbol): Likewise. | |
6339 | (coff_write_symbols): Add local variables to replace removed | |
6340 | global variables. | |
6341 | ||
25b5a53d ILT |
6342 | * libcoff-in.h (struct coff_section_tdata): Add offset, i, |
6343 | function, and line_base fields. | |
6344 | * libcoff.h: Rebuild. | |
6345 | * coffgen.c (coff_find_nearest_line): Use section tdata to cache | |
6346 | information, rather than using static variables. | |
6347 | ||
641ac26a ILT |
6348 | * sunos.c (sunos_read_dynamic_info): Adjust offsets in an NMAGIC |
6349 | file. From Peter DeWolf <[email protected]>. | |
6350 | ||
81449d47 ILT |
6351 | * init.c (initialized): Remove static variable. |
6352 | (bfd_init): Don't bother setting initialized. | |
6353 | (bfd_check_init): Remove. | |
6354 | * opncls.c (_bfd_new_bfd): Don't call bfd_check_init. | |
6355 | * libbfd.h: Rebuild. | |
6356 | ||
138b9b81 PS |
6357 | Sat Sep 23 01:22:23 1995 Peter Schauer ([email protected]) |
6358 | ||
6359 | * rs6000-core.c (rs6000coff_core_p): Don't check the core file | |
6360 | size for full core dumps. Copy core file header to private data. | |
6361 | (rs6000coff_core_file_failing_command, | |
6362 | rs6000coff_core_file_failing_signal): New functions to extract | |
6363 | the file name and terminating signal from the core file. | |
6364 | * coff-rs6000.c: Use them. | |
6365 | ||
2ffbb79a ILT |
6366 | Fri Sep 22 17:44:47 1995 Ian Lance Taylor <[email protected]> |
6367 | ||
6368 | Change arch info to be const, initialized at compile time. | |
6369 | * archures.c: Reindent many functions. Change CONST to const. | |
6370 | (bfd_arch_info_type): Make arch_name const. Remove disassemble; | |
6371 | nothing set it anyhow. Make next const. | |
6372 | (bfd_arch_info_list): Remove. | |
6373 | (bfd_archures_list): Rename from archures_init_table. Change from | |
6374 | a table of function pointers to a table of bfd_arch_info_type | |
6375 | structure addresses. | |
6376 | (bfd_scan_arch): Rewrite accordingly. Return a const pointer. | |
6377 | (bfd_lookup_arch): Likewise. | |
6378 | (bfd_set_arch_info): Rewrite accordingly. Change argument to be a | |
6379 | const pointer. | |
6380 | (bfd_default_arch_struct): Make const. | |
6381 | (bfd_arch_init, bfd_arch_linkin): Remove. | |
6382 | (bfd_get_arch_info): Return a const pointer. | |
6383 | * init.c (bfd_init): Don't call bfd_arch_init. | |
6384 | * bfd.c (struct _bfd): Make arch_info const. | |
6385 | * bfd-in2.h: Rebuild. | |
6386 | * libbfd.h: Rebuild. | |
6387 | * configure.in: Put & before everything in $selarchs. | |
6388 | * configure: Rebuild. | |
6389 | * cpu-*.c: Change bfd_*_arch from a function which calls | |
6390 | bfd_arch_linkin to a const structure. | |
6391 | * ieee.c (ieee_object_p): Make arch const. | |
6392 | ||
02f85cda MM |
6393 | Fri Sep 22 16:23:18 1995 Michael Meissner <[email protected]> |
6394 | ||
6395 | * reloc.c (bfd_reloc_code_type): Add relocations to support all of | |
6396 | PowerPC V.4. | |
6397 | * bfd-in2.h: Regenerate. | |
6398 | * libbfd.h: Regenerate. | |
6399 | ||
6400 | * elf32-ppc.c (reloc_type): Update names to match current draft. | |
6401 | (ppc_elf_howto_raw): Mark 14 bit relocs as short sized and PC | |
6402 | relative. Update names to current V.4 draft. | |
6403 | (ppc_elf_reloc_type_lookup): Add support for more relocations. | |
6404 | (ppc_elf_relocate_section): Rename relocations to match draft. | |
6405 | ||
dd82c578 MM |
6406 | Thu Sep 21 21:53:18 1995 Michael Meissner <[email protected]> |
6407 | ||
6408 | * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Allow modules | |
6409 | compiled with -mrelocatable-lib to be linked with either normal | |
6410 | modules or -mrelocatable modules. | |
6411 | ||
f69e888e ILT |
6412 | Wed Sep 20 12:03:26 1995 Ian Lance Taylor <[email protected]> |
6413 | ||
e18c4e8f ILT |
6414 | * coffcode.h (coff_write_object_contents): Clear the vstamp field |
6415 | in the a.out header. | |
6416 | ||
f69e888e ILT |
6417 | * aoutx.h (NAME(aout,swap_ext_reloc_out)): Don't set r_extern for |
6418 | a reloc against a local symbol, even if it's not a section. | |
6419 | ||
a5655244 ILT |
6420 | Tue Sep 19 17:02:26 1995 Ian Lance Taylor <[email protected]> |
6421 | ||
6422 | * targets.c (bfd_target): Remove unused align_power_min field. | |
6423 | * bfd-in2.h: Rebuild. | |
6424 | * All backends: Remove initialization of align_power_min. | |
6425 | ||
500d7394 SC |
6426 | Tue Sep 19 14:02:21 1995 steve chamberlain <[email protected]> |
6427 | ||
6428 | * peicode.h (coff_swap_scnhdr_out): Get sizes for BSS right. | |
500d7394 | 6429 | |
049df0a8 ILT |
6430 | Mon Sep 18 14:35:01 1995 Arne H. Juul <[email protected]> |
6431 | ||
6432 | * config.bfd (mips-dec-netbsd*): New target. | |
6433 | * configure.host (mips-dec-netbsd*): New host. | |
6434 | * configure.in (mips-dec-netbsd*): New native. | |
6435 | * configure: Rebuild. | |
6436 | ||
1862bbd8 ILT |
6437 | Fri Sep 15 10:24:36 1995 Ian Lance Taylor <[email protected]> |
6438 | ||
6439 | Make the COFF backend linker merge common types: | |
6440 | * cofflink.c (struct coff_debug_merge_element): Define. | |
6441 | (struct coff_debug_merge_type): Define. | |
6442 | (struct coff_debug_merge_hash_entry): Define. | |
6443 | (struct coff_debug_merge_hash_table): Define. | |
6444 | (coff_debug_merge_hash_table_init): Define. | |
6445 | (coff_debug_merge_hash_table_free): Define. | |
6446 | (coff_debug_merge_hash_lookup): Define. | |
6447 | (struct coff_final_link_info): Add debug_merge field. | |
6448 | (coff_debug_merge_hash_newfunc): New static function. | |
6449 | (_bfd_coff_final_link): Allocate and free debug_merge table. | |
6450 | (coff_link_input_bfd): Merge identical enum, struct and union | |
6451 | types. | |
6452 | ||
a208a70f ILT |
6453 | Thu Sep 14 14:53:58 1995 Ian Lance Taylor <[email protected]> |
6454 | ||
6455 | Convert i960 COFF to use COFF backend linker. | |
6456 | * coff-i960.c (coff_i960_relocate): Use a coff_section_data | |
6457 | structure to store the symbol being used. | |
6458 | (coff_i960_start_final_link): New static function. | |
6459 | (coff_i960_relocate_section): New static function. | |
6460 | (coff_i960_adjust_symndx): New static function. | |
6461 | (coff_start_final_link): Define. | |
6462 | (coff_relocate_section): Define. | |
6463 | (coff_adjust_symndx): Define. | |
6464 | * coffcode.h (bfd_coff_backend_data): Add new callback function | |
6465 | _bfd_coff_start_final_link. | |
6466 | (bfd_coff_start_final_link): Define. | |
6467 | (coff_start_final_link): Define if not defined. | |
6468 | (bfd_coff_std_swap_table): Add coff_start_final_link. | |
6469 | * cofflink.c (_bfd_coff_internal_syment_name): Make globally | |
6470 | visible. | |
6471 | (_bfd_coff_final_link): Call bfd_coff_start_final_link if the | |
6472 | function callback is not NULL. | |
6473 | * libcoff-in.h (struct coff_section_tdata): Add tdata field. | |
6474 | (_bfd_coff_internal_syment_name): Declare. | |
6475 | * libcoff.h: Rebuild. | |
6476 | * configure.in (icoff_big_vec): Add cofflink.o. | |
6477 | (icoff_little_vec): Likewise. | |
6478 | * configure: Rebuild. | |
6479 | ||
f0abedbe FF |
6480 | Wed Sep 13 17:38:23 1995 Fred Fish <[email protected]> |
6481 | ||
6482 | * Makefile.in (clean-info): Remove extraneous tab from line | |
6483 | following action. | |
6484 | ||
aa4b3dc5 ILT |
6485 | Wed Sep 13 13:27:53 1995 Ian Lance Taylor <[email protected]> |
6486 | ||
6487 | * cofflink.c (coff_link_input_bfd): Fail if a section with no | |
6488 | contents has relocs. | |
6489 | ||
4ca63811 | 6490 | Thu Sep 12 12:45:34 1995 steve chamberlain <[email protected]> |
beee31b1 SC |
6491 | |
6492 | * coffcode.h (coff_compute_section_file_positions): Keep the | |
6493 | raw size safe. | |
6494 | (coff_write_object_contents): Remember if it's a relocatable | |
6495 | file. | |
6496 | * libcoff-in.h (pe_data_type): New member 'has_reloc_section' | |
6497 | * peicode.h (coff_swap_filehdr_out): Clear not-reloc flag | |
6498 | if relocatable file. Swap out saved raw size. | |
6499 | ||
ae115e51 ILT |
6500 | Tue Sep 12 12:14:33 1995 Ian Lance Taylor <[email protected]> |
6501 | ||
9521bac3 ILT |
6502 | * Makefile.in (do_maintainer_clean): Rename from do_realclean. |
6503 | (maintainer-clean): Rename from realclean, passing | |
6504 | maintainer-clean down to subdirectories, but leave realclean as a | |
6505 | synonym. | |
6506 | ||
4ca63811 ILT |
6507 | * linker.c (_bfd_generic_link_add_one_symbol): Pass symbol name to |
6508 | warning callback. | |
6509 | ||
5aa4c3ff ILT |
6510 | * dep-in.sed: Remove config.h from generated dependencies. |
6511 | ||
396aaeb2 ILT |
6512 | * sunos.c (sunos_slurp_dynamic_symtab): New static function, |
6513 | broken out of sunos_canonicalize_dynamic_symtab. | |
6514 | (sunos_canonicalize_dynamic_symtab): Call new function | |
6515 | sunos_slurp_dynamic_symtab. | |
6516 | (sunos_add_dynamic_symbols): Add three new parameters. Return the | |
6517 | dynamic symbol table to the caller. | |
6518 | * aoutx.h (aout_link_add_symbols): Permit add_dynamic_symbols | |
6519 | callback to override the symbols being read. | |
6520 | * libaout.h (struct aout_backend_data): Add three new parameters | |
6521 | to add_dynamic_symbols callback. | |
6522 | ||
ae115e51 ILT |
6523 | Extensive minor changes to avoid various gcc warnings. Also: |
6524 | * Makefile.in (BFD32_BACKENDS): Remove coff-arm.o. | |
6525 | * archures.c (bfd_arch_info_type): Change mach field from long to | |
6526 | unsigned long. | |
6527 | (bfd_lookup_arch): Change machine parameter from long to unsigned | |
6528 | long. | |
6529 | ||
b088e4b2 ILT |
6530 | Mon Sep 11 10:55:47 1995 Ian Lance Taylor <[email protected]> |
6531 | ||
6532 | * sunos.c (sunos_scan_std_relocs): Fix BFD_ASSERT: it's OK to find | |
6533 | a symbol with a non-zero plt_offset. | |
6534 | ||
1dff7902 ILT |
6535 | Fri Sep 8 11:47:24 1995 Ian Lance Taylor <[email protected]> |
6536 | ||
2b71e1e4 ILT |
6537 | * elfcode.h (align_file_position): Remove; not used. |
6538 | ||
1dff7902 ILT |
6539 | * configure.in: Only check for <sys/procfs.h> on a native system, |
6540 | and make sure it defines prstatus_t. | |
6541 | * configure: Rebuild. | |
6542 | ||
870015b1 ILT |
6543 | Thu Sep 7 12:48:01 1995 Ian Lance Taylor <[email protected]> |
6544 | ||
535c89f0 ILT |
6545 | * sunos.c (sunos_write_dynamic_symbol): Correct m68k abort test. |
6546 | ||
936b870c ILT |
6547 | * config.in: Rename from config.h.in. |
6548 | * configure.in: Call AC_CONFIG_HEADER with config.h:config.in. | |
a7873a6c | 6549 | Check for config.h:config.in when creating stamp-h. |
936b870c | 6550 | * configure: Rebuild. |
a7873a6c ILT |
6551 | * Makefile.in (stamp-h): Depend upon config.in rather than |
6552 | config.h.in. Set CONFIG_HEADERS to config.h:config.in when | |
6553 | calling config.status. | |
936b870c | 6554 | |
870015b1 ILT |
6555 | * Makefile.in (do_distclean): Remove config.h and stamp-h. |
6556 | (Makefile): Just rebuild Makefile. | |
6557 | (config.h, stamp-h): New targets. | |
6558 | * configure.in: Create stamp-h when rebuilding config.h. | |
6559 | * configure: Rebuild. | |
6560 | ||
b7577823 ILT |
6561 | Wed Sep 6 15:00:33 1995 Ian Lance Taylor <[email protected]> |
6562 | ||
6563 | * configure.in: Call AC_CONFIG_HEADER. Substitute | |
6564 | HOST_64BIT_LONG. Check that various header files exist. Check | |
6565 | that fcntl exists. Call BFD_BINARY_FOPEN. Check whether malloc | |
6566 | and/or free need to be declared. Don't make a link to sysdep.h. | |
6567 | Define TRAD_HEADER for various hosts. | |
6568 | * configure: Rebuild. | |
6569 | * configure.host: Don't set my_host. Add definitions taken from | |
6570 | host header files for various entries. Remove entries which now | |
6571 | do nothing. | |
6572 | * acconfig.h: New file. | |
6573 | * config.h.in: New file, built by autoheader. | |
6574 | * sysdep.h: New file. | |
6575 | * Makefile.in (do_distclean): Don't remove sysdep.h. | |
6576 | (RECONFIG): Remove. | |
6577 | (LOCAL_H_DEPS): New variable. | |
6578 | ($(BFD_LIBS)): Use $(LOCAL_H_DEPS) rather than libbfd.h and | |
6579 | $(RECONFIG). | |
6580 | ($(BFD_MACHINES), $(BFD_BACKENDS)): Likewise. | |
6581 | ($(OPTIONAL_BACKENDS)): Likewise. | |
6582 | (stmp-bfd.h): Just substitute for BFD_HOST_64BIT_LONG, rather than | |
6583 | looking through sysdep.h. | |
6584 | * bfd-in.h (BFD_HOST_64BIT_LONG): Define; set by Makefile. | |
6585 | (BFD_HOST_64_BIT): Define based on BFD_HOST_64BIT_LONG. | |
6586 | (fprintf_vma, sprintf_vma): Likewise. | |
6587 | (int64_type, uint64_type): Don't define. | |
6588 | * bfd-in2.h: Rebuild. | |
6589 | * archures.c, bfd.c, srec.c: Include <ctype.h>. | |
6590 | * elfcore.h: Check HAVE_SYS_PROCFS_H rather than HAVE_PROCFS. | |
6591 | * lynx-core.c: Include stuff from old hosts/lynx.h. | |
6592 | * opncls.c (bfd_fdopenr): Check HAVE_FNCTL and defined (F_GETFL), | |
6593 | rather than NO_FCNTL. | |
6594 | * targets.c (bfd_target_list): Check HOST_HPPAHPUX and ! __STDC__ | |
6595 | rather than NATIVE_HPPAHPUX_COMPILER. | |
6596 | * trad-core.c: Don't include <errno.h>. Include TRAD_HEADER if it | |
6597 | is defined. | |
6598 | * hosts/*.h: Remove all header files which merely include, | |
6599 | declare, and define things. Leave header files which define | |
6600 | information needed by trad-core.c. | |
6601 | ||
6602 | * aclocal.m4 (BFD_BINARY_FOPEN): Define. | |
6603 | (BFD_CC_FOR_BUILD): Define. | |
6604 | * configure.in: Use BFD_CC_FOR_BUILD. | |
6605 | * configure: Rebuild. | |
6606 | ||
7a93ebdd ILT |
6607 | Tue Sep 5 19:35:28 1995 Ian Lance Taylor <[email protected]> |
6608 | ||
4c2e4d0e ILT |
6609 | * aclocal.m4: Don't try to grep ../Makefile if it doesn't exist. |
6610 | * configure: Rebuild. | |
6611 | ||
7a93ebdd ILT |
6612 | * coff-sparc.c (CALC_ADDEND): Don't set the addend to the value of |
6613 | a global symbol. | |
6614 | ||
866bb9e5 JM |
6615 | Tue Sep 5 12:48:26 1995 Jason Molenda ([email protected]) |
6616 | ||
6617 | * config.bfd: i386pe_ve -> i386pe_vec. | |
6618 | ||
2b79a104 ILT |
6619 | Mon Sep 4 14:02:43 1995 Ian Lance Taylor <[email protected]> |
6620 | ||
f515fb2f ILT |
6621 | * configure.host: Incorporate host Makefile fragments by setting |
6622 | shell variables. | |
6623 | * configure.in: Call AC_PROG_CC. Substitute CFLAGS, HDEFINES and | |
6624 | AR. Call AC_PROG_INSTALL. Substitute CC_FOR_BUILD, choosing a | |
6625 | value based on whether the code is being compiled by a cross | |
6626 | compiler. Don't substitute host_makefile_frag or frags. | |
6627 | * aclocal.m4: New file to define local AC_PROG_CC. | |
6628 | * configure: Rebuild. | |
6629 | * Makefile.in (INSTALL): Set to @INSTALL@. | |
6630 | (INSTALL_PROGRAM): Set to @INSTALL_PROGRAM@. | |
6631 | (INSTALL_DATA): Set to @INSTALL_DATA@. | |
6632 | (AR): Set to @AR@. | |
6633 | (CC): Define as @CC@. | |
6634 | (CFLAGS): Set to @CFLAGS@. | |
6635 | (CC_FOR_BUILD): Set to @CC_FOR_BUILD@. | |
6636 | (@host_makefile_frag@): Remove. | |
6637 | (ALL_CFLAGS): Change $(HDEFINES) to @HDEFINES@. Move $(CFLAGS) | |
6638 | after other options. | |
6639 | (config.status): Remove dependency upon @frags@. | |
6640 | * config/*.mh, config/README: Remove. | |
6641 | ||
2b79a104 ILT |
6642 | * config.bfd: Rewrite to incorporate the contents of the Makefile |
6643 | fragments by setting shell variables, rather than merely returning | |
6644 | the name of a Makefile fragment. | |
6645 | * configure.in: Use shell variables set by config.bfd rather than | |
6646 | looking at the target Makefile fragment files. Don't substitute | |
6647 | target_makefile_frag. Do substitute TDEFINES. | |
6648 | * configure: Rebuild. | |
6649 | * Makefile.in (@target_makefile_frag@): Remove. | |
6650 | (ALL_CFLAGS): Change $(TDEFINES) to @TDEFINES@. | |
6651 | * config/*.mt: Remove. | |
6652 | ||
2cb159a5 KR |
6653 | Mon Sep 4 03:13:28 1995 Ken Raeburn <[email protected]> |
6654 | ||
6655 | * configure.in: Put changequote lines around "i[345]86" patterns | |
6656 | section of core file support. | |
6657 | ||
ef07871c JL |
6658 | Sun Sep 3 11:31:58 1995 Jeff Law ([email protected]) |
6659 | ||
6660 | * som.c (som_bfd_print_private_bfd_data): Define to use the | |
6661 | generic version. | |
6662 | ||
1613e075 SC |
6663 | Fri Sep 1 17:08:40 1995 steve chamberlain <[email protected]> |
6664 | ||
6665 | * peicode.h (coff_swap_aouthdr_in): Add ImageBase to | |
6666 | entry, text_start and data_start. | |
6667 | ||
a52a3ce8 ILT |
6668 | Fri Sep 1 18:06:28 1995 Ian Lance Taylor <[email protected]> |
6669 | ||
a21227ef ILT |
6670 | * Makefile.in (OFILES): Remove $(TDEPFILES). |
6671 | * config/apollo.mt (TDEPFILES): Remove. | |
6672 | * config/README: Update. | |
6673 | ||
a52a3ce8 ILT |
6674 | * configure.in: For a native configuration, set COREFILE and |
6675 | COREFLAG based on the canonical host name. | |
6676 | * configure: Rebuild. | |
6677 | * Makefile.in: Rebuild dependencies. | |
6678 | (ALL_CFLAGS): Add @COREFLAG@. | |
6679 | (OFILES): Replace $(HDEPFILES) with @COREFILE@. | |
6680 | * coff-rs6000.c: Check AIX_CORE rather than HOST_AIX for core file | |
6681 | support routines. Check LYNX_CORE rather than HOST_LYNX. | |
6682 | * lynx-core.c: Check LYNX_CORE rather than HOST_LYNX. | |
6683 | * i386lynx.c: Likewise. | |
6684 | * m68klynx.c: Likewise. | |
6685 | * sparclynx.c: Likewise. | |
6686 | * rs6000-core.c: Check AIX_CORE rather than HOST_AIX. | |
6687 | * *-core.c: Comment changes. | |
6688 | * config/decstation.mh (HDEPFILES): Remove. | |
6689 | (HDEFINES): Remove -DTRAD_CORE. | |
6690 | * config/irix3.mh (RANLIB): Remove. | |
6691 | * config/irix4.mh (HDEPFILES, RANLIB): Remove. | |
6692 | (HDEFINES): Remove -DIRIX_CORE. | |
6693 | * config/riscos.mh (RANLIB, HDEPFILES): Remove. | |
6694 | (HDEFINES): Remove -DTRAD_CORE. | |
6695 | * config/ncr3000.mh (AR_FLAGS, RANLIB): Remove. | |
6696 | * config/ultra3.mh (RANLIB): Remove. | |
6697 | * config/aix4.mh, config/alphaosf.mh, config/amix.mh: Remove. | |
6698 | * config/apollo.mh, config/delta68.mh, config/delta88.mh: Remove. | |
6699 | * config/dpx2.mh, config/esix.mh, config/harris.mh: Remove. | |
6700 | * config/hp300.mh, config/hp300bsd.mh, config/hppabsd.mh: Remove. | |
6701 | * config/hppahpux.mh, config/hppaosf.mh: Remove. | |
6702 | * config/i386aix.mh, config/i386bsd.mh: Remove. | |
6703 | * config/i386linux.mh, config/i386mach3.mh: Remove. | |
6704 | * config/i386sco.mh, config/i386v.mh, config/i386v4.mh: Remove. | |
6705 | * config/irix5.mh, config/m88kmach3.mh, config/mipsbsd.mh: Remove. | |
6706 | * config/mipsmach3.mh, config/news-mips.mh: Remove. | |
6707 | * config/news.mh, config/pc532mach.mh, config/riscix.mh: Remove. | |
6708 | * config/rs600.mh, config/rs6000lynx.mh: Remove. | |
6709 | * config/solaris2.mh, config/stratus.mh: Remove. | |
6710 | * config/symmetry.mh, config/sysv4.mh, config/tahoe.mh: Remove. | |
6711 | * config/vaxbsd.mh, config/vaxult.mh, config/vaxult2.mh: Remove. | |
6712 | ||
d6f672b8 ILT |
6713 | Fri Sep 1 15:18:50 1995 Kazumoto Kojima <[email protected]> |
6714 | ||
6715 | * elflink.h (elf_bfd_final_link): Don't change a DT_INIT or | |
6716 | DT_FINI entry if the appropriate symbol is not in the hash table. | |
6717 | ||
6718 | * libelf.h (struct elf_backend_data): Add create_program_headers | |
6719 | and want_hdr_in_seg fields. | |
6720 | * elfxx-target.h (elf_backend_want_hdr_in_seg): Define if not | |
6721 | defined. | |
6722 | (elf_backend_create_program_headers): Likewise. | |
6723 | (elfNN_bed): Initialize create_program_headers and | |
6724 | want_hdr_in_seg. | |
6725 | * elf.c (get_program_header_size): Call create_program_headers | |
6726 | backend routine. | |
6727 | (map_program_segments): Check want_hdr_in_seg backend field. Call | |
6728 | create_program_headers backend routine. | |
6729 | ||
6730 | * elf.c (assign_file_positions_except_relocs): Align non allocated | |
6731 | sections when creating an executable. | |
6732 | ||
6733 | * elfcode.h (elf_swap_phdr_in): Make non static. | |
6734 | (elf_swap_phdr_out): Make non static. | |
6735 | * libelf.h (bfd_elf32_swap_phdr_in): Declare. | |
6736 | (bfd_elf32_swap_phdr_out): Declare. | |
6737 | (bfd_elf64_swap_phdr_in): Declare. | |
6738 | (bfd_elf64_swap_phdr_out): Declare. | |
6739 | ||
6740 | * ecofflink.c (ecoff_collect_shuffle): New static function. | |
6741 | (_bfd_ecoff_get_accumulated_pdr): New function. | |
6742 | (_bfd_ecoff_get_accumulated_sym): New function. | |
6743 | (_bfd_ecoff_get_accumulated_ss): New function. | |
6744 | * libbfd-in.h (_bfd_ecoff_get_accumulated_pdr): Declare. | |
6745 | (_bfd_ecoff_get_accumulated_sym): Declare. | |
6746 | (_bfd_ecoff_get_accumulated_ss): Declare. | |
6747 | * libbfd.h: Rebuild. | |
6748 | ||
0cb70568 ILT |
6749 | Fri Sep 1 13:20:25 1995 Ian Lance Taylor <[email protected]> |
6750 | ||
d6f672b8 ILT |
6751 | * libecoff.h (_bfd_ecoff_bfd_print_private_bfd_data): Fix typo. |
6752 | ||
0cb70568 ILT |
6753 | * elflink.h (elf_link_add_object_symbols): Handle indirect and |
6754 | warning symbols. If any section is named .gnu.warning.XXX, treat | |
6755 | the contents as a warning to be issued if the symbol XXX is | |
6756 | referenced. | |
6757 | (elf_link_output_extsym): For an indirect or warning symbol, just | |
6758 | output the symbol it points to. | |
6759 | ||
6760 | * linker.c (_bfd_link_hash_newfunc): Don't bother to set bfd_error | |
6761 | if bfd_hash_allocate fails, since it will already be set. | |
6762 | (generic_link_hash_newfunc): Likewise. | |
6763 | (archive_hash_newfunc): Likewise. | |
6764 | (hash_entry_bfd): New static function. | |
6765 | (_bfd_generic_link_add_one_symbol): Pass new arguments to warning | |
6766 | callback. Allocate a new warning using the hash table newfunc. | |
6767 | Use bfd_hash_replace to update the entry in the hash table, rather | |
6768 | than assuming we can copy the fields with structure assignment. | |
6769 | ||
6770 | * hash.c (bfd_hash_replace): New function. | |
6771 | * bfd-in.h (bfd_hash_replace): Declare. | |
6772 | * bfd-in2.h: Rebuild. | |
6773 | ||
f14db880 JSC |
6774 | Fri Sep 1 08:12:50 1995 James G. Smith <[email protected]> |
6775 | ||
6776 | * config.bfd: Add mips*vr4300-*-elf* target. | |
6777 | * config/mipsbvr4300.mt: Added. | |
6778 | ||
1613e075 | 6779 | See file ChangeLog.2 |
e6d739eb | 6780 | |
41126f15 JK |
6781 | \f |
6782 | Local Variables: | |
c6c7035c | 6783 | mode: change-log |
41126f15 | 6784 | left-margin: 8 |
6ec3bb6a ILT |
6785 | fill-column: 74 |
6786 | version-control: never | |
6787 | End: |