mirror of https://gitee.com/Nocallback/glibc.git
Browse Source
The value of l_scope is only valid post relocation, so this original
check was triggering undefined behavior. Instead just directly check to
see if the object has been relocated, at which point using l_scope is
safe.
Reported-by: Andreas Schwab <schwab@suse.de>
Closes: BZ #31317
Fixes: e0590f41fe ("RISC-V: Enable static-pie.")
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
master
committed by
Andreas Schwab
1 changed files with 1 additions and 1 deletions
Loading…
Reference in new issue