Mercurial > emacs
comparison src/unexelf.c @ 96580:162cf3adba6b
* unexmips.c:
* unexelf.c: Remove references to desupported systems.
author | Dan Nicolaescu <dann@ics.uci.edu> |
---|---|
date | Thu, 10 Jul 2008 02:37:07 +0000 |
parents | ddedcecb18ef |
children | e038c1a8307c |
comparison
equal
deleted
inserted
replaced
96579:44db09925e6f | 96580:162cf3adba6b |
---|---|
424 #include <fcntl.h> | 424 #include <fcntl.h> |
425 #if !defined (__NetBSD__) && !defined (__OpenBSD__) | 425 #if !defined (__NetBSD__) && !defined (__OpenBSD__) |
426 #include <elf.h> | 426 #include <elf.h> |
427 #endif | 427 #endif |
428 #include <sys/mman.h> | 428 #include <sys/mman.h> |
429 #if defined (__sony_news) && defined (_SYSTYPE_SYSV) | 429 #if defined (_SYSTYPE_SYSV) |
430 #include <sys/elf_mips.h> | 430 #include <sys/elf_mips.h> |
431 #include <sym.h> | 431 #include <sym.h> |
432 #endif /* __sony_news && _SYSTYPE_SYSV */ | 432 #endif /* _SYSTYPE_SYSV */ |
433 #if __sgi | 433 #if __sgi |
434 #include <syms.h> /* for HDRR declaration */ | 434 #include <syms.h> /* for HDRR declaration */ |
435 #endif /* __sgi */ | 435 #endif /* __sgi */ |
436 | 436 |
437 #ifndef MAP_ANON | 437 #ifndef MAP_ANON |
1079 symhdr->cbRfdOffset += new_data2_size; | 1079 symhdr->cbRfdOffset += new_data2_size; |
1080 symhdr->cbExtOffset += new_data2_size; | 1080 symhdr->cbExtOffset += new_data2_size; |
1081 } | 1081 } |
1082 #endif /* __alpha__ */ | 1082 #endif /* __alpha__ */ |
1083 | 1083 |
1084 #if defined (__sony_news) && defined (_SYSTYPE_SYSV) | 1084 #if defined (_SYSTYPE_SYSV) |
1085 if (NEW_SECTION_H (nn).sh_type == SHT_MIPS_DEBUG | 1085 if (NEW_SECTION_H (nn).sh_type == SHT_MIPS_DEBUG |
1086 && old_mdebug_index != -1) | 1086 && old_mdebug_index != -1) |
1087 { | 1087 { |
1088 int diff = NEW_SECTION_H(nn).sh_offset | 1088 int diff = NEW_SECTION_H(nn).sh_offset |
1089 - OLD_SECTION_H(old_mdebug_index).sh_offset; | 1089 - OLD_SECTION_H(old_mdebug_index).sh_offset; |
1102 phdr->cbFdOffset += diff; | 1102 phdr->cbFdOffset += diff; |
1103 phdr->cbRfdOffset += diff; | 1103 phdr->cbRfdOffset += diff; |
1104 phdr->cbExtOffset += diff; | 1104 phdr->cbExtOffset += diff; |
1105 } | 1105 } |
1106 } | 1106 } |
1107 #endif /* __sony_news && _SYSTYPE_SYSV */ | 1107 #endif /* _SYSTYPE_SYSV */ |
1108 | 1108 |
1109 #if __sgi | 1109 #if __sgi |
1110 /* Adjust the HDRR offsets in .mdebug and copy the | 1110 /* Adjust the HDRR offsets in .mdebug and copy the |
1111 line data if it's in its usual 'hole' in the object. | 1111 line data if it's in its usual 'hole' in the object. |
1112 Makes the new file debuggable with dbx. | 1112 Makes the new file debuggable with dbx. |