[cfarm-users] Trouble with new Apple Mac M1

Bruno Haible bruno at clisp.org
Tue Mar 23 20:54:39 CET 2021


Pierre Muller asked:
>    Are executables randomized in memory?

Yes, they are. I have a program which prints its memory map. When I run
it twice in a row, it prints different addresses:

102720000-102724000 r-x
102724000-102728000 r--
102728000-10272c000 rw-
10272c000-102730000 r--
102730000-102738000 rw-
102738000-10273c000 r--
10273c000-102740000 r--
102740000-102744000 rw-
102744000-102748000 ---
102748000-102750000 rw-
102750000-102754000 ---
102754000-102758000 ---
102758000-102760000 rw-
102760000-102764000 ---
102764000-102768000 ---
102768000-102770000 rw-
102770000-102774000 ---
102774000-102778000 r--
102938000-1029b4000 r-x
1029b4000-1029bc000 r--
1029bc000-1029c0000 rw-
1029c0000-1029f4000 rw-
1029f4000-102a38000 r--
102a38000-102a3c000 r--
11de00000-11df00000 rw-
11e000000-11e800000 rw-
1696e0000-16cee4000 ---
16cee4000-16d6e0000 rw-
180000000-190000000 r--
190000000-1a0000000 r--
1a0000000-1b0000000 r--
1b0000000-1c0000000 r--
1c0000000-1d0000000 r--
1d0000000-1e0000000 r--
1e0000000-1f0000000 r--
1f0000000-1fa000000 r--
1fa000000-1fc000000 rw-
1fc000000-200000000 r--
200000000-2003d4000 r--
2003d4000-205c48000 rw-
205c48000-206000000 r--
206000000-210000000 r--
210000000-220000000 r--
220000000-230000000 r--
230000000-240000000 r--
240000000-250000000 r--
250000000-260000000 r--
260000000-270000000 r--
270000000-280000000 r--
fc0000000-1000000000 ---
1000000000-7000000000 ---

100518000-10051c000 r-x
10051c000-100520000 r--
100520000-100524000 rw-
100524000-100528000 r--
100528000-100530000 rw-
100530000-100534000 r--
100534000-100538000 r--
100538000-10053c000 rw-
10053c000-100540000 ---
100540000-100548000 rw-
100548000-10054c000 ---
10054c000-100550000 ---
100550000-100558000 rw-
100558000-10055c000 ---
10055c000-100560000 ---
100560000-100568000 rw-
100568000-10056c000 ---
10056c000-100570000 r--
1005d4000-100650000 r-x
100650000-100658000 r--
100658000-10065c000 rw-
10065c000-100690000 rw-
100690000-1006d4000 r--
1006d4000-1006d8000 r--
13fe00000-13ff00000 rw-
140000000-140800000 rw-
16b8e8000-16f0ec000 ---
16f0ec000-16f8e8000 rw-
180000000-190000000 r--
190000000-1a0000000 r--
1a0000000-1b0000000 r--
1b0000000-1c0000000 r--
1c0000000-1d0000000 r--
1d0000000-1e0000000 r--
1e0000000-1f0000000 r--
1f0000000-1fa000000 r--
1fa000000-1fc000000 rw-
1fc000000-200000000 r--
200000000-2003d4000 r--
2003d4000-205c48000 rw-
205c48000-206000000 r--
206000000-210000000 r--
210000000-220000000 r--
220000000-230000000 r--
230000000-240000000 r--
240000000-250000000 r--
250000000-260000000 r--
260000000-270000000 r--
270000000-280000000 r--
fc0000000-1000000000 ---
1000000000-7000000000 ---

Only the part of the memory with addresses >= 0x180000000 remains the same
across runs, but there is no executable code in these areas.

Bruno



More information about the cfarm-users mailing list