diff options
author | Mark Harmstone <mark@harmstone.com> | 2022-11-23 19:43:30 +0000 |
---|---|---|
committer | Mark Harmstone <mark@harmstone.com> | 2022-11-24 03:20:14 +0000 |
commit | 0b7186b9e8c5a7b6bc1546f1682cd7a116a7f8f9 (patch) | |
tree | 3361371c269bd7b2700e157e37c50c0595514a7e /gas/as.c | |
parent | 26314ac7adab39f623d8a42380e5c1218f922f4d (diff) | |
download | gdb-0b7186b9e8c5a7b6bc1546f1682cd7a116a7f8f9.zip gdb-0b7186b9e8c5a7b6bc1546f1682cd7a116a7f8f9.tar.gz gdb-0b7186b9e8c5a7b6bc1546f1682cd7a116a7f8f9.tar.bz2 |
gas: Disable --gcodeview on PE targets with no O_secrel
Diffstat (limited to 'gas/as.c')
-rw-r--r-- | gas/as.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -334,7 +334,7 @@ Options:\n\ --gdwarf-cie-version=<N> generate version 1, 3 or 4 DWARF CIEs\n")); fprintf (stream, _("\ --gdwarf-sections generate per-function section names for DWARF line information\n")); -#ifdef TE_PE +#if defined (TE_PE) && defined (O_secrel) fprintf (stream, _("\ --gcodeview generate CodeView debugging information\n")); #endif @@ -551,7 +551,7 @@ parse_args (int * pargc, char *** pargv) ,{"gdwarf2", no_argument, NULL, OPTION_GDWARF_2} ,{"gdwarf-sections", no_argument, NULL, OPTION_GDWARF_SECTIONS} ,{"gdwarf-cie-version", required_argument, NULL, OPTION_GDWARF_CIE_VERSION} -#ifdef TE_PE +#if defined (TE_PE) && defined (O_secrel) ,{"gcodeview", no_argument, NULL, OPTION_GCODEVIEW} #endif ,{"gen-debug", no_argument, NULL, 'g'} @@ -879,7 +879,7 @@ This program has absolutely no warranty.\n")); flag_dwarf_sections = true; break; -#ifdef TE_PE +#if defined (TE_PE) && defined (O_secrel) case OPTION_GCODEVIEW: debug_type = DEBUG_CODEVIEW; break; |