From aa44eaca60245cda7913543e3a7848800b79b955 Mon Sep 17 00:00:00 2001 From: Doug Rupp Date: Mon, 30 Nov 2020 11:09:58 -0800 Subject: [PATCH] [Ada] armhf-linux: symbolic tracebacks gcc/ada/ * libgnat/s-objrea.ads (Object_Arch): Add ARM enum * libgnat/s-objrea.adb (Initialize): Add EM_ARM case. (Read_Address): Add ARM case to 32bit read. * Makefile.rtl: Add trasym units to the runtime for armhf-linux. --- gcc/ada/Makefile.rtl | 2 ++ gcc/ada/libgnat/s-objrea.adb | 4 ++++ gcc/ada/libgnat/s-objrea.ads | 5 ++++- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/gcc/ada/Makefile.rtl b/gcc/ada/Makefile.rtl index 8c99258f7b8..22336e15249 100644 --- a/gcc/ada/Makefile.rtl +++ b/gcc/ada/Makefile.rtl @@ -2381,12 +2381,14 @@ ifeq ($(strip $(filter-out arm% linux-gnueabi%,$(target_cpu) $(target_os))),) s-tasinf.adb Res.Arch := x86_64; + when EM_ARM => + Res.Arch := ARM; + when others => raise Format_Error with "unrecognized architecture"; end case; @@ -2030,6 +2033,7 @@ package body System.Object_Reader is | MIPS | PPC | SPARC + | ARM => Address_32 := Read (S); return uint64 (Address_32); diff --git a/gcc/ada/libgnat/s-objrea.ads b/gcc/ada/libgnat/s-objrea.ads index bd4fbd50260..b3cfe13ab06 100644 --- a/gcc/ada/libgnat/s-objrea.ads +++ b/gcc/ada/libgnat/s-objrea.ads @@ -117,9 +117,12 @@ package System.Object_Reader is PPC, -- 32-bit PowerPC - PPC64); + PPC64, -- 64-bit PowerPC + ARM); + -- 32-bit ARM + ------------------ -- Target types -- ------------------ -- 2.30.2