https://sourceware.org/bugzilla/show_bug.cgi?id=28603
--- Comment #4 from Eason Lai <sen2403 at hotmail dot com> --- (In reply to Nick Clifton from comment #3) > (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 Thanks for reply. I am using ARM CM4 and no relocation when the program is loaded. I have checked the elf32-arm.c, and it is a large file and not easy to figure out the problem by non-professionals like me. If any professional can help on this, I will really really appreciate it. Thank you very much. -- You are receiving this mail because: You are on the CC list for the bug.