readelf.py: adapt section mapping output for .tbss sections (#289)
* readelf.py: adapt section mapping output for .tbss sections
GNU readelf does not show the .tbss section as part of the
loaded data segment when listing the section to segment
mappings, using the ELF_TBSS_SPECIAL macro in
include/elf/internal.h to skip printing the section name.
Implement the same logic in readelf.py.
* test: add test file for .tbss output in readelf.py
This test file includes a .tbss section which is not output
by GNU readelf as part of the loaded data segment when
listing the section to segment mappings.
The source code for tls.elf is simply:
__thread int i;
int main(){}
The file was compiled using the following command line:
$ gcc -o tls.elf -m32 tls.c