From: Mayuresh Chitale <mchitale@ventanamicro.com>
To: opensbi@lists.infradead.org
Subject: [PATCH] Makefile: Force GNU hashing
Date: Mon, 14 Aug 2023 10:09:59 +0530 [thread overview]
Message-ID: <20230814043959.390101-1-mchitale@ventanamicro.com> (raw)
The Yocto QA step verifies that binaries and DSOs use DT_GNU_HASH rather than
DT_HASH. If the linker is called directly, then we need to make sure to pass in
the hashing style.
Signed-off-by: Jeff Law <jlaw@ventanamicro.com>
Signed-off-by: Mayuresh Chitale <mchitale@ventanamicro.com>
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 730dbd9..7fb8d2d 100644
--- a/Makefile
+++ b/Makefile
@@ -161,7 +161,7 @@ ifeq ($(LD_IS_LLD),y)
RELAX_FLAG = -mno-relax
USE_LD_FLAG = -fuse-ld=lld
else
-USE_LD_FLAG = -fuse-ld=bfd
+USE_LD_FLAG = -fuse-ld=bfd -Wl,--hash-style=gnu
endif
# Check whether the linker supports creating PIEs
--
2.34.1
next reply other threads:[~2023-08-14 4:39 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-14 4:39 Mayuresh Chitale [this message]
2023-08-14 7:40 ` [PATCH] Makefile: Force GNU hashing Andreas Schwab
2023-08-14 13:06 ` Jeff Law
2023-08-14 13:08 ` Andreas Schwab
2023-08-14 13:11 ` Jeff Law
2023-08-14 13:15 ` Andreas Schwab
2023-08-14 17:26 ` Jeff Law
2023-08-15 7:17 ` Andreas Schwab
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230814043959.390101-1-mchitale@ventanamicro.com \
--to=mchitale@ventanamicro.com \
--cc=opensbi@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox