H. Peter Anvin
2016-Feb-03 18:30 UTC
[syslinux] binutils (objcopy?) >= 2.26 breaks syslinux (bios) build
On February 3, 2016 7:17:37 AM PST, Celelibi <celelibi at gmail.com> wrote:>2016-02-02 18:50 UTC+01:00, poma via Syslinux <syslinux at zytor.com>: >> On 30.01.2016 16:59, poma wrote: >>> ... >>> >>> https://sourceware.org/bugzilla/show_bug.cgi?id=19538 >>> >>> >> >> Mister Anvin, >> care to share what's the status of the "ld?" problemo, >> is anyone working on it? >> >> It would be maravilloso if syslinux can continue to build and test >with >> latest and greatest. > >There have been a discussion about the -fPIC option a few month ago >(november or december 2015). I don't remember what exactly it was >about. I think I said I would submit a patch that add -fPIC for 32 >bits even thought it wouldn't have an actual effect regarding current >compilers. > >This option is definitely required for 64 bits, and it is >theoretically required for 32 bits. But I haven't investigated the >current issue. > >CelelibiIt isn't just 32 vs 64 bits, it is also 32 bit BIOS vs 32 bit EFI, and their requirements differ. -- Sent from my Android device with K-9 Mail. Please excuse brevity and formatting.
H. Peter Anvin
2016-Feb-08 18:04 UTC
[syslinux] binutils (objcopy?) >= 2.26 breaks syslinux (bios) build
On 02/03/16 10:30, H. Peter Anvin via Syslinux wrote:> On February 3, 2016 7:17:37 AM PST, Celelibi <celelibi at gmail.com> wrote: >> 2016-02-02 18:50 UTC+01:00, poma via Syslinux <syslinux at zytor.com>: >>> On 30.01.2016 16:59, poma wrote: >>>> ... >>>> >>>> https://sourceware.org/bugzilla/show_bug.cgi?id=19538 >>>> >>>> >>> >>> Mister Anvin, >>> care to share what's the status of the "ld?" problemo, >>> is anyone working on it? >>> >>> It would be maravilloso if syslinux can continue to build and test >> with >>> latest and greatest. >> >> There have been a discussion about the -fPIC option a few month ago >> (november or december 2015). I don't remember what exactly it was >> about. I think I said I would submit a patch that add -fPIC for 32 >> bits even thought it wouldn't have an actual effect regarding current >> compilers. >> >> This option is definitely required for 64 bits, and it is >> theoretically required for 32 bits. But I haven't investigated the >> current issue. >> >> Celelibi > > It isn't just 32 vs 64 bits, it is also 32 bit BIOS vs 32 bit EFI, and their requirements differ. >So here is the deal... syslinux.elf in the BIOS case is really an odd duck. It has parts that are relocatable (and needs to export its symbols) and parts that aren't (and also needs to export at least some of its symbols.) It might be that we need -Bdynamic rather than -pie, and perhaps some modification to the relocation code, but it could also be that ld needs a whack to the head. -hpa
Ady
2016-Feb-08 23:23 UTC
[syslinux] binutils (objcopy?) >= 2.26 breaks syslinux (bios) build
> > So here is the deal... syslinux.elf in the BIOS case is really an odd > duck. It has parts that are relocatable (and needs to export its > symbols) and parts that aren't (and also needs to export at least some > of its symbols.) > > It might be that we need -Bdynamic rather than -pie, and perhaps some > modification to the relocation code, but it could also be that ld needs > a whack to the head. > > -hpa >Hmm... relocation... interaction with binutils 2.26 behaving differently than older versions... git.savannah.gnu.org/cgit/grub.git/commit/?id=67dba97e4598eaf2deb14da044 fbfb1c119cf76f savannah.gnu.org/bugs/?46986 Regards, Ady.> _______________________________________________ > Syslinux mailing list > Submissions to Syslinux at zytor.com > Unsubscribe or set options at: > http://www.zytor.com/mailman/listinfo/syslinux >
poma
2016-Feb-09 01:11 UTC
[syslinux] binutils (objcopy?) >= 2.26 breaks syslinux (bios) build
On 08.02.2016 19:04, H. Peter Anvin wrote:> On 02/03/16 10:30, H. Peter Anvin via Syslinux wrote: >> On February 3, 2016 7:17:37 AM PST, Celelibi <celelibi at gmail.com> wrote: >>> 2016-02-02 18:50 UTC+01:00, poma via Syslinux <syslinux at zytor.com>: >>>> On 30.01.2016 16:59, poma wrote: >>>>> ... >>>>> >>>>> https://sourceware.org/bugzilla/show_bug.cgi?id=19538 >>>>> >>>>> >>>> >>>> Mister Anvin, >>>> care to share what's the status of the "ld?" problemo, >>>> is anyone working on it? >>>> >>>> It would be maravilloso if syslinux can continue to build and test >>> with >>>> latest and greatest. >>> >>> There have been a discussion about the -fPIC option a few month ago >>> (november or december 2015). I don't remember what exactly it was >>> about. I think I said I would submit a patch that add -fPIC for 32 >>> bits even thought it wouldn't have an actual effect regarding current >>> compilers. >>> >>> This option is definitely required for 64 bits, and it is >>> theoretically required for 32 bits. But I haven't investigated the >>> current issue. >>> >>> Celelibi >> >> It isn't just 32 vs 64 bits, it is also 32 bit BIOS vs 32 bit EFI, and their requirements differ. >> > > So here is the deal... syslinux.elf in the BIOS case is really an odd > duck. It has parts that are relocatable (and needs to export its > symbols) and parts that aren't (and also needs to export at least some > of its symbols.) > > It might be that we need -Bdynamic rather than -pie, and perhaps some > modification to the relocation code, but it could also be that ld needs > a whack to the head. > > -hpa >s/LD_PIE = -pie/LD_PIE = -Bdynamic/ Failed to load ldlinux.c32 Boot failed: press a key to retry... _
Reasonably Related Threads
- binutils (objcopy?) >= 2.26 breaks syslinux (bios) build
- binutils (objcopy?) >= 2.26 breaks syslinux (bios) build
- binutils (objcopy?) >= 2.26 breaks syslinux (bios) build
- binutils (objcopy?) >= 2.26 breaks syslinux (bios) build
- binutils (objcopy?) >= 2.26 breaks syslinux (bios) build