Enhance spec test workflow to support x86_32 target (#787)

Enable test spec cases on x86_32 target when PR is created.
And Format shell script with [shellfmt](https://marketplace.visualstudio.com/items?itemName=foxundermoon.shell-format).
This commit is contained in:
liang.he
2021-10-15 17:05:07 +08:00
committed by GitHub
parent dd9b4e021e
commit b46b663c16
5 changed files with 136 additions and 69 deletions

View File

@ -7,6 +7,7 @@
#define R_386_32 1 /* Direct 32 bit */
#define R_386_PC32 2 /* PC relative 32 bit */
#define R_386_PLT32 4 /* 32bit address ProcedureLinkageTable */
#if !defined(_WIN32) && !defined(_WIN32_)
/* clang-format off */
@ -119,6 +120,11 @@ apply_relocation(AOTModule *module, uint8 *target_section_addr,
break;
}
/*
* Handle R_386_PLT32 like R_386_PC32 since it should be able to reach
* any 32 bit address
*/
case R_386_PLT32:
case R_386_PC32:
{
int32 value;