Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22102

How to make ld (linker) to create new dynamic tags in ELF without flag "--enable-new-dtags"?

$
0
0

How to make ld (linker) to create new dynamic tags in ELF without flag "--enable-new-dtags"?

Just compiled binutils-2.30 makes old tags by default.

Test program:

$ echo "int main(void) { ; return 0; }"> conftest.c

$ gcc -o conftestexe -g -O2 -Wl,-rpath -Wl,/foo conftest.c

$ objdump -p conftestexe | grep foo

it's for new by default: RUNPATH /foo

it's for old by default: RPATH /foo

Hardcoded RUNPATH is used for auto-testing, for example MPFR changes behavior because of it (lt_cv_shlibpath_overrides_runpath=no for old RPATH)


Viewing all articles
Browse latest Browse all 22102

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>