[DragonFlyBSD - Bug #2559] gcc -pie and __builtin_popcount causes
bugtracker-admin at leaf.dragonflybsd.org
bugtracker-admin at leaf.dragonflybsd.org
Mon Nov 12 23:41:32 PST 2018
Issue #2559 has been updated by exercitation.
Description updated
Bug report was represent on this platform that was amazing to have all these on the formation of this programme. I need to get report on this that I got from https://www.essayontime.co.uk/ this was good to have all the verification to remove the bug report on it.
----------------------------------------
Bug #2559: gcc -pie and __builtin_popcount causes
http://bugs.dragonflybsd.org/issues/2559#change-13536
* Author: akr
* Status: Closed
* Priority: Normal
* Assignee:
* Category:
* Target version:
----------------------------------------
I found that __builtin_popcount is not usable with -pie option for gcc.
$ uname -a
DragonFly dragonfly34 3.4-RELEASE DragonFly v3.4.1-RELEASE #7: Wed Apr 24 20:01:27 PDT 2013 root at pkgbox64.dragonflybsd.org:/usr/obj/build/home/justin/src/sys/X86_64_GENERIC x86_64
$ cat tst.c
#include <stdio.h>
int main(int argc, char *argv[])
{
printf("%d\n", __builtin_popcount(argc));
return 0;
}
$ gcc -pie tst.c
/usr/libexec/binutils222/elf/ld.bfd: /tmp//cc2Tj2Mb.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/tmp//cc2Tj2Mb.o: could not read symbols: Bad value
--
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account
More information about the Bugs
mailing list