From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yw1-x112f.google.com (mail-yw1-x112f.google.com [IPv6:2607:f8b0:4864:20::112f]) by sourceware.org (Postfix) with ESMTPS id EFCB33858D28 for ; Sun, 1 May 2022 02:16:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org EFCB33858D28 Received: by mail-yw1-x112f.google.com with SMTP id 00721157ae682-2f7c424c66cso119734297b3.1 for ; Sat, 30 Apr 2022 19:16:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=0dlNLnj0I6z443HXBeHFTbgn0rS6ze3fW7xsHk3LDLk=; b=adSB+a3FAbBFcXNLESUVgiuI5Ct5x1PvQfwZdVdMAOwTauV6eOGH333m47xqJf5f+f p2P1TNfV/LQYJj9phXZnPKCbl5jYE2SIQ1X7s2bOWC7kX8wUsJ+yRXbuvojKdPOWD9NF MdmPgA2Eh4WaXRjwQdphpT6FowzLKIHu/XboZGFtTy+mbQkFbYu1yP6mOoQXfs5AFJ6j ubcf4CxVsCuClrOMTiIjOAq7JSe/bZlfxfpYD2RQsNk42YzJRTH7xnP5vrEcl2ij6hNi gq13Rl/5dVb6+SrAHZpL6UTRopYdzFAwgX25VVx5sa7PIOEjqYFnpTfwqeFxq7WS8Keh q2aA== X-Gm-Message-State: AOAM532GsKgp+iWzzG8qzXpkSlQ9jSujjXFWeRZaEGcHqkvx6OcPlwN6 bW3lEPfK4PGscmSeZ/5gbZbQljMluo4DtKNAxrT2Jh56P3tCgg== X-Google-Smtp-Source: ABdhPJyqBKqR8d4oqEq/vNDxVJtEuRmwKYRey8bOiXfo3gHFO2VNO+HfAu8jG2WapYIlrU6f122m/j6bOFLnz4CVIak= X-Received: by 2002:a81:be05:0:b0:2e5:6c26:59fb with SMTP id i5-20020a81be05000000b002e56c2659fbmr6365583ywn.94.1651371389254; Sat, 30 Apr 2022 19:16:29 -0700 (PDT) MIME-Version: 1.0 From: Farid Zakaria Date: Sat, 30 Apr 2022 19:16:17 -0700 Message-ID: Subject: LD_AUDIT shared object using multiple object files To: Libc-help Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=0.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-help@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-help mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 May 2022 02:16:33 -0000 Hello! I am trying to write a small problem to leverage the rtld audit[1] API however I am running into an issue I am not sure I understand. When I have restricted my program to a single object file (compilation unit), everything works _peachy_. I am able to set LD_AUDIT accordingly and things work as I expect. I then try to refactor my code into smaller object files (trying to be a good code citizen), but then the solution stopped working. I am greeted with some "unresolved symbol" messages for the new compilation units. Is there a way around this? PS: I also built a binary and verified that everything works correctly, since my main() runs successfully, so my code structure is sound as far as I can tell. [1] https://man7.org/linux/man-pages/man7/rtld-audit.7.html