diff options
author | Daniel Jacobowitz <drow@false.org> | 2004-10-08 13:55:11 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2004-10-08 13:55:11 +0000 |
commit | d2b2c203e1ff2daf8cfeab0906084f9389e66246 (patch) | |
tree | b26661436e0599afd2ba5bd7f05a8e346fec61bb /binutils | |
parent | d67a454c81bb8395692342d517d935e8bcaa882e (diff) | |
download | gdb-d2b2c203e1ff2daf8cfeab0906084f9389e66246.zip gdb-d2b2c203e1ff2daf8cfeab0906084f9389e66246.tar.gz gdb-d2b2c203e1ff2daf8cfeab0906084f9389e66246.tar.bz2 |
bfd/
* config.bfd: Include 64-bit support for i[3-7]86-*-solaris2*.
* elf64-x86-64.c (elf64_x86_64_section_from_shdr): New function.
(elf_backend_section_from_shdr): Define.
binutils/
* readelf.c (get_x86_64_section_type_name): New function.
(get_section_type_name): Use it.
gas/
* config/tc-i386.c: Include "elf/x86-64.h".
(i386_elf_section_type): New function.
* config/tc-i386.h (md_elf_section_type): Define.
(i386_elf_section_type): New prototype.
gas/testsuite/
* gas/i386/i386.exp: Don't run divide test for targets where '/'
is a comment. Run x86-64-unwind for 64-bit ELF targets.
* gas/i386/x86-64-unwind.d, gas/i386/x86-64-unwind.s: New.
include/
* elf/common.h (PT_SUNW_EH_FRAME): Define.
* elf/x86-64.h (SHT_X86_64_UNWIND): Define.
ld/
* configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/ChangeLog | 5 | ||||
-rw-r--r-- | binutils/readelf.c | 15 |
2 files changed, 20 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index a04a514..12196c6 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2004-10-08 Daniel Jacobowitz <dan@debian.org> + + * readelf.c (get_x86_64_section_type_name): New function. + (get_section_type_name): Use it. + 2004-10-08 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com> * dlltool.c (make_one_lib_file): Revert 2004-09-02 and 2004-09-04 diff --git a/binutils/readelf.c b/binutils/readelf.c index 516b040..7f9eaf0 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -2405,6 +2405,18 @@ get_ia64_section_type_name (unsigned int sh_type) } static const char * +get_x86_64_section_type_name (unsigned int sh_type) +{ + switch (sh_type) + { + case SHT_X86_64_UNWIND: return "X86_64_UNWIND"; + default: + break; + } + return NULL; +} + +static const char * get_arm_section_type_name (unsigned int sh_type) { switch (sh_type) @@ -2467,6 +2479,9 @@ get_section_type_name (unsigned int sh_type) case EM_IA_64: result = get_ia64_section_type_name (sh_type); break; + case EM_X86_64: + result = get_x86_64_section_type_name (sh_type); + break; case EM_ARM: result = get_arm_section_type_name (sh_type); break; |