Message ID | cover.1711055228.git.quic_mathbern@quicinc.com |
---|---|
Headers |
Return-Path: <elfutils-devel-bounces+patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7C71B3858412 for <patchwork@sourceware.org>; Thu, 21 Mar 2024 21:10:11 +0000 (GMT) X-Original-To: elfutils-devel@sourceware.org Delivered-To: elfutils-devel@sourceware.org Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by sourceware.org (Postfix) with ESMTPS id 23FE33858D28 for <elfutils-devel@sourceware.org>; Thu, 21 Mar 2024 21:10:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 23FE33858D28 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=quicinc.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 23FE33858D28 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=205.220.180.131 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1711055403; cv=none; b=LIOhvN/+H37d2issri8Ff5mCnTfVFjYoO9WzWGMrxVkFXUtaClWsLMoXuy67i96gMmSx1IxhXYRWd90Lrnp4Q34825kZywWTZMhBK7AKCgGC9rFpDX9s29RCwA6RpkSXYprFx1CHs5B4Hzrbr5MYSJfHyNtboRcmLEauu5jUhP4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1711055403; c=relaxed/simple; bh=evXg06RpEYT3+vlUtXaIiTbL5gQyTZynh1VPrPYmv0k=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=mIurwbgI1/2NjRKitWA/pm3DH8UkJ56SBpuFXypOY7opOWqxdfWmCkd6rgGzYAINOUjXZUSSjJm/t6227YZycNGYKeT/clWQEKoKdKmJXI5l/Gc8a5ngsHop4CMDzMfrYD3gEFvsPXTQWnsz0BNzPsmzCb3c9Eu1ieyD/hVxy6M= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 42LKfYWP015188; Thu, 21 Mar 2024 21:09:58 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding:content-type; s=qcppdkim1; bh=+Y1AN7Y lKpAkk3JTT6tpJtMXkFdvvklmI2Zcqrh2Dvk=; b=LStYcDM7oHMRF8hOpl5W3Q/ KpTe52DoLPpwXfROzNBXCK4Qkz3TC2P1K4FOcbpNYmiSnt4A6KO1ddae8iPejs8m p/O/5zFn+IRUa3orbropgk8TFxkHGVTZuVxi7Udszph6PsH27qorj4MnSJ/3gd20 KJVQEggMu2W6vo2EoFJsWKyUI6+5P6qjIel6pmxWhRjjtIM3NIpsD1YcvSkAMpkZ lvzaECtOu7o+r2IGl1aj3BSCpUi1ERocAE/3n+SVBN22P4chczlU/Wzirk0TOBb6 JxoUUA2Gaq2cvp9O1EhjRZYFB8S8Z+mIFET7Cxtl8+9Tml57TQHFMyyWANzxAjg= = Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3x0r5w0ng7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 21 Mar 2024 21:09:58 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 42LL9T3P016332 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 21 Mar 2024 21:09:29 GMT Received: from hu-mathbern-lv.qualcomm.com (10.49.16.6) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Thu, 21 Mar 2024 14:09:29 -0700 From: Matheus Tavares Bernardino <quic_mathbern@quicinc.com> To: <elfutils-devel@sourceware.org> CC: <bcain@quicinc.com>, <sidneym@quicinc.com>, <mark@klomp.org> Subject: [PATCH 0/2] Add initial support for Hexagon Date: Thu, 21 Mar 2024 18:09:08 -0300 Message-ID: <cover.1711055228.git.quic_mathbern@quicinc.com> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01a.na.qualcomm.com (10.47.209.196) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: Heb17aa7cwWzwxa18BThWFVHimSYsEWN X-Proofpoint-GUID: Heb17aa7cwWzwxa18BThWFVHimSYsEWN X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-03-21_12,2024-03-21_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 phishscore=0 spamscore=0 impostorscore=0 bulkscore=0 lowpriorityscore=0 adultscore=0 suspectscore=0 malwarescore=0 clxscore=1015 mlxlogscore=761 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2403140001 definitions=main-2403210159 X-Spam-Status: No, score=-6.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: elfutils-devel@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Elfutils-devel mailing list <elfutils-devel.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/elfutils-devel>, <mailto:elfutils-devel-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/elfutils-devel/> List-Post: <mailto:elfutils-devel@sourceware.org> List-Help: <mailto:elfutils-devel-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/elfutils-devel>, <mailto:elfutils-devel-request@sourceware.org?subject=subscribe> Errors-To: elfutils-devel-bounces+patchwork=sourceware.org@sourceware.org |
Series |
Add initial support for Hexagon
|
|
Message
Matheus Tavares Bernardino
March 21, 2024, 9:09 p.m. UTC
The patches were inspired by https://sourceware.org/cgit/elfutils/commit?id=13a4d1279c5b7847049ca3045d04f2705c45ce31 Related to: https://lore.kernel.org/all/6498586d7d0ed112e6c44be98d439abc549653c7.camel@klomp.org/t/#u Matheus Tavares Bernardino (2): Add support for Hexagon Hexagon: implement machine flag check backends/Makefile.am | 6 +- backends/hexagon_init.c | 52 +++++++++++++++ backends/hexagon_reloc.def | 130 ++++++++++++++++++++++++++++++++++++ backends/hexagon_symbol.c | 66 +++++++++++++++++++ libebl/eblopenbackend.c | 2 + libelf/elf.h | 131 +++++++++++++++++++++++++++++++++++++ src/elflint.c | 2 +- 7 files changed, 386 insertions(+), 3 deletions(-) create mode 100644 backends/hexagon_init.c create mode 100644 backends/hexagon_reloc.def create mode 100644 backends/hexagon_symbol.c
Comments
cc Andrew > -----Original Message----- > From: Matheus Bernardino (QUIC) <quic_mathbern@quicinc.com> > Sent: Thursday, March 21, 2024 4:09 PM > To: elfutils-devel@sourceware.org > Cc: Brian Cain <bcain@quicinc.com>; Sid Manning <sidneym@quicinc.com>; > mark@klomp.org > Subject: [PATCH 0/2] Add initial support for Hexagon > > The patches were inspired by > https://sourceware.org/cgit/elfutils/commit?id=13a4d1279c5b7847049ca30 > 45d04f2705c45ce31 > > Related to: > https://lore.kernel.org/all/6498586d7d0ed112e6c44be98d439abc549653c7. > camel@klomp.org/t/#u > > Matheus Tavares Bernardino (2): > Add support for Hexagon > Hexagon: implement machine flag check > > backends/Makefile.am | 6 +- > backends/hexagon_init.c | 52 +++++++++++++++ > backends/hexagon_reloc.def | 130 > ++++++++++++++++++++++++++++++++++++ > backends/hexagon_symbol.c | 66 +++++++++++++++++++ > libebl/eblopenbackend.c | 2 + > libelf/elf.h | 131 +++++++++++++++++++++++++++++++++++++ > src/elflint.c | 2 +- > 7 files changed, 386 insertions(+), 3 deletions(-) > create mode 100644 backends/hexagon_init.c > create mode 100644 backends/hexagon_reloc.def > create mode 100644 backends/hexagon_symbol.c > > -- > 2.37.2
Hi Matheus, On Thu, Mar 21, 2024 at 06:09:08PM -0300, Matheus Tavares Bernardino wrote: > The patches were inspired by > https://sourceware.org/cgit/elfutils/commit?id=13a4d1279c5b7847049ca3045d04f2705c45ce31 > > Related to: > https://lore.kernel.org/all/6498586d7d0ed112e6c44be98d439abc549653c7.camel@klomp.org/t/#u > > Matheus Tavares Bernardino (2): > Add support for Hexagon > Hexagon: implement machine flag check In general this looks good. It is the minimal backend support to get eu-strip --reloc-debug-sections and opening ET_REL (kernel module) debug files with dwfl that are automatically relocated. The only issue is that we like to keep libelf/elf.h synced with glibc elf/elf.h. Would it be possible/make sense to submit the elf.h changes to libc-alpha? Otherwise we should keep the new constants in some other file (maybe libelf/elf-knowledge.h)? Is there a public psabi for Hexagon? Then including an URL to it would be helpful. If possible you might want to include some simple test file. See tests/run-strip-reloc-ko.sh Thanks, Mark
Hi, Mark Thanks for the comments. On 3/28/24 8:45 AM, Mark Wielaard wrote: > Hi Matheus, > > The only issue is that we like to keep libelf/elf.h synced with glibc > elf/elf.h. Would it be possible/make sense to submit the elf.h changes > to libc-alpha? Otherwise we should keep the new constants in some > other file (maybe libelf/elf-knowledge.h)? Ah, I see. We don't plan on supporting Hexagon on other libc's as of this moment, so it would be good if we can add these constants to libelf/elf-knowledge.h, like you suggested. > Is there a public psabi for Hexagon? Then including an URL to it would > be helpful. Yes, it's available at: https://lists.llvm.org/pipermail/llvm-dev/attachments/20190916/21516a52/attachment-0001.pdf (I'll add it to the commit message as well.) > If possible you might want to include some simple test file. See > tests/run-strip-reloc-ko.sh Sure, will do! Thanks, Matheus