Commit | Line | Data |
---|---|---|
25f72752 AM |
1 | 2000-09-18 Alan Modra <alan@linuxcare.com.au> |
2 | ||
3 | * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section | |
4 | to id_sec. | |
5 | (stub_hash_newfunc): Here too. | |
6 | (hppa_add_stub): And here. | |
7 | (elf32_hppa_link_hash_table): Remove stub_section_created, | |
8 | reloc_section_created, first_init_sec and first_fini_sec. Add | |
9 | stub_group. | |
10 | (elf32_hppa_link_hash_table_create): Init to suit. | |
11 | (hppa_get_stub_entry): Add support for grouping stub sections. | |
12 | (hppa_add_stub): Likewise. Remove sec_count param and init/fini | |
13 | section code. Index stub vars by section->id. | |
14 | (elf32_hppa_size_stubs): Likewise. Remove duplicated function | |
15 | exit paths. Zap allocation of above removed vars. Refine | |
16 | link-once test. | |
17 | ||
18 | * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param. | |
19 | * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. | |
20 | (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table | |
21 | rather than pointer to bfd_link_info. | |
22 | (hppa_add_stub): Likewise. | |
23 | (final_link_relocate): Likewise. | |
24 | ||
25 | 2000-09-17 David Huggins-Daines <dhd@linuxcare.com> | |
26 | ||
27 | (elf32_hppa_size_stubs): Don't try to build stubs for discarded | |
28 | link-once sections. | |
29 | ||
4bb5e078 AO |
30 | 2000-09-16 Alexandre Oliva <aoliva@redhat.com> |
31 | ||
32 | * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match | |
33 | ld/emulparams/shelf.sh. | |
34 | ||
0752970e NC |
35 | 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG> |
36 | ||
37 | * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function. | |
38 | * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration. | |
39 | * bfd-in2.h: Regenerate. | |
40 | ||
ffcb7aff NC |
41 | 2000-09-15 Kenneth Block <Kenneth.Block@compaq.com> |
42 | ||
43 | * bfd/elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs | |
44 | LITUSE relocations incorrectly if -relax is specified on the ld | |
45 | command line and the displacement field of the load or store | |
46 | instruction is non-zero. (Patch by paul.winalski@compaq.com) | |
47 | ||
d5c73c2f AM |
48 | 2000-09-15 Alan Modra <alan@linuxcare.com.au> |
49 | ||
50 | * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and | |
51 | first_fini_sec here. | |
52 | (elf32_hppa_size_stubs): Instead correctly find the first .init | |
53 | and .fini section here. | |
54 | ||
55 | 2000-09-15 David Huggins-Daines <dhd@linuxcare.com> | |
56 | ||
57 | * elf32-hppa.c (clobber_millicode_symbols): New function. | |
58 | (elf32_hppa_size_dynamic_sections): Call it. | |
59 | ||
74d1c347 AM |
60 | 2000-09-14 Alan Modra <alan@linuxcare.com.au> |
61 | ||
62 | * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call | |
63 | packed. Add plabel, plt_abs packed booleans. | |
64 | (hppa_link_hash_newfunc): Init new fields. | |
65 | (PLABEL_PLT_ENTRY_SIZE): Define. | |
66 | (hppa_stub_name): Use size_t len vars. | |
67 | (hppa_add_stub): Likewise. | |
68 | (elf32_hppa_build_stubs): Likewise. | |
69 | (hppa_build_one_stub): Kill some compiler warnings. | |
70 | (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs | |
71 | if dynamic linking. Munge the local plt offsets into | |
72 | local_got_refcounts. Set h->plabel for all global PLABELs. Use | |
73 | size_t len vars. Add assert for plabel addend. | |
74 | (elf32_hppa_gc_sweep_hook): Sweep local plt entries too. | |
75 | (elf32_hppa_hide_symbol): New function. | |
76 | (elf_backend_hide_symbol): Define. | |
77 | (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries | |
78 | with h->plabel set. Don't make plt entries to have dynamic syms | |
79 | when they have been forced local. If plt entry is used by a | |
80 | plabel, make it PLABEL_PLT_ENTRY_SIZE. | |
81 | (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns. | |
82 | Set up .plt offsets for local syms. | |
83 | (elf32_hppa_relocate_section): Initialise plt entries for local | |
84 | syms. Leave weak undefined plabels zero. Make global plabel | |
85 | relocs against function symbol, and leave the addend zero. | |
86 | Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs. | |
87 | (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for | |
88 | non-dynamic syms. Init extra plt for plabels. Use *ABS* DIR32 | |
89 | relocs instead of SEGREL32 for dynamic got relocs. | |
90 | (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry. | |
91 | (elf_backend_got_header_size): Adjust. | |
92 | (elf32_hppa_set_gp): Calculate an "ideal" LTP. | |
93 | ||
94 | * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define. | |
95 | (hppa_type_of_stub): Use it instead of #if 0 | |
96 | (hppa_discard_copies): Use it here too. | |
97 | (elf32_hppa_size_dynamic_sections): And here. | |
98 | ||
99 | * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field. | |
100 | (elf32_hppa_link_hash_table_create): And here. | |
101 | (hppa_build_one_stub): And here. Instead keep track of stub | |
102 | offset using _raw_size. | |
103 | (elf32_hppa_size_stubs): Likewise. | |
104 | (elf32_hppa_build_stubs): Likewise. | |
105 | (hppa_size_one_stub): Likewise. Resize reloc section too. | |
106 | ||
107 | * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and | |
108 | first_fini_sec handling. Don't search for reloc section or set | |
109 | hplink->reloc_section_created here. | |
110 | (elf32_hppa_size_stubs): Instead search for reloc sections, and | |
111 | set reloc_section_created here. | |
112 | (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT. | |
113 | (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT | |
114 | and DT_FINI. | |
115 | (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI. | |
116 | ||
117 | * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)' | |
118 | with `hplink->root.'. | |
119 | (elf32_hppa_check_relocs): Likewise. | |
120 | (elf32_hppa_gc_sweep_hook): Likewise. | |
121 | (elf32_hppa_adjust_dynamic_symbol): Likewise. | |
122 | (hppa_handle_PIC_calls): Likewise. | |
123 | (elf32_hppa_size_dynamic_sections): Likewise. | |
124 | (elf32_hppa_set_gp): Likewise. | |
125 | (elf32_hppa_relocate_section): Likewise. | |
126 | (elf32_hppa_finish_dynamic_symbol): Likewise. | |
127 | (elf32_hppa_finish_dynamic_sections): Likewise. | |
128 | ||
129 | From David Huggins-Daines <dhd@linuxcare.com> | |
130 | * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for | |
131 | defined weak symbols in shared links. | |
132 | (final_link_relocate): Calls to defined weak symbols in shared | |
133 | objects must go via import stubs, as the target might not be known | |
134 | at link time. | |
135 | ||
06bb75c1 AO |
136 | 2000-09-14 Alexandre Oliva <aoliva@redhat.com> |
137 | ||
138 | * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32, | |
139 | R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE, | |
140 | R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167. Replaced | |
141 | the original entries with EMPTY_HOWTOs, and added new ones to fill | |
142 | in the gap. | |
143 | (sh_elf_info_to_howto): Make sure the new gap isn't used. | |
144 | (sh_elf_relocate_section): Likewise. | |
145 | ||
156c2f8b NC |
146 | 2000-09-13 Anders Norlander <anorland@acc.umu.se> |
147 | ||
148 | * cpu-mips.c (arch_info_struct): Add mips:4K | |
149 | * bfd-in2.h (bfd_mach_mips4K): New define. | |
150 | * archures.c: Add bfd_mach_mips4K to comment. | |
151 | * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return | |
152 | E_MIPS_ARCH_2 for bfd_mach_mips4K. | |
153 | ||
8681fbcd JL |
154 | Wed Sep 13 19:31:39 2000 Marco Franzen <marcof@thyron.com> |
155 | ||
156 | * som.c (som_write_symbol_strings): Do not used fixed buffers, | |
157 | use size_t as a counter. | |
158 | (som_write_space_strings): Similarly. | |
159 | ||
c1e8b710 JE |
160 | 2000-09-12 Jason Eckhardt <jle@cygnus.com> |
161 | ||
162 | * elf32-i860.c (elf32_i860_relocate_pc26): New function | |
163 | and prototype. | |
164 | (elf32_i860_relocate_section): Invoke new function from here. | |
165 | ||
dbf48117 NC |
166 | 2000-09-11 Michael Sokolov <msokolov@ivan.Harhan.ORG> |
167 | ||
168 | * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names | |
169 | static. | |
170 | ||
ff0829fd NC |
171 | 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG> |
172 | ||
173 | * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for | |
174 | target section name instead of dumping core when the target symbol is | |
175 | undefined. | |
176 | ||
27985c55 KH |
177 | 2000-09-09 Kazu Hirata <kazu@hxi.com> |
178 | ||
179 | * riscix.c: Remove DEFUN. | |
180 | ||
fe077fa6 NC |
181 | 2000-09-08 Nick Clifton <nickc@redhat.com> |
182 | ||
183 | * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not | |
184 | initialise flags in output bfd if the input bfd is the default | |
185 | architecture with the default flags. | |
186 | ||
d70910e8 KH |
187 | 2000-09-08 Kazu Hirata <kazu@hxi.com> |
188 | ||
189 | * archive.c: Fix formatting. | |
190 | * coff-arm.c: Likewise. | |
191 | * doc/chew.c: Likewise. | |
192 | ||
77cb06e9 AM |
193 | 2000-09-08 Alan Modra <alan@linuxcare.com.au> |
194 | ||
195 | * section.c (bfd_get_unique_section_name): Put a dot before the | |
196 | numeric suffix. | |
197 | ||
c044fabd KH |
198 | 2000-09-07 Kazu Hirata <kazu@hxi.com> |
199 | ||
256d98af | 200 | * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID. |
c044fabd KH |
201 | * elf.c: Fix formatting. |
202 | ||
b129bfef AO |
203 | 2000-09-07 Alexandre Oliva <aoliva@redhat.com> |
204 | ||
205 | * config.bfd (sh-*-linux*): Added. | |
206 | * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New. | |
207 | * targets.c: Declare them. | |
208 | * elf32-sh-lin.c: New file. | |
209 | * Makefile.am: Compile it. | |
210 | * elf32-sh.c: Don't override defines from elf32-sh-lin.c. | |
211 | * configure, Makefile.in: Rebuilt. | |
212 | ||
492055e6 GK |
213 | 2000-09-06 Geoffrey Keating <geoffk@cygnus.com> |
214 | ||
215 | * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss | |
77cb06e9 AM |
216 | pseduo-section when determining where the TOC ends. |
217 | ||
218 | * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to | |
219 | output x_tvndx as it is only two bytes wide. | |
220 | ||
221 | * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute | |
222 | reloc is 26 or 32 bits wide. | |
223 | ||
224 | * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant | |
225 | for relocs that don't change anything. Also look at the full | |
226 | 6 bits of bitsize. | |
492055e6 | 227 | |
566ad7d7 PB |
228 | 2000-09-06 Philip Blundell <philb@gnu.org> |
229 | ||
230 | * config.bfd (arm*-*-uclinux*): New target. | |
231 | ||
90f2472a AO |
232 | 2000-09-06 Alexandre Oliva <aoliva@redhat.com> |
233 | ||
234 | * configure: Rebuilt with new libtool.m4. | |
235 | ||
a966dba9 AM |
236 | 2000-09-06 Alan Modra <alan@linuxcare.com.au> |
237 | ||
238 | * section.c (bfd_get_unique_section_name): Avoid c++ reserved | |
239 | word for variable name. | |
240 | * bfd-in2.h: Regenerate. | |
77cb06e9 | 241 | |
5b343f5a NC |
242 | 2000-09-05 Nick Clifton <nickc@redhat.com> |
243 | ||
244 | * config.in: Regenerate. | |
245 | * libbfd.h: Regenerate. | |
246 | * po/bfd.pot: Regenerate. | |
247 | * doc/bfdint.texi: Remove CVS date string - it foils compares with | |
248 | local versions. | |
77cb06e9 | 249 | |
188ac662 GK |
250 | 2000-09-05 Steven Johnson <sbjohnson@ozemail.com.au> |
251 | ||
252 | * cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry. | |
253 | ||
49bd834c AM |
254 | 2000-09-05 Alan Modra <alan@linuxcare.com.au> |
255 | ||
30667bf3 AM |
256 | Shared library and PIC support. |
257 | * elf32-hppa.c (PLT_ENTRY_SIZE): New. | |
258 | (GOT_ENTRY_SIZE): New. | |
259 | (ELF_DYNAMIC_INTERPRETER): New. | |
260 | (STUB_SUFFIX): Define. | |
261 | (LONG_BRANCH_PIC_IN_SHLIB): Define. | |
262 | (RELATIVE_DYNAMIC_RELOCS): Define. | |
263 | (enum elf32_hppa_stub_type): New. | |
264 | (struct elf32_hppa_stub_hash_entry): Rename offset to | |
265 | stub_offset. Add a number of new fields. | |
266 | (struct elf32_hppa_link_hash_entry): New. | |
267 | (struct elf32_hppa_link_hash_table): Add numerous fields. Remove | |
268 | global_value. | |
269 | (elf32_hppa_hash_table): Rename to hppa_link_hash_table. | |
270 | (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup. | |
271 | (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init | |
272 | new fields. | |
273 | (hppa_link_hash_newfunc): New function. | |
274 | (elf32_hppa_link_hash_table_create): Use above function. Init new | |
275 | fields. | |
276 | (elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc | |
277 | instead of addend, and remove sym_name from args. Don't use | |
278 | symbol name for local syms, instead use sym index. | |
279 | (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return | |
280 | stub type rather than size. Pass in hash and handle import stub | |
281 | case. Also pass in reloc instead of offset so we can calculate | |
282 | PCREL22F and PCREL12F branches properly. | |
283 | (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build | |
284 | import and export stubs too. | |
285 | (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle | |
286 | import and export stub sizing. | |
287 | (elf32_hppa_check_relocs): New function. | |
288 | (elf32_hppa_adjust_dynamic_symbol): New function. | |
289 | (hppa_discard_copies): New function. | |
290 | (elf32_hppa_size_dynamic_sections): New function. | |
291 | (elf_backend_size_dynamic_sections): Define. | |
292 | (elf32_hppa_finish_dynamic_symbol): New function. | |
293 | (elf_backend_finish_dynamic_symbol): Define. | |
294 | (elf32_hppa_size_stubs): Stash params in link hash table, and move | |
295 | some local vars into the link hash table too. For shared links, | |
296 | trundle over function syms, generating export stubs. Handle | |
297 | PCREL22F branches. Break out stub creation code from here.. | |
298 | (hppa_add_stub): .. to here. New function. | |
299 | (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't | |
300 | call the bfd linker. Use elf_gp to record global pointer. | |
301 | Calculate a value from sections if $global$ is missing. | |
302 | (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link. | |
303 | (elf32_hppa_gc_mark_hook): New function. | |
304 | (elf_backend_gc_mark_hook): Define. | |
305 | (elf32_hppa_gc_sweep_hook): New function. | |
306 | (elf_backend_gc_sweep_hook): Define. | |
307 | (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate. | |
308 | Add rel to args, and remove howto, input_bfd, offset, addend, | |
309 | sym_name as we can recalculate these locally. Handle calls to | |
310 | dynamic objects, extra PIC relocs, PCREL22F branches. Change | |
311 | handling of undefined weak syms. Check that stubs are in range. | |
312 | Only look for import stubs on PCREL17F and PCREL22F relocs. Add | |
313 | message on hitting a DPREL21L reloc that needs fixing. Subtract | |
314 | off PC for PCREL14F. Break out code that does a stub lookup from | |
315 | here.. | |
316 | (hppa_get_stub_entry): ..to here. New function. | |
317 | (elf32_hppa_relocate_insn): Merge into final_link_relocate. | |
318 | (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic | |
319 | relocs, etc. etc. | |
320 | (elf32_hppa_finish_dynamic_sections): New function. | |
321 | (elf_backend_finish_dynamic_sections): Define. | |
322 | (elf_backend_final_write_processing) Define. | |
323 | (hppa_handle_PIC_calls): New function. | |
324 | (elf32_hppa_build_stubs): Call it. Pass link_info to | |
325 | hppa_build_one_stub. | |
326 | (elf32_hppa_create_dynamic_sections): New function | |
327 | to create .plt and .got then set .plt flags correctly. | |
328 | (elf_backend_create_dynamic_sections): Define. | |
329 | (elf32_hppa_object_p): New function. | |
330 | (elf_backend_object_p): Define. | |
331 | (elf32_hppa_elf_get_symbol_type): New function. | |
332 | (elf_backend_get_symbol_type): Define. | |
333 | (elf_backend_can_gc_sections): Define. | |
334 | (elf_backend_want_got_plt): Define. | |
335 | (elf_backend_plt_alignment): Set to 2. | |
336 | (elf_backend_plt_readonly): Define. | |
337 | (elf_backend_want_plt_sym): Define. | |
338 | (elf_backend_got_header_size): Reserve one entry. | |
339 | ||
340 | * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd. | |
341 | (elf32_hppa_size_stubs): Pass in multi_subspace. | |
342 | (elf32_hppa_set_gp): Declare. | |
343 | ||
1bd91689 AM |
344 | * section.c (SEC_HAS_GOT_REF): Define new flag for asection. |
345 | (bfd_get_unique_section_name): New function. | |
346 | * bfd_in2.h: Regenerate. | |
347 | ||
832d951b AM |
348 | * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F. |
349 | (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc | |
350 | comment. | |
351 | ||
352 | From David Huggins-Daines <dhd@linuxcare.com> | |
353 | * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning. | |
354 | (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx. | |
355 | (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has | |
356 | been updated in finish_dynamic_symbol before modifying function | |
357 | symbol. | |
358 | ||
49bd834c AM |
359 | * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of |
360 | eight entries. Replace NULL with bfd_elf_generic_reloc. Add | |
361 | R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F. | |
362 | (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some | |
363 | comments. Handle format == 12 for R_HPPA_PCREL_CALL. | |
364 | (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F. | |
365 | (elf_hppa_relocate_insn): Likewise. Reformat some comments. | |
366 | (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32. | |
367 | ||
368 | From David Huggins-Daines <dhd@linuxcare.com> | |
369 | * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF | |
370 | style of local labels as well. | |
371 | ||
05924f36 PB |
372 | 2000-09-03 Philip Blundell <philb@gnu.org> |
373 | ||
374 | * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate | |
375 | references to undefined symbols in debugging sections. | |
376 | ||
3d96075c L |
377 | 2000-09-02 H.J. Lu <hjl@gnu.org> |
378 | ||
379 | * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT, | |
380 | BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, | |
381 | BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH | |
382 | section. | |
383 | ||
de24da47 JE |
384 | 2000-09-02 Jason Eckhardt <jle@cygnus.com> |
385 | ||
386 | * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro. | |
387 | (elf32_i860_is_local_label_name): New function and prototype. | |
388 | ||
18e03609 NC |
389 | 2000-09-02 Nick Clifton <nickc@redhat.com> |
390 | ||
391 | * configure.in: Increase version number to 2.10.91. | |
392 | * configure: Regenerate. | |
393 | * aclocal.m4: Regenerate. | |
394 | * config.in: Regenerate. | |
395 | * po/bfd.pot: Regenerate. | |
77cb06e9 | 396 | |
7a6cc5fb NC |
397 | 2000-09-02 Daniel Berlin <dberlin@redhat.com> |
398 | ||
399 | * elf.c (_bfd_elf_make_section_from_shdr): Add | |
400 | .gnu.linkobce.wi. to the list of debug section names. | |
401 | ||
a092b084 NC |
402 | 2000-09-02 Nick Clifton <nickc@redhat.com> |
403 | ||
404 | * dwarf2.c (find_debug_info): New function: Locate a section | |
405 | containing dwarf2 debug information. | |
406 | (bfd_dwarf2_find_nearest_line): Find all sections containing | |
407 | debug information and include them in the stash. | |
408 | ||
37c644f2 AO |
409 | 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com> |
410 | ||
411 | * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT, | |
412 | R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New. | |
413 | (sh_reloc_map): Add new relocs. | |
414 | (sh_elf_check_relocs, sh_elf_link_hash_newfunc, | |
415 | sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol, | |
416 | sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol, | |
417 | sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New | |
418 | functions. | |
419 | (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define. | |
420 | (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le, | |
421 | elf_sh_plt_entry_be, elf_sh_plt_entry_le, | |
422 | elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le): | |
423 | New array constants. | |
424 | (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry): | |
425 | New variables. | |
426 | (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset, | |
427 | elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset, | |
428 | elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset, | |
429 | elf_sh_plt_reloc_offset): Define. | |
430 | (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry, | |
431 | elf_sh_link_hash_table): New structs. | |
432 | (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros. | |
433 | (sh_elf_relocate_section, sh_elf_check_relocs): Handle new | |
434 | relocation types. | |
435 | (elf_backend_create_dynamic_sections, | |
436 | bfd_elf32_bfd_link_hash_table_create, | |
437 | elf_backend_adjust_dynamic_symbol, | |
438 | elf_backend_size_dynamic_sections, | |
439 | elf_backend_finish_dynamic_symbol, | |
440 | elf_backend_finish_dynamic_sections, elf_backend_want_got_plt, | |
441 | elf_backend_plt_readonly, elf_backend_want_plt_sym, | |
442 | elf_backend_got_header_size, elf_backend_plt_header_size): | |
443 | Define. | |
444 | * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT, | |
445 | BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC): | |
446 | New relocs. | |
447 | * bfd-in2.h, libbfd.h: Rebuilt. | |
448 | ||
791987af AM |
449 | 2000-09-01 Alan Modra <alan@linuxcare.com.au> |
450 | ||
451 | * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27 | |
452 | change. | |
453 | ||
a39b79b9 JR |
454 | Thu Aug 31 22:49:30 2000 J"orn Rennecke <amylaar@cygnus.co.uk> |
455 | ||
456 | * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags | |
457 | not initialized, set them to indicate the SH1 instruction set. | |
458 | ||
ac48eca1 AO |
459 | 2000-08-31 Alexandre Oliva <aoliva@redhat.com> |
460 | ||
461 | * acinclude.m4: Include libtool and gettext macros from the | |
462 | top level. | |
463 | * aclocal.m4, configure: Rebuilt. | |
464 | ||
7ee38065 MS |
465 | 2000-08-29 Michael Snyder <msnyder@seadog.cygnus.com> |
466 | ||
467 | * elf.c: Eliminate references to __sparcv9 macro; replace with | |
468 | autoconf variables HAVE_PSINFO32_T etc. | |
469 | * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T, | |
470 | HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO. | |
471 | * config.in: Ditto. | |
472 | * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can | |
473 | detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto. | |
474 | * aclocal.m4: Ditto. | |
475 | * configure: Regenerate. | |
476 | ||
f69da49f AM |
477 | 2000-08-27 Alan Modra <alan@linuxcare.com.au> |
478 | ||
479 | * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied | |
480 | for any shared link, not just shared -Bsymbolic. | |
481 | (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on | |
482 | any shared link, and pass link info to it. | |
483 | (elf_i386_size_dynamic_sections): Update comment. | |
484 | (elf_i386_discard_copies): Modify to discard relocs for symbols | |
485 | that have been forced local. | |
486 | (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols | |
487 | that have been forced local. | |
488 | ||
724982f6 NC |
489 | 2000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com> |
490 | ||
491 | * elflink.h (elf_link_add_object_symbols): Allow common | |
492 | symbols to have an alignment of 1 if explicitly requested, and | |
493 | not overridden by other definitions. | |
494 | ||
371e71b8 NC |
495 | 2000-08-22 Doug Kwan <dkwan@transmeta.com> |
496 | ||
497 | * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo. | |
498 | * coffcode.h (coff_set_flags): Add detection of w65 architecture. | |
499 | ||
a963dc6a L |
500 | 2000-08-22 H.J. Lu <hjl@gnu.org> |
501 | ||
502 | * elf-bfd.h (elf_link_hash_table): Add runpath. | |
503 | ||
504 | * bfd-in.h (bfd_elf_get_runpath_list): New prototype. | |
505 | * bfd-in2.h: Rebuilt. | |
506 | ||
507 | * elf.c (_bfd_elf_link_hash_table_init): Initialize the | |
508 | "runpath" field to NULL. | |
509 | (bfd_elf_get_runpath_list): New function. | |
510 | ||
511 | * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and | |
512 | DT_RUNPATH entries. | |
513 | ||
9bdafcce AO |
514 | 2000-08-22 Alexandre Oliva <aoliva@redhat.com> |
515 | ||
516 | * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W, | |
517 | R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them | |
518 | explicitly. Improve validation of r_type. | |
519 | ||
7a9af8c4 NC |
520 | 2000-08-21 H.J. Lu <hjl@gnu.org> |
521 | ||
522 | * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the | |
523 | dynamic allocated content space. Add a comment to remind us that | |
524 | one day this ought to be fixed. | |
525 | * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise. | |
526 | * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise. | |
527 | * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise. | |
528 | ||
ded0649c JE |
529 | 2000-08-21 Jason Eckhardt <jle@cygnus.com> |
530 | ||
531 | * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate | |
532 | field with the newly relocated value instead of adding it to the | |
533 | existing immediate field. | |
534 | (elf32_i860_relocate_splitn): Likewise. | |
535 | (elf32_i860_relocate_highadj): Likewise. | |
536 | ||
d670a150 JE |
537 | 2000-08-16 Jason Eckhardt <jle@cygnus.com> |
538 | ||
539 | * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it | |
540 | was previously just a stub). | |
541 | ||
bb0deeff AO |
542 | 2000-08-16 Alexandre Oliva <aoliva@redhat.com> |
543 | ||
544 | * elflink.c (_bfd_elf_create_got_section): Don't abort(). | |
545 | Formatting fixes. | |
546 | (_bfd_elf_create_dynamic_sections): Likewise. | |
547 | ||
be040dbb JJ |
548 | 2000-08-16 Andrew Macleod <amacleod@cygnus.com> |
549 | ||
550 | * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address | |
551 | for undefined symbols to be the beginning of the section. | |
552 | ||
553 | * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate | |
554 | four extra entries at the beginning of the .rela.plt section. | |
555 | (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt | |
556 | section to account for the four reserved entries in the .plt section. | |
557 | ||
31612ca6 GK |
558 | 2000-08-15 Geoffrey Keating <geoffk@cygnus.com> |
559 | ||
560 | * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0 | |
561 | to the list of NOPs we recognize after a branch-and-link. | |
562 | Use the ori NOP when one is needed. | |
563 | ||
564 | * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation | |
565 | for large archives. | |
566 | ||
c43c2cc5 JW |
567 | 2000-08-14 Jim Wilson <wilson@cygnus.com> |
568 | ||
569 | * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle | |
570 | EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP. | |
571 | (elf64_ia64_print_private_bfd_data): Likewise. Also handle | |
572 | EF_IA_64_ABSOLUTE. | |
573 | ||
1630fd2b AO |
574 | 2000-08-11 Alexandre Oliva <aoliva@redhat.com> |
575 | ||
576 | * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static. | |
577 | ||
fdeafce7 JE |
578 | 2000-08-10 Jason Eckhardt <jle@cygnus.com> |
579 | ||
77cb06e9 AM |
580 | * elf32-i860.c (elf32_i860_relocate_section): New function. |
581 | (i860_final_link_relocate): New function. | |
582 | (elf32_i860_relocate_splitn): New function. | |
583 | (elf32_i860_relocate_pc16): New function. | |
584 | (elf32_i860_relocate_highadj): New function. | |
585 | (elf32_i860_howto): Minor adjustments to some relocations. | |
586 | (elf_info_to_howto_rel): Define. | |
587 | (elf_backend_relocate_section): Define. | |
fdeafce7 | 588 | |
9b485d32 NC |
589 | 2000-08-10 Nick Clifton <nickc@cygnus.com> |
590 | ||
591 | * elf32-arm.h: Fix formatting. | |
592 | ||
00fdaf47 BS |
593 | 2000-08-10 Bernd Schmidt <bernds@cygnus.co.uk> |
594 | ||
595 | * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static. | |
596 | ||
305d537e JE |
597 | 2000-08-08 Jason Eckhardt <jle@cygnus.com> |
598 | ||
599 | * elf32-i860.c (elf32_i860_howto_table): Updated some fields. | |
600 | ||
46f5aac8 KH |
601 | 2000-08-07 Kazu Hirata <kazu@hxi.com> |
602 | ||
dce61835 KH |
603 | * ieee.c (ieee_write_debug_part): Rewrite a comment. |
604 | * elf64-ia64.c: Fix a typo. | |
46f5aac8 | 605 | |
0e5136c6 JE |
606 | 2000-08-05 Jason Eckhardt <jle@cygnus.com> |
607 | ||
608 | * elf32-i860 (elf32_i860_howto_table): New structure. | |
609 | (lookup_howto): New function. | |
610 | (elf32_i860_reloc_type_lookup): New function. | |
611 | (elf32_i860_info_to_howto_rela): New function. | |
612 | (elf_code_to_howto_index): New structure. | |
613 | (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela. | |
614 | (bfd_elf32_bfd_reloc_type_lookup): Re-define as | |
615 | elf32_i860_reloc_type_lookup. | |
616 | ||
7dca057b JL |
617 | 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com> |
618 | ||
619 | * som.c (struct fixup_format): Constify `format'. | |
620 | (som_hppa_howto_table): Use SOM_HOWTO macro. | |
621 | (try_prev_fixup, hppa_som_reloc): Decorate unused parameter. | |
622 | (som_bfd_reloc_type_lookup): Likewise. | |
623 | (compare_subspaces): Remove unused `count1', `count2'. | |
624 | (som_begin_writing): Remove unused `total_reloc_size'. | |
625 | (som_bfd_derive_misc_symbol_info): Decorate unused parameter. | |
626 | (som_print_symbol, som_bfd_is_local_label_name): Likewise. | |
627 | (som_set_reloc_info): Constify `cp'. Remove unused `addend'. | |
628 | (som_find_nearest_line): Decorate unused parameter(s). | |
629 | (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise. | |
77cb06e9 | 630 | (som_bfd_link_split_section): Likewise. |
7dca057b | 631 | |
bc67d8a6 NC |
632 | 2000-08-03 Nick Clifton <nickc@cygnus.com> |
633 | ||
634 | * section.c: Restore backed out code. | |
635 | * elf.c: Restore backed out code. | |
636 | (copy_private_bfd_data): Fix bug preventing stipped dynamic | |
637 | binaries from working. | |
638 | * bfd-in2.h: Regenerate. | |
639 | ||
c0f7859b L |
640 | 2000-08-03 H.J. Lu <hjl@gnu.org> |
641 | ||
642 | * section.c: Back out the change made by Nick Clifton | |
643 | <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic | |
644 | binaries. | |
645 | * bfd-in2.h: Likewise. | |
646 | * elf.c: Likewise. | |
647 | ||
61ff1804 AO |
648 | 2000-08-03 Alexandre Oliva <aoliva@redhat.com> |
649 | ||
650 | * elf32-sh.c (sh_elf_reloc_loop): Warning removal. | |
651 | ||
a87fdb8d JE |
652 | 2000-07-31 Jason Eckhardt <jle@cygnus.com> |
653 | ||
77cb06e9 AM |
654 | * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860. |
655 | * bfd-in2.h, libbfd.h: Regenerate. | |
a87fdb8d | 656 | |
5c440b1e NC |
657 | 2000-07-31 Nick Clifton <nickc@cygnus.com> |
658 | ||
659 | * section.c (struct sec): Add new boolean field 'segment_mark'. | |
660 | (STD_SECTION): Initialise new field to zero. | |
661 | ||
662 | * bfd-in2.h: Regenerate. | |
663 | ||
77cb06e9 | 664 | * elf.c (copy_private_bfd_data): Reorganise section to segment |
5c440b1e NC |
665 | mapping to cope with moved sections requiring new segments, |
666 | and overlapping segments. | |
667 | (SEGMENT_END): New macro: Return the end address of a segment. | |
668 | (IS_CONTAINED_BY_VMA): New macro: Determine if a segment | |
669 | contains a section by comparing their VMA addresses. | |
670 | (IS_CONTAINED_BY_LMA): New macro: Determine if a segment | |
671 | contains a section by comparing their LMA addresses. | |
672 | (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a | |
673 | section should be included in a segment. | |
674 | (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment | |
675 | follows another in memory. | |
676 | (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two | |
677 | segments overlap. | |
678 | ||
aa76cae8 | 679 | 2000-07-22 Jason Eckhardt <jle@cygnus.com> |
24208c5c JE |
680 | |
681 | * cpu-i860.c: Added comments. | |
682 | ||
683 | * elf32-i860.c (TARGET_LITTLE_SYM): Defined to | |
684 | bfd_elf32_i860_little_vec. | |
685 | (TARGET_LITTLE_NAME): Defined to "elf32-i860-little". | |
686 | (ELF_MAXPAGESIZE): Changed to 4096. | |
687 | ||
688 | * targets.c (bfd_elf32_i860_little_vec): Declaration of | |
689 | new target. | |
690 | (bfd_target_vector): Added bfd_elf32_i860_little_vec. | |
691 | ||
692 | * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added | |
693 | config for little endian elf32 i860. | |
694 | (targ_defvec): Define for the new config above | |
77cb06e9 | 695 | as "bfd_elf32_i860_little_vec". |
24208c5c JE |
696 | (targ_selvecs): Define for the new config above |
697 | as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec" | |
698 | ||
699 | * configure.in (bfd_elf32_i860_little_vec): Added recognition | |
700 | of new target vec. | |
701 | ||
702 | * configure: Regenerated. | |
703 | ||
456981d7 L |
704 | 2000-07-27 H.J. Lu <hjl@gnu.org> |
705 | ||
706 | * elflink.h (elf_merge_symbol): Take one more argument, | |
707 | dt_needed, to indicate if the symbol comes from a DT_NEEDED | |
708 | entry. Don't overide the existing weak definition if dt_needed | |
709 | is true. | |
710 | (elf_link_add_object_symbols): Pass dt_needed to | |
711 | elf_merge_symbol (). | |
712 | ||
755cfd29 NC |
713 | 2000-07-27 Nick Clifton <nickc@cygnus.com> |
714 | ||
715 | * elflink.h (elf_link_size_reloc_section): Zeroes the section's | |
716 | allocated contents. | |
717 | ||
1a6df346 GK |
718 | 2000-07-25 Geoffrey Keating <geoffk@cygnus.com> |
719 | ||
adfdf838 GK |
720 | * configure.host (*-*-aix*): AIX has 'long long' always. |
721 | ||
1a6df346 GK |
722 | * coff-rs6000.c (xcoff_write_one_armap_big): New procedure. |
723 | (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps. | |
724 | (xcoff_write_archive_contents_big): Don't update the offset | |
725 | of the symbol table, xcoff_write_armap will do it. | |
726 | ||
313ba8d6 UC |
727 | 2000-07-23 Ulf Carlsson <ulfc@engr.sgi.com> |
728 | ||
729 | * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead | |
730 | of dynobj for SGI_COMPAT checks. | |
731 | ||
3eb6f68f | 732 | 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG> |
20bccb34 | 733 | |
77cb06e9 AM |
734 | * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function. |
735 | * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration. | |
736 | * bfd-in2.h: Regenerate. | |
20bccb34 | 737 | |
7a3120d9 NC |
738 | 2000-07-21 Nick Clifton <nickc@cygnus.com> |
739 | ||
740 | * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of | |
741 | range symbol indices in relocs and issue an error message. | |
742 | ||
4d538889 L |
743 | 2000-07-20 H.J. Lu <hjl@gnu.org> |
744 | ||
745 | * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check | |
746 | info->new_dtags when setting DT_FLAGS_1. It will only be set | |
747 | by the new linker options. It shouldn't break anything. | |
748 | ||
b586af58 L |
749 | 2000-07-20 H.J. Lu <hjl@gnu.org> |
750 | ||
751 | * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1 | |
752 | only if info->new_dtags is true. | |
753 | ||
c25373b7 L |
754 | 2000-07-20 H.J. Lu <hjl@gnu.org> |
755 | ||
756 | * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set | |
757 | DT_RUNPATH and DT_FLAGS only if info->new_dtags is true. | |
758 | ||
06c15ad7 HPN |
759 | 2000-07-20 Hans-Peter Nilsson <hp@axis.com> |
760 | ||
761 | * Makefile.am (ALL_MACHINES): Add cpu-cris.lo. | |
762 | (ALL_MACHINES_CFILES): Add cpu-cris.c. | |
763 | (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo. | |
764 | (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c. | |
765 | (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules. | |
766 | * Makefile.in: Rebuild. | |
767 | * aclocal.m4: Rebuild. | |
768 | * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris. | |
769 | * archures.c (enum bfd_architecture): Add bfd_arch_cris. | |
770 | (bfd_cris_arch): Declare. | |
771 | (bfd_archures_list): Add bfd_cris_arch. | |
772 | * bfd-in2.h: Rebuild. | |
773 | * config.bfd: (cris-*-*): New target. | |
774 | * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors. | |
775 | * configure: Rebuild. | |
776 | * elf.c (prep_headers): Add bfd_arch_cris. | |
777 | * libbfd.h: Rebuild. | |
778 | * libaout.h (enum machine_type): Add M_CRIS. | |
779 | * reloc.c: Add CRIS relocations. | |
3bd336f7 | 780 | * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare. |
06c15ad7 HPN |
781 | (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec. |
782 | * cpu-cris.c, aout-cris.c, elf32-cris.c: New files. | |
783 | * po/POTFILES.in, po/bfd.pot: Regenerate. | |
784 | ||
d6cf2879 L |
785 | 2000-07-19 H.J. Lu <hjl@gnu.org> |
786 | ||
787 | * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set | |
788 | DF_TEXTREL if DT_TEXTREL is set. | |
789 | * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise. | |
790 | * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise. | |
791 | * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise. | |
792 | * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise. | |
793 | * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise. | |
794 | * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise. | |
795 | * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise. | |
796 | * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise. | |
797 | * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise. | |
798 | * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise. | |
799 | ||
c25373b7 | 800 | * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also |
d6cf2879 L |
801 | set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if |
802 | DT_RPATH is set. | |
803 | Set the DT_FLAGS and DT_FLAGS_1 entries if necessary. | |
804 | ||
74816898 L |
805 | 2000-07-19 H.J. Lu <hjl@gnu.org> |
806 | ||
807 | * bfd-in.h (bfd_elf_set_dt_needed_soname): New. | |
808 | * bfd-in2.h: Rebuild. | |
809 | ||
810 | * elf-bfd.h (elf_obj_tdata): Add dt_soname. | |
811 | (elf_dt_soname): New. | |
812 | ||
813 | * elf.c (bfd_elf_set_dt_needed_soname): New. | |
814 | ||
815 | * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED | |
816 | entry if the shared object loaded by DT_NEEDED is used to | |
817 | resolve the reference in a regular object. | |
818 | ||
36a30e65 L |
819 | 2000-07-19 H.J. Lu <hjl@gnu.org> |
820 | ||
821 | * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG, | |
822 | DT_DEPAUDIT and DT_AUDIT as strings. | |
823 | ||
1d713d9e NC |
824 | 2000-07-19 Nick Clifton <nickc@cygnus.com> |
825 | ||
826 | * format.c: Fix formatting. | |
827 | ||
d48188b9 L |
828 | 2000-07-19 H.J. Lu <hjl@gnu.org> |
829 | ||
830 | * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM. | |
831 | ||
94558834 L |
832 | 2000-07-19 H.J. Lu <hjl@gnu.org> |
833 | ||
834 | * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW, | |
835 | DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ, | |
836 | DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ, | |
837 | DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1, | |
838 | DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT, | |
839 | DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT, | |
840 | DT_FLAGS_1, DT_USED and DT_CHECKSUM. | |
841 | ||
125c4a69 NC |
842 | Tue Jul 18 13:11:54 2000 Andrew Cagney <cagney@b1.cygnus.com> |
843 | ||
844 | * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move | |
77cb06e9 | 845 | renamed functions from here... |
125c4a69 NC |
846 | (assign_section_numbers): Use renamed functions. |
847 | (prep_headers): Use renamed functions. | |
77cb06e9 | 848 | |
125c4a69 NC |
849 | * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here. |
850 | * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update. | |
851 | * bfd-in2.h: Regenerate. | |
852 | ||
31a9bdd9 UC |
853 | 2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com> |
854 | ||
855 | * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add | |
313ba8d6 | 856 | parenthesis in if statement. |
31a9bdd9 | 857 | |
f7cb7d68 UC |
858 | 2000-07-17 Koundinya K <kk@ddeorg.soft.net> |
859 | ||
77cb06e9 | 860 | Enable the support for Traditional MIPS. |
f7cb7d68 UC |
861 | * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand |
862 | return ict_none appropriately for traditional mips targets. | |
863 | (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips. | |
864 | (STUB_MOVE): Conditionalize for traditonal mips. | |
865 | (STUB_LI16): Likewise. | |
866 | (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making | |
867 | room for RTPROC header. | |
868 | (_bfd_mips_elf_modify_segment_map): For a normal mips executable set | |
869 | the permission for the PT_DYNAMIC as read, write and execute. | |
870 | (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING | |
871 | for traditonal mips. | |
872 | (_bfd_mips_elf_create_dynamic_sections): Add the symbol | |
873 | _DYNAMIC_LINKING for traditonal mips. | |
874 | (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP | |
875 | in case of traditonal mips. | |
876 | (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT | |
877 | entry is required. For a function if PLT is not required then set the | |
878 | corresponding hash table entry to 0. | |
77cb06e9 | 879 | (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for |
f7cb7d68 | 880 | traditonal mips. |
77cb06e9 | 881 | (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a |
f7cb7d68 | 882 | shared object set the value to 0. |
77cb06e9 | 883 | (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol |
f7cb7d68 UC |
884 | _DYNAMIC_LINKING for traditonal mips. |
885 | (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP | |
886 | for traditonal mips. | |
77cb06e9 | 887 | |
930d924d L |
888 | 2000-07-15 H.J. Lu <hjl@gnu.org> |
889 | ||
890 | * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL. | |
891 | ||
e67f03db DD |
892 | 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu> |
893 | ||
894 | * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing | |
895 | out a structure that is BFD_IN_MEMORY. | |
896 | ||
0ba2a60e AM |
897 | 2000-07-11 Alan Modra <alan@linuxcare.com.au> |
898 | ||
899 | * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of | |
900 | bfd pointer. Print section id instead of bfd pointer for local | |
901 | syms. Prefix addend with `+' for global syms as well as local. | |
902 | Correct calculation of name component lengths. | |
903 | (elf64_hppa_check_relocs): Update call to get_dyn_name. | |
904 | ||
905 | From David Huggins-Daines <dhd@linuxcare.com> | |
906 | * elf-hppa.h (elf_hppa_relocate_section): Update calls here too. | |
907 | * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings. | |
908 | (elf64_hppa_modify_segment_map): Likewise. | |
909 | ||
6d9019e4 AC |
910 | Tue Jul 11 17:21:52 2000 Andrew Cagney <cagney@b1.cygnus.com> |
911 | ||
912 | * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA | |
77cb06e9 | 913 | addresses to be "naturally" sign extended. Return -1 if unknown. |
0ba2a60e | 914 | * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration. |
6d9019e4 AC |
915 | * bfd-in2.h: Regenerate. |
916 | ||
23e2c83b AC |
917 | Tue Jul 11 16:25:52 2000 Andrew Cagney <cagney@b1.cygnus.com> |
918 | ||
919 | * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32 | |
77cb06e9 | 920 | and ECOF_SIGNED_64 to list ways to extract an offset. |
23e2c83b | 921 | (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in, |
77cb06e9 AM |
922 | ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out): |
923 | Update. | |
23e2c83b AC |
924 | * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64. |
925 | * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32. | |
926 | ||
448cafa4 AC |
927 | Tue Jul 11 16:03:04 2000 Andrew Cagney <cagney@b1.cygnus.com> |
928 | ||
929 | * elfcode.h (elf_object_p): Use bfd_set_start_address and not | |
77cb06e9 | 930 | bfd_get_start_address. |
448cafa4 AC |
931 | (elf_swap_ehdr_in): Sign extend e_entry when applicable. |
932 | (elf_swap_ehdr_out): Ditto. | |
933 | ||
83ea41ad NC |
934 | 2000-07-10 Alexander Aganichev <AAganichev@hypercom.com> |
935 | ||
936 | * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for | |
937 | compatibility with older binutils. | |
938 | ||
3df7b4e2 AM |
939 | 2000-07-10 Alan Modra <alan@linuxcare.com.au> |
940 | ||
941 | * section.c (bfd_make_section_anyway): Start section_id at 0x10. | |
942 | (STD_SECTION): Avoid negative ids, instead use 0 to 3. | |
943 | ||
b7af50e3 AM |
944 | From Ryan Bradetich <rbradetich@uswest.net> |
945 | * dwarf1.c (parse_die): Cure signed/unsigned char warnings. | |
946 | (parse_line_table): Ditto. | |
947 | (_bfd_dwarf1_find_nearest_line): Ditto. | |
948 | * syms.c (cmpindexentry): Remove extra `*' from params. | |
949 | ||
adb76a3e UC |
950 | 2000-07-09 Koundinya K <kk@ddeorg.soft.net> |
951 | ||
77cb06e9 AM |
952 | * elf32-mips.c (sort_dynamic_relocs): New Function. |
953 | (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs | |
adb76a3e UC |
954 | via qsort to sort the dynamic relocations in increasing r_symndx |
955 | value. | |
77cb06e9 | 956 | |
edd21aca AM |
957 | 2000-07-09 Alan Modra <alan@linuxcare.com.au> |
958 | ||
959 | * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add | |
960 | ATTRIBUTE_UNUSED to unused args. | |
961 | (get_opd): Likewise. | |
962 | (get_plt): Likewise. | |
963 | (get_dlt): Likewise. | |
964 | (get_stub): Likewise. | |
965 | (elf64_hppa_adjust_dynamic_symbol): Likewise. | |
966 | (elf64_hppa_link_output_symbol_hook): Likewise. | |
967 | (elf64_hppa_check_relocs): Delete unused var. | |
968 | (elf64_hppa_size_dynamic_sections): Likewise. | |
969 | (elf64_hppa_finalize_opd): Likewise. | |
970 | (elf64_hppa_finalize_dynreloc): Likewise. | |
971 | (elf64_hppa_modify_segment_map): Likewise. | |
972 | (elf64_hppa_finish_dynamic_sections): Likewise. | |
973 | ||
974 | * elf-hppa.h (elf_hppa_final_write_processing): Add | |
975 | ATTRIBUTE_UNUSED to unused args. | |
976 | (elf_hppa_final_link_relocate): Likewise. | |
977 | (elf_hppa_record_segment_addrs): Add paretheses. | |
978 | (elf_hppa_relocate_section): Constify dyn_name. | |
979 | ||
980 | From David Huggins-Daines <dhd@linuxcare.com> | |
981 | * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and | |
982 | rearrange case statement so that it gets preferred to 32-bit ones. | |
983 | ||
984 | * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use | |
985 | asection->id instead of address of asection structure. | |
986 | (elf32_hppa_size_stubs): Likewise. | |
987 | ||
988 | * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section | |
989 | for .init* and .fini*. | |
990 | ||
991 | * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers | |
992 | and addends used in stub names to 32 bits. | |
993 | (elf32_hppa_size_stubs): Likewise. | |
994 | ||
995 | * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend | |
996 | twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32, | |
997 | not bfd_put_64. Fix minor comment typo and formatting. | |
998 | ||
999 | Changes to create multiple linker stubs, positioned immediately | |
1000 | before the section where they are required. | |
1001 | * elf32-hppa.c: Don't include hppa_stubs.h. | |
1002 | (elf32_hppa_stub_hash_entry): Add a pointer to the stub section. | |
1003 | (elf32_hppa_stub_hash_table): Delete. | |
1004 | (elf32_hppa_link_hash_entry): Delete. | |
1005 | (elf32_hppa_link_hash_table): Use plain bfd_hash_table for | |
1006 | stub_hash_table, and store the struct here rather than a pointer. | |
1007 | Delete output_symbol_count. Add offset array. Change | |
1008 | global_value to a bfd_vma. | |
1009 | (elf32_hppa_stub_hash_lookup): Use table instead of table->root. | |
1010 | (elf32_hppa_stub_hash_traverse): Delete. | |
1011 | (elf32_hppa_name_of_stub): Delete. | |
1012 | (elf32_hppa_link_hash_lookup): Delete. | |
1013 | (elf32_hppa_link_hash_traverse): Delete. | |
1014 | (elf32_hppa_stub_hash_table_init): Delete. | |
1015 | (elf32_hppa_size_of_stub): Pass input section and offset rather | |
1016 | than location and calculate location here. Don't pass name as all | |
1017 | stubs are now the same size. | |
1018 | (elf32_hppa_stub_hash_newfunc): Init new fields. | |
1019 | (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table | |
1020 | too. | |
1021 | (elf32_hppa_bfd_final_link_relocate): Cast enums to int before | |
1022 | comparing against ints. Rewrite stub handling code. | |
1023 | (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned. | |
1024 | Case enums to int before comparing against ints. Remove | |
1025 | bfd_reloc_dangerous case. | |
1026 | (elf32_hppa_build_one_stub): Rewrite. | |
1027 | (elf32_hppa_size_one_stub): New function. | |
1028 | (elf32_hppa_build_stubs): Rewrite. | |
1029 | (elf32_hppa_size_stubs): Pass in linker call-back functions. | |
1030 | Rewrite stub-handling specific code. | |
1031 | ||
1032 | * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype. | |
1033 | ||
1034 | * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo. | |
1035 | ||
1036 | * hppa_stubs.h: Delete. | |
1037 | * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h | |
1038 | (elf32-hppa.lo): Remove hppa_stubs.h from dependencies. | |
1039 | * Makefile.in: Regenerate. | |
1040 | ||
1041 | * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and | |
1042 | e_nlrsel. | |
1043 | ||
1044 | * libhppa.h (hppa_field_adjust): Correct e_nsel case. | |
1045 | ||
1046 | * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset | |
1047 | and section name for bfd_reloc_notsupported error message. | |
1048 | (elf32_hppa_bfd_final_link_relocate): Print reasons for returning | |
1049 | bfd_reloc_notsupported. | |
1050 | (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd. | |
1051 | ||
1052 | * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle | |
1053 | undefined weak symbols for all relocs. | |
1054 | (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch | |
1055 | offsets are relative to one past the delay slot. | |
1056 | (elf32_hppa_size_stubs): Account for reloc addend when calculating | |
1057 | branch destination. Put addend into stub name too. | |
1058 | (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and | |
1059 | adjust by 8 when deciding whether a linker stub is needed. Put | |
1060 | addend into stub name as for above. | |
1061 | ||
1062 | * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on | |
1063 | various args and vars. | |
1064 | (elf32_hppa_bfd_final_link_relocate): Here too. | |
1065 | (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for | |
1066 | inner block var to avoid shadowing. | |
1067 | ||
1068 | * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg | |
1069 | unsigned. | |
1070 | * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto. | |
1071 | * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto. | |
1072 | (elf_hppa_fake_sections): Rename local var to avoid shadowing. | |
1073 | ||
1074 | * libhppa.h: Change practically all unsigned ints to plain ints. | |
1075 | Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for | |
1076 | prototypes. | |
1077 | ||
1078 | From Ryan Bradetich <rbradetich@uswest.net> | |
1079 | * libhppa.h (hppa_opcode_type): New enum to replace #define's. | |
1080 | * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to | |
1081 | suit above. | |
1082 | From David Huggins-Daines <dhd@linuxcare.com> | |
1083 | * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants | |
1084 | to the new OP_* ones. | |
1085 | ||
1086 | * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on | |
1087 | error exit. Bail out earlier on plabel relocs that we aren't | |
1088 | interested in. Don't tell elf32_hppa_stub_hash_lookup to copy | |
1089 | string, and then don't free our copy. | |
1090 | (elf32_hppa_build_one_stub): Make insn unsigned int. | |
1091 | ||
1092 | * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only | |
1093 | available with BL, not BE and BLE. | |
1094 | ||
1095 | * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example | |
1096 | code for elf arg relocs. | |
1097 | (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local | |
1098 | argument with elf_link_hash_entry h. Handle undefined weak | |
1099 | symbols. Move $global$ lookup from here... | |
1100 | (elf32_hppa_relocate_section): ...to here. Return correct error | |
1101 | message for non-handled relocs. | |
1102 | (elf32_hppa_size_of_stub): Correctly test branch range. Previous | |
1103 | wrong test was -0x3ffff to +0x40000. | |
1104 | ||
1105 | * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R, | |
1106 | R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches; | |
1107 | Handle them as such. | |
1108 | (elf_hppa_relocate_insn): Fix a typo. | |
1109 | ||
1110 | * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete. | |
1111 | (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a, | |
1112 | assemble_17, assemble_21): Delete. | |
1113 | Supply defines for all 64 possible opcodes. | |
1114 | (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode | |
1115 | formats. Handle COMICLR. | |
1116 | (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11, | |
1117 | -10, -16, 16, 22. | |
1118 | ||
1119 | * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite. | |
1120 | (elf32_hppa_bfd_final_link_relocate): Major rewrite. | |
1121 | (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls | |
1122 | to suit. | |
1123 | (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all | |
1124 | the local syms - did this code get deleted accidentally? Ignore | |
1125 | undefined and undefweak syms. | |
1126 | ||
1127 | * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost | |
1128 | block. Use it instead of elf64_hppa_hash_table (info). | |
1129 | (elf_hppa_final_link_relocate): Use hppa_info instead of | |
1130 | elf64_hppa_hash_table (info). | |
1131 | ||
1132 | * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16, | |
1133 | re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn. | |
1134 | (hppa_rebuild_insn): Mask immediate bits here instead. | |
1135 | * elf-hppa.h (elf_hppa_relocate_insn): Mask here too. | |
1136 | ||
52b219b5 AM |
1137 | 2000-07-08 Alan Modra <alan@linuxcare.com.au> |
1138 | ||
1139 | * section.c (struct sec): Add id field. Tidy comment formatting. | |
1140 | (bfd_make_section_anyway): Set id. | |
1141 | (STD_SECTION): Init id too. | |
1142 | Change CONST to const throughout. | |
1143 | * archures.c (bfd_arch_info): Tidy comment. | |
1144 | (bfd_arch_list): Change a CONST to const. | |
1145 | * libbfd-in.h: Tidy comments and replace CONST with const. | |
1146 | * elf-bfd.h: Likewise. | |
1147 | * libbfd.h: Regenerate. | |
1148 | * bfd-in2.h: Regenerate. | |
1149 | * libcoff.h: Regenerate. | |
1150 | ||
8000a618 DD |
1151 | 2000-07-07 DJ Delorie <dj@redhat.com> |
1152 | ||
1153 | * archive.c (_bfd_write_archive_contents): Add an informative | |
1154 | comment. | |
1155 | ||
c3b7c767 NC |
1156 | 2000-07-06 Kazu Hirata <kazu@hxi.com> |
1157 | ||
1158 | * srec.c: Fix formatting. | |
1159 | ||
302ab118 DD |
1160 | 2000-06-05 DJ Delorie <dj@redhat.com> |
1161 | ||
1162 | * MAINTAINERS: new | |
1163 | ||
ed1de528 AO |
1164 | 2000-07-04 Alexandre Oliva <aoliva@redhat.com> |
1165 | ||
1166 | * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol | |
1167 | value of PC-relative offsets. | |
1168 | ||
70bcb145 JW |
1169 | 2000-07-03 Jim Wilson <wilson@cygnus.com> |
1170 | ||
1171 | * elf64-alpha.c (alpha_elf_size_info): New. | |
1172 | (elf_backend_size_info): Define to alpha_elf_size_info. | |
1173 | * elfcode.h (elf_size_info): Change hash bucket size to 4. | |
1174 | ||
b8ee63fa UC |
1175 | 2000-07-03 Ulf Carlsson <ulfc@engr.sgi.com> |
1176 | ||
1177 | * elf32-mips.c: Include elf32-target.h again for the traditional | |
1178 | MIPS targets. | |
1179 | ||
00d2865b NC |
1180 | 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl> |
1181 | ||
1182 | * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup): | |
1183 | Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings. | |
1184 | (avr_info_to_howto_rela): Likewise. | |
1185 | (elf32_avr_gc_mark_hook): Likewise. | |
1186 | (elf32_avr_gc_sweep_hook): Likewise. | |
1187 | (elf32_avr_relocate_section): Likewise. | |
1188 | ||
e4202681 NC |
1189 | 2000-07-03 Mark Elbrecht <snowball3@bigfoot.com> |
1190 | ||
1191 | * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into | |
1192 | an external symbol for a non-shared, non-relocatable link. | |
77cb06e9 | 1193 | |
e4202681 NC |
1194 | 2000-07-03 Nick Clifton <nickc@redhat.com> |
1195 | ||
99d6ac2f NC |
1196 | * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol |
1197 | is an external symbol. | |
e4202681 NC |
1198 | (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak |
1199 | external symbol. | |
77cb06e9 | 1200 | |
289c596c NC |
1201 | 2000-07-03 Kazu Hirata <kazu@hxi.com> |
1202 | ||
1203 | * reloc16.c: Fix formatting. | |
1204 | ||
dd745cfa UC |
1205 | 2000-07-01 Koundinya K <kk@ddeorg.soft.net> |
1206 | ||
77cb06e9 AM |
1207 | * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4* |
1208 | to add a new target for traditional mips i.e | |
1209 | bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec. | |
1210 | * configure.in: Likewise. | |
1211 | * configure: Rebuild. | |
1212 | * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in | |
dd745cfa UC |
1213 | bfd_target_vector. |
1214 | (bfd_elf32_tradlittlemips_vec): Likewise. | |
77cb06e9 AM |
1215 | * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test |
1216 | to see that elfNN_bed does not get redefined even if the target file | |
1217 | is included twice for a chip. See elf32-mips.c. | |
1218 | ||
0bdaf48b AM |
1219 | 2000-07-01 Alan Modra <alan@linuxcare.com.au> |
1220 | ||
1221 | * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed | |
1222 | (CLEANFILES): Add DEPA. | |
1223 | * Makefile.in: Regenerate. | |
1224 | ||
c75df619 | 1225 | 2000-06-30 DJ Delorie <dj@cygnus.com> |
77cb06e9 | 1226 | |
c75df619 | 1227 | * peicode.h (coff_swap_filehdr_in): can't use e_magic because we |
77cb06e9 | 1228 | can't assume the PE header is at 0x80. |
c75df619 | 1229 | |
b4b415e5 DD |
1230 | 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com> |
1231 | ||
cda43a1d | 1232 | * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH. |
b4b415e5 | 1233 | |
addd3117 DD |
1234 | 2000-06-28 Mark Elbrecht <snowball3@bigfoot.com> |
1235 | ||
1236 | * go32stub.h: Update stub. | |
1237 | ||
65aa24b6 NC |
1238 | 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl> |
1239 | ||
1240 | * archures.c (bfd_mach_avr5): Define. | |
1241 | * bfd-in2.h (bfd_mach_avr5): Define. | |
1242 | * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to | |
1243 | bfd_mach_avr5, add bfd_mach_avr4. Update comments. | |
1244 | (compatible): Update comment. Add missing test. | |
1245 | * elf32-avr.c (avr_final_link_relocate): Support 8K wrap | |
1246 | for avr2 and avr4. Simplify 8K wrap code. | |
1247 | (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5. | |
1248 | (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5. | |
1249 | ||
cc040812 NC |
1250 | 2000-06-26 Kazu Hirata <kazu@hxi.com> |
1251 | ||
1252 | * coff-h8300.c: Fix formatting. | |
1253 | * cpu-h8300.c: Likewise. | |
1254 | ||
b1bcb49f AO |
1255 | 2000-06-24 Alexandre Oliva <aoliva@redhat.com> |
1256 | ||
1257 | * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)' | |
1258 | for local symbols whose names are unknown. | |
1259 | ||
1581f8c9 AM |
1260 | 2000-06-22 Alan Modra <alan@linuxcare.com.au> |
1261 | ||
1262 | * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we | |
1263 | find one. | |
1264 | * Makefile.in: Regenerate. | |
1265 | * doc/Makefile.in: Regenerate. | |
1266 | ||
bbeb2e03 L |
1267 | 2000-06-20 H.J. Lu <hjl@gnu.org> |
1268 | ||
1269 | * Makefile.am: Rebuild dependency. | |
1270 | * Makefile.in: Rebuild. | |
1271 | ||
8a20f077 UC |
1272 | 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl> |
1273 | ||
1274 | * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function. | |
1275 | (elf_backend_copy_indirect_symbol): Map to the new function. | |
1276 | ||
2ab47eed AM |
1277 | 2000-06-20 Alan Modra <alan@linuxcare.com.au> |
1278 | ||
1279 | * archive.c (normalize): Correct pointer comparison when checking | |
1280 | for backslashes. | |
1281 | (bfd_bsd_truncate_arname): Likewise. | |
1282 | (bfd_gnu_truncate_arname): Likewise. | |
1283 | ||
b305ef96 UC |
1284 | 2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com> |
1285 | ||
1286 | * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual | |
1287 | sections elf_{text,data}_{section,symbol}. | |
1288 | * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove. | |
1289 | (_bfd_mips_elf_hide_symbol): New function. | |
1290 | (elf_backend_hide_symbol): Map to the new function. | |
1291 | (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD | |
1292 | definitions of mips_elf_{text,data}_{section,symbol}. | |
1293 | (mips_elf_local_relocation_p): Try to find the direct symbol | |
1294 | based on new check_forced argument. | |
1295 | (mips_elf_calculate_relocation): Use new version of | |
1296 | mips_elf_local_relocation_p. | |
1297 | (mips_elf_relocate_section): Likewise. | |
1298 | (_bfd_mips_elf_relocate_section): Likewise. | |
1299 | (mips_elf_sort_hash_table): Only assert that have enough GOT | |
1300 | space. | |
1301 | (mips_elf_got16_entry): Match all 32 bits to the existing GOT | |
1302 | entry if the relocation based on the new external argument. | |
1303 | (mips_elf_create_dynamic_relocation): Assert that we have a | |
1304 | section contents allocated where we can swap out the dynamic | |
1305 | relocations. | |
1306 | (mips_elf_calculate_relocation): Find the real hash-table entry | |
1307 | correctly by using h->root.root.type. Only create a dynamic | |
1308 | relocation entry if the symbol is defined in a shared library. | |
1309 | Create an external GOT entry for the GOT16 relocation if the | |
1310 | symbol was forced local. | |
1311 | (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a | |
1312 | dynamic index if the symbol was forced local. | |
1313 | ||
1314 | 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl> | |
1315 | ||
1316 | * elf32-mips.c: Fix typos in comments. | |
77cb06e9 | 1317 | |
1605fc4f MK |
1318 | 2000-06-19 Mark Kettenis <kettenis@gnu.org> |
1319 | ||
1320 | * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef | |
1321 | CORE_VERSION_1. | |
1322 | ||
60bcf0fa NC |
1323 | 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr> |
1324 | ||
1325 | * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild. | |
1326 | * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS, | |
1327 | BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files. | |
1328 | * configure.in (bfd_elf32_m68hc12_vec): Recognize. | |
1329 | (bfd_elf32_m68hc11_vec): Likewise. | |
77cb06e9 | 1330 | * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11. |
60bcf0fa NC |
1331 | Supports 68hc11 & 68hc12 at the same time. |
1332 | * targets.c (bfd_elf32_m68hc12_vec): Declare and put in | |
1333 | bfd_target_vector. | |
1334 | (bfd_elf32_m68hc11_vec): Likewise. | |
1335 | * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11. | |
1336 | * archures.c (bfd_m68hc12_arch): Define and register in global list | |
1337 | (bfd_m68hc11_arch): Likewise. | |
1338 | * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8, | |
1339 | BFD_RELOC_M68HC11_3B): Define. | |
1340 | * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support. | |
1341 | * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support. | |
1342 | ||
f41cbf03 UC |
1343 | 2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com> |
1344 | ||
1345 | * elf_bfd.h (struct elf_backend_data): Add info argument to | |
1346 | elf_backend_hide_symbol. | |
1347 | (_bfd_elf_link_hash_hide_symbol): Likewise. | |
1348 | * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise. | |
1349 | * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise. | |
1350 | * elflink.h (elf_link_add_object_symbols): Likewise. | |
1351 | (elf_link_assign_sym_version): Likewise. | |
77cb06e9 | 1352 | |
689be717 L |
1353 | 2000-06-18 H.J. Lu <hjl@gnu.org> |
1354 | ||
1355 | * coff-i386.c (coff_i386_reloc): Don't return in case of | |
1356 | output_bfd == (bfd *) NULL if COFF_WITH_PE is defined. | |
1357 | Compensate PE relocations when linking with non-PE object | |
1358 | files to generate a non-PE executable. | |
1359 | ||
9a8f3bb7 UC |
1360 | 2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com> |
1361 | ||
1362 | * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write | |
1363 | GOT entries if we're doing a static link or -Bsymbolic link. | |
1364 | ||
32f0787a UC |
1365 | 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com> |
1366 | ||
1367 | * elflink.h (elf_link_adjust_relocs): Check for and call backend | |
1368 | specifific swap_reloc_{in,out} and swap_reloca_{in,out} if | |
1369 | available. | |
1370 | (elf_link_output_relocs): Likewise. | |
1371 | (elf_reloc_link_order): Likewise. | |
77cb06e9 | 1372 | |
87f33987 ND |
1373 | 2000-06-16 Nicholas Duffek <nsd@redhat.com> |
1374 | ||
1375 | * archures.c (enum bfd_architecture): #define constants for | |
1376 | PowerPc and RS6000 machine numbers. | |
1377 | * bfd-in2.h: Regenerate. | |
1378 | * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch | |
1379 | to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc | |
1380 | and RS6000 machine numbers using #defined constants from | |
1381 | archures.c. | |
1382 | * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000 | |
1383 | machine numbers using #defined constants from archures.c. Add | |
1384 | entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify | |
1385 | 64-bit words in 620 entry. | |
1386 | * cpu-rs6000.c (arch_info_struct): Create with entries for RS1, | |
1387 | RSC, and RS2. | |
1388 | (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k). | |
1389 | ||
a2fdf270 ND |
1390 | 2000-06-16 Nicholas Duffek <nsd@cygnus.com> |
1391 | ||
1392 | * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64. | |
1393 | * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field. | |
1394 | * libcoff.h (struct xcoff_tdata): Define xcoff64 field. | |
1395 | ||
9bd09e22 ND |
1396 | 2000-06-16 Nicholas Duffek <nsd@redhat.com> |
1397 | ||
1398 | * bfd-in.h (bfd_family_coff): Define. | |
1399 | * bfd-in2.h: Regenerate. | |
1400 | * coffgen.c (coff_count_linenumbers, coff_symbol_from, | |
1401 | coff_find_nearest_line): Check COFFness using bfd_family_coff() | |
1402 | instead of bfd_target_coff_flavour. | |
1403 | * cofflink.c (_bfd_coff_final_link): Likewise. | |
1404 | * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to | |
1405 | exclude XCOFF files. | |
1406 | * reloc.c (bfd_perform_relocation, bfd_install_relocation): | |
1407 | Likewise. | |
1408 | * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour. | |
1409 | * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour. | |
1410 | * xcofflink.c (XCOFF_XVECP): Delete. | |
1411 | (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol, | |
1412 | bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc, | |
1413 | bfd_xcoff_record_link_assignment, | |
1414 | bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with | |
1415 | check for bfd_target_xcoff_flavour. | |
1416 | ||
59d9f049 ND |
1417 | 2000-06-16 Nicholas Duffek <nsd@redhat.com> |
1418 | ||
1419 | * rs6000-core.c: Support 64-bit core files, support pre-4.3 core | |
1420 | files on AIX 4.3. | |
1421 | (read_hdr): New function. | |
1422 | (rs6000coff_core_p): Store mstsave or __context64 struct instead | |
1423 | of trying to extract individual registers. Set abfd->arch_info | |
1424 | to match the architecture that created the core file. | |
1425 | (rs6000coff_get_section_contents): Delete. | |
1426 | * xcoff-target.h (rs6000coff_get_section_contents): Delete. | |
1427 | ||
63e39178 L |
1428 | 2000-06-14 H.J. Lu <hjl@gnu.org> |
1429 | ||
1430 | * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec) | |
1431 | is NULL. | |
1432 | ||
bcef29e6 L |
1433 | 2000-06-13 H.J. Lu <hjl@gnu.org> |
1434 | ||
1435 | * configure: Regenerate. | |
1436 | ||
26bfd1c0 JR |
1437 | Tue Jun 13 01:28:57 2000 J"orn Rennecke <amylaar@cygnus.co.uk> |
1438 | ||
1439 | * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of | |
1440 | armpei_little_vec. | |
1441 | ||
946efd95 DB |
1442 | 2000-06-08 David O'Brien <obrien@FreeBSD.org> |
1443 | ||
1444 | * configure.in (VERSION): Update to show this is the CVS mainline. | |
1445 | ||
1b452ec6 AM |
1446 | 2000-06-07 Alan Modra <alan@linuxcare.com.au> |
1447 | ||
1448 | * elf32-d10v.c: Include elf/d10v.h | |
1449 | (enum reloc_type): Delete. | |
1450 | * elf32-d30v.c: Include elf/d30v.h | |
1451 | (enum reloc_type): Delete. | |
1452 | ||
1453 | * Makefile.am: Run "make dep-am" to regenerate dependencies. | |
1454 | * Makefile.in: Regenerate. | |
1455 | ||
1456 | * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs. | |
dc47f327 AM |
1457 | (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and |
1458 | move HOWTOs into elf_howto_table. | |
1b452ec6 | 1459 | (R_386_standard, R_386_ext_offset): Define. |
dc47f327 | 1460 | (R_386_ext, R_386_vt_offset, R_386_vt): Define. |
1b452ec6 | 1461 | (elf_i386_reloc_type_lookup): Modify calculation of index into |
dc47f327 | 1462 | elf_howto_table since we've removed the padding. |
1b452ec6 AM |
1463 | (elf_i386_info_to_howto_rel): Likewise. |
1464 | (elf_i386_relocate_section): Likewise. | |
1465 | ||
e0ebfc61 MS |
1466 | 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com> |
1467 | ||
1468 | * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t. | |
1469 | ||
9d6eee78 L |
1470 | 2000-06-05 H.J. Lu <hjl@gnu.org> |
1471 | ||
1472 | * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag | |
1473 | an error when seeing an undefined symbol with hidden/internal | |
1474 | attribute. It is handled in *_relocate_section (). | |
1475 | ||
94b6c40a L |
1476 | 2000-06-05 H.J. Lu <hjl@gnu.org> |
1477 | ||
1478 | * elflink.h (elf_fix_symbol_flags): Follow the link for the | |
1479 | indirect symbol for the ELF_LINK_NON_ELF bit. | |
1480 | (elf_link_output_extsym): Don't output the indirect symbol even | |
1481 | if the ELF_LINK_NON_ELF bit is set. | |
1482 | ||
0af288f3 C |
1483 | 2000-06-01 J.T. Conklin <jtc@redback.com> |
1484 | ||
1485 | * config.bfd (i[3456]86-*-netbsdelf*): New target. | |
1486 | (i[3456]86-*-netbsdaout*): New target. | |
1487 | (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs. | |
1488 | (i[3456]86-*-openbsd*): Likewise. | |
1489 | ||
12df4d3c AC |
1490 | Tue May 30 15:39:04 2000 Andrew Cagney <cagney@b1.cygnus.com> |
1491 | ||
1492 | * trad-core.c: From hpux-core.c, include <dirent.h> or | |
77cb06e9 | 1493 | <sys/ndir.h> when possible. |
12df4d3c | 1494 | |
c0ae4ccc NC |
1495 | 2000-05-31 Nick Clifton <nickc@cygnus.com> |
1496 | ||
1497 | * opintl.h (_(String)): Explain why dgettext is used instead | |
77cb06e9 | 1498 | of gettext. |
c0ae4ccc | 1499 | |
321fa097 UD |
1500 | 2000-05-31 Ulrich Drepper <drepper@redhat.com> |
1501 | ||
1502 | * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version | |
1503 | definitions. We must not assume they are sorted in the file | |
1504 | according to their index numbers. | |
1505 | ||
70d72e0e AM |
1506 | 2000-05-31 Alan Modra <alan@linuxcare.com.au> |
1507 | ||
1508 | * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field | |
77cb06e9 AM |
1509 | selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and |
1510 | R_PARISC_DIR17F are for absolute branches; Handle them as such. | |
70d72e0e | 1511 | |
96f6d4c4 NC |
1512 | 2000-05-30 Nick Clifton <nickc@cygnus.com> |
1513 | ||
1514 | * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB, | |
1515 | 80960CA, 80960MC as valid machine names. | |
1516 | ||
38048eb9 L |
1517 | 2000-05-30 H.J. Lu <hjl@gnu.org> |
1518 | ||
1519 | * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the | |
1520 | visibility bits if the symbol is undefined. Correctly handle | |
1521 | weak undefined symbols with hidden and internal attributes. | |
1522 | ||
1523 | * elflink.h (elf_link_add_object_symbols): Always turn the | |
1524 | symbol into local if it has the hidden or internal attribute. | |
1525 | ||
8c763017 PB |
1526 | 2000-05-29 Philip Blundell <philb@gnu.org> |
1527 | ||
1528 | * ppcboot.c: Add packed attribute if compiling with GCC. | |
1529 | ||
1ae00f9d AM |
1530 | 2000-05-29 Anatoly Vorobey <mellon@pobox.com> |
1531 | ||
1532 | * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal. | |
1533 | ||
4a938328 MS |
1534 | 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com> |
1535 | ||
77cb06e9 | 1536 | * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus, |
4a938328 MS |
1537 | elfcore_grok_psinfo): Add code to allow debugging a 32-bit |
1538 | corefile on a 64-bit (Sparc Solaris) host. Also clean up | |
1539 | a few old comments. | |
1540 | ||
5af11cab AM |
1541 | 2000-05-26 Alan Modra <alan@linuxcare.com.au> |
1542 | ||
2114f57b AM |
1543 | * Makefile.am: Update dependencies with "make dep-am" |
1544 | * Makefile.in: Regenerate. | |
1545 | ||
5af11cab AM |
1546 | * sysdep.h (gettext, dgettext, dcgettext, textdomain, |
1547 | bindtextdomain): Replace defines with those from intl/libgettext.h | |
1548 | to quieten gcc warnings. | |
1549 | ||
1550 | 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il> | |
1551 | ||
1552 | * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH. | |
1553 | ||
1554 | * archive.c (normalize, bfd_bsd_truncate_arname, | |
1555 | bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support | |
1556 | file names with backslashes. | |
1557 | ||
1558 | * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file | |
1559 | before opening it. | |
1560 | ||
1561 | * sysdep.h: Include filenames.h. | |
1562 | ||
b6cdd0fd AM |
1563 | 2000-05-26 Alan Modra <alan@linuxcare.com.au> |
1564 | ||
1565 | * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777. | |
1566 | ||
f7775d95 JJ |
1567 | 2000-05-26 Jakub Jelinek <jakub@redhat.com> |
1568 | ||
1569 | * elf64-sparc.c (sparc64_elf_relax_section): New. | |
1570 | (sparc64_elf_relocate_section): Optimize tail call into branch always | |
1571 | if possible. | |
1572 | * elf32-sparc.c (elf32_sparc_relocate_section): Likewise. | |
1573 | (elf32_sparc_relax_section): New. | |
1574 | ||
6c08d697 JJ |
1575 | 2000-05-26 Jakub Jelinek <jakub@redhat.com> |
1576 | ||
1577 | * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters. | |
1578 | Remove unusued variables. | |
1579 | (sparc64_elf_relocate_section): Change r_symndx type to unsigned long. | |
1580 | (sparc64_elf_merge_private_bfd_data): Fix shared library case from | |
1581 | previous fix, so that shared libs really don't influence targets | |
1582 | extension mask and memory model. | |
1583 | ||
edb72b3b L |
1584 | 2000-05-23 H.J. Lu <hjl@gnu.org> |
1585 | ||
1586 | * elf64-alpha.c (elf64_alpha_relocate_section): Check | |
1587 | h->root.other not h->other. | |
ba09750c L |
1588 | * elf32-mips.c (mips_elf_calculate_relocation): Likewise. |
1589 | ||
1590 | * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo. | |
edb72b3b | 1591 | |
3a27a730 L |
1592 | 2000-05-23 H.J. Lu <hjl@gnu.org> |
1593 | ||
1594 | * elf32-i386.c (elf_i386_relocate_section): Don't allow the | |
1595 | undefined symbol with the non-default visibility attributes. | |
1596 | * elf-hppa.h (elf_hppa_relocate_section): Likewise. | |
1597 | * elf32-arm.h (elf32_arm_relocate_section): Likewise. | |
1598 | * elf32-i370.c (i370_elf_relocate_section): Likewise. | |
1599 | * elf32-m68k.c (elf_m68k_relocate_section): Likewise. | |
1600 | * elf32-mcore.c (mcore_elf_relocate_section): Likewise. | |
1601 | * elf32-mips.c (mips_elf_calculate_relocation): Likewise. | |
1602 | * elf32-ppc.c (ppc_elf_relocate_section): Likewise. | |
1603 | * elf32-sparc.c (elf32_sparc_relocate_section): Likewise. | |
1604 | * elf64-alpha.c (elf64_alpha_relocate_section): Likewise. | |
1605 | * elf64-ia64.c (elf64_ia64_relocate_section): Likewise. | |
1606 | * elf64-sparc.c (sparc64_elf_relocate_section): Likewise. | |
1607 | ||
748abff6 RH |
1608 | 2000-05-22 Richard Henderson <rth@cygnus.com> |
1609 | ||
1610 | * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI, | |
1611 | PCREL22, PCREL64I. Zero size of special relocs. | |
1612 | (elf64_ia64_reloc_type_lookup): Likewise. | |
1613 | (USE_BRL, oor_brl, oor_ip): New. | |
1614 | (elf64_ia64_relax_section): New. | |
1615 | (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I. | |
1616 | (elf64_ia64_install_value): Likewise, plus PCREL21BI. | |
1617 | (elf64_ia64_relocate_section): Likewise. | |
1618 | (bfd_elf64_bfd_relax_section): New. | |
1619 | * reloc.c (BFD_RELOC_IA64_PCREL21BI): New. | |
1620 | (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New. | |
1621 | * bfd-in2.h, libbfd.h: Regenerate. | |
1622 | ||
fb67355a NC |
1623 | 2000-05-22 Nick Clifton <nickc@cygnus.com> |
1624 | ||
1625 | * configure.in : Add peigen.lo to MIPS PE targets. | |
1626 | * configure: Regenerate. | |
1627 | ||
1fe494a5 NC |
1628 | 2000-05-22 Momchil Velikov <velco@fadata.bg> |
1629 | ||
1630 | * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess | |
748abff6 | 1631 | only if it is known for both input and output bfds. Separate |
1fe494a5 NC |
1632 | error message strings as in some languages, it may be necessary |
1633 | to change more than one place in the string to change between | |
77cb06e9 | 1634 | 'big' and 'little'. |
1fe494a5 NC |
1635 | |
1636 | * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline | |
77cb06e9 AM |
1637 | endianess checks, call _bfd_generic_verify_endian_match() instead. |
1638 | ||
1639 | * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise. | |
1fe494a5 | 1640 | |
77cb06e9 | 1641 | * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise. |
1fe494a5 NC |
1642 | |
1643 | * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify | |
77cb06e9 | 1644 | endianess before checking bfd flavours. |
1fe494a5 | 1645 | |
32c092c3 L |
1646 | 2000-05-22 H.J. Lu <hjl@gnu.org> |
1647 | ||
1648 | * elflink.h (elf_link_output_extsym): Clear the visibility | |
1649 | field for symbols not defined locally. | |
1650 | ||
df6d9773 JL |
1651 | 2000-05-18 Alan Modra <alan@linuxcare.com.au> |
1652 | ||
1653 | * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16, | |
1654 | re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn. | |
1655 | (hppa_rebuild_insn): Mask immediate bits here instead. | |
1656 | * elf-hppa.h (elf_hppa_relocate_insn): Mask here too. | |
1657 | ||
7ad34365 NC |
1658 | 2000-05-18 Momchil Velikov <velco@fadata.bg> |
1659 | ||
1660 | * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting | |
1661 | relocs for an executable, ensure that they are virtual addresses. | |
1662 | ||
d1dab720 JL |
1663 | Thu May 18 10:55:47 2000 Jeffrey A Law (law@cygnus.com) |
1664 | ||
1665 | * config.bfd (hppa*64*-*-hpux11*): New target triplet. | |
1666 | ||
a712da20 NC |
1667 | 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com> |
1668 | Rick Gorton <gorton@scrugs.lkg.dec.com> | |
77cb06e9 | 1669 | |
aa76cae8 | 1670 | * elflink.h: Add emitrelocations support: when enabled, relocation |
a712da20 NC |
1671 | information and relocation sections are put into final output |
1672 | executables. If the emitrelocations flag is set, do the following: | |
1673 | (elf_bfd_final_link): Emit relocation sections. | |
1674 | (elf_link_input_bfd): Compute relocation section contents. | |
1675 | (elf_gc_sections): Don't clean relocation sections. | |
1676 | ||
aa76cae8 | 1677 | 2000-05-16 Catherine Moore <clm@cygnus.com> |
10febd84 CM |
1678 | |
1679 | * som.c (som_decode_symclass): Recognize weak symbols. | |
1680 | ||
db8503c4 AM |
1681 | 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com> |
1682 | ||
1683 | * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that | |
1684 | read idata section only from dataoff. | |
1685 | (pe_print_edata): Correctly check for valid eat_member. | |
1686 | ||
851cde10 JR |
1687 | Tue May 16 00:04:11 2000 J"orn Rennecke <amylaar@cygnus.co.uk> |
1688 | ||
1689 | * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8. | |
1690 | ||
1bde2d57 PB |
1691 | 2000-05-14 Philip Blundell <philb@gnu.org> |
1692 | ||
1693 | * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets. | |
1694 | ||
a76b448c AM |
1695 | 2000-05-12 Alan Modra <alan@linuxcare.com.au> |
1696 | ||
9ee25201 AM |
1697 | * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec |
1698 | ||
a76b448c AM |
1699 | * peigen.c (pe_print_idata): Look for .idata section and print |
1700 | info even if data directory has zero entries. Read idata section | |
1701 | starting from dataoff, and adjust all data offsets to suit. Cast | |
1702 | all bfd_vma vars to unsigned long before passing to fprintf. | |
1703 | * peigen.c (pe_print_edata): Similarly, look for .edata section | |
1704 | and print info even if data directory has zero entries. Cast | |
1705 | all bfd_vma vars to unsigned long before passing to fprintf. | |
1706 | ||
1707 | From Szabolcs Szakacsits <szaka@F-Secure.com> | |
1708 | * peigen.c (pe_print_idata): Use bfd_section_size rather than data | |
1709 | directory size which may be bogus. | |
1710 | * peigen.c (pe_print_edata): Similarly. | |
1711 | ||
72730e0c AM |
1712 | 2000-05-09 Alan Modra <alan@linuxcare.com.au> |
1713 | ||
1714 | * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela | |
1715 | section is empty. | |
1716 | (copy_private_bfd_data): Allow for space possibly taken up by elf | |
1717 | headers when calculating segment physical address from lma. | |
1718 | ||
8181c403 AM |
1719 | 2000-05-08 Alan Modra <alan@linuxcare.com.au> |
1720 | ||
bfde9f99 AM |
1721 | * versados.c (versados_scan): Init stringlen and pass_2_done. |
1722 | ||
b35efbcd AM |
1723 | * trad-core.c (trad_unix_core_file_p): Return |
1724 | bfd_error_wrong_format rather than bfd_error_file_truncated. | |
1725 | ||
8181c403 AM |
1726 | * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to |
1727 | add_data_entry. DataDirectory virtual address is relative. | |
1728 | (pe_print_idata): Account for relative DataDirectory virtual | |
1729 | addresses. Don't trash datasize inside POWERPC_LE_PE code. | |
1730 | (pe_print_edata): Similarly. | |
1731 | ||
1732 | From Szabolcs Szakacsits <szaka@F-Secure.com> | |
1733 | * peigen.c (dir_names): Add Delay Import Directory. | |
1734 | (pe_print_idata): Always search for bfd section containing | |
1735 | idata address rather than looking up section name. Print this | |
1736 | section name rather than .idata. | |
1737 | (pe_print_edata): Similarly. Also print some fields as %08lx. | |
1738 | (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as | |
1739 | Win32Version. | |
1740 | ||
2c38bc20 CP |
1741 | Fri May 5 20:44:40 2000 Clinton Popetz <cpopetz@cygnus.com> |
1742 | ||
1743 | * xcoff.h: Rename to xcoff-target.h | |
1744 | * Makefile.am: Change all instances of xcoff.h to xcoff-target.h | |
1745 | * coff-rs6000.c: Ditto. | |
1746 | * coff64-rs6000.c: Ditto. | |
1747 | * coff-pmac.c: Ditto. | |
1748 | * Makefile.in: Regenerate. | |
77cb06e9 | 1749 | |
c6664dfb CP |
1750 | Fri May 5 16:51:03 2000 Clinton Popetz <cpopetz@cygnus.com> |
1751 | ||
1752 | * coffcode.h (coff_set_arch_mach_hook, coff_set_flags): | |
1753 | Change U802TOC64MAGIC to U803XTOCMAGIC. | |
1754 | ||
3425c182 MS |
1755 | 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com> |
1756 | ||
1757 | * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1. | |
1758 | * bfd-in.h: Prototype bfd_elf_get_arch_size. | |
1759 | * bfd-in2.h: Prototype bfd_elf_get_arch_size. | |
1760 | ||
7c30ac37 AM |
1761 | 2000-05-04 Alan Modra <alan@linuxcare.com.au> |
1762 | ||
1763 | * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma. | |
1764 |