Thursday, November 28, 2019

Re: ld.so: mplayer: unknown relocation 2 on i386

Dieter: it's due to recent changes in the dynamic linker (ld.so).

guenther@: Test case:

$ cat conftest.c
#include <stdio.h>
int main () {
FILE *f = fopen ("conftest.out", "w");
return ferror (f) || fclose (f) != 0;
}

$ make conftest CFLAGS="-Wl,-znotext -fno-pie"
cc -Wl,-znotext -fno-pie -o conftest conftest.c

$ ./conftest
ld.so: conftest: unknown relocation 2
Killed

No comments:

Post a Comment