Skip to content

Commit

Permalink
baselines of tests now reflect the
Browse files Browse the repository at this point in the history
changes in v0.1.1
	modified:   test/test001.base
	modified:   test/test003.base
	modified:   test/test004.base
	modified:   test/test005.base
	modified:   test/test006.base
	modified:   test/test017.base
	modified:   test/test019.base
	modified:   test/test020.base
	modified:   test/test021.base
  • Loading branch information
davea42 committed Jul 17, 2022
1 parent 22aabca commit 9c51af9
Show file tree
Hide file tree
Showing 9 changed files with 2,483 additions and 2,268 deletions.
15 changes: 9 additions & 6 deletions test/test001.base
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
Usage: readelfobj <options> file ...
Options:
--print-dynamic print the .dynamic section (DT_ stuff)
--print-groups print the section group of each DWARF section
--print-relocs print relocation entries (.rela & .rel)
--print-groups print the section group of each DWARF section
--print-relocs print relocation entries (.rela & .rel)
--print-symtabs print out all elf symbols (.symtab & .dynsym)
--print-wasted print out details about file space use
beyond just the total wasted.
--print-wasted print out details about file space use
beyond just the total wasted.
--print-sec-extra print out section header address field
and the input file offset of the Shdr
--only-wasted-summary Skip printing section/segment data.
--help print this message
--version print version string
--all Enables all the above options
--help print this message
--version print version string
2 changes: 1 addition & 1 deletion test/test003.base
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Program header 6 type (PT_GNU_RELRO) 0x6474e552
String section data at 0x20f1b (134939) length 0x184 (388)

Section count: 39
[i] offset size name (flags)(type)(link,info,align)
[i] offset size name addr (flags)(type)(link,info,align)
{
[ 0] 0x00000000 0x00000000 (0)(SHT_NULL)
[ 1] 0x000001c8 0x00000024 .note.gnu.build-id (SHF_ALLOC)(SHT_NOTE)(0,0x0,0x4)
Expand Down
10 changes: 5 additions & 5 deletions test/test004.base
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Program header 6 type (PT_GNU_RELRO) 0x6474e552
String section data at 0x20f1b (134939) length 0x184 (388)

Section count: 39
[i] offset size name (flags)(type)(link,info,align)
[i] offset size name addr (flags)(type)(link,info,align)
{
[ 0] 0x00000000 0x00000000 (0)(SHT_NULL)
[ 1] 0x000001c8 0x00000024 .note.gnu.build-id (SHF_ALLOC)(SHT_NOTE)(0,0x0,0x4)
Expand Down Expand Up @@ -107,11 +107,11 @@ GNU .gnu_debuglink and .note.gnu.buildid
Relocation Sections
{

Section 0: .rela.dyn reloccount: 0 links-sec: 0 symtabsec: 3
[i] offset info type symbol addend
Section 8: .rela.dyn reloccount: 0 links-sec: 0 symtabsec: 3
[i] offset info type. symbol addend

Section 0: .rela.plt reloccount: 0 links-sec: 11 symtabsec: 3
[i] offset info type symbol addend
Section 9: .rela.plt reloccount: 0 links-sec: 11 symtabsec: 3
[i] offset info type. symbol addend
}
Warning: Odd overlap of 0x00000000...0x0000c53c Phdr target with 0x0000c112...0x0000e8c4 Shdr target
Warning : 1 instances of unused alignment space exist and total 1 bytes of alignment.
2 changes: 1 addition & 1 deletion test/test005.base
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Program header 6 type (PT_GNU_RELRO) 0x6474e552
String section data at 0x20f1b (134939) length 0x184 (388)

Section count: 39
[i] offset size name (flags)(type)(link,info,align)
[i] offset size name addr (flags)(type)(link,info,align)
{
[ 0] 0x00000000 0x00000000 (0)(SHT_NULL)
[ 1] 0x000001c8 0x00000024 .note.gnu.build-id (SHF_ALLOC)(SHT_NOTE)(0,0x0,0x4)
Expand Down
2 changes: 1 addition & 1 deletion test/test006.base
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Program header 6 type (PT_GNU_RELRO) 0x6474e552
String section data at 0x20f1b (134939) length 0x184 (388)

Section count: 39
[i] offset size name (flags)(type)(link,info,align)
[i] offset size name addr (flags)(type)(link,info,align)
{
[ 0] 0x00000000 0x00000000 (0)(SHT_NULL)
[ 1] 0x000001c8 0x00000024 .note.gnu.build-id (SHF_ALLOC)(SHT_NOTE)(0,0x0,0x4)
Expand Down
3,760 changes: 1,916 additions & 1,844 deletions test/test017.base

Large diffs are not rendered by default.

118 changes: 85 additions & 33 deletions test/test019.base
Original file line number Diff line number Diff line change
Expand Up @@ -38,34 +38,86 @@ Elf object file yyy/comdatex.example.o
String section data at 0x37c (892) length 0xbb (187)

Section count: 26
[i] offset size name (flags)(type)(link,info,align)
[i] offset size name addr (flags)(type)(link,info,align)
{
[ 0] 0x00000000 0x00000000 (0)(SHT_NULL)
Hdroffset: 0x0000046c
Addr : 0x00000000
[ 1] 0x00000034 0x00000008 .group (0)(SHT_GROUP)(24,0xd,0x4)
Hdroffset: 0x00000494
Addr : 0x00000000
[ 2] 0x0000003c 0x00000008 .group (0)(SHT_GROUP)(24,0xe,0x4)
Hdroffset: 0x000004bc
Addr : 0x00000000
[ 3] 0x00000044 0x00000044 .text (SHF_ALLOC SHF_EXECINSTR)(SHT_PROGBITS)(0,0x0,0x1)
Hdroffset: 0x000004e4
Addr : 0x00000000
[ 4] 0x00000a10 0x00000030 .rel.text (0)(SHT_REL)(24,0x3,0x4)
Hdroffset: 0x0000050c
Addr : 0x00000000
[ 5] 0x00000088 0x00000000 .data (SHF_WRITE SHF_ALLOC)(SHT_PROGBITS)(0,0x0,0x1)
Hdroffset: 0x00000534
Addr : 0x00000000
[ 6] 0x00000088 0x00000000 .bss (SHF_WRITE SHF_ALLOC)(SHT_NOBITS)(0,0x0,0x1)
Hdroffset: 0x0000055c
Addr : 0x00000000
[ 7] 0x00000088 0x00000051 .debug_types (SHF_GROUP)(SHT_PROGBITS)(0,0x0,0x1)
Hdroffset: 0x00000584
Addr : 0x00000000
[ 8] 0x00000a40 0x00000018 .rel.debug_types (0)(SHT_REL)(24,0x7,0x4)
Hdroffset: 0x000005ac
Addr : 0x00000000
[ 9] 0x000000d9 0x00000044 .debug_types (SHF_GROUP)(SHT_PROGBITS)(0,0x0,0x1)
Hdroffset: 0x000005d4
Addr : 0x00000000
[10] 0x00000a58 0x00000010 .rel.debug_types (0)(SHT_REL)(24,0x9,0x4)
Hdroffset: 0x000005fc
Addr : 0x00000000
[11] 0x0000011d 0x00000082 .debug_info (0)(SHT_PROGBITS)(0,0x0,0x1)
Hdroffset: 0x00000624
Addr : 0x00000000
[12] 0x00000a68 0x00000050 .rel.debug_info (0)(SHT_REL)(24,0xb,0x4)
Hdroffset: 0x0000064c
Addr : 0x00000000
[13] 0x0000019f 0x00000094 .debug_abbrev (0)(SHT_PROGBITS)(0,0x0,0x1)
Hdroffset: 0x00000674
Addr : 0x00000000
[14] 0x00000233 0x00000020 .debug_aranges (0)(SHT_PROGBITS)(0,0x0,0x1)
Hdroffset: 0x0000069c
Addr : 0x00000000
[15] 0x00000ab8 0x00000010 .rel.debug_aranges (0)(SHT_REL)(24,0xe,0x4)
Hdroffset: 0x000006c4
Addr : 0x00000000
[16] 0x00000253 0x00000040 .debug_line (0)(SHT_PROGBITS)(0,0x0,0x1)
Hdroffset: 0x000006ec
Addr : 0x00000000
[17] 0x00000ac8 0x00000008 .rel.debug_line (0)(SHT_REL)(24,0x10,0x4)
Hdroffset: 0x00000714
Addr : 0x00000000
[18] 0x00000293 0x0000008c .debug_str (SHF_MERGE SHF_STRINGS)(SHT_PROGBITS)(0,0x0,0x1)
Hdroffset: 0x0000073c
Addr : 0x00000000
[19] 0x0000031f 0x00000025 .comment (SHF_MERGE SHF_STRINGS)(SHT_PROGBITS)(0,0x0,0x1)
Hdroffset: 0x00000764
Addr : 0x00000000
[20] 0x00000344 0x00000000 .note.GNU-stack (0)(SHT_PROGBITS)(0,0x0,0x1)
Hdroffset: 0x0000078c
Addr : 0x00000000
[21] 0x00000344 0x00000038 .eh_frame (SHF_ALLOC)(SHT_PROGBITS)(0,0x0,0x4)
Hdroffset: 0x000007b4
Addr : 0x00000000
[22] 0x00000ad0 0x00000008 .rel.eh_frame (0)(SHT_REL)(24,0x15,0x4)
Hdroffset: 0x000007dc
Addr : 0x00000000
[23] 0x0000037c 0x000000bb .shstrtab (0)(SHT_STRTAB)(0,0x0,0x1)
Hdroffset: 0x00000804
Addr : 0x00000000
[24] 0x00000848 0x00000180 .symtab (0)(SHT_SYMTAB)(25,0x13,0x4)
Hdroffset: 0x0000082c
Addr : 0x00000000
[25] 0x000009c8 0x00000045 .strtab (0)(SHT_STRTAB)(0,0x0,0x1)
Hdroffset: 0x00000854
Addr : 0x00000000
Summary: 719 bytes for 8 debug sections
}
Section Group arrays
Expand Down Expand Up @@ -215,50 +267,50 @@ Relocation Sections
{

Section 4: .rel.text reloccount: 6 links-sec: 3 symtabsec: 24
[i] offset info type symbol
[0] 0x0000000f 0x00001301 R_386_32 1 19 xs
[1] 0x00000019 0x00001301 R_386_32 1 19 xs
[2] 0x00000024 0x00001301 R_386_32 1 19 xs
[3] 0x00000029 0x00001602 R_386_PC32 2 22 goo
[4] 0x00000033 0x00001401 R_386_32 1 20 ys
[5] 0x00000038 0x00001702 R_386_PC32 2 23 hoo
[i] offset info type. symbol
[0] 0x0000000f 0x00001301 R_386_32 1. 19 xs
[1] 0x00000019 0x00001301 R_386_32 1. 19 xs
[2] 0x00000024 0x00001301 R_386_32 1. 19 xs
[3] 0x00000029 0x00001602 R_386_PC32 2. 22 goo
[4] 0x00000033 0x00001401 R_386_32 1. 20 ys
[5] 0x00000038 0x00001702 R_386_PC32 2. 23 hoo

Section 8: .rel.debug_types reloccount: 3 links-sec: 7 symtabsec: 24
[i] offset info type symbol
[0] 0x00000006 0x00000701 R_386_32 1 7 .debug_abbrev
[1] 0x00000019 0x00000901 R_386_32 1 9 .debug_line
[2] 0x0000004c 0x00000a01 R_386_32 1 10 .debug_str
[i] offset info type. symbol
[0] 0x00000006 0x00000701 R_386_32 1. 7 .debug_abbrev
[1] 0x00000019 0x00000901 R_386_32 1. 9 .debug_line
[2] 0x0000004c 0x00000a01 R_386_32 1. 10 .debug_str

Section 10: .rel.debug_types reloccount: 2 links-sec: 9 symtabsec: 24
[i] offset info type symbol
[0] 0x00000006 0x00000701 R_386_32 1 7 .debug_abbrev
[1] 0x00000019 0x00000901 R_386_32 1 9 .debug_line
[i] offset info type. symbol
[0] 0x00000006 0x00000701 R_386_32 1. 7 .debug_abbrev
[1] 0x00000019 0x00000901 R_386_32 1. 9 .debug_line

Section 12: .rel.debug_info reloccount: 10 links-sec: 11 symtabsec: 24
[i] offset info type symbol
[0] 0x00000006 0x00000701 R_386_32 1 7 .debug_abbrev
[1] 0x0000000c 0x00000a01 R_386_32 1 10 .debug_str
[2] 0x00000011 0x00000a01 R_386_32 1 10 .debug_str
[3] 0x00000015 0x00000a01 R_386_32 1 10 .debug_str
[4] 0x00000019 0x00000201 R_386_32 1 2 .text
[5] 0x00000021 0x00000901 R_386_32 1 9 .debug_line
[6] 0x0000002f 0x00000a01 R_386_32 1 10 .debug_str
[7] 0x0000003e 0x00000201 R_386_32 1 2 .text
[8] 0x00000069 0x00001301 R_386_32 1 19 xs
[9] 0x0000007d 0x00001401 R_386_32 1 20 ys
[i] offset info type. symbol
[0] 0x00000006 0x00000701 R_386_32 1. 7 .debug_abbrev
[1] 0x0000000c 0x00000a01 R_386_32 1. 10 .debug_str
[2] 0x00000011 0x00000a01 R_386_32 1. 10 .debug_str
[3] 0x00000015 0x00000a01 R_386_32 1. 10 .debug_str
[4] 0x00000019 0x00000201 R_386_32 1. 2 .text
[5] 0x00000021 0x00000901 R_386_32 1. 9 .debug_line
[6] 0x0000002f 0x00000a01 R_386_32 1. 10 .debug_str
[7] 0x0000003e 0x00000201 R_386_32 1. 2 .text
[8] 0x00000069 0x00001301 R_386_32 1. 19 xs
[9] 0x0000007d 0x00001401 R_386_32 1. 20 ys

Section 15: .rel.debug_aranges reloccount: 2 links-sec: 14 symtabsec: 24
[i] offset info type symbol
[0] 0x00000006 0x00000601 R_386_32 1 6 .debug_info
[1] 0x00000010 0x00000201 R_386_32 1 2 .text
[i] offset info type. symbol
[0] 0x00000006 0x00000601 R_386_32 1. 6 .debug_info
[1] 0x00000010 0x00000201 R_386_32 1. 2 .text

Section 17: .rel.debug_line reloccount: 1 links-sec: 16 symtabsec: 24
[i] offset info type symbol
[0] 0x0000002d 0x00000201 R_386_32 1 2 .text
[i] offset info type. symbol
[0] 0x0000002d 0x00000201 R_386_32 1. 2 .text

Section 22: .rel.eh_frame reloccount: 1 links-sec: 21 symtabsec: 24
[i] offset info type symbol
[0] 0x00000020 0x00000202 R_386_PC32 2 2 .text
[i] offset info type. symbol
[0] 0x00000020 0x00000202 R_386_PC32 2. 2 .text
}
Listing Used Areas
[] offset length finaloffset name
Expand Down
Loading

0 comments on commit 9c51af9

Please sign in to comment.