[PATCH] backends: add checks for _GLOBAL_OFFSET_TABLE_ on loongarch

Mark Wielaard mark@klomp.org
Thu Apr 6 22:52:17 GMT 2023


Hi,

On Sat, Apr 01, 2023 at 11:18:53AM +0800, Youling Tang wrote:
> Add handling of _GLOBAL_OFFSET_TABLE_.
> 
> Before applying the patch:
> $ ./src/elflint --gnu-ld ./src/elflint
> section [35] '.symtab': _GLOBAL_OFFSET_TABLE_ symbol value 0x68548
> does not match .got.plt section address 0x68238
> 
> After applying the patch:
> $ ./src/elflint --gnu-ld ./src/elflint
> No errors

Thanks, code looks correct.  I agree that the other issue mentioned
(_DYNAMIC symbol size 0) is a separate issue.

Pushed,

Mark


More information about the Elfutils-devel mailing list