diff options
author | Ken Raeburn <raeburn@cygnus> | 1994-09-29 20:36:24 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@cygnus> | 1994-09-29 20:36:24 +0000 |
commit | 64e21e0fd7957a9a60915a5ed7e68aca4a60ab36 (patch) | |
tree | e6b90f55ba471088431df506f0f27ca6b7bc427d /bfd/elfcode.h | |
parent | 9afa408e4f0a1c38e5a13cb6ca8e41de46254097 (diff) | |
download | gdb-64e21e0fd7957a9a60915a5ed7e68aca4a60ab36.zip gdb-64e21e0fd7957a9a60915a5ed7e68aca4a60ab36.tar.gz gdb-64e21e0fd7957a9a60915a5ed7e68aca4a60ab36.tar.bz2 |
* elf.c (bfd_elf_print_symbol): Moved here from elf_print_symbol in elfcode.h.
(case bfd_print_symbol_all): Print symbol's size field, except for common
symbols; print their alignment.
* elfcode.h (elf_print_symbol): Deleted.
* libelf.h (bfd_elf_print_symbol): Declare.
(bfd_elf{32,64}_print_symbol): Replace declarations with macros.
Diffstat (limited to 'bfd/elfcode.h')
-rw-r--r-- | bfd/elfcode.h | 43 |
1 files changed, 3 insertions, 40 deletions
diff --git a/bfd/elfcode.h b/bfd/elfcode.h index 847d8e4..88fe902 100644 --- a/bfd/elfcode.h +++ b/bfd/elfcode.h @@ -103,7 +103,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ NAME(bfd_elf,canonicalize_dynamic_symtab) #define elf_make_empty_symbol NAME(bfd_elf,make_empty_symbol) #define elf_get_symbol_info NAME(bfd_elf,get_symbol_info) -#define elf_print_symbol NAME(bfd_elf,print_symbol) #define elf_get_lineno NAME(bfd_elf,get_lineno) #define elf_set_arch_mach NAME(bfd_elf,set_arch_mach) #define elf_find_nearest_line NAME(bfd_elf,find_nearest_line) @@ -2064,13 +2063,9 @@ assign_file_positions_except_relocs (abfd, dosyms) if (first == NULL) first = hdr; - if ((abfd->flags & D_PAGED) != 0) - { - /* The section VMA must equal the file position modulo - the page size. This is required by the program - header. */ - off += (hdr->sh_addr - off) % maxpagesize; - } + /* The section VMA must equal the file position modulo the + page size. This is required by the program header. */ + off += (hdr->sh_addr - off) % maxpagesize; off = assign_file_position_for_section (hdr, off, false); } @@ -3162,38 +3157,6 @@ elf_get_symbol_info (ignore_abfd, symbol, ret) bfd_symbol_info (symbol, ret); } -void -elf_print_symbol (ignore_abfd, filep, symbol, how) - bfd *ignore_abfd; - PTR filep; - asymbol *symbol; - bfd_print_symbol_type how; -{ - FILE *file = (FILE *) filep; - switch (how) - { - case bfd_print_symbol_name: - fprintf (file, "%s", symbol->name); - break; - case bfd_print_symbol_more: - fprintf (file, "elf "); - fprintf_vma (file, symbol->value); - fprintf (file, " %lx", (long) symbol->flags); - break; - case bfd_print_symbol_all: - { - CONST char *section_name; - section_name = symbol->section ? symbol->section->name : "(*none*)"; - bfd_print_symbol_vandf ((PTR) file, symbol); - fprintf (file, " %s\t%s", - section_name, - symbol->name); - } - break; - } - -} - alent * elf_get_lineno (ignore_abfd, symbol) bfd *ignore_abfd; |