[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/28603] Incorrect branch offset from the start of a function afte
From: |
nickc at redhat dot com |
Subject: |
[Bug ld/28603] Incorrect branch offset from the start of a function after enable LTO |
Date: |
Wed, 15 Dec 2021 12:57:17 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=28603
Nick Clifton <nickc at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nickc at redhat dot com
--- Comment #3 from Nick Clifton <nickc at redhat dot com> ---
(In reply to Eason Lai from comment #1)
> I have tried to reproduce the issue by creating a simple code for reference,
> but no lucky. If anyone else could give me hint which part of linker may
> causes this problem, I will try deep dive the source code and find I can
> help or not. Thank you.
Is this ARM/AArch64 code that you are talking about ?
If so then the code you will want to look at is in the bfd/ directory,
specifically the elf32-arm.c and/or elfxx-aarch64.c files. Look for the
functions which are used to resolve relocations.
It is strange that LTO is causing this problem. I am not sure why this would
cause the effect that you are seeing. Is it possible that the bad code still
has a relocation associated with it which would put the correct address into
place when the program is loaded ?
Cheers
Nick
--
You are receiving this mail because:
You are on the CC list for the bug.