diff options
| author | itohy <itohy@NetBSD.org> | 2002-07-06 13:19:00 +0000 |
|---|---|---|
| committer | itohy <itohy@NetBSD.org> | 2002-07-06 13:19:00 +0000 |
| commit | b2f2b1cb44bcc0f317095eb4afb356b72153a072 (patch) | |
| tree | d2acd4bd47160d11156566b195c7bae690f4575b /gnu | |
| parent | bd6a4107d8e92f87ddbbf7f0fb780e7117e5bb5c (diff) | |
Correct section / alignment rule for a.out. From in-tree egcs.
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/dist/toolchain/gcc/config/i386/netbsd.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gnu/dist/toolchain/gcc/config/i386/netbsd.h b/gnu/dist/toolchain/gcc/config/i386/netbsd.h index e9d01a41a0e..d43acb65295 100644 --- a/gnu/dist/toolchain/gcc/config/i386/netbsd.h +++ b/gnu/dist/toolchain/gcc/config/i386/netbsd.h @@ -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 |
