On Aug 15, 2018, at 6:20 AM, Iain Sandoe <[email protected]> wrote: > > The fails on Darwin are because the section naming convention is different. > > The patch adds Darwin-specific section attributes and a corresponding > target-specific scan-assembler clause. > > OK for trunk? > affected branches (7, 8)?
Ok. [ just thinking out loud ] It might be nice to have a section name mapper that can convert section names from the rest of the world, into darwin style section names. .text -> __TEXT,__text and so on, then some of this patch can be backed out as unnecessary. The point of the patch would be to increase the portability of code to the platform. The other possibility would be for darwin to just add support for all the usual elf things and for those all to work.
