[ipxe-devel] Receiving http://ipxe.org/3c00e183 error after upgrade

Dentcho Bankov dbankov at vmware.com
Mon Aug 24 13:27:57 UTC 2020


Hello Michael,

Confirmed.

Your change had solved the problem I observed when building iPXE in our official build environment where we use gcc-4.5.3 and binutils-2.17.50.0.15.

Thank you very much for taking care of this!

Best regards,
Dentcho Bankov

On 23.08.20, 19:56, "Michael Brown" <mcb30 at ipxe.org> wrote:

    On 22/08/2020 10:06, Dentcho Bankov wrote:
    > First in my previous e-mail I've made a mistake about the version of the compiler I'm using. And the problem I'm observing is with:
    > 1. gcc-4.5.3
    > 2. binutils-2.17.50.0.15
    > 
    > I confirmed that with gcc-9.3 on Ubuntu 2020 everything works fine.
    > 
    > I did a binary search and surprisingly the change which causes the problem for me appeared to be https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fipxe%2Fipxe%2Fcommit%2Fbb74f00512995f15bf61517fc039f32713e0af73%23diff-25d902c24283ab8cfbac54dfa101ad31&data=02%7C01%7Cdbankov%40vmware.com%7C0a9a547283094c76108908d8478578b6%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C637337985894081924&sdata=Iofe7P4FResteFLp19ZvYoAK7qyBTMDJ549t3UEU5QA%3D&reserved=0
    > 
    > The surprising part is that this change just adds a bunch of "extern" statements in asn1.h which for some reason changes the alignment of the asn1_algorithms link table. Further it seems these are added only to support some test code in rsa_test.c so to resolve my problem I just moved the extern statements from asn1_algorithms to the rsa_test.c.
    > 
    > So I'm writing this e-mail to also ask if it's worth posting the above change (moving the extern statements to rsa_test.c) as a pull request.

    Thank you for researching and following up!

    I suspect this relates to the fact that the extern declarations are 
    missing the __asn1_algorithm modifiers.  I vaguely remember that gcc 
    used to require __attribute__((aligned(...))) to be specified on the 
    first declaration of a symbol.

    I've created a pull request for this:

       https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fipxe%2Fipxe%2Fpull%2F137&data=02%7C01%7Cdbankov%40vmware.com%7C0a9a547283094c76108908d8478578b6%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C637337985894081924&sdata=EhM05z7VhZOX%2F1qjl058eHDudt5ZQlgZ7WmaDTdPDoo%3D&reserved=0

    Could you let me know if this fixes the problem on gcc 4.5.3?

    Thanks,

    Michael



More information about the ipxe-devel mailing list