mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 09:08:59 +00:00
gas: Add CodeView constant for aarch64
Adds the correct constant to the S_COMPILE3 CodeView record when assembling aarch64-w64-mingw32 with the -gcodeview flag.
This commit is contained in:
@@ -286,13 +286,20 @@ write_lines_info (void)
|
||||
static uint16_t
|
||||
target_processor (void)
|
||||
{
|
||||
if (stdoutput->arch_info->arch != bfd_arch_i386)
|
||||
return 0;
|
||||
switch (stdoutput->arch_info->arch)
|
||||
{
|
||||
case bfd_arch_i386:
|
||||
if (stdoutput->arch_info->mach & bfd_mach_x86_64)
|
||||
return CV_CFL_X64;
|
||||
else
|
||||
return CV_CFL_80386;
|
||||
|
||||
if (stdoutput->arch_info->mach & bfd_mach_x86_64)
|
||||
return CV_CFL_X64;
|
||||
else
|
||||
return CV_CFL_80386;
|
||||
case bfd_arch_aarch64:
|
||||
return CV_CFL_ARM64;
|
||||
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* Write the CodeView symbols, describing the object name and
|
||||
|
||||
Reference in New Issue
Block a user