Created
October 16, 2011 10:42
-
-
Save ranha/1290751 to your computer and use it in GitHub Desktop.
prog.c
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/Users/ranha/c_misc/embed% gcc --version | |
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00) | |
Copyright (C) 2007 Free Software Foundation, Inc. | |
This is free software; see the source for copying conditions. There is NO | |
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
/Users/ranha/c_misc/embed% gcc -fno-toplevel-reorder -c prog.c | |
/Users/ranha/c_misc/embed% gobjdump -s prog.o | |
prog.o: ファイル形式 mach-o-x86-64 | |
セクション __TEXT.__fsc_typeinfo の内容: | |
0000 6d657461 64617461 00909090 90909090 metadata........ | |
0010 554889e5 c745f800 0000008b 45f88945 UH...E......E..E | |
0020 fc8b45fc 5dc3 ..E.]. | |
セクション .eh_frame の内容: | |
0028 14000000 00000000 017a5200 01781001 .........zR..x.. | |
0038 100c0708 90010000 2c000000 1c000000 ........,....... | |
0048 f8ffffff ffffffff 16000000 00000000 ................ | |
0058 00040100 00000e10 86020403 0000000d ................ | |
0068 06000000 00000000 ........ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/Users/ranha/c_misc/embed% ~/gcc/gcc461/bin/gcc --version | |
gcc (GCC) 4.6.1 | |
Copyright (C) 2011 Free Software Foundation, Inc. | |
This is free software; see the source for copying conditions. There is NO | |
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
/Users/ranha/c_misc/embed% ~/gcc/gcc461/bin/gcc -fno-toplevel-reorder -c prog.c | |
/Users/ranha/c_misc/embed% gobjdump -s prog.o | |
prog.o: ファイル形式 mach-o-x86-64 | |
セクション .text の内容: | |
0000 554889e5 b8000000 005dc3 UH.......]. | |
セクション __TEXT.__fsc_typeinfo の内容: | |
000b 6d657461 64617461 00 metadata. | |
セクション .eh_frame の内容: | |
0018 14000000 00000000 017a5200 01781001 .........zR..x.. | |
0028 100c0708 90010000 34000000 1c000000 ........4....... | |
0038 e0ffffff ffffffff 0b000000 00000000 ................ | |
0048 00040100 00000e10 86020403 0000000d ................ | |
0058 06040600 00000c07 08000000 00000000 ................ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int main() | |
{ | |
return 0; | |
} | |
__asm__ ("\n.section __TEXT,__fsc_typeinfo,cstring_literals\n.asciz\t\"metadata\"\n"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment