This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
PATCH: target/18380: [3.4 regression]: _Unwind_FindTableEntry shouldn't be exported from libunwind.so.7
- From: "H. J. Lu" <hjl at lucon dot org>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: gcc at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Mon, 8 Nov 2004 09:46:06 -0800
- Subject: PATCH: target/18380: [3.4 regression]: _Unwind_FindTableEntry shouldn't be exported from libunwind.so.7
- References: <20041108133119.GK10340@devserv.devel.redhat.com>
On Mon, Nov 08, 2004 at 08:31:19AM -0500, Jakub Jelinek wrote:
> Hi!
>
> Is
> 46: 0000000000001b20 160 FUNC GLOBAL DEFAULT 10 _Unwind_FindTableEntry
> exported from libunwind.so.7 on purpose or by mistake?
> If the latter, we should IMHO make it hidden ASAP.
>
> Jakub
H.J.
----
2004-11-08 H.J. Lu <hongjiu.lu@intel.com>
PR target/18380
* config/ia64/unwind-ia64.h (_Unwind_FindTableEntry): Mark it
hidden.
* unwind-dw2.c (_Unwind_FindTableEntry): Removed.
--- gcc/config/ia64/unwind-ia64.h.unwind 2003-03-17 16:36:00.000000000 -0800
+++ gcc/config/ia64/unwind-ia64.h 2004-11-08 09:18:09.350497373 -0800
@@ -28,4 +28,5 @@ struct unw_table_entry
extern struct unw_table_entry *
_Unwind_FindTableEntry (void *pc, unsigned long *segment_base,
- unsigned long *gp);
+ unsigned long *gp)
+ __attribute__ ((__visibility__ ("hidden")));
--- gcc/unwind-dw2.c.unwind 2004-09-30 18:19:47.000000000 -0700
+++ gcc/unwind-dw2.c 2004-11-08 09:15:47.317877129 -0800
@@ -1375,7 +1375,6 @@ uw_identify_context (struct _Unwind_Cont
alias (_Unwind_Backtrace);
alias (_Unwind_DeleteException);
alias (_Unwind_FindEnclosingFunction);
-alias (_Unwind_FindTableEntry);
alias (_Unwind_ForcedUnwind);
alias (_Unwind_GetDataRelBase);
alias (_Unwind_GetTextRelBase);