From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 8248 invoked from network); 30 Oct 2020 18:44:21 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 30 Oct 2020 18:44:21 -0000 Received: (qmail 3907 invoked by uid 550); 30 Oct 2020 18:44:19 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 3867 invoked from network); 30 Oct 2020 18:44:18 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ffwcC9eBxdMazdphrVx7tyhRVyyYIct+PNV2Q9S7DUY=; b=j+/i24MrcU/elJJK9YJpIplnEhUNrKT3XBSLfRPxmpTgA/0ycgSJSDNvKOZHEE145r e2IgGlMUiUZET6Q/6u8dtO49NGpiic35gxpCgDVnMPPzdOhzdMK1w2Lfg/S1HYtJDqme 0SGN6CMkXQQmrf7xp6xyqKD0HX5hFy5z4k7AwEzGIgj0VGIqhsfUkqtjb6jqi2zrSLyD gjocZr+4p7/QQKkQdUSfKivepzFvAEP0ubqMvK6ur0WZSW0C7/cLz53CDuREQSzcFTPi fR72na+/WgVQBuRAti2B1lc53Ay3oaaODtoU6aLLZ2/FlKXum96hOf+Hg+Bjena6Sjq/ jBwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ffwcC9eBxdMazdphrVx7tyhRVyyYIct+PNV2Q9S7DUY=; b=C5XAHQiVd3FR/Mai4xZ5XQy0Gh+EES8QeqeFwFxl2ca87WCdElWv5SB541rfik5oHL S6dCtD2CJEaCS1RpQl6EenrJyLy8amtV6lbht6Z5EVuoYHp4vux7W/VNeoxf5k7/59h/ lAaH9fdPC10xyoFkMubbGd1doc5BCxvzLTBB8Oa200lcet3Zpn5reQTv1kjHmlibeW0u PJO9O/21WQ6hMSg27yEoV9IYsDBbLzkvUT+mXsNMAm1W4nOp+4qNhhmvBTEC0/qCPOwH HhKmpz/2v3mblRxKmM4P/Ym1+gHT2nrcu3tPfQKk6ETuDTQGwckw/8yQ8rIFLpIMIscJ Sm7A== X-Gm-Message-State: AOAM530MchhL++l88k/vp+dpvj6pDhHM2ZzY0g1xno21bNVanGDsacf9 HZ3Wjfc2c5uqdWqK6ptkD71JetmdfPZdUQ== X-Google-Smtp-Source: ABdhPJxe4+0+OMOJeoEjwU9Xzva+s/BkYHemyulheGlU57xFLQQa/FpUFeUK3OY8rDky7t2Ugn30Xw== X-Received: by 2002:a62:e113:0:b029:152:69aa:6a08 with SMTP id q19-20020a62e1130000b029015269aa6a08mr10472602pfh.14.1604083446102; Fri, 30 Oct 2020 11:44:06 -0700 (PDT) From: Khem Raj To: musl@lists.openwall.com Cc: Khem Raj Date: Fri, 30 Oct 2020 11:44:02 -0700 Message-Id: <20201030184402.807422-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [musl] [PATCH] crt: Add .file directive Musl linked binaries come out to be not reproducible because absolute build path is seen in debug info of crti.o and crtn.o This is due to the fact that these objects are built from assembly source files and they are missing .file directive if we add .file .s in them then debug info encodes this value instead of absolute path in debug_line section Signed-off-by: Khem Raj --- crt/aarch64/crti.s | 1 + crt/aarch64/crtn.s | 1 + crt/arm/crti.s | 1 + crt/arm/crtn.s | 1 + crt/i386/crti.s | 1 + crt/i386/crtn.s | 1 + crt/microblaze/crti.s | 1 + crt/microblaze/crtn.s | 1 + crt/mips/crti.s | 1 + crt/mips/crtn.s | 1 + crt/mips64/crti.s | 1 + crt/mips64/crtn.s | 1 + crt/mipsn32/crti.s | 1 + crt/mipsn32/crtn.s | 1 + crt/or1k/crti.s | 1 + crt/or1k/crtn.s | 1 + crt/powerpc/crti.s | 1 + crt/powerpc/crtn.s | 1 + crt/powerpc64/crti.s | 1 + crt/powerpc64/crtn.s | 1 + crt/s390x/crti.s | 1 + crt/s390x/crtn.s | 1 + crt/sh/crti.s | 1 + crt/sh/crtn.s | 1 + crt/x32/crti.s | 1 + crt/x32/crtn.s | 1 + crt/x86_64/crti.s | 1 + crt/x86_64/crtn.s | 1 + 28 files changed, 28 insertions(+) diff --git a/crt/aarch64/crti.s b/crt/aarch64/crti.s index 775df0ac..0f7c23a9 100644 --- a/crt/aarch64/crti.s +++ b/crt/aarch64/crti.s @@ -1,3 +1,4 @@ +.file "crti.s" .section .init .global _init .type _init,%function diff --git a/crt/aarch64/crtn.s b/crt/aarch64/crtn.s index 73cab692..d62fc129 100644 --- a/crt/aarch64/crtn.s +++ b/crt/aarch64/crtn.s @@ -1,3 +1,4 @@ +.file "crtn.s" .section .init ldp x29,x30,[sp],#16 ret diff --git a/crt/arm/crti.s b/crt/arm/crti.s index 18dc1e41..8df72979 100644 --- a/crt/arm/crti.s +++ b/crt/arm/crti.s @@ -1,3 +1,4 @@ +.file "crti.s" .syntax unified .section .init diff --git a/crt/arm/crtn.s b/crt/arm/crtn.s index dc020f92..7451355b 100644 --- a/crt/arm/crtn.s +++ b/crt/arm/crtn.s @@ -1,3 +1,4 @@ +.file "crtn.s" .syntax unified .section .init diff --git a/crt/i386/crti.s b/crt/i386/crti.s index d2682a20..2823fc3b 100644 --- a/crt/i386/crti.s +++ b/crt/i386/crti.s @@ -1,3 +1,4 @@ +.file "crti.s" .section .init .global _init _init: diff --git a/crt/i386/crtn.s b/crt/i386/crtn.s index f3b61e01..04fb1646 100644 --- a/crt/i386/crtn.s +++ b/crt/i386/crtn.s @@ -1,3 +1,4 @@ +.file "crtn.s" .section .init add $12,%esp ret diff --git a/crt/microblaze/crti.s b/crt/microblaze/crti.s index ed1c2fa4..29ee4733 100644 --- a/crt/microblaze/crti.s +++ b/crt/microblaze/crti.s @@ -1,3 +1,4 @@ +.file "crti.s" .section .init .global _init .align 2 diff --git a/crt/microblaze/crtn.s b/crt/microblaze/crtn.s index 1e02c984..c2083749 100644 --- a/crt/microblaze/crtn.s +++ b/crt/microblaze/crtn.s @@ -1,3 +1,4 @@ +.file "crtn.s" .section .init lwi r15, r1, 0 rtsd r15, 8 diff --git a/crt/mips/crti.s b/crt/mips/crti.s index 39dee380..0211764e 100644 --- a/crt/mips/crti.s +++ b/crt/mips/crti.s @@ -1,3 +1,4 @@ +.file "crti.s" .set noreorder .section .init diff --git a/crt/mips/crtn.s b/crt/mips/crtn.s index 506a04b7..606490cf 100644 --- a/crt/mips/crtn.s +++ b/crt/mips/crtn.s @@ -1,3 +1,4 @@ +.file "crtn.s" .set noreorder .section .init diff --git a/crt/mips64/crti.s b/crt/mips64/crti.s index c962dd09..f2c19cdd 100644 --- a/crt/mips64/crti.s +++ b/crt/mips64/crti.s @@ -1,3 +1,4 @@ +.file "crti.s" .set noreorder .section .init diff --git a/crt/mips64/crtn.s b/crt/mips64/crtn.s index f3930b24..68903ffa 100644 --- a/crt/mips64/crtn.s +++ b/crt/mips64/crtn.s @@ -1,3 +1,4 @@ +.file "crtn.s" .set noreorder .section .init diff --git a/crt/mipsn32/crti.s b/crt/mipsn32/crti.s index 14fa28d9..a35387d3 100644 --- a/crt/mipsn32/crti.s +++ b/crt/mipsn32/crti.s @@ -1,3 +1,4 @@ +.file "crti.s" .set noreorder .section .init .global _init diff --git a/crt/mipsn32/crtn.s b/crt/mipsn32/crtn.s index dccd7e89..bdb6e561 100644 --- a/crt/mipsn32/crtn.s +++ b/crt/mipsn32/crtn.s @@ -1,3 +1,4 @@ +.file "crtn.s" .set noreorder .section .init ld $gp, 16($sp) diff --git a/crt/or1k/crti.s b/crt/or1k/crti.s index 7e741459..919369ca 100644 --- a/crt/or1k/crti.s +++ b/crt/or1k/crti.s @@ -1,3 +1,4 @@ +.file "crti.s" .section .init .global _init _init: diff --git a/crt/or1k/crtn.s b/crt/or1k/crtn.s index 4185a027..d670b327 100644 --- a/crt/or1k/crtn.s +++ b/crt/or1k/crtn.s @@ -1,3 +1,4 @@ +.file "crtn.s" .section .init l.lwz r9,0(r1) l.jr r9 diff --git a/crt/powerpc/crti.s b/crt/powerpc/crti.s index 60461ca4..b748ca48 100644 --- a/crt/powerpc/crti.s +++ b/crt/powerpc/crti.s @@ -1,3 +1,4 @@ +.file "crti.s" .section .init .align 2 .global _init diff --git a/crt/powerpc/crtn.s b/crt/powerpc/crtn.s index 2d14a6f0..d989e36f 100644 --- a/crt/powerpc/crtn.s +++ b/crt/powerpc/crtn.s @@ -1,3 +1,4 @@ +.file "crtn.s" .section .init .align 2 lwz 0,36(1) diff --git a/crt/powerpc64/crti.s b/crt/powerpc64/crti.s index 9f712f0e..d3323a67 100644 --- a/crt/powerpc64/crti.s +++ b/crt/powerpc64/crti.s @@ -1,3 +1,4 @@ +.file "crti.s" .section .init .align 2 .global _init diff --git a/crt/powerpc64/crtn.s b/crt/powerpc64/crtn.s index a7a9f4a0..5e71ae66 100644 --- a/crt/powerpc64/crtn.s +++ b/crt/powerpc64/crtn.s @@ -1,3 +1,4 @@ +.file "crtn.s" .section .init .align 2 addi 1, 1, 32 diff --git a/crt/s390x/crti.s b/crt/s390x/crti.s index f453205b..3da3c5e1 100644 --- a/crt/s390x/crti.s +++ b/crt/s390x/crti.s @@ -1,3 +1,4 @@ +.file "crti.s" .section .init .align 2 .global _init diff --git a/crt/s390x/crtn.s b/crt/s390x/crtn.s index 06066dc9..bfd55caf 100644 --- a/crt/s390x/crtn.s +++ b/crt/s390x/crtn.s @@ -1,3 +1,4 @@ +.file "crtn.s" .section .init .align 2 lmg %r14, %r15, 272(%r15) diff --git a/crt/sh/crti.s b/crt/sh/crti.s index d99bfd5c..77d61c51 100644 --- a/crt/sh/crti.s +++ b/crt/sh/crti.s @@ -1,3 +1,4 @@ +.file "crti.s" .section .init .global _init .type _init, @function diff --git a/crt/sh/crtn.s b/crt/sh/crtn.s index 958ce951..29deb5be 100644 --- a/crt/sh/crtn.s +++ b/crt/sh/crtn.s @@ -1,3 +1,4 @@ +.file "crtn.s" .section .init lds.l @r15+, pr mov.l @r15+, r14 diff --git a/crt/x32/crti.s b/crt/x32/crti.s index 4788968b..8668b7c7 100644 --- a/crt/x32/crti.s +++ b/crt/x32/crti.s @@ -1,3 +1,4 @@ +.file "crti.s" .section .init .global _init _init: diff --git a/crt/x32/crtn.s b/crt/x32/crtn.s index 29198b77..ef73d295 100644 --- a/crt/x32/crtn.s +++ b/crt/x32/crtn.s @@ -1,3 +1,4 @@ +.file "crtn.s" .section .init pop %rax ret diff --git a/crt/x86_64/crti.s b/crt/x86_64/crti.s index 4788968b..8668b7c7 100644 --- a/crt/x86_64/crti.s +++ b/crt/x86_64/crti.s @@ -1,3 +1,4 @@ +.file "crti.s" .section .init .global _init _init: diff --git a/crt/x86_64/crtn.s b/crt/x86_64/crtn.s index 29198b77..ef73d295 100644 --- a/crt/x86_64/crtn.s +++ b/crt/x86_64/crtn.s @@ -1,3 +1,4 @@ +.file "crtn.s" .section .init pop %rax ret -- 2.29.2