[syslinux] binutils (objcopy?) >= 2.26 breaks syslinux (bios) build

H. Peter Anvin hpa at zytor.com
Mon Feb 8 10:04:51 PST 2016


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



More information about the Syslinux mailing list