aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKen Raeburn2000-03-03 15:28:34 +0000
committerKen Raeburn2000-03-03 15:28:34 +0000
commit0007072a724b8ab5ccfc9d450111af5b49479ca6 (patch)
treed9fbc19bd4ecd364a36094e6d8370b9cb3b29e5b /src
parent71a6ba55f51b57ff783b2bdadac8e657241c284b (diff)
downloademacs-0007072a724b8ab5ccfc9d450111af5b49479ca6.tar.gz
emacs-0007072a724b8ab5ccfc9d450111af5b49479ca6.zip
* unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
standard ELF definitions here if the system header does not.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/unexelf.c24
2 files changed, 18 insertions, 11 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index e4bd79a715e..dbc54c009c1 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12000-03-03 Ken Raeburn <raeburn@gnu.org>
2
3 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
4 standard ELF definitions here if the system header does not.
5
12000-03-03 Gerd Moellmann <gerd@gnu.org> 62000-03-03 Gerd Moellmann <gerd@gnu.org>
2 7
3 * xterm.c (PER_CHAR_METRIC): Removed. 8 * xterm.c (PER_CHAR_METRIC): Removed.
diff --git a/src/unexelf.c b/src/unexelf.c
index ad0f346be3c..a90885ba64f 100644
--- a/src/unexelf.c
+++ b/src/unexelf.c
@@ -478,17 +478,19 @@ typedef struct {
478# endif 478# endif
479# include <sys/exec_elf.h> 479# include <sys/exec_elf.h>
480 480
481# define PT_LOAD Elf_pt_load 481# ifndef PT_LOAD
482# define SHT_SYMTAB Elf_sht_symtab 482# define PT_LOAD Elf_pt_load
483# define SHT_DYNSYM Elf_sht_dynsym 483# define SHT_SYMTAB Elf_sht_symtab
484# define SHT_NULL Elf_sht_null 484# define SHT_DYNSYM Elf_sht_dynsym
485# define SHT_NOBITS Elf_sht_nobits 485# define SHT_NULL Elf_sht_null
486# define SHT_REL Elf_sht_rel 486# define SHT_NOBITS Elf_sht_nobits
487# define SHT_RELA Elf_sht_rela 487# define SHT_REL Elf_sht_rel
488 488# define SHT_RELA Elf_sht_rela
489# define SHN_UNDEF Elf_eshn_undefined 489
490# define SHN_ABS Elf_eshn_absolute 490# define SHN_UNDEF Elf_eshn_undefined
491# define SHN_COMMON Elf_eshn_common 491# define SHN_ABS Elf_eshn_absolute
492# define SHN_COMMON Elf_eshn_common
493# endif
492 494
493# ifdef __alpha__ 495# ifdef __alpha__
494# include <sys/exec_ecoff.h> 496# include <sys/exec_ecoff.h>