bug-binutils
[Top][All Lists]
Advanced

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

[Bug gas/29655] s390x gas generates PC32DBL instead of PLT32DBL for func


From: uweigand at gcc dot gnu.org
Subject: [Bug gas/29655] s390x gas generates PC32DBL instead of PLT32DBL for function call
Date: Fri, 07 Oct 2022 12:09:39 +0000

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

--- Comment #13 from Ulrich Weigand <uweigand at gcc dot gnu.org> ---
In any case, I still don't quite get where there is any incompatibility.

If `bar` resolves to its canonical PLT address, and you use `--defsym=foo=bar`,
then `foo` will *also* resolve to the canonical PLT address of `bar`, so they
still compare equal.

If I change your test2.c to use "extern void foo();" instead, and add
`-Wl,--defsym=foo=bar` to the command line, I get as expected:

./test1 
foo=0x10004f8 bar=0x10004f8

Do you have a self-contained test case that actually shows an incompatibility
(i.e. two pointers comparing unequal when they should compare equal)?

-- 
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]