load-obj-accept-sht-note.after (786B)
1 /* ignore sections types we do not handle. AT.2: SHT_NOTE is 2 * accepted so .o files emitted by find_section()'s .note* 3 * branch are merged in. Without this, kernel.elf links skip 4 * .note.Xen and the subsequent .rela.note.Xen merge derefs 5 * a NULL sm_table[].s for the (skipped) note section. */ 6 if (sh->sh_type != SHT_PROGBITS && 7 sh->sh_type != SHT_RELX && 8 #ifdef TCC_ARM_EABI 9 sh->sh_type != SHT_ARM_EXIDX && 10 #endif 11 sh->sh_type != SHT_NOBITS && 12 sh->sh_type != SHT_NOTE && 13 sh->sh_type != SHT_PREINIT_ARRAY && 14 sh->sh_type != SHT_INIT_ARRAY && 15 sh->sh_type != SHT_FINI_ARRAY && 16 strcmp(sh_name, ".stabstr") 17 ) 18 continue;