Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/gnu/dist/toolchain/gcc/config/i386 Correct section / alignme...



details:   https://anonhg.NetBSD.org/src/rev/45e92934bfc4
branches:  trunk
changeset: 533653:45e92934bfc4
user:      itohy <itohy%NetBSD.org@localhost>
date:      Sat Jul 06 13:19:00 2002 +0000

description:
Correct section / alignment rule for a.out.  From in-tree egcs.

diffstat:

 gnu/dist/toolchain/gcc/config/i386/netbsd.h |  14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diffs (21 lines):

diff -r 425e771711f6 -r 45e92934bfc4 gnu/dist/toolchain/gcc/config/i386/netbsd.h
--- a/gnu/dist/toolchain/gcc/config/i386/netbsd.h       Sat Jul 06 13:17:18 2002 +0000
+++ b/gnu/dist/toolchain/gcc/config/i386/netbsd.h       Sat Jul 06 13:19:00 2002 +0000
@@ -85,3 +85,17 @@
    and initialization stuff better.  */
 #define DWARF2_UNWIND_INFO 0
 
+
+/* Put relocations in the constant pool in the writable data section.  */
+#undef SELECT_RTX_SECTION
+#define SELECT_RTX_SECTION(MODE,RTX)                                   \
+{                                                                      \
+  if (flag_pic && symbolic_operand (RTX))                              \
+    data_section ();                                                   \
+  else                                                                 \
+    readonly_data_section ();                                          \
+}
+
+/* NetBSD's linker cannot align greater than 8 bytes anyway. */
+#undef DATA_ALIGNMENT
+#undef CONSTANT_ALIGNMENT



Home | Main Index | Thread Index | Old Index