[PATCH 08/24] RISC-V sim: Add brk syscall.
Jim Wilson
jimw@sifive.com
Wed Apr 21 23:51:24 GMT 2021
On Sun, Apr 18, 2021 at 10:24 PM Mike Frysinger <vapier@gentoo.org> wrote:
> On 17 Apr 2021 10:58, Jim Wilson wrote:
> > Add endbrk field to cpu struct. Set it to highest section end address.
> > Use it for the brk syscall support.
> > ...
> > + /* Set endbrk to highest section end address. */
> > + phdr = elf_tdata (abfd)->phdr;
> > + phnum = elf_elfheader (abfd)->e_phnum;
>
> the commit message & comments say "sections", but the code isn't operating
> on
> sections, it's operating on program headers which define "segments". i
> know
> it sounds like i'm being pedantic, but i've seen a lot of ELF parsers that
> get
> confused and use/mix terminology, and it gets hard to untangle the
> intentions
> with the actual code. especially when digging through bug reports.
>
I fixed the commit message. The comment gets rewritten in part 20. I will
fix it there.
Jim
More information about the Gdb-patches
mailing list