bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gas/28157] gas: .symver *, *@*, remove cannot be used in relocation


From: i at maskray dot me
Subject: [Bug gas/28157] gas: .symver *, *@*, remove cannot be used in relocation
Date: Sat, 07 Aug 2021 06:29:35 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=28157

--- Comment #2 from Fangrui Song <i at maskray dot me> ---
(In reply to H.J. Lu from comment #1)
> Created attachment 13571 [details]
> A patch
> 
> Please try this.

I applied this patch.

% cat /tmp/c/y.s
call __free_hook
.symver __free_hook, __free_hook@GLIBC.2.2.5, remove
# for an undefined symbol, I believe `remove` is a no-op.

% gas/as-new /tmp/c/y.s -o y.o
/tmp/c/y.s: Assembler messages:
/tmp/c/y.s: Internal error (Segmentation fault).
Please report this bug.


I don't know the underlying implementation but I wonder whether the defined
single-@ `remove` case can share the same code with defined `@@@`. `@@ remove`
is identical to `@@@`.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]