Topics

Linker error undefined reference to `_rtld_global_ro'

Robert Varga
 

Hello,

I am new to the Yocto project and need some help in solving a linker issue when compiling/linking an application using the SDK. It seems, that the compilation is completed, but the linker could not resolve to "_rtld_global_ro". Here is the output of the last stage
<snip>
...
/opt/mydistro/1.0.0/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/8.3.0/real-ld: /opt/mydistro/1.0.0/sysroots/cortexa9t2hf-neon-poky-linux-gnueabi/usr/lib/libc.a(getcontext.o): in function `getcontext':
/usr/src/debug/glibc/2.29-r0/git/stdlib/../sysdeps/unix/sysv/linux/arm/getcontext.S:101: undefined reference to `_rtld_global_ro'
/opt/mydistro/1.0.0/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/8.3.0/real-ld: /opt/mydistro/1.0.0/sysroots/cortexa9t2hf-neon-poky-linux-gnueabi/usr/lib/libc.a(setcontext.o): in function `__startcontext':
/usr/src/debug/glibc/2.29-r0/git/stdlib/../sysdeps/unix/sysv/linux/arm/setcontext.S:100: undefined reference to `_rtld_global_ro'
collect2: error: ld returned 1 exit status
makefile:116: recipe for target 'ortable' failed
make: *** [ortable] Error 1
</snip>

What I can see from the output is, that both getcontext.S and setcontext.S are referencing to "_rtld_global_ro". What I do not understand is, why the glibc is located in the debug folder? Is this probably the issue?

I have sourced the SDK using following command:
source /opt/mydistro/1.0.0/environment-setup-cortexa9t2hf-neon-poky-linux-gnueabi

Here's image bb file (which I have used for building the SDK using this command (bitbake my-image -c populate_sdk).

require recipes-extended/images/core-image-full-cmdline.bb
 
IMAGE_INSTALL_append = " \
    emmy-w1-driver-sdiosdio \
    emmy-w1-systemd \
    eth-systemd \
    can-systemd \
    can-utils \
    lighttpd \
    dnsmasq \
    parted \
    swupdate \
    swupdate-www \
    u-boot-fw-utils \
    linux-firmware-imx-sdma-imx6q \
    "
 
TOOLCHAIN_HOST_TASK_append = " nativesdk-perl-modules"
SDKIMAGE_FEATURES_append = " staticdev-pkgs"
 
Any help on resolving this issue would be greatly appreciated.

Thanks.
--

Rob

Khem Raj
 

On 7/13/20 4:21 AM, Robert Varga wrote:
Hello,
I am new to the Yocto project and need some help in solving a linker issue when compiling/linking an application using the SDK. It seems, that the compilation is completed, but the linker could not resolve to "_rtld_global_ro". Here is the output of the last stage
<snip>
...
/opt/mydistro/1.0.0/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/8.3.0/real-ld: /opt/mydistro/1.0.0/sysroots/cortexa9t2hf-neon-poky-linux-gnueabi/usr/lib/libc.a(getcontext.o): in function `getcontext':
/usr/src/debug/glibc/2.29-r0/git/stdlib/../sysdeps/unix/sysv/linux/arm/getcontext.S:101: undefined reference to `_rtld_global_ro'
/opt/mydistro/1.0.0/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/8.3.0/real-ld: /opt/mydistro/1.0.0/sysroots/cortexa9t2hf-neon-poky-linux-gnueabi/usr/lib/libc.a(setcontext.o): in function `__startcontext':
/usr/src/debug/glibc/2.29-r0/git/stdlib/../sysdeps/unix/sysv/linux/arm/setcontext.S:100: undefined reference to `_rtld_global_ro'
collect2: error: ld returned 1 exit status
makefile:116: recipe for target 'ortable' failed
make: *** [ortable] Error 1
</snip>
What I can see from the output is, that both getcontext.S and setcontext.S are referencing to "_rtld_global_ro". What I do not understand is, why the glibc is located in the debug folder? Is this probably the issue?
it seems static apps with glibc compiled with PIE related. Can you verfiy if you get same issue with aarch64 or mips ?

I have sourced the SDK using following command:
source /opt/mydistro/1.0.0/environment-setup-cortexa9t2hf-neon-poky-linux-gnueabi
Here's image bb file (which I have used for building the SDK using this command (bitbake my-image -c populate_sdk).
require recipes-extended/images/core-image-full-cmdline.bb
IMAGE_INSTALL_append = " \
    emmy-w1-driver-sdiosdio \
    emmy-w1-systemd \
    eth-systemd \
    can-systemd \
    can-utils \
    lighttpd \
    dnsmasq \
    parted \
    swupdate \
    swupdate-www \
    u-boot-fw-utils \
    linux-firmware-imx-sdma-imx6q \
    "
TOOLCHAIN_HOST_TASK_append = " nativesdk-perl-modules"
SDKIMAGE_FEATURES_append = " staticdev-pkgs"
Any help on resolving this issue would be greatly appreciated.
Thanks.
--
Rob

Robert Varga
 

Thank you very much for your response.

it seems static apps with glibc compiled with PIE related.
I'm afraid I didn't understand (as I am new to yocto and try to understand it). Did you mean, the following statement in my-image.bb file generates the static apps which is not a good approach?
SDKIMAGE_FEATURES_append = " staticdev-pkgs"

I introduced this statement because I got linking errors when compiling/linking using the SDK complaining about missing libs just like ...
/opt/mydistro/1.0.0/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/8.3.0/real-ld: cannot find -lpthread
/opt/mydistro/1.0.0/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/8.3.0/real-ld: cannot find -ldl
/opt/mydistro/1.0.0/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/8.3.0/real-ld: cannot find -lstdc++
/opt/mydistro/1.0.0/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/8.3.0/real-ld: cannot find -lm
/opt/mydistro/1.0.0/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/8.3.0/real-ld: cannot find -lc
collect2: error: ld returned 1 exit status
makefile:128: recipe for target 'arm' failed
make: *** [arm] Error 1

When using this statement (SDKIMAGE_FEATURES_append = " staticdev-pkgs") I can see in /opt/mydistro/1.0.0/sysroots/usr/lib many *.a files which are not present without this statement. But I am not sure if this statement is correct? Maybe there is another approach for including the missing libs?

And what do you mean with "PIE related"? Are you thinking of an Raspberri PI?

Can you verfiy if you get same issue with aarch64 or mips ?
Also I would like to verify, but do not know how to setup for aarch64 or mips. Can you provide a short example?

Thank you for your support.

--

Rob

Khem Raj
 

On 7/14/20 12:53 AM, Robert Varga wrote:
Thank you very much for your response.

it seems static apps with glibc compiled with PIE related.

I'm afraid I didn't understand (as I am new to yocto and try to
understand it). Did you mean, the following statement in my-image.bb
file generates the static apps which is not a good approach?
SDKIMAGE_FEATURES_append = " staticdev-pkgs"

I introduced this statement because I got linking errors when
compiling/linking using the SDK complaining about missing libs just like ...
/opt/mydistro/1.0.0/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/8.3.0/real-ld:
cannot find -lpthread
/opt/mydistro/1.0.0/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/8.3.0/real-ld:
cannot find -ldl
/opt/mydistro/1.0.0/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/8.3.0/real-ld:
cannot find -lstdc++
/opt/mydistro/1.0.0/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/8.3.0/real-ld:
cannot find -lm
/opt/mydistro/1.0.0/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/8.3.0/real-ld:
cannot find -lc
collect2: error: ld returned 1 exit status
makefile:128: recipe for target 'arm' failed
make: *** [arm] Error 1

When using this statement (SDKIMAGE_FEATURES_append = " staticdev-pkgs")
I can see in /opt/mydistro/1.0.0/sysroots/usr/lib many *.a files which
are not present without this statement. But I am not sure if this
statement is correct? Maybe there is another approach for including the
missing libs?

And what do you mean with "PIE related"? Are you thinking of an
Raspberri PI?

Can you verfiy if you get same issue with aarch64 or mips ?

Also I would like to verify, but do not know how to setup for aarch64 or
mips. Can you provide a short example?

Thank you for your support.
build SDK for arm64. e.g. MACHINE=qemuarm64 bitbake -cpopulate_sdk
core-image-sato

and install this SDK and repeat your experiment.


--

Rob


Robert Varga
 

Thank you for instructions...
 
build SDK for arm64. e.g. MACHINE=qemuarm64 bitbake -cpopulate_sdk
core-image-sato
After long attempts I finally managed to create an SDK with qemuarm64. However, I did not use the core-minimal-sato as suggested, but used the same setup as in my-image.bb (which is based on the core-image-full-cmdline). 
With this new SDK I then did the same experiment and compiled the application, and it worked! There were no linker error messages.
Now the question for me is, why did it compile with qemuarm64, but not with my settings? 
Is there anything else I can do to isolate the issue?
Thanks for your support so far.
 
-- 

Rob

Khem Raj
 

On 7/15/20 7:36 AM, Robert Varga wrote:
Thank you for instructions...
build SDK for arm64. e.g. MACHINE=qemuarm64 bitbake -cpopulate_sdk
core-image-sato
After long attempts I finally managed to create an SDK with qemuarm64. However, I did not use the core-minimal-sato as suggested, but used the same setup as in my-image.bb (which is based on the core-image-full-cmdline).
With this new SDK I then did the same experiment and compiled the application, and it worked! There were no linker error messages.
Now the question for me is, why did it compile with qemuarm64, but not with my settings?
Is there anything else I can do to isolate the issue?
Thanks for your support so far.
Can you check if your glibc is compiled with --enable-static-pie ?
search for GLIBCPIE and its value, if its set to --enable-static-pie then disable it for arm with GLIBCPIE_arm = ""

and retry

--
Rob

Robert Varga
 

If have searched for GLIBCPIE within all meta-files, but it seems that GLIBCPIE is already empty.

varga-r@ubuntu:~/projects/yocto-tq-mba6x$ grep -rnI "GLIBCPIE"
poky/meta/conf/distro/include/security_flags.inc:9:# If static PIE is known to work well, GLIBCPIE="--enable-static-pie" can be set
poky/meta/conf/distro/include/security_flags.inc:34:GLIBCPIE_powerpc = ""
poky/meta/recipes-core/glibc/glibc_2.29.bb:73:GLIBCPIE ??= ""
poky/meta/recipes-core/glibc/glibc_2.29.bb:89:                ${GLIBCPIE} \

Then I searched for "pie" within the generated glibc sources... and found many search results including "-pie" or "-fpie" as passed compiler parameter for various files (note that I pasted two lines only!):
varga-r@ubuntu:~/projects/yocto-tq-mba6x$ grep -rnI "pie" build/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/glibc
<snip>

...
build/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/glibc/2.29-r0/temp/log.do_compile.90521:10133:arm-poky-linux-gnueabi-gcc  -mthumb -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a9  --sysroot=/home/varga-r/projects/yocto-tq-mba6x/build/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/glibc/2.29-r0/recipe-sysroot -pie -Wl,-O1 -nostdlib -nostartfiles -o /home/varga-r/projects/yocto-tq-mba6x/build/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/glibc/2.29-r0/build-arm-poky-linux-gnueabi/iconv/iconvconfig  -fuse-ld=bfd  -Wl,-z,combreloc -Wl,-z,relro -Wl,--hash-style=both /home/varga-r/projects/yocto-tq-mba6x/build/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/glibc/2.29-r0/build-arm-poky-linux-gnueabi/csu/Scrt1.o /home/varga-r/projects/yocto-tq-mba6x/build/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/glibc/2.29-r0/build-arm-poky-linux-gnueabi/csu/crti.o `arm-poky-linux-gnueabi-gcc  -mthumb -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a9  --sysroot=/home/varga-r/projects/yocto-tq-mba6x/build/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/glibc/2.29-r0/recipe-sysroot  --print-file-name=crtbeginS.o` /home/varga-r/projects/yocto-tq-mba6x/build/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/glibc/2.29-r0/build-arm-poky-linux-gnueabi/iconv/iconvconfig.o /home/varga-r/projects/yocto-tq-mba6x/build/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/glibc/2.29-r0/build-arm-poky-linux-gnueabi/iconv/strtab.o /home/varga-r/projects/yocto-tq-mba6x/build/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/glibc/2.29-r0/build-arm-poky-linux-gnueabi/iconv/xmalloc.o /home/varga-r/projects/yocto-tq-mba6x/build/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/glibc/2.29-r0/build-arm-poky-linux-gnueabi/iconv/hash-string.o  -Wl,-dynamic-linker=/lib/ld-linux-armhf.so.3 -Wl,-rpath-link=/home/varga-r/projects/yocto-tq-mba6x/build/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/glibc/2.29-r0/build-arm-poky-linux-gnueabi:/home/varga-r/projects/yocto-tq-mba6x/build/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/glibc/2.29-r0/build-arm-poky-linux-gnueabi/math:/home/varga-r/projects/yocto-tq-mba6x/build/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/glibc/2.29-r0/build-arm-poky-linux-gnueabi/elf:/home/varga-r/projects/yocto-tq-mba6x/build/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/glibc/2.29-r0/build-arm-poky-linux-gnueabi/dlfcn:/home/varga-r/projects/yocto-tq-mba6x/build/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/glibc/2.29-r0/build-arm-poky-linux-gnueabi/nss:/home/varga-r/projects/yocto-tq-mba6x/build/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/glibc/2.29-r0/build-arm-poky-linux-gnueabi/nis:/home/varga-r/projects/yocto-tq-mba6x/build/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/glibc/2.29-r0/build-arm-poky-linux-gnueabi/rt:/home/varga-r/projects/yocto-tq-mba6x/build/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/glibc/2.29-r0/build-arm-poky-linux-gnueabi/resolv:/home/varga-r/projects/yocto-tq-mba6x/build/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/glibc/2.29-r0/build-arm-poky-linux-gnueabi/mathvec:/home/varga-r/projects/yocto-tq-mba6x/build/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/glibc/2.29-r0/build-arm-poky-linux-gnueabi/support:/home/varga-r/projects/yocto-tq-mba6x/build/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/glibc/2.29-r0/build-arm-poky-linux-gnueabi/nptl /home/varga-r/projects/yocto-tq-mba6x/build/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/glibc/2.29-r0/build-arm-poky-linux-gnueabi/libc.so.6 /home/varga-r/projects/yocto-tq-mba6x/build/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/glibc/2.29-r0/build-arm-poky-linux-gnueabi/libc_nonshared.a -Wl,--as-needed /home/varga-r/projects/yocto-tq-mba6x/build/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/glibc/2.29-r0/build-arm-poky-linux-gnueabi/elf/ld.so -Wl,--no-as-needed -lgcc /home/varga-r/projects/yocto-tq-mba6x/build/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/glibc/2.29-r0/build-arm-poky-linux-gnueabi/elf/libgcc-stubs.a `arm-poky-linux-gnueabi-gcc  -mthumb -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a9  --sysroot=/home/varga-r/projects/yocto-tq-mba6x/build/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/glibc/2.29-r0/recipe-sysroot  --print-file-name=crtendS.o` /home/varga-r/projects/yocto-tq-mba6x/build/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/glibc/2.29-r0/build-arm-poky-linux-gnueabi/csu/crtn.o
...
build/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/glibc/2.29-r0/temp/log.do_compile.90521:14335:arm-poky-linux-gnueabi-gcc  -mthumb -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a9  --sysroot=/home/varga-r/projects/yocto-tq-mba6x/build/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/glibc/2.29-r0/recipe-sysroot res_hconf.c -c -std=gnu11 -fgnu89-inline  -O2 -pipe -feliminate-unused-debug-types -fmacro-prefix-map=/home/varga-r/projects/yocto-tq-mba6x/build/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/glibc/2.29-r0=/usr/src/debug/glibc/2.29-r0 -fdebug-prefix-map=/home/varga-r/projects/yocto-tq-mba6x/build/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/glibc/2.29-r0=/usr/src/debug/glibc/2.29-r0 -fdebug-prefix-map=/home/varga-r/projects/yocto-tq-mba6x/build/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/glibc/2.29-r0/recipe-sysroot= -fdebug-prefix-map=/home/varga-r/projects/yocto-tq-mba6x/build/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/glibc/2.29-r0/recipe-sysroot-native= -Wall -Wwrite-strings -Wundef -Werror -fmerge-all-constants -frounding-math -fno-stack-protector -Wstrict-prototypes -Wold-style-definition -fmath-errno -DHAVE_EPOLL -DHAVE_INOTIFY -DHAVE_NETLINK      -fpie     -I../include -I/home/varga-r/projects/yocto-tq-mba6x/build/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/glibc/2.29-r0/build-arm-poky-linux-gnueabi/nscd  -I/home/varga-r/projects/yocto-tq-mba6x/build/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/glibc/2.29-r0/build-arm-poky-linux-gnueabi  -I../sysdeps/unix/sysv/linux/arm  -I../sysdeps/arm/nptl  -I../sysdeps/unix/sysv/linux/include -I../sysdeps/unix/sysv/linux  -I../sysdeps/nptl  -I../sysdeps/pthread  -I../sysdeps/gnu  -I../sysdeps/unix/inet  -I../sysdeps/unix/sysv  -I../sysdeps/unix/arm  -I../sysdeps/unix  -I../sysdeps/posix  -I../sysdeps/arm/armv7/multiarch  -I../sysdeps/arm/armv7  -I../sysdeps/arm/armv6t2  -I../sysdeps/arm/armv6  -I../sysdeps/arm/include -I../sysdeps/arm  -I../sysdeps/wordsize-32  -I../sysdeps/ieee754/flt-32  -I../sysdeps/ieee754/dbl-64  -I../sysdeps/ieee754  -I../sysdeps/generic  -I.. -I../libio -I. -nostdinc -isystem /home/varga-r/projects/yocto-tq-mba6x/build/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/glibc/2.29-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi/../../lib/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/8.3.0/include -isystem /home/varga-r/projects/yocto-tq-mba6x/build/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/glibc/2.29-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi/../../lib/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/8.3.0/include-fixed -isystem /home/varga-r/projects/yocto-tq-mba6x/build/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/glibc/2.29-r0/recipe-sysroot/usr/include  -D_LIBC_REENTRANT -include /home/varga-r/projects/yocto-tq-mba6x/build/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/glibc/2.29-r0/build-arm-poky-linux-gnueabi/libc-modules.h -DMODULE_NAME=nscd -include ../include/libc-symbols.h  -DPIC -D_FORTIFY_SOURCE=2    -DTOP_NAMESPACE=glibc -o /home/varga-r/projects/yocto-tq-mba6x/build/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/glibc/2.29-r0/build-arm-poky-linux-gnueabi/nscd/res_hconf.o -MD -MP -MF /home/varga-r/projects/yocto-tq-mba6x/build/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/glibc/2.29-r0/build-arm-poky-linux-gnueabi/nscd/res_hconf.o.dt -MT /home/varga-r/projects/yocto-tq-mba6x/build/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/glibc/2.29-r0/build-arm-poky-linux-gnueabi/nscd/res_hconf.o
...
</snip>

I am not sure, if this is relevant... just in case.



Thanks for your support.

--
Rob

Robert Varga
 

Hi Khem,

Do you have any ideas, whether the passed compiler parameters ("-pie" or "-fpie") are the origin of this linker issues?

Does anyone know if glibc is compiled with "--enable-static-pie" if the passed compiler parameters include those "-pie" or "-fpie"? Or are they unrelated?

Thanks a lot for your support.

--
Rob

Khem Raj
 

On 7/21/20 8:07 AM, Robert Varga wrote:
Hi Khem,
Do you have any ideas, whether the passed compiler parameters ("-pie" or "-fpie") are the origin of this linker issues?
Does anyone know if glibc is compiled with "--enable-static-pie" if the passed compiler parameters include those "-pie" or "-fpie"? Or are they unrelated?
can you try setting GLIBCPIE = "" in local.conf and see if that helps

Thanks a lot for your support.
--
Rob

Robert Varga
 

Hi Khem,

can you try setting GLIBCPIE = "" in local.conf and see if that helps
I set GLIBCPIE = "" in local.conf but the result is the same. The linker issue "undefined reference to `_rtld_global_ro'" still occurs.
Do you have any other ideas what I could do?

--
Rob