Skip to content

Commit 44f0dd3

Browse files
committed
gh-actions: print elf headers of all .so
1 parent 90d1221 commit 44f0dd3

2 files changed

Lines changed: 2 additions & 9 deletions

File tree

.github/workflows/go.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ jobs:
116116
for match in $matches; do
117117
[[ $(file "${match}") == *"ELF"* ]] || continue
118118
119+
readelf -l "${match}"
120+
119121
res="$(objdump -p "${match}" | grep LOAD | awk '{ print $NF }' | head -1)"
120122
if [[ $res =~ 2\*\*(1[4-9]|[2-9][0-9]|[1-9][0-9]{2,}) ]]; then
121123
echo -e "${match}: ${GREEN}ALIGNED${ENDCOLOR} ($res)"

intra/log/log.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ func P(msg string, args ...any) {
130130
// Wtf logs a fatal message.
131131
func Wtf(msg string, args ...any) {
132132
Glogger.Fatalf(callerat, msg, args...)
133-
134133
}
135134

136135
// C logs the stack trace of the current goroutine to Console.
@@ -154,45 +153,37 @@ func T(msg string, args ...any) {
154153
E2(callerat, "----START----")
155154
Glogger.Stack(callerat, msg, make([]byte, 4096))
156155
E2(callerat, "----STOPP----")
157-
158156
}
159157

160158
// TALL logs the stack trace of all active goroutines.
161159
func TALL(msg string, scratch64k []byte) {
162160
E2(callerat, "----START----")
163161
Glogger.Stack(callerat, msg, scratch64k)
164162
E2(callerat, "----STOPP----")
165-
166163
}
167164

168165
func VV2(at int, msg string, args ...any) {
169166
Glogger.VeryVerbosef(at+nextframe, msg, args...)
170-
171167
}
172168

173169
func V2(at int, msg string, args ...any) {
174170
Glogger.Verbosef(at+nextframe, msg, args...)
175-
176171
}
177172

178173
func D2(at int, msg string, args ...any) {
179174
Glogger.Debugf(at+nextframe, msg, args...)
180-
181175
}
182176

183177
func I2(at int, msg string, args ...any) {
184178
Glogger.Infof(at+nextframe, msg, args...)
185-
186179
}
187180

188181
func W2(at int, msg string, args ...any) {
189182
Glogger.Warnf(at+nextframe, msg, args...)
190-
191183
}
192184

193185
func E2(at int, msg string, args ...any) {
194186
Glogger.Errorf(at+nextframe, msg, args...)
195-
196187
}
197188

198189
func LevelOf(level int32) LogLevel {

0 commit comments

Comments
 (0)