Nicholas Wourms wrote:
[SNIP]
#define strong_alias(name, aliasname) \
extern __typeof__(name) aliasname __attribute__((__alias__(#name))); \
__asm__(".def \"_" #aliasname "\"; .scl 2; .type 32; .endef\n");
^^ ^^
Sorry,
Ack, I pasted an older version of the macro, w
Danny Smith wrote:
Nicholas wrote:
One problem is that you (or gcc) need to tell ld that 'foo' is function, not
data.
I'll be the first to admit that I'm almost totally w/o a clue when it
comes to assembly. I'm afraid the gas manual is not very helpful in my
effort to alleviate this :-(.
Add
Nicholas wrote:
> Hi All,
>
> Gerrit and I were discussing this off-list, but I thought it appropriate
> that I move it to the main list since he has confirmed the problem.
>
> Here's the problem, programs are segfaulting when the are linked to a
> symbol which was aliased using __attribute__((a
3 matches
Mail list logo