Skip to content

Commit 93eec58

Browse files
committed
fixup! [llvm-objcopy] Add support of symbol modification flags for MachO
1 parent 3aae93a commit 93eec58

File tree

4 files changed

+8
-88
lines changed

4 files changed

+8
-88
lines changed

llvm/test/tools/llvm-objcopy/MachO/globalize-symbol.test

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ FileHeader:
5656
cputype: 0x100000C
5757
cpusubtype: 0x0
5858
filetype: 0x2
59-
ncmds: 4
59+
ncmds: 3
6060
sizeofcmds: 328
6161
flags: 0x200085
6262
reserved: 0x0
@@ -92,7 +92,7 @@ LoadCommands:
9292
vmaddr: 4294971392
9393
vmsize: 4096
9494
fileoff: 4096
95-
filesize: 147
95+
filesize: 67
9696
maxprot: 1
9797
initprot: 1
9898
nsects: 0
@@ -103,26 +103,6 @@ LoadCommands:
103103
nsyms: 4
104104
stroff: 4164
105105
strsize: 79
106-
- cmd: LC_DYSYMTAB
107-
cmdsize: 80
108-
ilocalsym: 0
109-
nlocalsym: 1
110-
iextdefsym: 1
111-
nextdefsym: 1
112-
iundefsym: 1
113-
nundefsym: 1
114-
tocoff: 0
115-
ntoc: 0
116-
modtaboff: 0
117-
nmodtab: 0
118-
extrefsymoff: 0
119-
nextrefsyms: 0
120-
indirectsymoff: 0
121-
nindirectsyms: 0
122-
extreloff: 0
123-
nextrel: 0
124-
locreloff: 0
125-
nlocrel: 0
126106
LinkEditData:
127107
NameList:
128108
- n_strx: 2

llvm/test/tools/llvm-objcopy/MachO/keep-global-symbol.test

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ FileHeader:
6363
cputype: 0x100000C
6464
cpusubtype: 0x0
6565
filetype: 0x2
66-
ncmds: 4
66+
ncmds: 3
6767
sizeofcmds: 328
6868
flags: 0x200085
6969
reserved: 0x0
@@ -99,7 +99,7 @@ LoadCommands:
9999
vmaddr: 4294971392
100100
vmsize: 4096
101101
fileoff: 4096
102-
filesize: 174
102+
filesize: 94
103103
maxprot: 1
104104
initprot: 1
105105
nsects: 0
@@ -110,26 +110,6 @@ LoadCommands:
110110
nsyms: 5
111111
stroff: 4176
112112
strsize: 94
113-
- cmd: LC_DYSYMTAB
114-
cmdsize: 80
115-
ilocalsym: 0
116-
nlocalsym: 1
117-
iextdefsym: 1
118-
nextdefsym: 1
119-
iundefsym: 1
120-
nundefsym: 1
121-
tocoff: 0
122-
ntoc: 0
123-
modtaboff: 0
124-
nmodtab: 0
125-
extrefsymoff: 0
126-
nextrefsyms: 0
127-
indirectsymoff: 0
128-
nindirectsyms: 0
129-
extreloff: 0
130-
nextrel: 0
131-
locreloff: 0
132-
nlocrel: 0
133113
LinkEditData:
134114
NameList:
135115
- n_strx: 2

llvm/test/tools/llvm-objcopy/MachO/localize-symbol.test

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ FileHeader:
5353
cputype: 0x100000C
5454
cpusubtype: 0x0
5555
filetype: 0x2
56-
ncmds: 4
56+
ncmds: 3
5757
sizeofcmds: 328
5858
flags: 0x200085
5959
reserved: 0x0
@@ -89,7 +89,7 @@ LoadCommands:
8989
vmaddr: 4294971392
9090
vmsize: 4096
9191
fileoff: 4096
92-
filesize: 147
92+
filesize: 67
9393
maxprot: 1
9494
initprot: 1
9595
nsects: 0
@@ -100,26 +100,6 @@ LoadCommands:
100100
nsyms: 4
101101
stroff: 4164
102102
strsize: 79
103-
- cmd: LC_DYSYMTAB
104-
cmdsize: 80
105-
ilocalsym: 0
106-
nlocalsym: 1
107-
iextdefsym: 1
108-
nextdefsym: 1
109-
iundefsym: 1
110-
nundefsym: 1
111-
tocoff: 0
112-
ntoc: 0
113-
modtaboff: 0
114-
nmodtab: 0
115-
extrefsymoff: 0
116-
nextrefsyms: 0
117-
indirectsymoff: 0
118-
nindirectsyms: 0
119-
extreloff: 0
120-
nextrel: 0
121-
locreloff: 0
122-
nlocrel: 0
123103
LinkEditData:
124104
NameList:
125105
- n_strx: 2

llvm/test/tools/llvm-objcopy/MachO/skip-symbol.test

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ FileHeader:
6464
cputype: 0x100000C
6565
cpusubtype: 0x0
6666
filetype: 0x2
67-
ncmds: 4
67+
ncmds: 3
6868
sizeofcmds: 328
6969
flags: 0x200085
7070
reserved: 0x0
@@ -100,7 +100,7 @@ LoadCommands:
100100
vmaddr: 4294971392
101101
vmsize: 4096
102102
fileoff: 4096
103-
filesize: 174
103+
filesize: 94
104104
maxprot: 1
105105
initprot: 1
106106
nsects: 0
@@ -111,26 +111,6 @@ LoadCommands:
111111
nsyms: 5
112112
stroff: 4176
113113
strsize: 94
114-
- cmd: LC_DYSYMTAB
115-
cmdsize: 80
116-
ilocalsym: 0
117-
nlocalsym: 1
118-
iextdefsym: 1
119-
nextdefsym: 1
120-
iundefsym: 1
121-
nundefsym: 1
122-
tocoff: 0
123-
ntoc: 0
124-
modtaboff: 0
125-
nmodtab: 0
126-
extrefsymoff: 0
127-
nextrefsyms: 0
128-
indirectsymoff: 0
129-
nindirectsyms: 0
130-
extreloff: 0
131-
nextrel: 0
132-
locreloff: 0
133-
nlocrel: 0
134114
LinkEditData:
135115
NameList:
136116
- n_strx: 2

0 commit comments

Comments
 (0)