[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#9927: 24.1.50; unexec/unexmacosx doesn't grok GCC 4.6+ sections
From: |
Peter Dyballa |
Subject: |
bug#9927: 24.1.50; unexec/unexmacosx doesn't grok GCC 4.6+ sections |
Date: |
Wed, 17 Sep 2014 23:00:55 +0200 |
Am 17.09.2014 um 20:39 schrieb Paul Eggert:
> If I understand that branch correctly, the attached patch should suffice to
> port to GCC 4.6+ on OS X. It's relative to trunk bzr 117895. I don't have
> easy access to OS X to try it, though. Peter and/or Samuel, does it work for
> you?
>
> <gcc4.6.patch>
I decided to make it simple for me and applied your patch to the sources of
emacs-24.3.93 – and it works with GCC 4.6.4! See here:
Pure-hashed: 23728 strings, 3453 vectors, 37104 conses, 3245 bytecodes,
82 others
Dumping under the name emacs
--- List of All Regions ---
address size prot maxp
0 0x1000 none none
0x1000 0x258000 r x rwx
0x259000 0x23f000 rw rwx
0x498000 0x5f000 rw rwx
0x4f7000 0xb9000 r rwx
0x5b0000 0x60000 r x rwx
0x610000 0x3000 rw rwx
0x613000 0x16000 r rwx
0x629000 0x32000 r x rwx
0x65b000 0x1000 rw rwx
0x65c000 0xc000 r rwx
0x668000 0x29000 r x rwx
0x691000 0x1000 rw rwx
0x692000 0xe000 r rwx
0x6a0000 0x6000 r x rwx
0x6a6000 0x1000 rw rwx
0x6a7000 0x3000 r rwx
0x6aa000 0xc000 r x rwx
0x6b6000 0x1000 rw rwx
0x6b7000 0x4000 r rwx
0x6bb000 0x3a000 r x rwx
0x6f5000 0x6000 rw rwx
0x6fb000 0x2000 r rwx
0x6fd000 0x1c000 r rwx
0x719000 0x10000 r x rwx
0x729000 0x1000 rw rwx
0x72a000 0x7000 r rwx
0x731000 0x3c000 r x rwx
0x76d000 0x3000 rw rwx
0x770000 0x1000 rw rwx
0x771000 0x11000 r rwx
0x782000 0x5000 r x rwx
0x787000 0x1000 rw rwx
0x788000 0x3000 r rwx
0x78b000 0x10000 r x rwx
0x79b000 0x1000 rw rwx
0x79c000 0x2000 rw rwx
0x79e000 0x5000 r rwx
0x7a3000 0xf5000 r x rwx
0x898000 0x3000 rw rwx
0x89b000 0x1e000 r rwx
0x8b9000 0x6000 r x rwx
0x8bf000 0x1000 rw rwx
0x8c0000 0x3000 r rwx
0x8c3000 0xe000 r x rwx
0x8d1000 0x1000 rw rwx
0x8d2000 0x7000 r rwx
0x8d9000 0x2a000 r x rwx
0x903000 0x1000 rw rwx
0x904000 0x1000 rw rwx
0x905000 0x10000 r rwx
0x915000 0x7e000 r x rwx
0x993000 0x4000 rw rwx
0x997000 0x2c000 r rwx
0x9c3000 0x2b000 r x rwx
0x9ee000 0x1000 rw rwx
0x9ef000 0xa000 r rwx
0x9f9000 0x12000 r x rwx
0xa0b000 0x1000 rw rwx
0xa0c000 0x6000 r rwx
0xa12000 0x30000 r x rwx
0xa42000 0x1000 rw rwx
0xa43000 0xe000 r rwx
0xa51000 0xb4000 r x rwx
0xb05000 0x1000 rw rwx
0xb06000 0x1e000 r rwx
0xb24000 0x5000 r x rwx
0xb29000 0x1000 rw rwx
0xb2a000 0x3000 r rwx
0xb2d000 0x1000 r x rwx
0xb2e000 0x1000 rw rwx
0xb2f000 0x2000 r rwx
0xb31000 0x110000 r x rwx
0xc41000 0x5000 rw rwx
0xc46000 0x1000 rw rwx
0xc47000 0x55000 r rwx
0xc9c000 0x35000 r x rwx
0xcd1000 0x3000 rw rwx
0xcd4000 0x8000 r rwx
0xcdc000 0x1a000 r x rwx
0xcf6000 0x2000 rw rwx
0xcf8000 0x1000 rw rwx
0xcf9000 0xd000 r rwx
0xd06000 0x12000 r x rwx
0xd18000 0x1000 rw rwx
0xd19000 0x3000 r rwx
0xd1c000 0x8000 r x rwx
0xd24000 0x1000 rw rwx
0xd25000 0x3000 r rwx
0xd28000 0x18000 r x rwx
0xd40000 0x1000 rw rwx
0xd41000 0x8000 rw rwx
0xd49000 0xa000 r rwx
0xd53000 0xc3000 r x rwx
0xe16000 0x5000 rw rwx
0xe1b000 0x1000 rw rwx
0xe1c000 0x4a000 r rwx
0xe66000 0x23000 r x rwx
0xe89000 0x1000 rw rwx
0xe8a000 0x3000 r rwx
0xe8d000 0x7000 r x rwx
0xe94000 0x3000 rw rwx
0xe97000 0x1000 r rwx
0xe98000 0x2000 r x rwx
0xe9a000 0x1000 rw rwx
0xe9b000 0x2000 r rwx
0xe9d000 0x3000 r x rwx
0xea0000 0x1000 rw rwx
0xea1000 0x3000 r rwx
0xea4000 0xa000 r x rwx
0xeae000 0x1000 rw rwx
0xeaf000 0x5000 r rwx
0xeb4000 0xfb000 r x rwx
0xfaf000 0x1000 rw rwx
0xfb0000 0x17000 r rwx
0xfc7000 0x1e000 r x rwx
0xfe5000 0x2000 rw rwx
0xfe7000 0x9000 r rwx
0xff0000 0xf000 r x rwx
0xfff000 0x1000 rw rwx
0x1000000 0x2000 r rwx
0x1002000 0x27000 r x rwx
0x1029000 0x2000 rw rwx
0x102b000 0x2000 rw rwx
0x102d000 0xf000 r rwx
0x103c000 0x2a000 r x rwx
0x1066000 0x2000 rw rwx
0x1068000 0x1c000 r rwx
0x1084000 0x2c000 r x rwx
0x10b0000 0x1000 rw rwx
0x10b1000 0xc000 r rwx
0x10bd000 0x9000 r x rwx
0x10c6000 0x1000 rw rwx
0x10c7000 0x6000 r rwx
0x10cd000 0x3f000 r x rwx
0x110c000 0x2000 rw rwx
0x110e000 0x10000 r rwx
0x111e000 0xc6000 r x rwx
0x11e4000 0x2000 rw rwx
0x11e6000 0x1000 rw rwx
0x11e7000 0x25000 r rwx
0x120c000 0x6c000 r x rwx
0x1278000 0x2000 rw rwx
0x127a000 0x2b000 r rwx
0x12a5000 0x2000 r x rwx
0x12a7000 0x1000 rw rwx
0x12a8000 0x1000 r rwx
0x12a9000 0x8000 r x rwx
0x12b1000 0x1000 rw rwx
0x12b2000 0x3000 r rwx
0x12b5000 0x6f000 r x rwx
0x1324000 0x4000 rw rwx
0x1328000 0x1f000 r rwx
0x1347000 0x22000 r x rwx
0x1369000 0x1000 rw rwx
0x136a000 0xd000 r rwx
0x1377000 0x2c000 r x rwx
0x13a3000 0x9000 rw rwx
0x13ac000 0x1000 rw rwx
0x13ad000 0x1d000 r rwx
0x13ca000 0x3000 r x rwx
0x13cd000 0x1000 rw rwx
0x13ce000 0x2000 r rwx
0x13d0000 0x16000 r x rwx
0x13e6000 0x1000 rw rwx
0x13e7000 0x11000 r rwx
0x13f8000 0x30000 r x rwx
--- List of Regions to be Dumped ---
address size prot maxp
0 0x1000 none none
0x1000 0x258000 r x rwx
0x259000 0x29e000 rw rwx
0x4f7000 0xb9000 r rwx
0x5b0000 0x60000 r x rwx
0x610000 0x3000 rw rwx
0x613000 0x16000 r rwx
0x629000 0x32000 r x rwx
0x65b000 0x1000 rw rwx
0x65c000 0xc000 r rwx
0x668000 0x29000 r x rwx
0x691000 0x1000 rw rwx
0x692000 0xe000 r rwx
0x6a0000 0x6000 r x rwx
0x6a6000 0x1000 rw rwx
0x6a7000 0x3000 r rwx
0x6aa000 0xc000 r x rwx
0x6b6000 0x1000 rw rwx
0x6b7000 0x4000 r rwx
0x6bb000 0x3a000 r x rwx
0x6f5000 0x6000 rw rwx
0x6fb000 0x1e000 r rwx
0x719000 0x10000 r x rwx
0x729000 0x1000 rw rwx
0x72a000 0x7000 r rwx
0x731000 0x3c000 r x rwx
0x76d000 0x4000 rw rwx
0x771000 0x11000 r rwx
0x782000 0x5000 r x rwx
0x787000 0x1000 rw rwx
0x788000 0x3000 r rwx
0x78b000 0x10000 r x rwx
0x79b000 0x3000 rw rwx
0x79e000 0x5000 r rwx
0x7a3000 0xf5000 r x rwx
0x898000 0x3000 rw rwx
0x89b000 0x1e000 r rwx
0x8b9000 0x6000 r x rwx
0x8bf000 0x1000 rw rwx
0x8c0000 0x3000 r rwx
0x8c3000 0xe000 r x rwx
0x8d1000 0x1000 rw rwx
0x8d2000 0x7000 r rwx
0x8d9000 0x2a000 r x rwx
0x903000 0x2000 rw rwx
0x905000 0x10000 r rwx
0x915000 0x7e000 r x rwx
0x993000 0x4000 rw rwx
0x997000 0x2c000 r rwx
0x9c3000 0x2b000 r x rwx
0x9ee000 0x1000 rw rwx
0x9ef000 0xa000 r rwx
0x9f9000 0x12000 r x rwx
0xa0b000 0x1000 rw rwx
0xa0c000 0x6000 r rwx
0xa12000 0x30000 r x rwx
0xa42000 0x1000 rw rwx
0xa43000 0xe000 r rwx
0xa51000 0xb4000 r x rwx
0xb05000 0x1000 rw rwx
0xb06000 0x1e000 r rwx
0xb24000 0x5000 r x rwx
0xb29000 0x1000 rw rwx
0xb2a000 0x3000 r rwx
0xb2d000 0x1000 r x rwx
0xb2e000 0x1000 rw rwx
0xb2f000 0x2000 r rwx
0xb31000 0x110000 r x rwx
0xc41000 0x6000 rw rwx
0xc47000 0x55000 r rwx
0xc9c000 0x35000 r x rwx
0xcd1000 0x3000 rw rwx
0xcd4000 0x8000 r rwx
0xcdc000 0x1a000 r x rwx
0xcf6000 0x3000 rw rwx
0xcf9000 0xd000 r rwx
0xd06000 0x12000 r x rwx
0xd18000 0x1000 rw rwx
0xd19000 0x3000 r rwx
0xd1c000 0x8000 r x rwx
0xd24000 0x1000 rw rwx
0xd25000 0x3000 r rwx
0xd28000 0x18000 r x rwx
0xd40000 0x9000 rw rwx
0xd49000 0xa000 r rwx
0xd53000 0xc3000 r x rwx
0xe16000 0x6000 rw rwx
0xe1c000 0x4a000 r rwx
0xe66000 0x23000 r x rwx
0xe89000 0x1000 rw rwx
0xe8a000 0x3000 r rwx
0xe8d000 0x7000 r x rwx
0xe94000 0x3000 rw rwx
0xe97000 0x1000 r rwx
0xe98000 0x2000 r x rwx
0xe9a000 0x1000 rw rwx
0xe9b000 0x2000 r rwx
0xe9d000 0x3000 r x rwx
0xea0000 0x1000 rw rwx
0xea1000 0x3000 r rwx
0xea4000 0xa000 r x rwx
0xeae000 0x1000 rw rwx
0xeaf000 0x5000 r rwx
0xeb4000 0xfb000 r x rwx
0xfaf000 0x1000 rw rwx
0xfb0000 0x17000 r rwx
0xfc7000 0x1e000 r x rwx
0xfe5000 0x2000 rw rwx
0xfe7000 0x9000 r rwx
0xff0000 0xf000 r x rwx
0xfff000 0x1000 rw rwx
0x1000000 0x2000 r rwx
0x1002000 0x27000 r x rwx
0x1029000 0x4000 rw rwx
0x102d000 0xf000 r rwx
0x103c000 0x2a000 r x rwx
0x1066000 0x2000 rw rwx
0x1068000 0x1c000 r rwx
0x1084000 0x2c000 r x rwx
0x10b0000 0x1000 rw rwx
0x10b1000 0xc000 r rwx
0x10bd000 0x9000 r x rwx
0x10c6000 0x1000 rw rwx
0x10c7000 0x6000 r rwx
0x10cd000 0x3f000 r x rwx
0x110c000 0x2000 rw rwx
0x110e000 0x10000 r rwx
0x111e000 0xc6000 r x rwx
0x11e4000 0x3000 rw rwx
0x11e7000 0x25000 r rwx
0x120c000 0x6c000 r x rwx
0x1278000 0x2000 rw rwx
0x127a000 0x2b000 r rwx
0x12a5000 0x2000 r x rwx
0x12a7000 0x1000 rw rwx
0x12a8000 0x1000 r rwx
0x12a9000 0x8000 r x rwx
0x12b1000 0x1000 rw rwx
0x12b2000 0x3000 r rwx
0x12b5000 0x6f000 r x rwx
0x1324000 0x4000 rw rwx
0x1328000 0x1f000 r rwx
0x1347000 0x22000 r x rwx
0x1369000 0x1000 rw rwx
0x136a000 0xd000 r rwx
0x1377000 0x2c000 r x rwx
0x13a3000 0xa000 rw rwx
0x13ad000 0x1d000 r rwx
0x13ca000 0x3000 r x rwx
0x13cd000 0x1000 rw rwx
0x13ce000 0x2000 r rwx
0x13d0000 0x16000 r x rwx
0x13e6000 0x1000 rw rwx
0x13e7000 0x11000 r rwx
0x13f8000 0x30000 r x rwx
--- Header Information ---
Magic = 0xfeedface
CPUType = 7
CPUSubType = 3
FileType = 0x2
NCmds = 43
SizeOfCmds = 3404
Flags = 0x01000085
Highest address of load commands in input file: 0x5b0000
Lowest offset of all sections in __TEXT segment: 0x1e90
--- List of Load Commands in Input File ---
# cmd cmdsize name address size
0 LC_SEGMENT 56 __PAGEZERO 0 0x1000
1 LC_SEGMENT 600 __TEXT 0x1000 0x258000
__text 0x2e90 0x1ea017
__text_startup 0x1ecea7 0x18ec
__text_cold 0x1ee793 0x3ea
__symbol_stub 0x1eeb7e 0x1080
__stub_helper 0x1efc00 0x1b8c
__cstring 0x1f178c 0x18503
__const 0x209c90 0xab0
__eh_frame 0x20a740 0x4e8bc
2 LC_SEGMENT 736 __DATA 0x259000 0x29e000
__dyld 0x259000 0x1c
__nl_symbol_ptr 0x25901c 0x8f0
__la_symbol_ptr 0x25990c 0xb00
__data 0x25a410 0x23ab30
__static_data 0x494f40 0x29
__const 0x494f6c 0x24e0
__pu_bss2 0x49744c 0x29dc
__bss3 0x499e28 0x4dd0
__bss2 0x49ebf8 0x56878
__pu_bss3 0x4f5470 0x1418
3 LC_SEGMENT 56 __LINKEDIT 0x4f7000 0xb9000
4 LC_DYLD_INFO_ONLY 48
5 LC_SYMTAB 24
6 LC_DYSYMTAB 80
7 LC_LOAD_DYLINKER 28
8 LC_UUID 24
9 unknown 16
10 LC_UNIXTHREAD 80
11 LC_LOAD_DYLIB 48
12 LC_LOAD_DYLIB 48
13 LC_LOAD_DYLIB 52
14 LC_LOAD_DYLIB 48
15 LC_LOAD_DYLIB 48
16 LC_LOAD_DYLIB 52
17 LC_LOAD_DYLIB 52
18 LC_LOAD_DYLIB 52
19 LC_LOAD_DYLIB 52
20 LC_LOAD_DYLIB 52
21 LC_LOAD_DYLIB 52
22 LC_LOAD_DYLIB 52
23 LC_LOAD_DYLIB 56
24 LC_LOAD_DYLIB 56
25 LC_LOAD_DYLIB 72
26 LC_LOAD_DYLIB 68
27 LC_LOAD_DYLIB 52
28 LC_LOAD_DYLIB 60
29 LC_LOAD_DYLIB 56
30 LC_LOAD_DYLIB 52
31 LC_LOAD_DYLIB 56
32 LC_LOAD_DYLIB 60
33 LC_LOAD_DYLIB 48
34 LC_LOAD_DYLIB 60
35 LC_LOAD_DYLIB 52
36 LC_LOAD_DYLIB 48
37 LC_LOAD_DYLIB 52
38 LC_LOAD_DYLIB 56
39 LC_LOAD_DYLIB 60
40 LC_LOAD_DYLIB 52
41 unknown 16
42 LC_DATA_IN_CODE 16
0x20fc080 (sz: 0x3f1c/ 0x3f20)
0x2000000 (sz: 0x2210f/ 0xfc080)
0x2ff8000 (sz: 0x5222/ 0x7f98)
0x2800000 (sz: 0x5207ff/0x7f8000)
0x155d000 (sz: 0/ 0x1000)
--- Load Commands written to Output File ---
Writing segment __PAGEZERO @ 0 ( 0/ 0x1000 @
0)
Writing segment __TEXT @ 0 (0x258000/0x258000 @
0x1000)
Writing segment __DATA @ 0x258000 (0x29e000/0x29e000 @
0x259000)
section __dyld at 0x258000 - 0x25801c (sz: 0x1c)
section __nl_symbol_ptr at 0x25801c - 0x25890c (sz: 0x8f0)
section __la_symbol_ptr at 0x25890c - 0x25940c (sz: 0xb00)
section __data at 0x259410 - 0x493f40 (sz: 0x23ab30)
section __static_data at 0x493f40 - 0x493f69 (sz: 0x29)
section __const at 0x493f6c - 0x49644c (sz: 0x24e0)
section __pu_bss2 at 0x49644c - 0x498e28 (sz: 0x29dc)
section __bss3 at 0x498e28 - 0x49dbf8 (sz: 0x4dd0)
section __bss2 at 0x49dbf8 - 0x4f4470 (sz: 0x56878)
section __pu_bss3 at 0x4f4470 - 0x4f5888 (sz: 0x1418)
Writing segment __DATA @ 0x4f6000 ( 0/ 0x1000 @
0x155d000)
Writing segment __DATA @ 0x4f6000 ( 0x2210f/ 0xfc000 @
0x2000000)
Writing segment __DATA @ 0x519000 ( 0x3f9c/ 0x3fa0 @
0x20fc000)
Writing segment __DATA @ 0x51d000 (0x5207ff/0x7f8000 @
0x2800000)
Writing segment __DATA @ 0xa3e000 ( 0x5222/ 0x7f98 @
0x2ff8000)
Writing segment __LINKEDIT @ 0xa44000 ( 0xb85bc/ 0xb9000 @
0x4f7000)
Writing LC_DYLD_INFO_ONLY command
Writing LC_SYMTAB command
Writing LC_DYSYMTAB command
Writing LC_LOAD_DYLINKER command
Writing LC_UUID command
Writing unknown command
Writing LC_UNIXTHREAD command
Writing LC_LOAD_DYLIB command
Writing LC_LOAD_DYLIB command
Writing LC_LOAD_DYLIB command
Writing LC_LOAD_DYLIB command
Writing LC_LOAD_DYLIB command
Writing LC_LOAD_DYLIB command
Writing LC_LOAD_DYLIB command
Writing LC_LOAD_DYLIB command
Writing LC_LOAD_DYLIB command
Writing LC_LOAD_DYLIB command
Writing LC_LOAD_DYLIB command
Writing LC_LOAD_DYLIB command
Writing LC_LOAD_DYLIB command
Writing LC_LOAD_DYLIB command
Writing LC_LOAD_DYLIB command
Writing LC_LOAD_DYLIB command
Writing LC_LOAD_DYLIB command
Writing LC_LOAD_DYLIB command
Writing LC_LOAD_DYLIB command
Writing LC_LOAD_DYLIB command
Writing LC_LOAD_DYLIB command
Writing LC_LOAD_DYLIB command
Writing LC_LOAD_DYLIB command
Writing LC_LOAD_DYLIB command
Writing LC_LOAD_DYLIB command
Writing LC_LOAD_DYLIB command
Writing LC_LOAD_DYLIB command
Writing LC_LOAD_DYLIB command
Writing LC_LOAD_DYLIB command
Writing LC_LOAD_DYLIB command
Writing unknown command
Writing LC_DATA_IN_CODE command
4112 unused bytes follow Mach-O header
2209049 pure bytes used
Adding name emacs-24.3.93.1
I'll also try to build with GCC 4.7.3 and 4.8.2.
--
Greetings
Pete
One person with a belief is a social power equal to ninety-nine who have only
interests.
– John Stuart Mill
bug#9927: 24.1.50; unexec/unexmacosx doesn't grok GCC 4.6+ sections, Peter Dyballa, 2014/09/17