From 9dcb91d815af4ae8b8f60f3ee0b74492c1f1434a Mon Sep 17 00:00:00 2001 From: grammers <samkar-4@student.ltu.se> Date: Wed, 14 Feb 2018 14:57:57 +0000 Subject: [PATCH] bare2: task 3 --- debugbin2.txt | 39 +++++++++++++++++++++++++++++++++++++++ examples/bare2.rs | 5 ++++- relisebin2.txt | 39 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 82 insertions(+), 1 deletion(-) create mode 100644 debugbin2.txt create mode 100644 relisebin2.txt diff --git a/debugbin2.txt b/debugbin2.txt new file mode 100644 index 0000000..18d71e7 --- /dev/null +++ b/debugbin2.txt @@ -0,0 +1,39 @@ + +target/thumbv7em-none-eabihf/debug/examples/bare2: file format elf32-littlearm + +Sections: +Idx Name Size VMA LMA File off Algn + 0 .vector_table 00000400 08000000 08000000 00010000 2**2 + CONTENTS, ALLOC, LOAD, READONLY, DATA + 1 .text 00002a6e 08000400 08000400 00010400 2**2 + CONTENTS, ALLOC, LOAD, READONLY, CODE + 2 .rodata 000006c4 08002e70 08002e70 00012e70 2**4 + CONTENTS, ALLOC, LOAD, READONLY, DATA + 3 .bss 00000000 20000000 20000000 00000000 2**2 + ALLOC + 4 .data 00000000 20000000 20000000 00013534 2**2 + CONTENTS, ALLOC, LOAD, DATA + 5 .debug_gdb_scripts 00000066 08000400 08000400 00013534 2**0 + CONTENTS, READONLY, DEBUGGING + 6 .debug_str 00011f33 00000000 00000000 0001359a 2**0 + CONTENTS, READONLY, DEBUGGING + 7 .debug_loc 00006f26 00000000 00000000 000254cd 2**0 + CONTENTS, READONLY, DEBUGGING + 8 .debug_abbrev 000012dc 00000000 00000000 0002c3f3 2**0 + CONTENTS, READONLY, DEBUGGING + 9 .debug_info 0001ab42 00000000 00000000 0002d6cf 2**0 + CONTENTS, READONLY, DEBUGGING + 10 .debug_ranges 000070c0 00000000 00000000 00048211 2**0 + CONTENTS, READONLY, DEBUGGING + 11 .debug_macinfo 00000008 00000000 00000000 0004f2d1 2**0 + CONTENTS, READONLY, DEBUGGING + 12 .debug_pubnames 0000327a 00000000 00000000 0004f2d9 2**0 + CONTENTS, READONLY, DEBUGGING + 13 .debug_pubtypes 0000454a 00000000 00000000 00052553 2**0 + CONTENTS, READONLY, DEBUGGING + 14 .ARM.attributes 00000036 00000000 00000000 00056a9d 2**0 + CONTENTS, READONLY + 15 .debug_frame 00002fcc 00000000 00000000 00056ad4 2**2 + CONTENTS, READONLY, DEBUGGING + 16 .debug_line 00007b0f 00000000 00000000 00059aa0 2**0 + CONTENTS, READONLY, DEBUGGING diff --git a/examples/bare2.rs b/examples/bare2.rs index 8176a84..e993949 100644 --- a/examples/bare2.rs +++ b/examples/bare2.rs @@ -82,8 +82,11 @@ fn main() { // for both debug and release binaries. How do they differ // ** your answer here ** // +// the nubmers int the categorys differs. +// the categorys and otehr texts appers to be the some. +// // commit your answers (bare2_3) - + // As we are not using interrupts, we just register a dummy catch all handler #[link_section = ".vector_table.interrupts"] #[used] diff --git a/relisebin2.txt b/relisebin2.txt new file mode 100644 index 0000000..d94ccd2 --- /dev/null +++ b/relisebin2.txt @@ -0,0 +1,39 @@ + +target/thumbv7em-none-eabihf/release/examples/bare2: file format elf32-littlearm + +Sections: +Idx Name Size VMA LMA File off Algn + 0 .vector_table 00000400 08000000 08000000 00010000 2**2 + CONTENTS, ALLOC, LOAD, READONLY, DATA + 1 .text 00000ed8 08000400 08000400 00010400 2**2 + CONTENTS, ALLOC, LOAD, READONLY, CODE + 2 .rodata 00000304 080012e0 080012e0 000112e0 2**4 + CONTENTS, ALLOC, LOAD, READONLY, DATA + 3 .bss 00000000 20000000 20000000 00000000 2**2 + ALLOC + 4 .data 00000000 20000000 20000000 000115e4 2**2 + CONTENTS, ALLOC, LOAD, DATA + 5 .debug_gdb_scripts 00000022 08000400 08000400 000115e4 2**0 + CONTENTS, READONLY, DEBUGGING + 6 .debug_str 000036bc 00000000 00000000 00011606 2**0 + CONTENTS, READONLY, DEBUGGING + 7 .debug_loc 00001748 00000000 00000000 00014cc2 2**0 + CONTENTS, READONLY, DEBUGGING + 8 .debug_abbrev 00000e42 00000000 00000000 0001640a 2**0 + CONTENTS, READONLY, DEBUGGING + 9 .debug_info 000068e1 00000000 00000000 0001724c 2**0 + CONTENTS, READONLY, DEBUGGING + 10 .debug_ranges 00000dc8 00000000 00000000 0001db2d 2**0 + CONTENTS, READONLY, DEBUGGING + 11 .debug_macinfo 00000007 00000000 00000000 0001e8f5 2**0 + CONTENTS, READONLY, DEBUGGING + 12 .debug_pubnames 0000114c 00000000 00000000 0001e8fc 2**0 + CONTENTS, READONLY, DEBUGGING + 13 .debug_pubtypes 000020d0 00000000 00000000 0001fa48 2**0 + CONTENTS, READONLY, DEBUGGING + 14 .ARM.attributes 00000034 00000000 00000000 00021b18 2**0 + CONTENTS, READONLY + 15 .debug_frame 00000340 00000000 00000000 00021b4c 2**2 + CONTENTS, READONLY, DEBUGGING + 16 .debug_line 00001d8c 00000000 00000000 00021e8c 2**0 + CONTENTS, READONLY, DEBUGGING -- GitLab