зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
0a5bfb49e1
Коммит
3a676ea33e
|
@ -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.
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче