Skip to content

Commit 0cc358d

Browse files
authored
repo: introduced ci (#2)
* repo: introduced ci Signed-off-by: Xiaobo Liu <[email protected]>
1 parent 0fce9ad commit 0cc358d

File tree

2 files changed

+24
-3
lines changed

2 files changed

+24
-3
lines changed

.github/workflows/makefile.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Makefile CI
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v3
16+
17+
- name: Install dependencies
18+
run: sudo apt install binutils-dev -y
19+
20+
- name: Run build
21+
run: make

symbol_table.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -63,16 +63,16 @@ bfd_boolean symbol_table_find(symbol_table_t *table, void *addr, frame_record_t
6363
}
6464

6565
for (sect = abfd->sections; sect != NULL; sect = sect->next) {
66-
if ((bfd_get_section_flags(abfd, sect) & SEC_ALLOC) == 0) {
66+
if ((bfd_section_flags(sect) & SEC_ALLOC) == 0) {
6767
continue;
6868
}
6969

70-
vma = bfd_get_section_vma(abfd, sect);
70+
vma = bfd_section_vma(sect);
7171
if (pc < vma) {
7272
continue;
7373
}
7474

75-
size = bfd_get_section_size(sect);
75+
size = bfd_section_size(sect);
7676
if (pc >= vma + size) {
7777
continue;
7878
}

0 commit comments

Comments
 (0)