Skip to content

Commit

Permalink
Merge pull request gimli-rs#606 from philipc/symbol-map
Browse files Browse the repository at this point in the history
read: improve symbol map
  • Loading branch information
philipc authored Dec 5, 2023
2 parents bce6060 + 4013d8c commit ff36df2
Show file tree
Hide file tree
Showing 26 changed files with 155 additions and 305 deletions.
12 changes: 0 additions & 12 deletions crates/examples/testfiles/coff/import_msvc.lib.objdump
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ Symbols
Dynamic symbols

Symbol map
0x0 "@comp.id"
0x0 "test_x64_NULL_THUNK_DATA"

test_x64.dll:
Expand All @@ -75,7 +74,6 @@ Symbols
Dynamic symbols

Symbol map
0x0 "@comp.id"
0x0 "__NULL_IMPORT_DESCRIPTOR"

test_x64.dll:
Expand Down Expand Up @@ -110,9 +108,7 @@ Symbols
Dynamic symbols

Symbol map
0x0 "@comp.id"
0x0 "__IMPORT_DESCRIPTOR_test_x64"
0x0 ".idata$6"

test_x86.dll:
Format: Short Import File
Expand Down Expand Up @@ -143,7 +139,6 @@ Symbols
Dynamic symbols

Symbol map
0x0 "@comp.id"
0x0 "test_x86_NULL_THUNK_DATA"

test_x86.dll:
Expand All @@ -165,7 +160,6 @@ Symbols
Dynamic symbols

Symbol map
0x0 "@comp.id"
0x0 "__NULL_IMPORT_DESCRIPTOR"

test_x86.dll:
Expand Down Expand Up @@ -200,9 +194,7 @@ Symbols
Dynamic symbols

Symbol map
0x0 "@comp.id"
0x0 "__IMPORT_DESCRIPTOR_test_x86"
0x0 ".idata$6"

test_arm64ec.dll:
Format: Short Import File
Expand Down Expand Up @@ -233,7 +225,6 @@ Symbols
Dynamic symbols

Symbol map
0x0 "@comp.id"
0x0 "test_arm64ec_NULL_THUNK_DATA"

test_arm64ec.dll:
Expand All @@ -255,7 +246,6 @@ Symbols
Dynamic symbols

Symbol map
0x0 "@comp.id"
0x0 "__NULL_IMPORT_DESCRIPTOR"

test_arm64ec.dll:
Expand Down Expand Up @@ -290,6 +280,4 @@ Symbols
Dynamic symbols

Symbol map
0x0 "@comp.id"
0x0 "__IMPORT_DESCRIPTOR_test_arm64ec"
0x0 ".idata$6"
3 changes: 0 additions & 3 deletions crates/examples/testfiles/elf/base-aarch64.objdump
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,5 @@ Symbol map
0x7f8 "__FRAME_END__"
0x10d80 "__frame_dummy_init_array_entry"
0x10d88 "__do_global_dtors_aux_fini_array_entry"
0x10d90 "_DYNAMIC"
0x10fc0 "_GLOBAL_OFFSET_TABLE_"
0x11008 "__dso_handle"
0x11010 "completed.8500"
0x11010 "__TMC_END__"
1 change: 0 additions & 1 deletion crates/examples/testfiles/elf/base.objdump
Original file line number Diff line number Diff line change
Expand Up @@ -149,5 +149,4 @@ Symbol map
0x200db8 "_DYNAMIC"
0x200fb8 "_GLOBAL_OFFSET_TABLE_"
0x201008 "__dso_handle"
0x201010 "completed.7698"
0x201010 "__TMC_END__"
2 changes: 0 additions & 2 deletions crates/examples/testfiles/macho/base-aarch64-debug.o.objdump
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ Import { library: "", name: "_printf" }
Export { name: "_main", address: 0 }

Symbol map
0x0 "ltmp0"
0x0 "_main"
0x34 "l_.str"
0x34 "ltmp1"
0x268 "ltmp2"
2 changes: 0 additions & 2 deletions crates/examples/testfiles/macho/base-aarch64.o.objdump
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ Import { library: "", name: "_printf" }
Export { name: "_main", address: 0 }

Symbol map
0x0 "ltmp0"
0x0 "_main"
0x34 "l_.str"
0x34 "ltmp1"
0x48 "ltmp2"
1 change: 0 additions & 1 deletion crates/examples/testfiles/macho/reloc-aarch64.o.objdump
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,4 @@ Import { library: "", name: "_g1" }

Symbol map
0x0 "ltmp0"
0x28 "ltmp1"
0x28 "_data"
1 change: 0 additions & 1 deletion crates/examples/testfiles/macho/reloc-arm.o.objdump
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,4 @@ Export { name: "_g2", address: 14 }

Symbol map
0x0 "_g1"
0x14 "_g3"
0x14 "_g2"
1 change: 0 additions & 1 deletion crates/examples/testfiles/macho/reloc-i386.o.objdump
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,4 @@ Export { name: "_g2", address: 10 }

Symbol map
0x0 "_g1"
0x10 "_g3"
0x10 "_g2"
6 changes: 0 additions & 6 deletions crates/examples/testfiles/pe/base-bigobj.obj.objdump
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,4 @@ Symbols
Dynamic symbols

Symbol map
0x0 "@comp.id"
0x0 "@feat.00"
0x0 "___local_stdio_printf_options"
0x0 "__vfprintf_l"
0x0 "_printf"
0x0 "_main"
0x0 "$SG9248"
Loading

0 comments on commit ff36df2

Please sign in to comment.