From c19814b6070c1a4f7daf4192851c516239da82c9 Mon Sep 17 00:00:00 2001 From: Jeffrey A Law Date: Fri, 18 May 2001 16:12:34 +0000 Subject: [PATCH] * config/pa/som.h (EXCEPTION_SECTION): Define. From-SVN: r42268 --- gcc/ChangeLog | 4 ++++ gcc/config/pa/som.h | 8 +++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4cf5da22e53..54bea558644 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Fri May 18 10:14:42 2001 Jeffrey A Law (law@cygnus.com) + + * config/pa/som.h (EXCEPTION_SECTION): Define. + 2001-05-18 Daniel Berlin * dwarf2out.c: Add dw_loc_list_ref, a reference to a location diff --git a/gcc/config/pa/som.h b/gcc/config/pa/som.h index 2b421509094..df3cb04a431 100644 --- a/gcc/config/pa/som.h +++ b/gcc/config/pa/som.h @@ -251,6 +251,13 @@ do { \ #define BSS_SECTION_ASM_OP "\t.SPACE $PRIVATE$\n\t.SUBSPA $BSS$\n" +/* We must not have a reference to an external symbol defined in a + shared library in a readonly section, else the SOM linker will + complain. + + So, we force exception information into the data section. */ +#define EXCEPTION_SECTION data_section + /* Define the .bss section for ASM_OUTPUT_LOCAL to use. */ #ifndef CTORS_SECTION_FUNCTION @@ -353,4 +360,3 @@ do { \ /* SOM does not support the init_priority C++ attribute. */ #undef SUPPORTS_INIT_PRIORITY #define SUPPORTS_INIT_PRIORITY 0 - -- 2.30.2