All SVE functions cannot be debugged with GDB because of the missing .text declaration in the asm file. #125
Labels
No labels
announcement
bug
duplicate
enhancement
help wanted
invalid
Next release
question
sighting
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-intel/isa-l_crypto#125
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I found that all SVE functions cannot be debugged with GDB. This is because the code segment identifier of
.textis missing in the SVE function code implementation. As a result, GDB cannot find executable assembly code. You can use theobjdump -dto verify this problem:If we add
.textto the sm3_mb/aarch64/sm3_mb_sve.S:We can see:
and use GDB Debug this function:
So I think we should add
.textfor all SVE functions, including:md5_mb_sve.S,mh_sha1_block_sve.S,sm3_mb_sve.S. and and should be followed by#inlude "xxxxx.S".Thanks for reporting @chenxuqiang. Anyone from ARM that can review this issue and issue #124? Also, @chenxuqiang, feel free to submit a PR with these changes.
This issue relates to gcc (or GNU as)'s default behavior actually. It's not a SVE assembly issue. I explained in https://github.com/intel/isa-l_crypto/pull/127#issuecomment-1827812405
I would suggest to add '.text' declaration explicitly in all .S files where it's needed.
@chenxuqiang, could you look into the other .S files?
Thanks @docularxu @pablodelara , I'm going to fix it before April 7th.
Thanks @chenxuqiang!
@chenxuqiang We are looking at a release next month, so could you look into this as soon as you can? Thanks!