Changeset View
Changeset View
Standalone View
Standalone View
contrib/elftoolchain/readelf/readelf.c
Show First 20 Lines • Show All 2,626 Lines • ▼ Show 20 Lines | #define ST_CTL i, s->name, section_type(re->ehdr.e_machine, s->type), \ | ||||
for (i = 0; (size_t)i < re->shnum; i++) { | for (i = 0; (size_t)i < re->shnum; i++) { | ||||
s = &re->sl[i]; | s = &re->sl[i]; | ||||
if (re->ec == ELFCLASS32) { | if (re->ec == ELFCLASS32) { | ||||
if (re->options & RE_T) | if (re->options & RE_T) | ||||
printf(" [%2d] %s\n %-15.15s %8.8jx" | printf(" [%2d] %s\n %-15.15s %8.8jx" | ||||
" %6.6jx %6.6jx %2.2jx %2u %3u %2ju\n" | " %6.6jx %6.6jx %2.2jx %2u %3u %2ju\n" | ||||
" %s\n", ST_CT); | " %s\n", ST_CT); | ||||
else | else | ||||
printf(" [%2d] %-17.17s %-15.15s %8.8jx" | if (re->options & RE_WW) | ||||
" %6.6jx %6.6jx %2.2jx %3s %2u %3u %2ju\n", | printf(" [%2d] %-17s %-15.15s " | ||||
S_CT); | "%8.8jx %6.6jx %6.6jx %2.2jx %3s " | ||||
"%2u %3u %2ju\n", S_CT); | |||||
else | |||||
printf(" [%2d] %-17.17s %-15.15s " | |||||
"%8.8jx %6.6jx %6.6jx %2.2jx %3s " | |||||
"%2u %3u %2ju\n", S_CT); | |||||
} else if (re->options & RE_WW) { | } else if (re->options & RE_WW) { | ||||
if (re->options & RE_T) | if (re->options & RE_T) | ||||
printf(" [%2d] %s\n %-15.15s %16.16jx" | printf(" [%2d] %s\n %-15.15s %16.16jx" | ||||
" %6.6jx %6.6jx %2.2jx %2u %3u %2ju\n" | " %6.6jx %6.6jx %2.2jx %2u %3u %2ju\n" | ||||
" %s\n", ST_CT); | " %s\n", ST_CT); | ||||
else | else | ||||
printf(" [%2d] %-17.17s %-15.15s %16.16jx" | printf(" [%2d] %-17s %-15.15s %16.16jx" | ||||
" %6.6jx %6.6jx %2.2jx %3s %2u %3u %2ju\n", | " %6.6jx %6.6jx %2.2jx %3s %2u %3u %2ju\n", | ||||
S_CT); | S_CT); | ||||
} else { | } else { | ||||
if (re->options & RE_T) | if (re->options & RE_T) | ||||
printf(" [%2d] %s\n %-15.15s %16.16jx" | printf(" [%2d] %s\n %-15.15s %16.16jx" | ||||
" %16.16jx %u\n %16.16jx %16.16jx" | " %16.16jx %u\n %16.16jx %16.16jx" | ||||
" %-16u %ju\n %s\n", ST_CTL); | " %-16u %ju\n %s\n", ST_CTL); | ||||
else | else | ||||
▲ Show 20 Lines • Show All 5,272 Lines • Show Last 20 Lines |