Skip to content

debugedit corrupting object files' debuginfo relocs #98

@xen0n

Description

@xen0n

This is very annoying for Gentoo users with FEATURES=installsources, and especially when the feature is enabled for sys-libs/glibc -- many software suddenly fails to build because ld starts to spit out "access beyond end of merged section" errors for no reason.

Steps to reproduce:

// /tmp/main.c
int main(void)
{
    return 0;
}
cd /tmp
gcc -O2 -g -c -o main.o main.c
debugedit -i -b /tmp -d /foo ./main.o
gcc -o main main.o

# /usr/lib/gcc/loongarch64-unknown-linux-gnu/15/../../../../loongarch64-unknown-linux-gnu/bin/ld: main.o: access beyond end of merged section (17)
# /usr/lib/gcc/loongarch64-unknown-linux-gnu/15/../../../../loongarch64-unknown-linux-gnu/bin/ld: main.o: access beyond end of merged section (24)

Software versions:

  • debugedit 5.1
  • elfutils 0.193

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions