blob: f1aa242b9b53d2bc5c43eee07be65ce896485f03 [file] [log] [blame]
Jan Kratochvilc6a41482013-12-17 18:49:54 +010012013-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2
3 unwinder: s390 and s390x
4 * Makefile.am (gen_SOURCES): Add eblnormalizepc.c and eblunwind.c.
5 * ebl-hooks.h (normalize_pc, unwind): New.
6 * eblnormalizepc.c: New file.
7 * eblunwind.c: New file.
8 * libebl.h (Ebl_Register_Location): Add field pc_register.
9 (ebl_normalize_pc): New declaration.
10 (ebl_tid_registers_get_t, ebl_pid_memory_read_t): New definitions.
11 (ebl_unwind): New declaration.
12
Jan Kratochvil5cbf42a2013-12-15 18:56:17 +0100132013-12-15 Jan Kratochvil <jan.kratochvil@redhat.com>
14
15 unwinder: ppc and ppc64
16 * Makefile.am (gen_SOURCES): Add ebldwarftoregno.c.
17 * ebl-hooks.h (dwarf_to_regno): New.
18 * ebldwarftoregno.c: New file.
19 * libebl.h (Ebl_Core_Item): New field pc_register.
20 (ebl_tid_registers_t): Add FIRSTREG -1 to the comment.
21 (ebl_dwarf_to_regno): New.
22
Petr Machata98c8a732013-11-26 03:10:31 +0100232013-11-25 Petr Machata <pmachata@redhat.com>
24
25 * eblopenbackend.c (machines): Add entry for AArch64.
26
Jan Kratochvil1c1a53b2013-11-14 20:55:41 +0100272013-11-14 Jan Kratochvil <jan.kratochvil@redhat.com>
28
29 Code cleanup: Remove const in prototype
30 * libebl.h (ebl_tid_registers_t): Remove const from firstreg.
31
Jan Kratochvil0b867462013-05-30 14:37:38 +0200322013-11-07 Jan Kratochvil <jan.kratochvil@redhat.com>
33 Mark Wielaard <mjw@redhat.com>
34
35 * Makefile.am (gen_SOURCES): Add eblinitreg.c.
36 * ebl-hooks.h (set_initial_registers_tid): New entry.
37 * eblinitreg.c: New file.
38 * libebl.h (ebl_tid_registers_t): New definition.
39 (ebl_set_initial_registers_tid, ebl_frame_nregs): New declarations.
40 * libeblP.h (struct ebl): New entry frame_nregs.
41
Mark Wielaard3dec3e12013-10-06 17:04:07 +0200422013-10-06 Mark Wielaard <mjw@redhat.com>
43
44 * libebl.h (ebl_abi_cfi): Document restrictions using register
45 rules.
46
Petr Machatab43bcfe2013-09-26 00:38:37 +0200472013-09-26 Petr Machata <pmachata@redhat.com>
48
49 * eblcorenotetypename.c: Handle NT_ARM_TLS, NT_ARM_HW_BREAK,
50 NT_ARM_HW_WATCH, NT_SIGINFO, NT_FILE.
51
Mark Wielaard2cfec292013-09-25 13:02:53 +0200522013-09-25 Mark Wielaard <mjw@redhat.com>
53
54 * eblsectionstripp.c (ebl_section_strip_p): Check shdr_l is not NULL.
55
Mark Wielaardcdaaf212013-04-25 16:50:11 -0400562013-04-24 Mark Wielaard <mjw@redhat.com>
57
58 * Makefile.am: Use AM_CPPFLAGS instead of INCLUDES.
59
Jan Kratochvil0631d1f2012-10-12 20:43:21 +0200602012-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
61
62 * ebl-hooks.h (abi_cfi): Extend its comment for return value.
63 * eblopenbackend.c (default_abi_cfi): Return -1.
64 * libebl.h (ebl_abi_cfi): Extend its comment for return value.
65
Petr Machata96896012012-08-30 16:01:02 +0200662012-08-30 Petr Machata <pmachata@redhat.com>
67
68 * eblcorenotetypename.c: Handle PPC_VSX, X86_XSTATE,
69 S390_HIGH_GPRS, S390_TIMER, S390_TODCMP, S390_TODPREG, S390_CTRS,
70 S390_PREFIX, S390_LAST_BREAK, S390_SYSTEM_CALL, and ARM_VFP.
71
Jeff Kenton257dcf42012-08-22 09:00:03 -0400722012-08-22 Jeff Kenton <jkenton@tilera.com>
73
74 * eblopenbackend.c (machines): Add tilegx.
75
Mark Wielaarda0172d72012-06-25 17:18:53 +0200762011-06-26 Mark Wielaard <mjw@redhat.com>
77
78 * eblopenbackend.c (default_debugscn_p): Add .debug_macro.
79
Mark Wielaardbb9d1b42011-04-24 17:53:38 +0200802011-04-26 Mark Wielaard <mjw@redhat.com>
81
82 * libebl.h (ebl_object_note_type_name): Add const char *name arg.
83 * eblhooks.h (object_note_type_name): Likewise.
84 * eblopenbackend.c (default_object_note_type_name): Likewise.
85 * eblobjnotetypename.c (ebl_object_note_type_name): Likewise.
86 And print version if name is "stapsdt".
87 * eblobjnote.c (ebl_object_note): Add output for "stapsdt" notes.
88
Marek Polacekcde0b272011-03-21 23:46:56 +0100892011-03-21 Marek Polacek <mpolacek@redhat.com>
90
91 * ebldynamictagname.c: Fix typo in TLSDESC_GOT.
92
Mark Wielaarda062b6b2011-03-10 13:02:32 +0100932011-03-10 Mark Wielaard <mjw@redhat.com>
94
95 * Makefile.am (gen_SOURCES): Add eblstother.c.
96 * eblstother.c: New file.
97 * ebl-hooks.h: Add check_st_other_bits hook.
98 * eblopenbackend.c (default_check_st_other_bits): New function.
99 (fill_defaults): Hook default_check_st_other_bits.
100 * libebl.h (ebl_check_st_other_bits): New prototype.
101
Roland McGrath804e9ca2010-07-07 16:06:12 -07001022010-07-07 Roland McGrath <roland@redhat.com>
103
104 * eblopenbackend.c (default_debugscn_p): Match .gdb_index section.
105
Roland McGrath22359e22010-02-15 15:57:03 -08001062010-02-15 Roland McGrath <roland@redhat.com>
107
108 * Makefile.am: Use config/eu.am for common stuff.
109
Roland McGrath0ccbbcd2010-01-04 21:59:07 -08001102010-01-04 Roland McGrath <roland@redhat.com>
111
112 * eblcorenote.c (ebl_core_note): Take GElf_Nhdr * and name data
113 pointer instead of only n_type and n_descsz.
114 * libebl.h: Update declaration.
115 * ebl-hooks.h: Update core_note hook signature.
116 * eblopenbackend.c (default_core_note): Likewise.
117
Roland McGrathf80c9072009-10-14 12:35:47 -07001182009-10-14 Roland McGrath <roland@redhat.com>
119
120 * eblobjnote.c (ebl_object_note): Clean up NT_GNU_GOLD_VERSION printing.
121
Roland McGratha14b4eb2009-10-05 11:32:26 -07001222009-10-05 Roland McGrath <roland@redhat.com>
123
124 * eblopenbackend.c (default_debugscn_p): Match .debug_pubtypes and
125 .debug_types too.
126
Petr Machatad3a8b2d2009-09-02 20:46:08 +02001272009-09-02 Petr Machata <pmachata@redhat.com>
128
129 * libebl/eblstrtab.c (morememory): Allocate memory in multiples of
130 pagesize.
131
Petr Machata077a7082009-08-06 18:45:08 +02001322009-08-06 Petr Machata <pmachata@redhat.com>
133
134 * libebl/eblstrtab.c (ebl_strtabfinalize): Only call copystrings
135 if we have any strings to copy.
136
Mark Wielaardbc1b92e2009-07-26 08:33:18 -07001372009-07-26 Mark Wielaard <mjw@redhat.com>
138
Mark Wielaard2f5b79e2009-07-26 14:49:26 -0700139 * eblobjnote.c (ebl_object_note): Handle NT_GNU_GOLD_VERSION.
140
Mark Wielaardbc1b92e2009-07-26 08:33:18 -0700141 * eblobjnotetypename.c (ebl_object_note_type_name): Recognize
142 NT_GNU_GOLD_VERSION.
143
Roland McGrath3c84db32009-06-24 17:41:40 -07001442009-07-08 Roland McGrath <roland@redhat.com>
145
146 * ebl-hooks.h: Add abi_cfi hook.
147 * eblopenbackend.c (default_abi_cfi): New function.
148 (fill_defaults): Add initializer.
149 * eblabicfi.c: New file.
150 * Makefile.am (gen_SOURCES): Add it.
151 * libebl.h: Declare ebl_abi_cfi.
152
Ulrich Drepper70c442c2009-07-08 00:53:24 -07001532009-07-08 Ulrich Drepper <drepper@redhat.com>
154
155 * eblsymbolbindingname.c (ebl_symbol_binding_name): Handle
156 STB_GNU_UNIQUE.
157
158 * eblsymboltypename.c (ebl_symbol_type_name): Only handle STT_GNU_IFUNC
159 if the binary is marked as being for Linux.
160
Roland McGrathd5ff6672009-04-01 18:28:41 -07001612009-04-01 Roland McGrath <roland@redhat.com>
162
163 * eblsymboltypename.c (ebl_symbol_type_name): Add STT_GNU_IFUNC.
164
165 * eblauxvinfo.c (AUXV_TYPES): Add RANDOM and BASE_PLATFORM.
166
Ulrich Drepper95fa15e2009-02-01 19:06:10 -08001672009-02-01 Ulrich Drepper <drepper@redhat.com>
168
169 * eblreloctypename.c (ebl_reloc_type_name): Return "<INVALID RELOC>"
170 instead of "???" for invalid relocations.
171
Roland McGratha845f682008-12-03 03:41:58 +00001722008-08-01 Roland McGrath <roland@redhat.com>
173
174 * eblcorenotetypename.c: Handle NT_386_IOPERM.
175
Roland McGrath1d8bb252008-08-07 08:39:41 +00001762008-07-28 Roland McGrath <roland@redhat.com>
177
178 * eblauxvinfo.c (AUXV_TYPES): Add EXECFN.
179
180 * eblauxvinfo.c (ebl_auxv_info): Handle missing elements of standard
181 table.
182
1832008-07-04 Roland McGrath <roland@redhat.com>
184
185 * libebl.h: Declare ebl_syscall_abi.
186 * ebl_syscall_abi.c: New file.
187 * Makefile.am (gen_SOURCES): Add it.
188 * ebl-hooks.h: New hook syscall_abi.
189 * eblopenbackend.c (default_syscall_abi): New function.
190 (fill_defaults): Use it.
191
Roland McGrath13b69602008-04-01 02:30:05 +00001922008-03-31 Roland McGrath <roland@redhat.com>
193
194 * ebldynamictagname.c (ebl_dynamic_tag_name): Use hex for unknown tag.
195
196 * ebl-hooks.h: Add check_special_section hook.
197 * eblopenbackend.c (fill_defaults): Set new hook to ...
198 (default_check_special_section): ... this, new function.
199 * ebl_check_special_section.c: New file.
200 * Makefile.am (gen_SOURCES): Add it.
201 * libebl.h: Declare it.
202
Roland McGrath059c83e2008-02-21 06:19:39 +00002032008-02-20 Roland McGrath <roland@redhat.com>
204
205 * libebl.h: Declare ebl_check_object_attribute.
206 * eblcheckobjattr.c: New file.
207 * Makefile.am (gen_SOURCES): Add it.
208 * ebl-hooks.h: Add check_object_attribute hook.
209 * eblopenbackend.c (default_check_object_attribute): New function.
210 (fill_defaults): Initialize pointer to it.
211
2122008-02-19 Roland McGrath <roland@redhat.com>
213
214 * eblsectiontypename.c (ebl_section_type_name):
215 Handle SHT_GNU_ATTRIBUTES.
216
2172008-02-08 Roland McGrath <roland@redhat.com>
218
219 * eblcorenotetypename.c (ebl_core_note_type_name): Handle NT_PPC_SPE.
220
2212008-01-30 Roland McGrath <roland@redhat.com>
222
223 * eblcorenotetypename.c (ebl_core_note_type_name): Handle NT_386_TLS.
224
Roland McGrathe4c22ea2007-10-23 13:07:39 +00002252007-10-18 Roland McGrath <roland@redhat.com>
226
227 * eblcorenotetypename.c (ebl_core_note_type_name): Handle NT_PPC_VMX.
228
Ulrich Drepperb597dfa2007-10-16 05:21:27 +00002292007-10-11 Roland McGrath <roland@redhat.com>
230
231 * eblobjnote.c (ebl_object_note): Translate target format (byte-swap)
232 for NT_GNU_ABI_TAG contents.
233
Roland McGrathcb6d8652007-08-23 08:10:54 +00002342007-08-22 Roland McGrath <roland@redhat.com>
235
236 * libebl.h (Ebl_Core_Item): New member `group'.
237
2382007-08-19 Roland McGrath <roland@redhat.com>
239
240 * ebl-hooks.h: Add new hook auxv_info.
241 * eblopenbackend.c (default_auxv_info): New function.
242 (fill_defaults): Initialize auxv_info hook.
243 * eblauxvinfo.c : New file.
244 * Makefile.am (gen_SOURCES): Add it.
245 * libebl.h: Declare ebl_auxv_info.
246
247 * eblcorenote.c: Rewritten with new signature.
248 * Makefile.am (gen_SOURCES): Add it.
249 * libebl.h (Ebl_Register_Location, Ebl_Core_Item): New types.
250 (ebl_core_note_info): Completely revamp signature.
251 * ebl-hooks.h: Update decl.
252 * eblopenbackend.c (default_core_note): Update signature.
253
Roland McGrath87d47802007-07-16 22:23:37 +00002542007-07-09 Roland McGrath <roland@redhat.com>
255
256 * eblobjnotetypename.c (ebl_object_note_type_name): Handle
257 NT_GNU_HWCAP, NT_GNU_BUILD_ID.
258
259 * eblobjnote.c (ebl_object_note): Handle NT_GNU_BUILD_ID.
260
Roland McGrath4be15242007-04-25 03:09:33 +00002612007-04-22 Roland McGrath <roland@redhat.com>
262
263 * eblcorenotetypename.c (ebl_core_note_type_name): Handle NT_PRXFPREG.
264
Ulrich Drepperc07fbb32007-03-30 19:14:59 +00002652007-03-10 Roland McGrath <roland@redhat.com>
266
267 * eblcorenote.c (ebl_core_note): For normally-zero types,
268 print in hex if not zero.
269
Ulrich Drepperaa915fd2007-02-05 07:25:33 +00002702007-01-11 Roland McGrath <roland@redhat.com>
271
272 * ebl-hooks.h (machine_section_flag_check): New hook.
273 * libebl.h: Declare ebl_machine_section_flag_check.
274 * eblmachinesectionflagcheck.c: New file.
275 * Makefile.am (gen_SOURCES): Add it.
276 * eblopenbackend.c (default_machine_section_flag_check): New function.
277 (fill_defaults): Use it.
278
Roland McGrathc373d852006-10-10 00:25:21 +00002792006-09-04 Roland McGrath <roland@redhat.com>
280
281 * ebl-hooks.h: Replace register_name hook with register_info.
282 Also yield natural bit width and base type encoding.
283 * eblopenbackend.c (default_register_name): Renamed
284 default_register_info, new args added.
285 (fill_defaults): Update initialization.
286 * eblregname.c: File renamed ...
287 * eblreginfo.c: ... to this.
288 (ebl_register_name): Renamed to ebl_register_info, new args added.
289 * libebl.h: Update decl.
290
291 * Makefile.am (gen_SOURCES): Update list.
292
Ulrich Drepper28ed8952006-07-07 03:43:47 +00002932006-07-06 Ulrich Drepper <drepper@redhat.com>
294
295 * ebldynamictagname.c: Add support for DT_GNU_HASH.
296 * ebldynamictagcheck.c: Likewise.
297 * eblsectiontypename.c: Add support for SHT_GNU_HASH.
298
2992006-07-05 Ulrich Drepper <drepper@redhat.com>
300
301 * Makefile.am (gen_SOURCES): Add eblsysvhashentrysize.c.
302 * libeblP.h (struct ebl): Add sysvhash_entrysize element.
303 * eblopenbackend.c (fill_defaults): Initialize sysvhash_entrysize.
304
305 * eblopenbackend.c (openbackend): If possible, fill machine, class,
306 and data values in from the ELF file.
307
3082006-07-04 Ulrich Drepper <drepper@redhat.com>
309
310 * Makefile.am (gen_SOURCES): Add eblrelativerelocp.c.
311 * eblrelativerelocp.c: New file.
312 * ebl-hooks.c: Add relative_reloc_p.
313 * eblopenbackend.c (default_relative_reloc_p): New function.
314 (fill_defaults): Hook it up.
315 * libebl.h: Declare ebl_relative_reloc_p.
316
Ulrich Drepper6ca46002006-06-12 22:40:23 +00003172006-06-12 Ulrich Drepper <drepper@redhat.com>
318
319 * Makefile.am (gen_SOURCES): Add eblnonerelocp.c.
320 * eblnonerelocp.c: New file.
321 * ebl-hooks.c: Add none_reloc_p.
322 * eblopenbackend.c (default_none_reloc_p): New function.
323 (fill_defaults): Hook it up.
324 * libebl.h: Declare ebl_none_reloc_p.
325
Ulrich Drepper41cbd762006-05-27 18:19:23 +00003262006-05-27 Ulrich Drepper <drepper@redhat.com>
327
328 * libebl.h: Add extern "C".
329
Roland McGrath994b4892005-12-05 22:46:21 +00003302005-11-25 Roland McGrath <roland@redhat.com>
331
332 * eblregname.c: New file.
333 * Makefile.am (gen_SOURCES): Add it.
334 * ebl-hooks.h: Declare register_name hook.
335 * libebl.h: Declare ebl_register_name.
336 * eblopenbackend.c (default_register_name): New function.
337 (fill_defaults): Use it.
338
Roland McGrath215c6322005-11-16 22:46:04 +00003392005-11-16 Roland McGrath <roland@redhat.com>
340
341 * libebl.h: Use "" for elf-knowledge.h, not <>.
342
Roland McGrathe47ab762005-11-17 03:16:00 +00003432005-11-15 Roland McGrath <roland@redhat.com>
344
345 * Makefile.am: Removed everything for building libebl_*.so modules,
346 now in ../backends/Makefile.am instead.
347 * alpha_init.c: Moved to ../backends.
348 * alpha_reloc.def: Likewise.
349 * alpha_retval.c: Likewise.
350 * alpha_symbol.c: Likewise.
351 * arm_init.c: Likewise.
352 * arm_reloc.def: Likewise.
353 * arm_symbol.c: Likewise.
354 * common-reloc.c: Likewise.
355 * i386_corenote.c: Likewise.
356 * i386_init.c: Likewise.
357 * i386_reloc.def: Likewise.
358 * i386_retval.c: Likewise.
359 * i386_symbol.c: Likewise.
360 * ia64_init.c: Likewise.
361 * ia64_reloc.def: Likewise.
362 * ia64_symbol.c: Likewise.
363 * libebl_CPU.h: Likewise.
364 * ppc64_init.c: Likewise.
365 * ppc64_reloc.def: Likewise.
366 * ppc64_retval.c: Likewise.
367 * ppc64_symbol.c: Likewise.
368 * ppc_init.c: Likewise.
369 * ppc_reloc.def: Likewise.
370 * ppc_retval.c: Likewise.
371 * ppc_symbol.c: Likewise.
372 * s390_init.c: Likewise.
373 * s390_reloc.def: Likewise.
374 * s390_symbol.c: Likewise.
375 * sh_init.c: Likewise.
376 * sh_reloc.def: Likewise.
377 * sh_symbol.c: Likewise.
378 * sparc_init.c: Likewise.
379 * sparc_reloc.def: Likewise.
380 * sparc_symbol.c: Likewise.
381 * x86_64_corenote.c: Likewise.
382 * x86_64_init.c: Likewise.
383 * x86_64_reloc.def: Likewise.
384 * x86_64_retval.c: Likewise.
385 * x86_64_symbol.c: Likewise.
386
387 * libebl.h: Comment fixes.
388
389 * alpha_retval.c: New file.
390 * Makefile.am (alpha_SRCS): Add it.
391 * alpha_init.c (alpha_init): Initialize return_value_location hook.
392
393 * ppc64_retval.c: New file.
394 * Makefile.am (ppc64_SRCS): Add it.
395 * ppc64_init.c (ppc64_init): Initialize return_value_location hook.
396
397 * ppc_retval.c: New file.
398 * Makefile.am (ppc_SRCS): Add it.
399 * ppc_init.c (ppc_init): Initialize return_value_location hook.
400
Roland McGrathcd60ea82005-11-16 01:57:40 +00004012005-11-14 Roland McGrath <roland@redhat.com>
402
403 * ia64_init.c (ia64_init): Initialize EH->reloc_simple_type.
404 * sh_init.c (sh_init): Likewise.
405 * x86_64_init.c (x86_64_init): Likewise.
406
407 * sparc_symbol.c (sparc_reloc_simple_type): New function.
408 * sparc_init.c (sparc_init): Use it.
409
410 * arm_symbol.c (arm_reloc_simple_type): New function.
411 * arm_init.c (arm_init): Use it.
412
413 * alpha_symbol.c (alpha_reloc_simple_type): New function.
414 * alpha_init.c (alpha_init): Use it.
415
416 * ia64_reloc.def: Update bits per H. J. Lu <hjl@lucon.org>.
417
418 * arm_reloc.def: Update bits per Daniel Jacobowitz <drow@false.org>.
419
420 * alpha_reloc.def: Update bits per Richard Henderson <rth@redhat.com>.
421
Roland McGrathe47ab762005-11-17 03:16:00 +00004222005-11-13 Roland McGrath <roland@redhat.com>
423
424 * x86_64_retval.c: New file.
425 * Makefile.am (x86_64_SRCS): Add it.
426 * x86_64_init.c (x86_64_init): Use x86_64_return_value_location.
427
428 * i386_retval.c: New file.
429 * Makefile.am (i386_SRCS): Add it.
430 (libdw): New variable.
431 (libebl_%.so): Use $(libdw) in link; use --as-needed.
432 * i386_init.c (i386_init): Use i386_return_value_location.
433
434 * eblretval.c: New file.
435 * Makefile.am (gen_SOURCES): Add it.
436 (INCLUDES): Search in libdw.
437 * libebl.h: Include <libdw.h>. Declare ebl_return_value_location.
438 * ebl-hooks.h: Declare return_value_location hook.
439 * eblopenbackend.c (default_return_value_location): New function.
440 (fill_defaults): Use it.
441
Roland McGrathcd60ea82005-11-16 01:57:40 +00004422005-11-10 Roland McGrath <roland@redhat.com>
443
444 * s390_init.c: New file.
445 * s390_reloc.def: New file.
446 * s390_symbol.c: New file.
447 * Makefile.am (modules, libebl_pic): Add s390.
448 (s390_SRCS, libebl_s390_pic_a_SOURCES): New variables.
449 (am_libebl_s390_pic_a_OBJECTS): New variable.
450
451 * ppc64_init.c: Use common-reloc.c.
452 * ppc64_symbol.c (ppc64_backend_name): Removed.
453 (ppc64_reloc_type_check, ppc64_reloc_type_name): Likewise.
454 (ppc64_copy_reloc_p, ppc64_reloc_valid_use): Likewise.
455
456 * ppc_init.c: Use common-reloc.c.
457 * ppc_symbol.c (ppc_backend_name): Removed.
458 (ppc_reloc_type_name, ppc_reloc_type_check): Likewise.
459 (ppc_reloc_valid_use, ppc_copy_reloc_p): Likewise.
460
461 * sparc_init.c: Use common-reloc.c.
462 * sparc_symbol.c (sparc_backend_name): Removed.
463 (sparc_reloc_type_name, sparc_reloc_type_check): Likewise.
464 (sparc_copy_reloc_p): Likewise.
465
466 * arm_init.c: Use common-reloc.c.
467 * arm_symbol.c (arm_backend_name): Removed.
468 (arm_reloc_type_name, arm_reloc_type_check, arm_copy_reloc_p): Removed.
469
470 * alpha_init.c: Use common-reloc.c.
471 * alpha_symbol.c (alpha_backend_name): Removed.
472 (alpha_reloc_type_name, alpha_reloc_type_check): Likewise.
473 (alpha_copy_reloc_p): Likewise.
474
475 * ia64_symbol.c (ia64_backend_name): Removed.
476 (ia64_reloc_type_name, ia64_reloc_type_check): Likewise.
477 (ia64_copy_reloc_p): Likewise.
478
479 * x86_64_init.c: Use common-reloc.c.
480 * x86_64_symbol.c (x86_64_backend_name): Removed.
481 (x86_64_copy_reloc_p, x86_64_reloc_valid_use): Likewise.
482 (x86_64_reloc_type_check, x86_64_reloc_type_name): Likewise.
483
484 * sh_init.c: Use common-reloc.c.
485 * sh_symbol.c: All functions removed.
486 (sh_reloc_simple_type): New function.
487 (sh_gotpc_reloc_check): New function.
488
489 * common-reloc.c: New file.
490 * Makefile.am (noinst_HEADERS): Add it.
491 * i386_init.c: Include it.
492
493 * sh_reloc.def: New file.
494 * i386_reloc.def: New file.
495 * alpha_reloc.def: New file.
496 * arm_reloc.def: New file.
497 * i386_reloc.def: New file.
498 * ia64_reloc.def: New file.
499 * ppc64_reloc.def: New file.
500 * ppc_reloc.def: New file.
501 * sh_reloc.def: New file.
502 * sparc_reloc.def: New file.
503 * x86_64_reloc.def: New file.
504 * Makefile.am (EXTRA_DIST): Add $(modules:=_reloc.def).
505
506 * libebl_alpha.map: Removed.
507 * libebl_ia64.map: Removed.
508 * libebl_ppc.map: Removed.
509 * libebl_sparc.map: Removed.
510 * libebl_arm.map: Removed.
511 * libebl_i386.map: Removed.
512 * libebl_ppc64.map: Removed.
513 * libebl_sh.map: Removed.
514 * libebl_x86_64.map: Removed.
515 * Makefile.am (EXTRA_DIST): Remove them.
516 (libebl_%.map, libebl_%.so): New pattern rules.
517
518 * libebl_alpha.h: Removed.
519 * libebl_ia64.h: Removed.
520 * libebl_ppc.h: Removed.
521 * libebl_sparc.h: Removed.
522 * libebl_arm.h: Removed.
523 * libebl_i386.h: Removed.
524 * libebl_ppc64.h: Removed.
525 * libebl_sh.h: Removed.
526 * libebl_x86_64.h: Removed.
527 * Makefile.am (noinst_HEADERS): Remove them.
528
529 * x86_64_corenote.c: Use libebl_CPU.h instead.
530 * x86_64_symbol.c: Likewise.
531 * i386_corenote.c: Likewise.
532
5332005-11-09 Roland McGrath <roland@redhat.com>
534
535 * ia64_symbol.c (ia64_reloc_simple_type): New function.
536
537 * ebl-hooks.h (reloc_simple_type): Take the Ebl handle, not Elf handle.
538 * eblrelocsimpletype.c (ebl_reloc_simple_type): Update caller.
539 * eblopenbackend.c (default_reloc_simple_type): Update signature.
540 * i386_symbol.c (i386_reloc_simple_type): Likewise.
541 * ppc64_symbol.c (ppc64_reloc_simple_type): Likewise.
542 * ppc_symbol.c (ppc_reloc_simple_type): Likewise.
543 * x86_64_symbol.c (x86_64_reloc_simple_type): Likewise.
544
545 * i386_symbol.c (i386_backend_name): Removed.
546 (i386_reloc_type_name, i386_reloc_type_check): Likewise.
547 (i386_reloc_valid_use): Removed.
548 (i386_copy_reloc_p): Removed.
549
550 * alpha_destr.c: Removed.
551 * arm_destr.c: Removed.
552 * i386_destr.c: Removed.
553 * ia64_destr.c: Removed.
554 * ppc64_destr.c: Removed.
555 * ppc_destr.c: Removed.
556 * sh_destr.c: Removed.
557 * sparc_destr.c: Removed.
558 * x86_64_destr.c: Removed.
559
560 * ebl-hooks.h: New file, broken out of ...
561 * libeblP.h (struct ebl): ... here. #include that for hook
562 declarations, after defining EBLHOOK macro.
563 * libebl_CPU.h: New file.
564 * Makefile.am (noinst_HEADERS): Add them.
565
566 * libeblP.h (struct ebl): Use uint_fast16_t for machine,
567 and uint_fast8_t for class and data.
568
5692005-08-14 Roland McGrath <roland@redhat.com>
570
571 * ia64_symbol.c (ia64_section_type_name): New function.
572 (ia64_dynamic_tag_check): New function.
573 (ia64_reloc_valid_use): New function.
574 * libebl_ia64.h: Declare them.
575 * ia64_init.c (ia64_init): Use them.
576 * Makefile.am (libebl_ia64.so): Link with libelf.
577
Ulrich Drepperfbe998a2005-08-29 16:27:10 +00005782005-08-28 Ulrich Drepper <drepper@redhat.com>
579
580 * Makefile.am: Use $(LINK) not $(CC) when creating DSOs.
581
Roland McGrathe53d04a2005-08-13 20:56:07 +00005822005-08-13 Roland McGrath <roland@redhat.com>
583
584 * ia64_symbol.c (ia64_machine_flag_check): New function.
585 * libebl_ia64.h: Declare it.
586 * ia64_init.c (ia64_init): Use it.
587
Ulrich Drepperc5c33a62005-08-13 17:50:47 +00005882005-08-13 Ulrich Drepper <drepper@redhat.com>
589
590 * libebl.h: Add ehdr parameter to ebl_bss_plt_p and
591 ebl_check_special_symbol.
592 * libeblP.h (struct ebl): Adjust callback functions.
593 * eblopenbackend.c: Adjust dummy functions.
594 * ebl_check_special_symbol.c: Add parameter and pass it on.
595 * eblbsspltp.c: Likewise.
596 * ppc_symbol.c (find_dyn_got): With ehdr passed, simplify search for
597 the dynamic section entry.
598 (ppc_check_special_symbol): Add ehdr parameter.
599 (ppc_bss_plt_p): Likewise.
600 * libebl_ppc.h: Adjust prototypes.
601 * ppc64_symbol.c (ppc_check_special_symbol): Add ehdr parameter.
602 (ppc_bss_plt_p): Likewise.
603 * libebl_ppc64.h: Adjust prototypes.
604
Roland McGrath653d3762005-08-13 01:59:10 +00006052005-08-12 Roland McGrath <roland@redhat.com>
606
Roland McGrathf8873cb2005-08-13 03:26:06 +0000607 * ppc_symbol.c (find_dyn_got): New function, broken out of ...
608 (ppc_bss_plt_p): ... here. Call that.
609 (ppc_check_special_symbol): Use find_dyn_got to fetch value to check
610 against _GLOBAL_OFFSET_TABLE_.
611
Roland McGrath653d3762005-08-13 01:59:10 +0000612 * libeblP.h (struct ebl): Add bss_plt_p hook.
613 * eblopenbackend.c (default_bss_plt_p): New function.
614 (fill_defaults): Use it.
615 * eblbsspltp.c: New file.
616 * Makefile.am (gen_SOURCES): Add it.
617 * libebl.h: Declare ebl_bss_plt_p.
618 * ppc_symbol.c (ppc_bss_plt_p): New function.
619 * libebl_ppc.h: Declare it.
620 * ppc_init.c (ppc_init): Use it.
621 * ppc64_symbol.c (ppc64_bss_plt_p): New function.
622 * libebl_ppc64.h: Declare it.
623 * ppc64_init.c (ppc64_init): Use it.
624
625 * ebl_check_special_symbol.c: New file.
626 * Makefile.am (gen_SOURCES): Add it.
627 * libebl.h: Declare ebl_check_special_symbol.
628 * libeblP.h (struct ebl): Add check_special_symbol hook.
629 * eblopenbackend.c (default_check_special_symbol): New function.
630 (fill_defaults): Use it.
631 * ppc_symbol.c (ppc_check_special_symbol): New function.
632 * libebl_ppc.h: Add prototype.
633 * ppc_init.c (ppc_init): Use it.
634 * ppc64_symbol.c (ppc64_check_special_symbol): New function.
635 * libebl_ppc64.h: Add prototype.
636 * ppc64_init.c (ppc64_init): Use it.
637
Ulrich Drepperb03b0572005-08-07 08:12:22 +00006382005-08-07 Ulrich Drepper <drepper@redhat.com>
639
640 * ppc_init.c: Add support for new DT_PPC_* and R_PPC_* values.
641 * ppc_symbol.c: Likewise.
642 * libebl_ppc.h: Likewise.
643 * ppc64_init.c: There is now also a dynamic_tag_check functions
644 * ppc64_symbol.c: Add dynamic_tag_check.
645 * libebl_ppc64.h: Add prototype.
646 * alpha_init.c: Add support for new DT_ALPHA_* value.
647 * alpha_symbol.c: Likewise.
648 * libebl_alpha.h: Likewise.
649
Ulrich Drepper6fcb3832005-08-03 21:10:49 +00006502005-08-03 Ulrich Drepper <drepper@redhat.com>
651
652 * libebl_alpha.map: Remove unnecessary exports.
653 * libebl_arm.map: Likewise.
654 * libebl_i386.map: Likewise.
655 * libebl_ia64.map: Likewise.
656 * libebl_ppc.map: Likewise.
657 * libebl_ppc64.map: Likewise.
658 * libebl_sh.map: Likewise.
659 * libebl_sparc.map: Likewise.
660 * libebl_x86_64.map: Likewise.
661
Ulrich Dreppera38998e2005-08-03 02:05:39 +00006622005-08-02 Ulrich Drepper <drepper@redhat.com>
663
664 * Makefile.am (libebl_a_SOURCES): Add eblelfclass.c, eblelfdata.c,
665 and eblelfmachine.c.
666 * elbopenbackend.c (machines): Add class and data fields. Initialize
667 them.
668 (ebl_openbackend): Initialize machine, class, data fields in result.
669 * libebl.h: Declare Add eblelfclass, eblelfdata, and eblelfmachine.
670 * libeblP.h (Ebl): Add machine, class, data fields.
671
Ulrich Drepperb08d5a82005-07-26 05:00:05 +00006722005-07-23 Ulrich Drepper <drepper@redhat.com>
673
674 * eblsectionstripp.c: New file.
675 * Makefile.am (gen_SOURCES): Add eblsectionstripp.c.
676 * i386_init.c (i386_init): Install specific debugscn_p callback.
677 * i386_symbol.c (i386_debugscn_p): New function.
678 * libebl.h: Declare ebl_section_strip_p.
679 * libebl_i386.h: Declare i386_debugscn_p.
680
681 * libebl.h: Move Ebl definition to...
682 * libeblP.h: ...here.
683
6842005-07-21 Roland McGrath <roland@redhat.com>
685
686 * Makefile.am (install-ebl-modules): New target, commands from ...
687 (install): ... here. Make this depend on it.
688 (LIBEBL_SUBDIR): New variable, substituted by configure.
689 (install-ebl-modules): Install in $(libdir)/$(LIBEBL_SUBDIR).
690 * eblopenbackend.c (openbackend): Use LIBEBL_SUBDIR in module name.
691
6922005-07-21 Ulrich Drepper <drepper@redhat.com>
693
694 * eblcopyrelocp.c: New file.
695 * Makefile.am (gen_SOURCES): Add eblcopyrelocp.c.
696 * libebl.h: Declare ebl_copy_reloc_p.
697 * eblopenbackend.c (fill_defaults): Fill in copy_reloc_p.
698 (default_copy_reloc_p): New function.
699 * alpha_init.c: Define and use arch-specific copy_reloc_p function.
700 * alpha_symbol.c: Likewise.
701 * arm_init.c: Likewise.
702 * arm_symbol.c: Likewise.
703 * i386_init.c: Likewise.
704 * i386_symbol.c: Likewise.
705 * ia64_init.c: Likewise.
706 * ia64_symbol.c: Likewise.
707 * ppc64_init.c: Likewise.
708 * ppc64_symbol.c: Likewise.
709 * ppc_init.c: Likewise.
710 * ppc_symbol.c: Likewise.
711 * sh_init.c: Likewise.
712 * sh_symbol.c: Likewise.
713 * sparc_init.c: Likewise.
714 * sparc_symbol.c: Likewise.
715 * x86_64_init.c: Likewise.
716 * x86_64_symbol.c: Likewise.
717 * libebl_alpha.h: Declare the copy_reloc_p function.
718 * libebl_arm.h: Likewise.
719 * libebl_i386.h: Likewise.
720 * libebl_ia64.h: Likewise.
721 * libebl_ppc.h: Likewise.
722 * libebl_ppc64.h: Likewise.
723 * libebl_sh.h: Likewise.
724 * libebl_sparc.h: Likewise.
725 * libebl_x86_64.h: Likewise.
726
7272005-05-31 Roland McGrath <roland@redhat.com>
728
729 * Makefile.am (libebl_*_so_SOURCES): Set to $(*_SRCS) so dependency
730 tracking works right.
731
7322005-05-21 Ulrich Drepper <drepper@redhat.com>
733
734 * libebl_x86_64.map: Add x86_64_core_note.
735
7362005-05-19 Roland McGrath <roland@redhat.com>
737
738 * libebl_i386.map: Add i386_reloc_valid_use, i386_reloc_simple_type.
739 * libebl_ppc.map: Add ppc_reloc_simple_type.
740 * libebl_ppc64.map: Add ppc64_reloc_simple_type.
741 * libebl_x86_64.map: Add x86_64_reloc_simple_type.
742
7432005-05-11 Ulrich Drepper <drepper@redhat.com>
744
745 * eblcorenote.c: Handle new AT_* values and files with different
746 endianess.
747 * Makefile.am (x86_64_SRCS): Add x86_64_corenote.c.
748 * x86-64_corenote.c: New file.
749 * x86_64_init.c: Hook in x86_64_corenote.
750 * i386_corenote.c: Make file usable on 64-bit platforms.
751
752 * eblopenbackend.c: If modules version comparison fails, reinitialize
753 hooks.
754
7552005-05-10 Ulrich Drepper <drepper@redhat.com>
756
757 * eblopenbackend.c: Require the init function to return a string.
758 Compare it with MODVERSION from config.h.
759 * alpha_init.c: Change return type. Return MODVERSION or NULL.
760 * arm_init.c: Likewise.
761 * eblopenbackend.c: Likewise.
762 * i386_init.c: Likewise.
763 * ia64_init.c: Likewise.
764 * ppc64_init.c: Likewise.
765 * ppc_init.c: Likewise.
766 * sh_init.c: Likewise.
767 * sparc_init.c: Likewise.
768 * x86_64_init.c: Likewise.
769 * libeblP.h: Adjust ebl_bhinit_t.
770 * libebl_alpha.h: Adjust init function prototype.
771 * libebl_arm.h: Likewise.
772 * libebl_i386.h: Likewise.
773 * libebl_ia64.h: Likewise.
774 * libebl_ppc.h: Likewise.
775 * libebl_ppc64.h: Likewise.
776 * libebl_sh.h: Likewise.
777 * libebl_sparc.h: Likewise.
778 * libebl_x86_64.h: Likewise.
779
780 * mips_destr.c: Removed.
781 * mips_init.c: Removed.
782 * mips_symbol.c: Removed.
783 * libebl_mips.h: Removed.
784 * libebl_mips.map: Removed.
785
7862005-05-03 Roland McGrath <roland@redhat.com>
787
788 * libebl.h (Ebl): Add `reloc_simple_type' member.
789 * eblopenbackend.c (default_reloc_simple_type): New function.
790 (openbackend): Use that as default reloc_simple_type callback.
791 * eblrelocsimpletype.c: New file.
792 * Makefile.am (gen_SOURCES): Add it.
793 * i386_symbol.c (i386_reloc_simple_type): New function.
794 * libebl_i386.h: Declare it.
795 * i386_init.c (i386_init): Use it.
796 * x86_64_symbol.c (x86_64_reloc_simple_type): New function.
797 * libebl_x86_64.h: Declare it.
798 * x86_64_init.c (x86_64_init): Use it.
799 * ppc_symbol.c (ppc_reloc_simple_type): New function.
800 * libebl_ppc.h: Declare it.
801 * ppc_init.c (ppc_init): Use it.
802 * ppc64_symbol.c (ppc64_reloc_simple_type): New function.
803 * libebl_ppc64.h: Declare it.
804 * ppc64_init.c (ppc64_init): Use it.
805
8062005-03-17 Ulrich Drepper <drepper@redhat.com>
807
808 * eblcorenote.c (ebl_core_note): Add support for AT_SECURE.
809
8102005-02-15 Ulrich Drepper <drepper@redhat.com>
811
812 * Makefile.am (AM_CFLAGS): Add -Wformat=2.
813
8142005-02-14 Ulrich Drepper <drepper@redhat.com>
815
816 * alpha_destr.c: Add __attribute__((unused)) where needed.
817 * alpha_init.c: Likewise.
818 * alpha_symbol.c: Likewise.
819 * arm_destr.c: Likewise.
820 * arm_init.c: Likewise.
821 * arm_symbol.c: Likewise.
822 * i386_corenote.c: Likewise.
823 * i386_destr.c: Likewise.
824 * i386_init.c: Likewise.
825 * i386_symbol.c: Likewise.
826 * ia64_destr.c: Likewise.
827 * ia64_init.c: Likewise.
828 * ia64_symbol.c: Likewise.
829 * mips_destr.c: Likewise.
830 * mips_init.c: Likewise.
831 * mips_symbol.c: Likewise.
832 * ppc64_destr.c: Likewise.
833 * ppc64_init.c: Likewise.
834 * ppc64_symbol.c: Likewise.
835 * ppc_destr.c: Likewise.
836 * ppc_init.c: Likewise.
837 * ppc_symbol.c: Likewise.
838 * sh_destr.c: Likewise.
839 * sh_init.c: Likewise.
840 * sh_symbol.c: Likewise.
841 * sparc_destr.c: Likewise.
842 * sparc_init.c: Likewise.
843 * sparc_symbol.c: Likewise.
844 * x86_64_destr.c: Likewise.
845 * x86_64_init.c: Likewise.
846 * x86_64_symbol.c: Likewise.
847
848 * x86_64_symbol.c (reloc_map_table): Fix entries for R_X86_64_64
849 and R_X86_64_32..
850
8512005-02-06 Ulrich Drepper <drepper@redhat.com>
852
853 * eblstrtab.c: A few cleanups.
854
855 * eblopenbackend.c: Mark unused parameters.
856
857 * eblgstrtab.c: Cleanups a few printf format strings.
858
859 * Makefile.am: Cleanup AM_CFLAGS handling. Add -Wunused -Wextra.
860
8612005-02-05 Ulrich Drepper <drepper@redhat.com>
862
863 * Makefile.am: Check for text relocations in constructed DSOs.
864
865 * eblstrtab.c: Minor cleanups.
866
867 * Makefile.am (AM_CFLAGS): Add -std=gnu99 and -fmudflap for MUDFLAP.
868
8692004-08-16 Ulrich Drepper <drepper@redhat.com>
870
871 * Makefile.am (AM_CFLAGS): Add LIBSTR definition with base name of
872 the lib directory.
873 * eblopenbackend.c (openbackend): Use LIBSTR instead of hardcoded
874 lib in path to ebl modules.
875
8762004-04-01 Ulrich Drepper <drepper@redhat.com>
877
878 * Makefile.am: Add rules for ppc and ppc64 ebl module.
879 * ppc_init..c: New file.
880 * ppc_destr.c: New file.
881 * ppc_symbol.c: New file.
882 * libebl_ppc.h: New file.
883 * libebl_ppc.map: New file.
884 * ppc64_init..c: New file.
885 * ppc64_destr.c: New file.
886 * ppc64_symbol.c: New file.
887 * libebl_ppc64.h: New file.
888 * libebl_ppc64.map: New file.
889
8902004-01-20 Ulrich Drepper <drepper@redhat.com>
891
892 * Makefile.am: Support building with mudflap.
893
8942004-01-18 Ulrich Drepper <drepper@redhat.com>
895
896 * libeblP.h (_): Use elfutils domain.
897
8982004-01-16 Ulrich Drepper <drepper@redhat.com>
899
900 * eblsectionname.c: Add support for SHN_BEFORE and SHN_AFTER.
901
9022004-01-13 Ulrich Drepper <drepper@redhat.com>
903
904 * eblsegmenttypename.c ((ebl_segment_type_name): Add support for
905 PT_GNU_RELRO.
906
9072004-01-08 Ulrich Drepper <drepper@redhat.com>
908
909 * libebl.h: Remove last traces of libtool.
910
9112004-01-05 Ulrich Drepper <drepper@redhat.com>
912
913 * elf-knowledge.h: Move to libelf subdir.
914
915 * Makefile.am (EXTRA_DIST): Remove libebl.map.
916 * libebl.map: Removed.
917
9182003-12-08 Ulrich Drepper <drepper@redhat.com>
919
920 * eblsectiontypename.c (ebl_section_type_name): Add support for
921 SHT_SUNW_move, SHT_CHECKSUM, and SHT_GNU_LIBLIST.
922
9232003-11-19 Ulrich Drepper <drepper@redhat.com>
924
925 * ia64_symbol.c (ia64_dynamic_tag_name): New function.
926 * libebl_ia64.h (ia64_dynamic_tag_name): Declare.
927 * ia64_init.c (ia64_init): Register i164_dynamic_tag_name.
928
9292003-09-24 Ulrich Drepper <drepper@redhat.com>
930
931 * ia64_init.c (ia64_init): Initialize segment_type_name callback.
932 * ia64_symbol.c (ia64_segment_type_name): Define.
933 * libebl_ia64.h (ia64_segment_type_name): Declare.
934
9352003-09-22 Ulrich Drepper <drepper@redhat.com>
936
937 * Makefile.am (AM_CFLAGS): Add -fpic.
938
9392003-08-14 Ulrich Drepper <drepper@redhat.com>
940
941 * Makefile.am (install): Remove dependency on libebl.so.
942
9432003-08-13 Ulrich Drepper <drepper@redhat.com>
944
945 * eblopenbackend.c: Adjust relative path to arch-specific DSOs
946 assuming the code ends up in the application. Add second dlopen()
947 try without any path, just the filename.
948 * Makefile.in: Remove rules to build and install libebl.so.
949
9502003-08-11 Ulrich Drepper <drepper@redhat.com>
951
952 * Moved to CVS archive.