[macOS] old script change_mach_o_flags.py doesn't exist in new versions of chromium

32 views
Skip to first unread message

zohar cabeli

unread,
Nov 15, 2021, 7:53:22 PM11/15/21
to Chromium-dev
Hi, 

I'd like to build my chromium project with preventing the heap memory from storing executable code (represented by flag MH_NO_HEAP_EXECUTION to the best of my knowledge).

However, I've notice that the script that used to set this build after successful compilation (called change_mach_o_flags.py) is long been removed from the project, so I wonder if Apple now set this capability by default (I've tried to look for this flag in the macho file and couldn't see it)

and what about the other attributes like PIE (for enable/disable position independence code)... is it supported in new macOS versions ?

thanks

Nico Weber

unread,
Nov 15, 2021, 8:46:51 PM11/15/21
to zohar....@gmail.com, Chromium-dev
It was deleted long ago in https://codereview.chromium.org/1885593003 . As far as I know, MH_NO_HEAP_EXECUTION is used by dyld by default on 64-bit (see the comment in mach-o/loader.h in the xnu sources). We stopped shipping 32-bit chrome/mac long ago. 64-bit code is also always PIE on macOS.

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/49a6ffa2-7332-4324-b85c-a75738b73356n%40chromium.org.
Reply all
Reply to author
Forward
0 new messages