History log of /netbsd-src/tests/libexec/ld.elf_so/Makefile (Results 1 – 24 of 24)
Revision Date Author Comments
# ee4113b4 22-Jul-2024 riastradh <riastradh@NetBSD.org>

tests/libexec/ld.elf_so/t_ifunc: Handle MKRELRO=no harder.

Don't even pass -Wl,-z,norelro if MKRELRO=no, because the toolchain's
ld(1) might not support relro _or_ norelro.

Should resolve, e.g.:

/

tests/libexec/ld.elf_so/t_ifunc: Handle MKRELRO=no harder.

Don't even pass -Wl,-z,norelro if MKRELRO=no, because the toolchain's
ld(1) might not support relro _or_ norelro.

Should resolve, e.g.:

/home/builds/ab/HEAD-llvm/evbarm-earmv7hf/202407182350Z-tools/bin/armv7--netbsdelf-eabihf-ld: warning: -z norelro ignored
armv7--netbsdelf-eabihf-clang: error: linker command failed with exit code 1 (use -v to see invocation)
--- t_ifunc_norelro ---
*** Failed target: t_ifunc_norelro
*** In directory: /home/source/ab/HEAD-llvm/src/tests/libexec/ld.elf_so
*** Failed commands:
${_MKTARGET_LINK}
...

show more ...


# e80c6eb8 16-Jul-2024 riastradh <riastradh@NetBSD.org>

tests/libexec/ld.elf_so/t_ifunc: Handle MKRELRO=no.

Just build t_ifunc and t_ifunc_now normally. If they wind up being
built with the same options as t_ifunc_norelro and
t_ifunc_norelro_now, so be

tests/libexec/ld.elf_so/t_ifunc: Handle MKRELRO=no.

Just build t_ifunc and t_ifunc_now normally. If they wind up being
built with the same options as t_ifunc_norelro and
t_ifunc_norelro_now, so be it; easier to do it this way than to put
more conditionals into set lists.

Should resolve, e.g.:

/home/builds/ab/HEAD-llvm/evbarm-earmv7hf/202407141900Z-tools/bin/armv7--netbsdelf-eabihf-ld: warning: -z relro ignored
armv7--netbsdelf-eabihf-clang: error: linker command failed with exit code 1 (use -v to see invocation)
--- t_ifunc ---
*** Failed target: t_ifunc
*** In directory: /home/source/ab/HEAD-llvm/src/tests/libexec/ld.elf_so
*** Failed commands:
${_MKTARGET_LINK}
=> @# " link " ld.elf_so/t_ifunc
${_CCLINK.${:Ut_ifunc}} ${_LDFLAGS.${:Ut_ifunc}} ${_LDSTATIC.${:Ut_ifunc}} -o ${.TARGET} ${OBJS.${:Ut_ifunc}} ${_PROGLDOPTS} ${_LDADD.${:Ut_ifunc}}
=> /home/builds/ab/HEAD-llvm/evbarm-earmv7hf/202407141900Z-tools/bin/armv7--netbsdelf-eabihf-clang --sysroot=/home/builds/ab/HEAD-llvm/evbarm-earmv7hf/202407141900Z-dest -Wl,--fatal-warnings -Wl,--warn-shared-textrel -pie -o t_ifunc t_ifunc.o -Wl,-rpath-link,/home/builds/ab/HEAD-llvm/evbarm-earmv7hf/202407141900Z-dest/lib -L=/lib -Wl,-z,relro -Wl,-rpath,/usr/tests/libexec/ld.elf_so -lutil -latf-c
${CTFMERGE} ${CTFMFLAGS} -o ${.TARGET} ${OBJS.${:Ut_ifunc}}
=> /home/builds/ab/HEAD-llvm/evbarm-earmv7hf/202407141900Z-tools/bin/nbctfmerge -t -g -L VERSION -g -o t_ifunc t_ifunc.o

show more ...


# fa5de308 07-Jul-2024 riastradh <riastradh@NetBSD.org>

t_ifunc: Test with all combinations of {relro, bindnow}.

PR lib/57792


# 3b7c09b6 30-Jul-2023 riastradh <riastradh@NetBSD.org>

ld.elf_so: Add some known-answer tests for hash functions.

Make sure the testing mechanism detects the traditional overflow bug.


# 58beaa2b 03-Jun-2023 lukem <lukem@NetBSD.org>

adapt to ${CC_WNO_MAYBE_UNINITIALIZED}

Use ${CC_WNO_MAYBE_UNINITIALIZED} instead of
the older style more complex expressions.

Remove workarounds if they were for a specific
version of gcc < 10.


# 067c5136 02-Jun-2023 riastradh <riastradh@NetBSD.org>

ld.elf_so: Test dynamic-then-static abuse via ctor.

XXX pullup-10


# f4e534dd 02-Jun-2023 riastradh <riastradh@NetBSD.org>

ld.elf_so: Test another edge case of mismatched TLS models.

One library defines a symbol and _doesn't_ use it, so it has no
indication of whether the symbol is for static TLS or dynamic TLS,
and the

ld.elf_so: Test another edge case of mismatched TLS models.

One library defines a symbol and _doesn't_ use it, so it has no
indication of whether the symbol is for static TLS or dynamic TLS,
and then two other libraries use it in different ways.

XXX pullup-10

show more ...


# 6b7ae3be 01-Jun-2023 riastradh <riastradh@NetBSD.org>

ld.elf_so: Test TLS abuse of static def, dynamic use and vice versa.

XXX pullup-10


# 05e97b5a 01-Jun-2023 riastradh <riastradh@NetBSD.org>

ld.elf_so: Test extern dynamic TLS too.

XXX pullup-10


# fca22ba5 31-May-2023 riastradh <riastradh@NetBSD.org>

ld.elf_so: Nix inadvertently committed private test program.


# 111bb99c 31-May-2023 riastradh <riastradh@NetBSD.org>

ld.elf_so: Fix extern TLS test to match PR toolchain/50277.

Now it's actually testing the problem.


# 12037d6a 31-May-2023 riastradh <riastradh@NetBSD.org>

ld.elf_so: New test for extern initial-exec TLS, PR toolchain/50277.

XXX pullup-10


# ea1995c1 30-May-2021 joerg <joerg@NetBSD.org>

Drop explicit -msecure-plt, it's the default for both clang and gcc.


# 8f037993 22-Sep-2020 kamil <kamil@NetBSD.org>

Add new RTLD test file for r_debug

New tests:
- self
- dlopen

Both check whether the r_debug structure seems to be well-formed, without
and with a dlopen(3) call.


# 292b510f 14-May-2019 christos <christos@NetBSD.org>

clang ifunc's on powerpc require secure-plt.


# e5678be8 11-Jul-2017 joerg <joerg@NetBSD.org>

Implement __cxa_thread_atexit and __cxa_thread_atexit_impl. This
functions are used for destructors of thread_local objects.

If a pending destructor exists, prevent unloading of shared objects.
Intr

Implement __cxa_thread_atexit and __cxa_thread_atexit_impl. This
functions are used for destructors of thread_local objects.

If a pending destructor exists, prevent unloading of shared objects.
Introduce __dl_cxa_refcount interface for this purpose. When the last
reference is gone and the object has been dlclose'd before, the
unloading is finalized.

Ideally, __cxa_thread_atexit_impl wouldn't exist, but libstdc++ insists
on providing __cxa_thread_atexit as direct wrapper without further
patching.

show more ...


# 7a1a6f1c 25-Aug-2014 joerg <joerg@NetBSD.org>

Add basic support for indirect functions. It allows providing a public
function symbol with an implementation choosen at run time.
Refactor calls to functions by address in ld.elf_so to create tempor

Add basic support for indirect functions. It allows providing a public
function symbol with an implementation choosen at run time.
Refactor calls to functions by address in ld.elf_so to create temporary
function descriptors on the stack, if the address is not leaked outside.

Limitations:
- no support for initialising static storage with function pointers
- no support for unnamed resolver functions

Inspired by FreeBSD's r228435 by kib@freebsd.org.

show more ...


# 6520ba98 03-Jul-2011 mrg <mrg@NetBSD.org>

avoid building stuff that depends upon pic objects if MKPIC == no.


# 8ab8bb43 03-Jul-2011 mrg <mrg@NetBSD.org>

only build the ld.elf_so tests if MKPIC != no.


# c52f9a5d 25-Jun-2011 nonaka <nonaka@NetBSD.org>

PR/45015: ld.elf_so: support ELF symbol versioning
Applied latest patch.


# a7e14ae7 31-Mar-2011 joerg <joerg@NetBSD.org>

Add initial regression test for ld.elf_so locking.


# f1d73a2c 24-Dec-2010 skrll <skrll@NetBSD.org>

Add support for DF_1_BIND_NOW, DF_1_NODELETE and DF_1_NOOPEN marked
objects, and the RTLD_NODELETE and RTLD_NOLOAD flags to dlopen(3).

Mark libpthread as DF_1_NOOPEN and use it to test the functiona

Add support for DF_1_BIND_NOW, DF_1_NODELETE and DF_1_NOOPEN marked
objects, and the RTLD_NODELETE and RTLD_NOLOAD flags to dlopen(3).

Mark libpthread as DF_1_NOOPEN and use it to test the functionality.

Somewhat taken from FreeBSD.

Fixes PR 42029.

OK from christos and joerg.

show more ...


# be2356ad 14-Dec-2010 skrll <skrll@NetBSD.org>

Convert a couple of old regress tests to ATF.

Remove the regress/usr.bin/rtld/dlopen/dlopen.c test as well as it's
covered by existing ATF test(s).


# b4d274c0 24-Sep-2009 pooka <pooka@NetBSD.org>

add regression tests for dlinfo()