GP-0 revised x86-64 ldef entry for compat32 variant and change opinion

entries to give preference to default variant
This commit is contained in:
ghidra1 2023-07-05 10:58:20 -04:00
parent b796fe5233
commit ccad2abbd8
5 changed files with 14 additions and 13 deletions

View File

@ -1,7 +1,7 @@
<opinions> <opinions>
<constraint loader="Dump File Loader"> <constraint loader="Dump File Loader">
<constraint compilerSpecID="linux"> <constraint compilerSpecID="linux">
<constraint primary="amd64" processor="x86" endian="little" size="64" /> <constraint primary="amd64" processor="x86" endian="little" size="64" variant="default" />
</constraint> </constraint>
</constraint> </constraint>
</opinions> </opinions>

View File

@ -9,7 +9,7 @@
<!-- constraint primary="6" processor="IA64" endian="little" size="32" --> <!-- constraint primary="6" processor="IA64" endian="little" size="32" -->
<!-- constraint primary="7" processor="ALPHA64" endian="little" size="32" --> <!-- constraint primary="7" processor="ALPHA64" endian="little" size="32" -->
<!-- constraint primary="8" processor="MSIL" endian="little" size="32" --> <!-- constraint primary="8" processor="MSIL" endian="little" size="32" -->
<constraint primary="9" processor="x86" endian="little" size="64" /> <constraint primary="9" processor="x86" endian="little" size="64" variant="default" />
<!-- constraint primary="10" processor="IA32/64" endian="little" size="32" --> <!-- constraint primary="10" processor="IA32/64" endian="little" size="32" -->
<!-- constraint primary="11" processor="NEUTRAL" endian="little" size="32" --> <!-- constraint primary="11" processor="NEUTRAL" endian="little" size="32" -->
<constraint primary="12" processor="ARM" endian="little" size="64" /> <constraint primary="12" processor="ARM" endian="little" size="64" />

View File

@ -19,7 +19,7 @@
<constraint primary="386" processor="x86" endian="little" size="32" /> <constraint primary="386" processor="x86" endian="little" size="32" />
<constraint primary="486" processor="x86" endian="little" size="32" /> <constraint primary="486" processor="x86" endian="little" size="32" />
<constraint primary="586" processor="x86" endian="little" size="32" /> <constraint primary="586" processor="x86" endian="little" size="32" />
<constraint primary="8664" processor="x86" endian="little" size="64" /> <constraint primary="8664" processor="x86" endian="little" size="64" variant="default" />
</constraint> </constraint>
<constraint compilerSpecID="default"> <constraint compilerSpecID="default">
<constraint primary="601" processor="PowerPC" endian="little" size="32" /> <constraint primary="601" processor="PowerPC" endian="little" size="32" />

View File

@ -99,7 +99,7 @@
<external_name tool="DWARF.register.mapping.file" name="x86-64.dwarf"/> <external_name tool="DWARF.register.mapping.file" name="x86-64.dwarf"/>
<external_name tool="Golang.register.info.file" name="x86-64-golang.register.info"/> <external_name tool="Golang.register.info.file" name="x86-64-golang.register.info"/>
</language> </language>
<language processor="x86-compat32" <language processor="x86"
endian="little" endian="little"
size="64" size="64"
variant="compat32" variant="compat32"

View File

@ -1,16 +1,17 @@
<opinions> <opinions>
<!-- NOTE: variant="default" is specified for 64-bit to give preference to the default variant -->
<constraint loader="Portable Executable (PE)"> <constraint loader="Portable Executable (PE)">
<constraint compilerSpecID="windows"> <constraint compilerSpecID="windows">
<constraint primary="332" processor="x86" endian="little" size="32" /> <constraint primary="332" processor="x86" endian="little" size="32" />
<constraint primary="333" processor="x86" endian="little" size="32" /> <constraint primary="333" processor="x86" endian="little" size="32" />
<constraint primary="334" processor="x86" endian="little" size="32" /> <constraint primary="334" processor="x86" endian="little" size="32" />
<constraint primary="34404" processor="x86" endian="little" size="64" /> <constraint primary="34404" processor="x86" endian="little" size="64" variant="default" />
</constraint> </constraint>
<constraint compilerSpecID="clangwindows"> <constraint compilerSpecID="clangwindows">
<constraint primary="332" secondary="clang" processor="x86" endian="little" size="32" /> <constraint primary="332" secondary="clang" processor="x86" endian="little" size="32" />
<constraint primary="333" secondary="clang" processor="x86" endian="little" size="32" /> <constraint primary="333" secondary="clang" processor="x86" endian="little" size="32" />
<constraint primary="334" secondary="clang" processor="x86" endian="little" size="32" /> <constraint primary="334" secondary="clang" processor="x86" endian="little" size="32" />
<constraint primary="34404" secondary="clang" processor="x86" endian="little" size="64" /> <constraint primary="34404" secondary="clang" processor="x86" endian="little" size="64" variant="default" />
</constraint> </constraint>
<constraint compilerSpecID="borlandcpp"> <constraint compilerSpecID="borlandcpp">
<constraint primary="332" secondary="borlandcpp" processor="x86" endian="little" size="32" /> <constraint primary="332" secondary="borlandcpp" processor="x86" endian="little" size="32" />
@ -24,18 +25,18 @@
</constraint> </constraint>
<constraint compilerSpecID="golang"> <constraint compilerSpecID="golang">
<constraint primary="332" secondary="golang" processor="x86" endian="little" size="32" /> <constraint primary="332" secondary="golang" processor="x86" endian="little" size="32" />
<constraint primary="34404" secondary="golang" processor="x86" endian="little" size="64" /> <constraint primary="34404" secondary="golang" processor="x86" endian="little" size="64" variant="default" />
</constraint> </constraint>
</constraint> </constraint>
<constraint loader="Debug Symbols (DBG)" compilerSpecID="windows"> <constraint loader="Debug Symbols (DBG)" compilerSpecID="windows">
<constraint primary="332" processor="x86" endian="little" size="32" /> <constraint primary="332" processor="x86" endian="little" size="32" />
<constraint primary="333" processor="x86" endian="little" size="32" /> <constraint primary="333" processor="x86" endian="little" size="32" />
<constraint primary="334" processor="x86" endian="little" size="32" /> <constraint primary="334" processor="x86" endian="little" size="32" />
<constraint primary="34404" processor="x86" endian="little" size="64" /> <constraint primary="34404" processor="x86" endian="little" size="64" variant="default" />
</constraint> </constraint>
<constraint loader="Executable and Linking Format (ELF)" compilerSpecID="gcc"> <constraint loader="Executable and Linking Format (ELF)" compilerSpecID="gcc">
<constraint primary="3" processor="x86" endian="little" size="32" /> <constraint primary="3" processor="x86" endian="little" size="32" />
<constraint primary="62" processor="x86" endian="little" size="64" /> <constraint primary="62" processor="x86" endian="little" size="64" variant="default" />
</constraint> </constraint>
<constraint loader="Module Definition (DEF)" compilerSpecID="windows"> <constraint loader="Module Definition (DEF)" compilerSpecID="windows">
<constraint primary="0" processor="x86" endian="little" size="32" /> <constraint primary="0" processor="x86" endian="little" size="32" />
@ -51,18 +52,18 @@
</constraint> </constraint>
<constraint loader="Mac OS X Mach-O" compilerSpecID="gcc"> <constraint loader="Mac OS X Mach-O" compilerSpecID="gcc">
<constraint primary="7" processor="x86" endian="little" size="32" /> <constraint primary="7" processor="x86" endian="little" size="32" />
<constraint primary="16777223" processor="x86" endian="little" size="64" /> <constraint primary="16777223" processor="x86" endian="little" size="64" variant="default" />
</constraint> </constraint>
<constraint loader="DYLD Cache" compilerSpecID="gcc"> <constraint loader="DYLD Cache" compilerSpecID="gcc">
<constraint primary="x86_64" processor="x86" endian="little" size="64" /> <constraint primary="x86_64" processor="x86" endian="little" size="64" variant="default" />
</constraint> </constraint>
<constraint loader="Common Object File Format (COFF)" compilerSpecID="gcc"> <constraint loader="Common Object File Format (COFF)" compilerSpecID="gcc">
<constraint primary="332" processor="x86" endian="little" size="32" /> <constraint primary="332" processor="x86" endian="little" size="32" />
<constraint primary="-31132" processor="x86" endian="little" size="64" /> <constraint primary="-31132" processor="x86" endian="little" size="64" variant="default" />
</constraint> </constraint>
<constraint loader="MS Common Object File Format (COFF)" compilerSpecID="windows"> <constraint loader="MS Common Object File Format (COFF)" compilerSpecID="windows">
<constraint primary="332" processor="x86" endian="little" size="32" /> <constraint primary="332" processor="x86" endian="little" size="32" />
<constraint primary="-31132" processor="x86" endian="little" size="64" /> <constraint primary="-31132" processor="x86" endian="little" size="64" variant="default" />
</constraint> </constraint>
<constraint loader="Assembler Output (AOUT)" compilerSpecID="gcc"> <constraint loader="Assembler Output (AOUT)" compilerSpecID="gcc">
<constraint primary="134" processor="x86" endian="little" size="32" /> <constraint primary="134" processor="x86" endian="little" size="32" />