aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann2000-09-02 11:34:13 +0000
committerGerd Moellmann2000-09-02 11:34:13 +0000
commitf4db570c1ca5a26a0bf30b8d7a16678d35322968 (patch)
tree0b96d451b71faa8c211b2ed338262377cb7dbcb3 /src
parent5983611033e97a719d8150b6ea3fd1b97cf05e2a (diff)
downloademacs-f4db570c1ca5a26a0bf30b8d7a16678d35322968.tar.gz
emacs-f4db570c1ca5a26a0bf30b8d7a16678d35322968.zip
(SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
(SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
Diffstat (limited to 'src')
-rw-r--r--src/unexelf.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/unexelf.c b/src/unexelf.c
index 93c0a25cd12..7e298239a71 100644
--- a/src/unexelf.c
+++ b/src/unexelf.c
@@ -479,6 +479,9 @@ typedef struct {
479 479
480# ifndef PT_LOAD 480# ifndef PT_LOAD
481# define PT_LOAD Elf_pt_load 481# define PT_LOAD Elf_pt_load
482# if 0 /* was in pkgsrc patches for 20.7 */
483# define SHT_PROGBITS Elf_sht_progbits
484# endif
482# define SHT_SYMTAB Elf_sht_symtab 485# define SHT_SYMTAB Elf_sht_symtab
483# define SHT_DYNSYM Elf_sht_dynsym 486# define SHT_DYNSYM Elf_sht_dynsym
484# define SHT_NULL Elf_sht_null 487# define SHT_NULL Elf_sht_null
@@ -489,15 +492,20 @@ typedef struct {
489# define SHN_UNDEF Elf_eshn_undefined 492# define SHN_UNDEF Elf_eshn_undefined
490# define SHN_ABS Elf_eshn_absolute 493# define SHN_ABS Elf_eshn_absolute
491# define SHN_COMMON Elf_eshn_common 494# define SHN_COMMON Elf_eshn_common
492# endif 495# endif /* !PT_LOAD */
493 496
494# ifdef __alpha__ 497# ifdef __alpha__
495# include <sys/exec_ecoff.h> 498# include <sys/exec_ecoff.h>
496# define HDRR struct ecoff_symhdr 499# define HDRR struct ecoff_symhdr
497# define pHDRR HDRR * 500# define pHDRR HDRR *
498# endif 501# endif /* __alpha__ */
499#endif /* __NetBSD__ */ 502#endif /* __NetBSD__ */
500 503
504#ifdef __mips__ /* was in pkgsrc patches for 20.7 */
505# define SHT_MIPS_DEBUG DT_MIPS_FLAGS
506# define HDRR struct Elf_Shdr
507#endif /* __mips__ */
508
501#ifdef __OpenBSD__ 509#ifdef __OpenBSD__
502# include <sys/exec_elf.h> 510# include <sys/exec_elf.h>
503#endif 511#endif
@@ -613,7 +621,7 @@ find_section (name, section_names, file_name, old_file_h, old_section_h, noerror
613 if (noerror) 621 if (noerror)
614 return -1; 622 return -1;
615 else 623 else
616 fatal ("Can't find %s in %s.\n", name, file_name, 0); 624 fatal ("Can't find %s in %s.\n", name, file_name);
617 } 625 }
618 626
619 return idx; 627 return idx;