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

Add tests for dwarf5 line number program #99

Merged
merged 1 commit into from
Nov 1, 2024

Conversation

wgrr
Copy link
Contributor

@wgrr wgrr commented Oct 31, 2024

gcc -g -gdwarf-5 -o elf/dwarf5_line_filetab src/dwarf-line.c
clang -g -gdwarf-5 -o elf/dwarf5_line_filesum src/dwarf-line.c

The first output makes r2 report wrong file names for addr, the second wrong addresses.
gcc (GCC) 14.2.1 20240910
clang 18.1.8

% r2 elf/dwarf5_line_filetab 
[0x00001040]> CL~file
file: /usr/include/stdio.h
file: /usr/include/stdio.h
file: /usr/include/stdio.h
file: /usr/include/stdio.h
file: /usr/include/stdio.h
file: /usr/include/stdio.h
file: /usr/include/stdio.h
file: /usr/include/stdio.h
% r2 elf/dwarf5_line_filesum
[0x00001040]> CL~addr
addr: 0x00000031
addr: 0x00000041
addr: 0x0000006b
addr: 0x00000051
addr: 0x00000002
addr: 0x0000007a
addr: 0x0000000b
addr: 0x00000066
addr: 0x00000082
addr: 0x00000016
addr: 0x00000091
addr: 0x0000005e
addr: 0x00000026
addr: 0x0000008d

Signed-off-by: wagner riffel <w@104d.net>
@trufae trufae merged commit 97eb69c into radareorg:master Nov 1, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants