Commit d38bc601 by Brian Ford

* config/i386/cygming.h [HAVE_GAS_PE_SECREL32_RELOC]

	(DWARF2_DEBUGGING_INFO): Define to enable.
	(DBX_REGISTER_NUMBER): Define to use the svr4 register map for
	DWARF2.
	* configure.ac (Target-specific assembler checks)
	<i[34567]86-*-[cygwin*|pe|mingw32*]>: New test for .secrel32
	relocs.
	* configure: Regenerate.
	* config.in: Likewise.

	* config/i386/cygming.h [HAVE_GAS_PE_SECREL32_RELOC]
	(ASM_OUPUT_DWARF_OFFSET): Define.

From-SVN: r81359
parent 55ce9c52
......@@ -262,6 +262,10 @@
skip when using the GAS .p2align command. */
#undef HAVE_GAS_MAX_SKIP_P2ALIGN
/* Define if your assembler and linker support 32-bit section relative relocs
via '.secrel32 label'. */
#undef HAVE_GAS_PE_SECREL32_RELOC
/* Define 0/1 if your assembler supports marking sections with SHF_MERGE flag.
*/
#undef HAVE_GAS_SHF_MERGE
......
......@@ -25,6 +25,27 @@ Boston, MA 02111-1307, USA. */
#undef PREFERRED_DEBUGGING_TYPE
#define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
#ifdef HAVE_GAS_PE_SECREL32_RELOC
#define DWARF2_DEBUGGING_INFO 1
#undef DBX_REGISTER_NUMBER
#define DBX_REGISTER_NUMBER(n) (write_symbols == DWARF2_DEBUG \
? svr4_dbx_register_map[n] \
: dbx_register_map[n])
/* Use section relative relocations for debugging offsets. Unlike
other targets that fake this by putting the section VMA at 0, PE
won't allow it. */
#define ASM_OUTPUT_DWARF_OFFSET(FILE, SIZE, LABEL) \
do { \
if (SIZE != 4) \
abort (); \
\
fputs ("\t.secrel32\t", FILE); \
assemble_name (FILE, LABEL); \
} while (0)
#endif
#define TARGET_EXECUTABLE_SUFFIX ".exe"
#include <stdio.h>
......
......@@ -2539,6 +2539,26 @@ foo:
changequote(,)dnl
i[34567]86-*-* | x86_64-*-*)
changequote([,])dnl
case $target_os in
cygwin* | pe | mingw32*)
# Used for DWARF 2 in PE
gcc_GAS_CHECK_FEATURE([.secrel32 relocs],
gcc_cv_as_ix86_pe_secrel32,
[2,15,91],,
[.text
foo: nop
.data
.secrel32 foo],
[if test x$gcc_cv_ld != x \
&& $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
gcc_cv_as_ix86_pe_secrel32=yes
fi
rm -f conftest],
[AC_DEFINE(HAVE_GAS_PE_SECREL32_RELOC, 1,
[Define if your assembler and linker support 32-bit section relative relocs via '.secrel32 label'.])])
;;
esac
gcc_GAS_CHECK_FEATURE([filds and fists mnemonics],
gcc_cv_as_ix86_filds_fists,
[2,9,0],, [filds mem; fists mem],,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment