diff options
author | Mark Kettenis <kettenis@gnu.org> | 2004-07-02 21:27:17 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2004-07-02 21:27:17 +0000 |
commit | 533f1d8fc5f5c512b0b56caef9c882896e4faaf7 (patch) | |
tree | c4a0f26ef2baabc138828695b127673c87db41d0 /gdb/osabi.c | |
parent | 6e0cdd28ec469a44e0bd3856e26c95ed722ad083 (diff) | |
download | gdb-533f1d8fc5f5c512b0b56caef9c882896e4faaf7.zip gdb-533f1d8fc5f5c512b0b56caef9c882896e4faaf7.tar.gz gdb-533f1d8fc5f5c512b0b56caef9c882896e4faaf7.tar.bz2 |
* osabi.c: Update copyright year.
(generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
notes if EI_OSABI is set to ELFOSABI_HPUX.
Diffstat (limited to 'gdb/osabi.c')
-rw-r--r-- | gdb/osabi.c | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/gdb/osabi.c b/gdb/osabi.c index 3acfc70..ea84456 100644 --- a/gdb/osabi.c +++ b/gdb/osabi.c @@ -1,5 +1,6 @@ /* OS ABI variant handling for GDB. - Copyright 2001, 2002, 2003 Free Software Foundation, Inc. + + Copyright 2001, 2002, 2003, 2004 Free Software Foundation, Inc. This file is part of GDB. @@ -501,10 +502,11 @@ generic_elf_osabi_sniffer (bfd *abfd) switch (elfosabi) { case ELFOSABI_NONE: - /* When elfosabi is ELFOSABI_NONE (0), then the ELF structures in the - file are conforming to the base specification for that machine - (there are no OS-specific extensions). In order to determine the - real OS in use we must look for OS notes that have been added. */ + /* When the EI_OSABI field in the ELF header is ELFOSABI_NONE + (0), then the ELF structures in the file are conforming to + the base specification for that machine (there are no + OS-specific extensions). In order to determine the real OS + in use we must look for OS-specific notes. */ bfd_map_over_sections (abfd, generic_elf_osabi_sniff_abi_tag_sections, &osabi); @@ -531,7 +533,14 @@ generic_elf_osabi_sniffer (bfd *abfd) break; case ELFOSABI_HPUX: + /* For some reason the default value for the EI_OSABI field is + ELFOSABI_HPUX for all PA-RISC targets (with the exception of + GNU/Linux). We use HP-UX ELF as the default, but let any + OS-specific notes override this. */ osabi = GDB_OSABI_HPUX_ELF; + bfd_map_over_sections (abfd, + generic_elf_osabi_sniff_abi_tag_sections, + &osabi); break; } |