Ignore the link section in the header

git-svn-id: https://smali.googlecode.com/svn/trunk@812 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
This commit is contained in:
jesusfreke@jesusfreke.com 2011-07-15 09:22:43 +00:00
parent baa030c201
commit fadcc2dcb9

View File

@ -79,14 +79,9 @@ public class HeaderItem extends Item<HeaderItem> {
throw new RuntimeException("The endian tag is not 0x12345678 or 0x78563412");
}
//link_size
if (in.readInt() != 0) {
throw new RuntimeException("This dex file has a link section, which is not supported");
}
//link_off
if (in.readInt() != 0) {
throw new RuntimeException("This dex file has a link section, which is not supported");
//link_size + link_off
if ((in.readInt() | in.readInt()) != 0) {
System.err.println("This dex file has a link section, which is not supported. Ignoring.");
}
int sectionSize;