Module Name: src Committed By: christos Date: Wed Jun 9 15:15:35 UTC 2021
Modified Files: src/sys/kern: subr_kobj.c Log Message: Work around abs rela relocations issue (for now): $ readelf -r compat_linux ... Relocation section '.rela.data' at offset 0x37270 contains 537 entries: Offset Info Type Sym. Value Sym. Name + Addend ... 000000000040 000000000001 R_X86_64_64 0 000000000048 000000000001 R_X86_64_64 0 ... $ objdump -r compat_linux ... RELOCATION RECORDS FOR [.data]: OFFSET TYPE VALUE ... 0000000000000040 R_X86_64_64 *ABS* 0000000000000048 R_X86_64_64 *ABS* ... Since those have symidx == 0, and the 0 symbol table entry is special, treat them as SHN_ABS. Change ENOENT -> ENOEXEC to avoid confusion (like other linking errors), and add some debugging when that happens. To generate a diff of this commit: cvs rdiff -u -r1.67 -r1.68 src/sys/kern/subr_kobj.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.