Gnuk with GCC >= 5

Bertrand Jacquin bertrand at jacquin.bzh
Tue Aug 28 22:55:30 CEST 2018


Hi,

> >  *      --enable-default-pie
> 
> This is wrong.  We don't have dynamic linker for arm-none-eabi.  This
> might be the cause of your problem.  At least, I'm sure that it will
> generate dynamic relocations.

Indeed, if I build gnuk with -fno-pie, then the map file is correct:

/usr/lib/gcc/arm-none-eabi/7.3.0/thumb/libgcc.a(_lshrdi3.o)
                              build/sha512.o (__aeabi_llsr)
/usr/lib/gcc/arm-none-eabi/7.3.0/thumb/libgcc.a(_ashldi3.o)
                              build/sha512.o (__aeabi_llsl)
/usr/lib/gcc/arm-none-eabi/7.3.0/../../../../arm-none-eabi/lib/thumb/libc.a(lib_a-memcmp.o)
                              build/openpgp.o (memcmp)
/usr/lib/gcc/arm-none-eabi/7.3.0/../../../../arm-none-eabi/lib/thumb/libc.a(lib_a-memcpy.o)
                              build/call-rsa.o (memcpy)
/usr/lib/gcc/arm-none-eabi/7.3.0/../../../../arm-none-eabi/lib/thumb/libc.a(lib_a-memset.o)
                              build/usb_ctrl.o (memset)
/usr/lib/gcc/arm-none-eabi/7.3.0/../../../../arm-none-eabi/lib/thumb/libc.a(lib_a-strlen.o)
                              build/bignum.o (strlen)

Can you please consider applied the attached patch to chopstx?

Cheers

-- 
Bertrand
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Disable-PIE-by-default.patch
Type: text/x-diff
Size: 752 bytes
Desc: not available
URL: <https://lists.gnupg.org/pipermail/gnuk-users/attachments/20180828/a2c7c0be/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: Digital signature
URL: <https://lists.gnupg.org/pipermail/gnuk-users/attachments/20180828/a2c7c0be/attachment.sig>


More information about the Gnuk-users mailing list