#!/bin/bash . $(dirname $0)/common.inc test_cflags -flto || skip # Test that --no-allow-shlib-undefined does not falsely report an error # when LTO internalizes a symbol that a DSO also provides. # # When a static LTO object defines a symbol with hidden visibility, # it wins initial resolution over the DSO definition. Then # compute_import_export skips it (hidden), so the LTO plugin sees # LDPR_PREVAILING_DEF_IRONLY and discards it. After re-resolution, # the DSO definition should satisfy the other DSO's undefined reference. cat <