2004-01-09 Michael Chastain <mec.gnu@mindspring.com>
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
1e7fef1d
NC
12004-01-08 Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
2
3 * coff-arm.c (coff_arm_relocate_section): Do not alter relocs that
4 are not partial_inplace during a relocatable link.
5
4f075348
KH
62004-01-08 Kazu Hirata <kazu@cs.umass.edu>
7
8 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Terminate early
9 if no dynamic object is present. Declare r_symndx and h in an
10 inner scope.
11
de0d9f33
L
122004-01-07 H.J. Lu <hongjiu.lu@intel.com>
13
14 * elfxx-ia64.c (elfNN_ia64_relax_section): Don't install
15 trampoline if it is known out of range.
16
51532845
AO
172004-01-06 Alexandre Oliva <aoliva@redhat.com>
18
19 2003-12-17 Alexandre Oliva <aoliva@redhat.com>
20 * elf32-frv.c (_frv_osec_readonly_p): New.
21 (_frv_emit_got_relocs_plt_entries): Don't emit rofixup for
22 undefweak symbol.
23 (_frv_count_got_plt_entries): Adjust expected count accordingly.
24 (elf32_frv_relocate_section): Likewise. Error out if attempting
25 to emit rofixups or dynamic relocs in read-only segments. Use
26 _bfd_elf_section_offset to adjust r_offsets in rofixups and
27 dynamic relocations.
28 2003-12-12 Alexandre Oliva <aoliva@redhat.com>
29 * elf32-frv.c (elf32_frv_relocate_section): Compute dynamic
30 relocations or fixups involving merged sections correctly. Avoid
31 crash when undefined symbol is referenced by R_FRV_32 or
32 R_FRV_FUNCDESC_VALUE.
33 2003-12-02 Alexandre Oliva <aoliva@redhat.com>
34 * elf32-frv.c (elf32_frv_relocate_section): Add output_offset of
35 input section holding local symbol to addend of R_FRV_32 or
36 R_FRV_FUNCDESC_VALUE dynamic relocation.
37 2003-11-27 Alexandre Oliva <aoliva@redhat.com>
38 * elf32-frv.c (elf32_frv_modify_segment_map): Add link info arg.
39 (elf32_frv_always_size_sections): Don't store pointer to
40 __stacksize symbol in sec_info.
41 (elf32_frv_modify_segment_map): Look it up here.
42 2003-11-26 Alexandre Oliva <aoliva@redhat.com>
43 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Emit the address
44 of the lazy PLT entry, not only its offset, as the low word of a
45 function descriptor.
46 2003-11-10 Alexandre Oliva <aoliva@redhat.com>
47 * elf32-frv.c (elf32_frv_always_size_sections): Define __stacksize
48 if a hash table entry already exists but is not a definition.
49 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
50 * elf32-frv.c (frv_elf_link_hash_table_create): Use bfd_zalloc.
51 (_frv_add_rofixup): Don't inline.
52 (_frv_emit_got_relocs_plt_entries): Use NULL as funcdesc address
53 for undefweak symbols.
54 (elf32_frv_relocate_section): Avoid crash while computing
55 relocation when linking with shared library. Only emit rofixups
56 and dynamic relocations for alloc&load sections. Mark binaries
57 with inter-segment relocations for relocation as a unit.
58 (_frv_create_got_section): Rename .rofixup.got to .rofixup.
59 (DEFAULT_STACK_SIZE): New.
60 (_frv_count_got_plt_entries): Fix thinko in deciding whether to
61 emit rofixups or dynamic relocs when linking dynamic non-PIE
62 executables.
63 (elf32_frv_size_dynamic_sections): Generate rofixup on PIEs and
64 shared libs too. Reserve the last entry for the GOT pointer.
65 (elf32_frv_finish_dynamic_sections): Emit it.
66 (elf32_frv_always_size_sections): New.
67 (elf32_frv_modify_segment_map): New.
68 (elf32_frv_check_relocs): Reserve relocs32 space only in ALLOC
69 sections.
70 (frv_elf_merge_private_bfd_data): Clear PIC bit if FDPIC is set.
71 (frv_elf_print_private_bfd_data): Handle FDPIC and LIBPIC.
72 (elf_backend_always_size_sections): New.
73 (elf_backend_modify_segment_map): New.
74 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
75 * config.bfd: Added frv-*-*linux*.
76 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Use idx 0 for
77 ABS section, instead of crashing.
78 (elf32_frv_relocate_section): Don't crash before warning about
79 different segments in non-PIC relocation.
80 2003-10-17 Alexandre Oliva <aoliva@redhat.com>
81 * elf32-frv.c (elf32_frv_relocate_section): Don't warn on LABEL24
82 relocs to undefweak symbols.
83 (elf32_frv_relocate_section): Ditto for undefined symbols.
84 2003-10-06 Alexandre Oliva <aoliva@redhat.com>
85 * elf32-frv.c (elf32_frv_create_dynamic_sections): Make sure
86 gotfixup section was created.
87 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
88 * elf32-frv.c (elf32_frv_howto_table): Change GOT12,
89 FUNCDESC_GOT12, GOTOFF12 and FUNCDESC_GOTOFF12 to
90 complain_overflow_signed.
91 * elf32-frv.c (_frv_add_rofixup): Do not error out if contents
92 have not been allocated.
93 (_frv_emit_got_relocs_plt_entries): Return non-void. Assert
94 privfd only if dynamic sections were created.
95 (elf32_frv_relocate_section): Compute gprel_segment, and use it
96 for GPREL relocs. When linking relocatable FDPIC executables,
97 emit warnings for relocations that would be illegal on PIE or
98 shared libraries. Emit rofixup for R_FRV_32 only if input object
99 is not FDPIC.
100 (_frv_create_got_section): Define _gp symbol in the rofixup
101 section.
102 (elf32_frv_finish_dynamic_sections): If rofixups needed but
103 dynamic sections missing, error out requesting -melf32frvfd.
104 2003-09-19 Alexandre Oliva <aoliva@redhat.com>
105 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Rearrange
106 computation of addends from section and global or local symbol
107 value. Change return type to bfd_boolean, and return a failure if
108 a dynamic FUNCDESC or FUNCDESC_VALUE relocation that requires a
109 nonzero addend is required.
110 (elf32_frv_relocate_section): Likewise. Print error for
111 unsupported nonzero addends.
112 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
113 * elf32-frv.c (FRV_SYM_LOCAL): In the absence of dynamic sections,
114 force everything local.
115 (_frv_emit_got_relocs_plt_entries): Cope with NULL sec.
116 * elf32-frv.c (struct frv_elf_link_hash_table): Added sgotfixup.
117 (frv_gotfixup_section): New.
118 (FRV_SYM_LOCAL): Accept undefweak and local common symbols.
119 (struct frv_pic_relocs_info): Split relocs into relocs32, relocsfd
120 and relocsfdv.
121 (_frv_add_rofixup): New.
122 (_frv_emit_got_relocs_plt_entries): Generate fixups for non-PIE
123 fdpic executables. Use FRV_SYM_LOCAL more widely to simplify and
124 improve some ugly conditions.
125 (elf32_frv_relocate_section): Likewise. Reject inter-segment
126 relocations in fdpic.
127 (_frv_create_got_section): Create .rofixup.got section.
128 (struct _frv_dynamic_got_info): Added fixups.
129 (_frv_count_got_plt_entries): Account in-GOT relocations into
130 relocs32, relocsfd and relocsfdv. Account them into relocs or
131 fixups, as appropriate.
132 (elf32_frv_size_dynamic_sections): Size rofixup section. Simplify
133 sizing of gotrel.
134 (elf32_frv_finish_dynamic_sections): Verify that the right number
135 of relocations and fixups was generated.
136 (elf32_frv_check_relocs): Compute relocs32, relocsfd and
137 relocsfdv.
138 * elf32-frv.c (FRV_SYM_LOCAL): New macro, used instead of
139 SYMBOL_CALLS_LOCAL and SYMBOL_REFERENCES_LOCAL.
140 (FRV_FUNCDESC_LOCAL): New macro, used to decide whether a function
141 descriptor of a (formerly-)global symbol is local.
142 (struct frv_pic_relocs_info): Adjust comments.
143 (_frv_emit_got_relocs_plt_entries): Adjust.
144 (elf32_frv_relocate_section): Likewise.
145 (_frv_count_got_plt_entries): Likewise.
146 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Don't add global
147 symbol's value to addend in the common preamble. Decay dynamic
148 symbols to section+offset if they bind or call locally, for GOT
149 and FUNCDESC_VALUE, respectively.
150 (elf32_frv_relocate_section): Likewise.
151 (elf32_frv_check_relocs): Don't register as dynamic symbols of
152 internal or hidden visibility.
153 2003-09-17 Alexandre Oliva <aoliva@redhat.com>
154 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Get addend as
155 argument, so as to not call _bfd_elf_rel_local_sym to compute it.
156 (elf32_frv_relocate_section): Pass relocation addend in. Use
157 original relocation addend to look up the got relocs/plt entries
158 table. Do not call _bfd_elf_rel_local_sym. Don't error out when
159 processing relocations that reference .scommon symbols.
160 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
161 Introduce support for dynamic linking.
162 * elf32-frv.c (R_FRV_FUNCDESC_VALUE): Mark it as 64 bits.
163 (elf32_frv_rel_32_howto, elf32_frv_rel_funcdesc_howto,
164 elf32_frv_rel_funcdesc_value_howto): New REL descriptors.
165 (frv_reloc_type_lookup): Return REL howtos for executables and
166 dynamic libraries.
167 (frv_info_to_howto_rel): New.
168 (struct frv_elf_link_hash_table): New.
169 (frv_hash_table, frv_got_section, frv_gotrel_section,
170 frv_plt_section, frv_pltrel_section, frv_relocs_info,
171 frv_got_initial_offset, frv_plt_initial_offset): New macros.
172 (frv_elf_link_hash_table_create): New.
173 (struct frv_pic_relocs_info): New.
174 (frv_pic_relocs_info_hash, frv_pic_relocs_info_eq): New.
175 (frv_pic_relocs_info_find): New.
176 (frv_pic_relocs_info_for_global, frv_pic_relocs_info_for_local):
177 New.
178 (FRV_LZPLT_BLOCK_SIZE, FRV_LZPLT_RESOLVE_LOC): New.
179 (_frv_add_dyn_reloc, _frv_osec_to_segment): New.
180 (_frv_emit_got_relocs_plt_entries): New.
181 (elf32_frv_relocate_section): Add support for dynamic linking.
182 Handle new relocations.
183 (_frv_create_got_section): New.
184 (elf32_frv_create_dynamic_sections): New.
185 (ELF_DYNAMIC_INTERPRETER): New.
186 (struct _frv_dynamic_got_info): New.
187 (_frv_count_got_plt_entries): New.
188 (struct _frv_dynamic_got_plt_info): New.
189 (_frv_compute_got_alloc_data): New.
190 (_frv_get_got_entry, _frv_get_fd_entry): New.
191 (_frv_assign_got_entries, _frv_assign_plt_entries): New.
192 (_frv_resolve_final_relocs_info): New.
193 (elf32_frv_size_dynamic_sections): New.
194 (elf32_frv_finish_dynamic_sections): New.
195 (elf32_frv_adjust_dynamic_symbol): New.
196 (elf32_frv_finish_dynamic_symbol): New.
197 (elf32_frv_check_relocs): Handle new relocs. Explain how the
198 whole thing works.
199 (elf_info_to_howto_rel): Define.
200 (bfd_elf32_bfd_link_hash_table_create): Define.
201 (elf_backend_create_dynamic_sections): Define.
202 (elf_backend_adjust_dynamic_symbol): Define.
203 (elf_backend_size_dynamic_sections): Define.
204 (elf_backend_finish_dynamic_symbol): Define.
205 (elf_backend_finish_dynamic_sections): Define.
206 (elf_backend_want_got_sym): Define.
207 (elf_backend_got_header_size): Define.
208 (elf_backend_want_got_plt): Define.
209 (elf_backend_plt_readonly): Define.
210 (elf_backend_want_plt_sym): Define.
211 (elf_backend_plt_header_size): Define.
212 (elf_backend_may_use_rel_p): Define.
213 (elf_backend_may_use_rela_p): Define.
214 (elf_backend_default_use_rela_p): Define.
215 2003-08-08 Alexandre Oliva <aoliva@redhat.com>
216 * elf32-frv.c (R_FRV_FUNCDESC_VALUE, R_FRV_FUNCDESC_GOTOFF12,
217 R_FRV_FUNCDESC_GOTOFFHI, R_FRV_FUNCDESC_GOTOFFLO, R_FRV_GOTOFF12,
218 R_FRV_GOTOFFHI, R_FRV_GOTOFFLO): New.
219 (frv_reloc_map): Map the corresponding BFD relocs to them.
220 (frv_reloc_type_lookup): ... and back to BFD relocs.
221 * reloc.c: New relocs.
222 * bfd-in2.h, libbfd.h: Rebuilt.
223 2003-08-04 Alexandre Oliva <aoliva@redhat.com>
224 * elf32-frv.c (R_FRV_GOT12, R_FRV_GOTHI, R_FRV_GOTLO,
225 R_FRV_FUNCDESC, R_FRV_FUNCDESC_GOT12, R_FRV_FUNCDESC_GOTHI,
226 R_FRV_FUNCDESC_GOTLO): New.
227 (frv_reloc_map): Map the corresponding BFD relocs to them.
228 (frv_reloc_type_lookup): ... and back to BFD relocs.
229 * reloc.c: New relocs.
230 * bfd-in2.h, libbfd.h: Rebuilt.
231
4301eeb1
MR
2322004-01-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
233
234 * elf32-mips.c (ELF_MAXPAGESIZE): Redefine for traditional
235 targets to support pages of up to 64kB.
236 (elf32_bed): Redefine to get a separate backend data structure for
237 traditional targets.
238 * elf64-mips.c (ELF_MAXPAGESIZE): Redefine for traditional
239 targets to support pages of up to 64kB.
240 (elf64_bed): Redefine to get a separate backend data structure for
241 traditional targets.
242 * elfn32-mips.c (ELF_MAXPAGESIZE): Redefine for traditional
243 targets to support pages of up to 64kB.
244 (elf32_bed): Redefine to get a separate backend data structure for
245 traditional targets.
246
0647ed71
MK
2472004-01-04 Mark Kettenis <kettenis@gnu.org>
248
249 * elf32-sparc.c (elf32_sparc_grok_psinfo): New function.
250
61adc1a4
NC
2512004-01-02 Mark Kettenis <kettenis@gnu.org>
252
253 * elf32-i386.c (elf_i386_grok_prstatus): Add support for FreeBSD.
254 (elf_i386_grok_psinfo): Likewise.
255
b50c15dc
NC
2562004-01-02 Bernardo Innocenti <bernie@develer.com>
257
258 * config.bfd: Add m68k-uClinux target.
259
2627de83
AM
2602004-01-01 Grant Edwards <grante@visi.com>
261
262 * elflink.h (elf_gc_sections): Warn when gc-sections option is ignored.
263 * elf32-h8300.c (elf32_h8_gc_mark_hook): New function.
264 (elf32_h8_gc_sweep_hook): New function.
265 (elf_backend_gc_mark_hook): Define.
266 (elf_backend_gc_sweep_hook): Define.
267 (elf_backend_can_gc_sections): Define.
268
c9e214e5 269For older changes see ChangeLog-0203
56882138
AM
270\f
271Local Variables:
272mode: change-log
273left-margin: 8
274fill-column: 74
275version-control: never
276End:
This page took 0.22082 seconds and 4 git commands to generate.