From 1d3d5051d1ed664e87708905372b2465024bc6c5 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 16 Jan 2001 13:06:14 +0000 Subject: [PATCH] Build unwind info for more than just .text section. --- gas/ChangeLog | 5 +++++ gas/config/tc-hppa.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 4703f253a8a..b4370897a9c 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2001-01-16 Alan Modra + + * config/tc-hppa.c (pa_build_unwind_subspace): Build unwind + depending on section flags, not just for .text. + 2001-01-15 Jim Wilson * config/tc-ia64.c (ia64_flush_insns): Handle unwind directives diff --git a/gas/config/tc-hppa.c b/gas/config/tc-hppa.c index ab45da6ea48..ac258ce307b 100644 --- a/gas/config/tc-hppa.c +++ b/gas/config/tc-hppa.c @@ -6053,7 +6053,9 @@ pa_build_unwind_subspace (call_info) int reloc; char c, *p; - if (now_seg != text_section) + if ((bfd_get_section_flags (stdoutput, now_seg) + & (SEC_ALLOC | SEC_LOAD | SEC_READONLY)) + != (SEC_ALLOC | SEC_LOAD | SEC_READONLY)) return; reloc = R_PARISC_SEGREL32; -- 2.30.2