mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 21:41:47 +08:00
gas: Disable --gcodeview on PE targets with no O_secrel
This commit is contained in:
6
gas/as.c
6
gas/as.c
@ -334,7 +334,7 @@ Options:\n\
|
|||||||
--gdwarf-cie-version=<N> generate version 1, 3 or 4 DWARF CIEs\n"));
|
--gdwarf-cie-version=<N> generate version 1, 3 or 4 DWARF CIEs\n"));
|
||||||
fprintf (stream, _("\
|
fprintf (stream, _("\
|
||||||
--gdwarf-sections generate per-function section names for DWARF line information\n"));
|
--gdwarf-sections generate per-function section names for DWARF line information\n"));
|
||||||
#ifdef TE_PE
|
#if defined (TE_PE) && defined (O_secrel)
|
||||||
fprintf (stream, _("\
|
fprintf (stream, _("\
|
||||||
--gcodeview generate CodeView debugging information\n"));
|
--gcodeview generate CodeView debugging information\n"));
|
||||||
#endif
|
#endif
|
||||||
@ -551,7 +551,7 @@ parse_args (int * pargc, char *** pargv)
|
|||||||
,{"gdwarf2", no_argument, NULL, OPTION_GDWARF_2}
|
,{"gdwarf2", no_argument, NULL, OPTION_GDWARF_2}
|
||||||
,{"gdwarf-sections", no_argument, NULL, OPTION_GDWARF_SECTIONS}
|
,{"gdwarf-sections", no_argument, NULL, OPTION_GDWARF_SECTIONS}
|
||||||
,{"gdwarf-cie-version", required_argument, NULL, OPTION_GDWARF_CIE_VERSION}
|
,{"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}
|
,{"gcodeview", no_argument, NULL, OPTION_GCODEVIEW}
|
||||||
#endif
|
#endif
|
||||||
,{"gen-debug", no_argument, NULL, 'g'}
|
,{"gen-debug", no_argument, NULL, 'g'}
|
||||||
@ -879,7 +879,7 @@ This program has absolutely no warranty.\n"));
|
|||||||
flag_dwarf_sections = true;
|
flag_dwarf_sections = true;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
#ifdef TE_PE
|
#if defined (TE_PE) && defined (O_secrel)
|
||||||
case OPTION_GCODEVIEW:
|
case OPTION_GCODEVIEW:
|
||||||
debug_type = DEBUG_CODEVIEW;
|
debug_type = DEBUG_CODEVIEW;
|
||||||
break;
|
break;
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
#include "filenames.h"
|
#include "filenames.h"
|
||||||
#include "md5.h"
|
#include "md5.h"
|
||||||
|
|
||||||
#ifdef TE_PE
|
#if defined (TE_PE) && defined (O_secrel)
|
||||||
|
|
||||||
#define NUM_MD5_BYTES 16
|
#define NUM_MD5_BYTES 16
|
||||||
|
|
||||||
@ -538,4 +538,4 @@ codeview_generate_asm_lineno (void)
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* TE_PE */
|
#endif /* TE_PE && O_secrel */
|
||||||
|
Reference in New Issue
Block a user