Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Tue, 28 Apr 2015 22:23:37 +0300 (MSK)
From: Alexander Monakov <amonakov@...ras.ru>
To: musl@...ts.openwall.com
Subject: Re: [PATCH] force LTO to be disabled when compiling
 dlstart.lo

> > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57703
> 
> I have an interesting solution to this problem: get rid of the
> top-level asm and instead put it inside the function with 2 additional
> lines:
> 
> - At the top, "jmp 9f" or equivalent.
> - At the bottom, "9:".
> 
> Now the asm can't be separated from the function because it's part of
> it. Would that work?

I think it would avoid the LTO partitioning issue, but it would also be a step
back in terms of solving their original problem, which was to avoid duplicates
of syscall entry sequence being potentially emitted.  As another GCC
discussion mentions, they started using toplevel asm there after they found
they couldn't instruct Clang not do duplicate that function, unlike they could,
with function attributes, tame GCC.

Alexander

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.