diff options
author | Sven Gothel <[email protected]> | 2013-02-08 05:12:39 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2013-02-08 05:12:39 +0100 |
commit | 2432dbef17c1dc4164f055cf434073bdabf8a6a9 (patch) | |
tree | 348a46b246ead8bb508152a96847a62089b72d0c /src/junit/com/jogamp/common/nio | |
parent | 1118cb7182611d0a77764a3c781a1148849b3022 (diff) |
Bug 681: Add Basic ELF Header + ARM EABI Section Parsing, allowing to distinguish ARM soft-float/hard-float (part-1)
https://jogamp.org/bugzilla/show_bug.cgi?id=681
+ * References:
+ * <ul>
+ * <li>http://linux.die.net/man/5/elf</li>
+ * <li>http://www.sco.com/developers/gabi/latest/contents.html</li>
+ * <li>http://infocenter.arm.com/
+ * <ul>
+ * <li>ARM IHI 0044E, current through ABI release 2.09</li>
+ * <li>ARM IHI 0045D, current through ABI release 2.09</li>
+ * </ul></li>
Added self contained jogamp.common.os.elf package w/ entry point class ElfHeader
to read a RandomAccessFile and parse it as an ELF file.
ELF Parsing completness:
- Header: OK
- SectionHeader: OK
- Section Type SHT_ARM_ATTRIBUTES: OK
- Will be read into SectionArmAttributes
- Used to distinguisgh soft/hard VFP float
Tested manually on:
- Linux intel 32bit / 64bit, arm soft-float and hard-float
Diffstat (limited to 'src/junit/com/jogamp/common/nio')
-rw-r--r-- | src/junit/com/jogamp/common/nio/TestStructAccessorEndian.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/junit/com/jogamp/common/nio/TestStructAccessorEndian.java b/src/junit/com/jogamp/common/nio/TestStructAccessorEndian.java index c1d946e..6d8ed88 100644 --- a/src/junit/com/jogamp/common/nio/TestStructAccessorEndian.java +++ b/src/junit/com/jogamp/common/nio/TestStructAccessorEndian.java @@ -1,16 +1,16 @@ package com.jogamp.common.nio; -import com.jogamp.common.os.*; -import com.jogamp.gluegen.test.junit.generation.Test1p1JavaEmitter; -import com.jogamp.junit.util.JunitTracer; +import static java.lang.System.out; import java.io.IOException; -import java.nio.*; +import java.nio.ByteBuffer; import org.junit.Assert; import org.junit.Test; -import static java.lang.System.*; +import com.jogamp.common.os.MachineDescription; +import com.jogamp.common.os.Platform; +import com.jogamp.junit.util.JunitTracer; public class TestStructAccessorEndian extends JunitTracer { |