Minor fix to parsing of readelf output. Allow a hyphen in the section name, and allow 6 digit fields (i.e. section size) to be longer than 6 digits. rs=ben.

This commit is contained in:
bryner%brianryner.com 2003-11-09 07:05:21 +00:00
Родитель 0a5bfb49e1
Коммит 3a676ea33e
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -87,7 +87,7 @@ while (<READELF_OUTPUT>) {
# note that we strip off the leading '.' of section names for
# readability
if (! (@section = (/^ *\[ *(\d+)\] \.([\w\.]+) *(\w+) *(.{8}) (.{6}) (.{6}) *(\d+) ([a-zA-Z]+ +| +[a-zA-Z]+|) *(\d+) *(\w+) *(\d+)/))) {
if (! (@section = (/^ *\[ *(\d+)\] \.([\w\.\-]+) *(\w+) *(.{8}) (.{6}[0-9a-fA-F]*) (.{6}[0-9a-fA-F]*) *(\d+) ([a-zA-Z]+ +| +[a-zA-Z]+|) *(\d+) *(\w+) *(\d+)/))) {
# capture the 'null' section which has no name, so that the
# array indices are the same as the section indices.