[llvm] r312756 - [llvm-objcopy] Add support for special section indexes in symbol table greater than SHN_LORESERVE

Roland McGrath via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 11 16:45:05 PDT 2017


I don't personally care about any targets that use machine-specific or
OS-specific st_shndx values, so just SHN_ABS and SHN_COMMON is fine.

It's certainly the case that SHN_HEXAGON_SCOMMON* can be safely treated the
same as SHN_COMMON.  But to be pedantic, you need to check that
e_machine==EM_HEXAGON before assuming those [SHN_LOPROC,SHN_HIPROC] values
have that particular meaning.


More information about the llvm-commits mailing list