Skip to content

Commit

Permalink
read: remove duplicate symbol addresses from Object::symbol_map
Browse files Browse the repository at this point in the history
  • Loading branch information
philipc committed Dec 5, 2023
1 parent 946fbf4 commit ade4d4d
Show file tree
Hide file tree
Showing 20 changed files with 46 additions and 288 deletions.
3 changes: 0 additions & 3 deletions crates/examples/testfiles/coff/import_msvc.lib.objdump
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ Dynamic symbols

Symbol map
0x0 "__IMPORT_DESCRIPTOR_test_x64"
0x0 ".idata$6"

test_x86.dll:
Format: Short Import File
Expand Down Expand Up @@ -196,7 +195,6 @@ Dynamic symbols

Symbol map
0x0 "__IMPORT_DESCRIPTOR_test_x86"
0x0 ".idata$6"

test_arm64ec.dll:
Format: Short Import File
Expand Down Expand Up @@ -283,4 +281,3 @@ Dynamic symbols

Symbol map
0x0 "__IMPORT_DESCRIPTOR_test_arm64ec"
0x0 ".idata$6"
1 change: 0 additions & 1 deletion crates/examples/testfiles/elf/base-aarch64.objdump
Original file line number Diff line number Diff line change
Expand Up @@ -179,5 +179,4 @@ Symbol map
0x10d80 "__frame_dummy_init_array_entry"
0x10d88 "__do_global_dtors_aux_fini_array_entry"
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"
4 changes: 0 additions & 4 deletions crates/examples/testfiles/pe/base-bigobj.obj.objdump
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,4 @@ Symbols
Dynamic symbols

Symbol map
0x0 "___local_stdio_printf_options"
0x0 "__vfprintf_l"
0x0 "_printf"
0x0 "_main"
0x0 "$SG9248"
Loading

0 comments on commit ade4d4d

Please sign in to comment.