This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[committed] Allow EH data to be read-only on Linux and NetBSD hppa
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: binutils at sourceware dot org
- Date: Sat, 30 Aug 2008 11:59:19 -0400 (EDT)
- Subject: [committed] Allow EH data to be read-only on Linux and NetBSD hppa
We only have a problem with making EH data read-only on HP-UX. The EH
data generated by GCC for Linux and NetBSD has been read-only for some
time, so we don't need to put it in a writeable section when using CFI
directives.
Tested on hppa-linux and hppa64-hp-hpux11.11.
Dave
--
J. David Anglin dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)
2008-08-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
* config/tc-hppa.h: Don't define DWARF2_EH_FRAME_READ_ONLY on Linux
and NetBSD.
Index: config/tc-hppa.h
===================================================================
RCS file: /cvs/src/src/gas/config/tc-hppa.h,v
retrieving revision 1.37
diff -u -3 -p -r1.37 tc-hppa.h
--- config/tc-hppa.h 28 Aug 2008 02:33:45 -0000 1.37
+++ config/tc-hppa.h 30 Aug 2008 15:40:35 -0000
@@ -218,10 +218,11 @@ extern int hppa_regname_to_dw2regnum (ch
#define DWARF2_CIE_DATA_ALIGNMENT 4
#endif
-/* Due to the way dynamic linking to personality functions is handled,
- we need to have a read-write .eh_frame section. */
+#if !defined (TE_LINUX) && !defined (TE_NetBSD)
+/* Due to the way dynamic linking to personality functions is handled
+ on HP-UX, we need to have a read-write .eh_frame section. */
#define DWARF2_EH_FRAME_READ_ONLY 0
-
#endif
+#endif /* OBJ_ELF */
#endif /* _TC_HPPA_H */