protected String getReadElfTag(String tag) {
        String tagValue = null;
        try {
            String result[] = ExecUtil.execute("/usr/bin/readelf -A /proc/self/exe");
            if(result != null){
                for(String line : result) {
                    line = line.trim();
                    if (line.startsWith(tag) && line.contains(":")) {
                        String lineParts[] = line.split(":", 2);
                        if(lineParts.length > 1)
                            tagValue = lineParts[1].trim();
                        break;
                    }
                }
            }
        }
        catch (IOException|InterruptedException ioe) { ioe.printStackTrace(); }
        return tagValue;
    }
protected String getReadElfTag ( String tag ) { String tagValue = null ; try { String result [ ] = ExecUtil . execute ( "/usr/bin/readelf -A /proc/self/exe" ) ; if ( result != null ) { for ( String line : result ) { line = line . trim ( ) ; if ( line . startsWith ( tag ) && line . contains ( ":" ) ) { String lineParts [ ] = line . split ( ":" , 2 ) ; if ( lineParts . length > 1 ) tagValue = lineParts [ 1 ] . trim ( ) ; break ; } } } } catch ( IOException | InterruptedException ioe ) { ioe . printStackTrace ( ) ; } return tagValue ; }
/*
this method will obtain a specified tag value from the elf info in the '/proc/self/exe' program
(this method is used to help determine the HARD-FLOAT / SOFT-FLOAT ABI of the system)