This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Difference between --oformat binary, and objcopy -O binary of --oformat elf32-i386


Hello,

When a flat, -fPIE, binary is created using two methods:
(1) --oformat binary
(2) --oformat elf32-i386 and then objcopy -O binary,

the resulting code linked and stored within each resultant binary is
different from one another, even though both use the same .o file.

An observation shows (2) creates correct binaries, but (1) does not.

Do we know, beforehand, if this is an error on the part of the user
compiling the code, or if this is a designed or even an unsupported
behaviour.

Thank you,
linuxyne.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]