Mercurial > emacs
changeset 31331:c0ff788ed359
(SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
(SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Sat, 02 Sep 2000 11:34:13 +0000 |
parents | 40ff2fc1d123 |
children | 9a247156dd7e |
files | src/unexelf.c |
diffstat | 1 files changed, 11 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/unexelf.c Sat Sep 02 11:19:55 2000 +0000 +++ b/src/unexelf.c Sat Sep 02 11:34:13 2000 +0000 @@ -479,6 +479,9 @@ # ifndef PT_LOAD # define PT_LOAD Elf_pt_load +# if 0 /* was in pkgsrc patches for 20.7 */ +# define SHT_PROGBITS Elf_sht_progbits +# endif # define SHT_SYMTAB Elf_sht_symtab # define SHT_DYNSYM Elf_sht_dynsym # define SHT_NULL Elf_sht_null @@ -489,15 +492,20 @@ # define SHN_UNDEF Elf_eshn_undefined # define SHN_ABS Elf_eshn_absolute # define SHN_COMMON Elf_eshn_common -# endif +# endif /* !PT_LOAD */ # ifdef __alpha__ # include <sys/exec_ecoff.h> # define HDRR struct ecoff_symhdr # define pHDRR HDRR * -# endif +# endif /* __alpha__ */ #endif /* __NetBSD__ */ +#ifdef __mips__ /* was in pkgsrc patches for 20.7 */ +# define SHT_MIPS_DEBUG DT_MIPS_FLAGS +# define HDRR struct Elf_Shdr +#endif /* __mips__ */ + #ifdef __OpenBSD__ # include <sys/exec_elf.h> #endif @@ -613,7 +621,7 @@ if (noerror) return -1; else - fatal ("Can't find %s in %s.\n", name, file_name, 0); + fatal ("Can't find %s in %s.\n", name, file_name); } return idx;