diff options
author | Ian Lance Taylor <ian@airs.com> | 2000-02-13 22:45:29 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 2000-02-13 22:45:29 +0000 |
commit | 7f8d5fc90bf3c799976edffa902e03edf1455061 (patch) | |
tree | 50ddd0462bbe7f357e153435e453453caf154675 /bfd/bfd-in.h | |
parent | e3c976c4eb27fa23ff52c5d32dceb98ef0891f64 (diff) | |
download | gdb-7f8d5fc90bf3c799976edffa902e03edf1455061.zip gdb-7f8d5fc90bf3c799976edffa902e03edf1455061.tar.gz gdb-7f8d5fc90bf3c799976edffa902e03edf1455061.tar.bz2 |
* section.c (_bfd_strip_section_from_output): Add info parameter.
If it passed as non-NULL, use it to check whether any input BFD
has an input section which uses this output section. Change all
callers.
* bfd-in2.h: Rebuild.
* bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
1999-11-29.
* bfd-in2.h: Rebuild.
Diffstat (limited to 'bfd/bfd-in.h')
-rw-r--r-- | bfd/bfd-in.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/bfd/bfd-in.h b/bfd/bfd-in.h index b5ff7dd..a5312f4 100644 --- a/bfd/bfd-in.h +++ b/bfd/bfd-in.h @@ -626,6 +626,20 @@ extern boolean bfd_elf64_size_dynamic_sections extern void bfd_elf_set_dt_needed_name PARAMS ((bfd *, const char *)); extern const char *bfd_elf_get_dt_soname PARAMS ((bfd *)); +/* Return an upper bound on the number of bytes required to store a + copy of ABFD's program header table entries. Return -1 if an error + occurs; bfd_get_error will return an appropriate code. */ +extern long bfd_get_elf_phdr_upper_bound PARAMS ((bfd *abfd)); + +/* Copy ABFD's program header table entries to *PHDRS. The entries + will be stored as an array of Elf_Internal_Phdr structures, as + defined in include/elf/internal.h. To find out how large the + buffer needs to be, call bfd_get_elf_phdr_upper_bound. + + Return the number of program header table entries read, or -1 if an + error occurs; bfd_get_error will return an appropriate code. */ +extern int bfd_get_elf_phdrs PARAMS ((bfd *abfd, void *phdrs)); + /* SunOS shared library support routines for the linker. */ extern struct bfd_link_needed_list *bfd_sunos_get_needed_list |