Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix debian10 ci #1383

Merged
merged 1 commit into from
Nov 15, 2022
Merged

Fix debian10 ci #1383

merged 1 commit into from
Nov 15, 2022

Conversation

disconnect3d
Copy link
Member

This fixes the weird error that appeared on debian10 CI:

root@98cc3841eab9:/pwndbg/tests/gdb-tests/tests/binaries# ld -Ttext 0x400000 -o memory.out memory.o
ld: section .note.gnu.property LMA [00000000004000e8,0000000000400107] overlaps section .text LMA [0000000000400000,00000000004001a4]

It turned out that the .note.gnu.property address was choosen to be the same as our hardcoded .text address and so we got into this issue.

This PR hardcodes the gnu section address.

This fixes the weird error that appeared on debian10 CI:
```
root@98cc3841eab9:/pwndbg/tests/gdb-tests/tests/binaries# ld -Ttext 0x400000 -o memory.out memory.o
ld: section .note.gnu.property LMA [00000000004000e8,0000000000400107] overlaps section .text LMA [0000000000400000,00000000004001a4]
```

It turned out that the .note.gnu.property address was choosen to be the
same as our hardcoded .text address and so we got into this issue.

This PR hardcodes the gnu section address.
@disconnect3d disconnect3d merged commit bf3cac0 into dev Nov 15, 2022
@disconnect3d disconnect3d deleted the fix-debian10-ci branch November 15, 2022 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant