comparison src/unexelf.c @ 452:3d3049ae1304 r21-2-41

Import from CVS: tag r21-2-41
author cvs
date Mon, 13 Aug 2007 11:40:21 +0200
parents 1ccc32a20af4
children 04bc9d2f42c7
comparison
equal deleted inserted replaced
451:8ad70c5cd5d7 452:3d3049ae1304
468 long cbExtOffset; 468 long cbExtOffset;
469 } HDRR, *pHDRR; 469 } HDRR, *pHDRR;
470 #define cbHDRR sizeof(HDRR) 470 #define cbHDRR sizeof(HDRR)
471 #define hdrNil ((pHDRR)0) 471 #define hdrNil ((pHDRR)0)
472 #endif 472 #endif
473
474 #ifdef __NetBSD__
475 /*
476 * NetBSD does not have normal-looking user-land ELF support.
477 */
478 # ifdef __alpha__
479 # define ELFSIZE 64
480 # else
481 # define ELFSIZE 32
482 # endif
483 # include <sys/exec_elf.h>
484
485 # define PT_LOAD Elf_pt_load
486 # define SHT_SYMTAB Elf_sht_symtab
487 # define SHT_DYNSYM Elf_sht_dynsym
488 # define SHT_NULL Elf_sht_null
489 # define SHT_NOBITS Elf_sht_nobits
490 # define SHT_REL Elf_sht_rel
491 # define SHT_RELA Elf_sht_rela
492
493 # define SHN_UNDEF Elf_eshn_undefined
494 # define SHN_ABS Elf_eshn_absolute
495 # define SHN_COMMON Elf_eshn_common
496
497 # ifdef __alpha__
498 # include <sys/exec_ecoff.h>
499 # define HDRR struct ecoff_symhdr
500 # define pHDRR HDRR *
501 # endif
502 #endif /* __NetBSD__ */
503 473
504 #ifdef __OpenBSD__ 474 #ifdef __OpenBSD__
505 # include <sys/exec_elf.h> 475 # include <sys/exec_elf.h>
506 #endif 476 #endif
507 477