Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions libc/runtime/morph_tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ privileged void __morph_tls(void) {
// 64 48 8b 0R4 25 00 00 00 00 mov %fs:0,%R
// 64 48 03 0R4 25 00 00 00 00 add %fs:0,%R
//
// Which on Mac we can replace with this:
// Which on Mac we can replace with this with fixupobj:
//
// 65 48 8b 0R4 25 30 00 00 00 mov %gs:0x30,%R
//
Expand Down Expand Up @@ -82,8 +82,8 @@ privileged void __morph_tls(void) {
// (0213 == p[2] || // mov reg/mem → reg (word-sized)
// 0003 == p[2]) && // add reg/mem → reg (word-sized)
// 0004 == (p[3] & 0307) && // mod/rm (4,reg,0) means sib → reg
// 0x30 == p[4] && // sib (5,4,0) → (rbp,rsp,0) → disp32
// 0000 == p[5] && // displacement (von Neumann endian)
// 0045 == p[4] && // sib (5,4,0) → (rbp,rsp,0) → disp32
// 0x30 == p[5] && // displacement (von Neumann endian)
// 0000 == p[6] && // displacement
// 0000 == p[7] && // displacement
// 0000 == p[8] // displacement
Expand Down Expand Up @@ -131,8 +131,8 @@ privileged void __morph_tls(void) {
// (0213 == p[2] || // mov reg/mem → reg (word-sized)
// 0003 == p[2]) && // add reg/mem → reg (word-sized)
// 0004 == (p[3] & 0307) && // mod/rm (4,reg,0) means sib → reg
// 0x30 == p[4] && // sib (5,4,0) → (rbp,rsp,0) → disp32
// 0000 == p[5] && // displacement (von Neumann endian)
// 0045 == p[4] && // sib (5,4,0) → (rbp,rsp,0) → disp32
// 0x30 == p[5] && // displacement (von Neumann endian)
// 0000 == p[6] && // displacement
// 0000 == p[7] && // displacement
// 0000 == p[8] // displacement
Expand Down
2 changes: 1 addition & 1 deletion libc/serialize.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
(__extension__({ \
uint64_t __x; \
__builtin_memcpy(&__x, P, 64 / 8); \
__SWAPLE32(__x); \
__SWAPLE64(__x); \
}))

#define READ64BE(P) \
Expand Down