comparison src/unexelf.c @ 274:ca9a9ec9c1c1 r21-0b35

Import from CVS: tag r21-0b35
author cvs
date Mon, 13 Aug 2007 10:29:42 +0200
parents c5d627a313b1
children afd57c14dfc8
comparison
equal deleted inserted replaced
273:411aac7253ef 274:ca9a9ec9c1c1
407 [21] 1 0 0 0x8f949 0x68b7 .comment 407 [21] 1 0 0 0x8f949 0x68b7 .comment
408 0 0 0x1 0 408 0 0 0x1 0
409 409
410 */ 410 */
411 411
412 #ifndef emacs
413 #define fatal(a, b, c) fprintf (stderr, a, b, c), exit (1)
414 #else
415 #include <config.h>
416 extern void fatal (CONST char *, ...);
417 #endif
418
412 #include <sys/types.h> 419 #include <sys/types.h>
413 #include <stdio.h> 420 #include <stdio.h>
414 #include <sys/stat.h> 421 #include <sys/stat.h>
415 #include <memory.h> 422 #include <memory.h>
416 #include <string.h> 423 #include <string.h>
428 # ifdef __STDC__ 435 # ifdef __STDC__
429 # define ElfW(type) Elf32_##type 436 # define ElfW(type) Elf32_##type
430 # else 437 # else
431 # define ElfW(type) Elf32_/**/type 438 # define ElfW(type) Elf32_/**/type
432 # endif 439 # endif
433 #endif
434
435 #ifndef emacs
436 #define fatal(a, b, c) fprintf (stderr, a, b, c), exit (1)
437 #else
438 #include <config.h>
439 extern void fatal (CONST char *, ...);
440 #endif 440 #endif
441 441
442 #ifndef ELF_BSS_SECTION_NAME 442 #ifndef ELF_BSS_SECTION_NAME
443 #define ELF_BSS_SECTION_NAME ".bss" 443 #define ELF_BSS_SECTION_NAME ".bss"
444 #endif 444 #endif