-z nodump sets the DF_1_NODUMP flag, marking the object as not dumpable by the runtime linker.
FreeBSD does not support DF_1_NODUMP, so the flag will be set in the object but ignored by rtld.
PR: 230603 Reported by: jbeich Sponsored by: The FreeBSD Foundation