From 05cc4c5db4ace190886d9d886343ce520a7216d1 Mon Sep 17 00:00:00 2001 From: fros4943 Date: Thu, 11 Jan 2007 14:26:47 +0000 Subject: [PATCH] added section size control --- tools/cooja/examples/jni_test/level3/Level3.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/tools/cooja/examples/jni_test/level3/Level3.java b/tools/cooja/examples/jni_test/level3/Level3.java index 12af4de7a..023471ba5 100644 --- a/tools/cooja/examples/jni_test/level3/Level3.java +++ b/tools/cooja/examples/jni_test/level3/Level3.java @@ -26,7 +26,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: Level3.java,v 1.1 2006/08/21 12:13:01 fros4943 Exp $ + * $Id: Level3.java,v 1.2 2007/01/11 14:26:47 fros4943 Exp $ */ import java.io.*; @@ -72,8 +72,16 @@ public class Level3 { System.err.println("Found relative data section address: 0x" + Integer.toHexString(relDataSectionAddr)); System.err.println("Found data section size: 0x" + Integer.toHexString(dataSectionSize)); System.err.println("Found relative bss section address: 0x" + Integer.toHexString(relBssSectionAddr)); - System.err.println("Found bss section address: 0x" + Integer.toHexString(bssSectionSize)); + System.err.println("Found bss section size: 0x" + Integer.toHexString(bssSectionSize)); + if (dataSectionSize != 4) { + System.err.println("Data section size is " + Integer.toHexString(dataSectionSize) + " but should be 0x4!"); + System.exit(1); + } + if (bssSectionSize != 4) { + System.err.println("BSS section size is " + Integer.toHexString(bssSectionSize) + " but should be 0x4!"); + System.exit(1); + } test(); }