>> Are you sure the linker does not perform this relaxation in your case?
If so,
>> that's an issue (missed optimization) in the linker.
yes, after linking phase also I see reference memcpy from PLT.
The file I am building is created with -ffreestanding and -fnostdlib
option; The memcpy function
On Fri, 27 Jul 2018, keshav tilak wrote:
> This leads to GCC compiler issuing a call to `memcpy@PLT()' in function bar1.
>
> I want to create a position independent executable from this source
> and run this on
> a secure environment which implements ASLR and the loader disallows any binary
> whic