Skip to content

reproduce option tarball does not work as expected with shared objects #731

@quic-seaswara

Description

@quic-seaswara
cat > 1.c << \!
int foo() { return 0; }
!

cat > 2.c << \!
int bar() { return 0; }
!

rm -f lib2.* && clang -c -target hexagon -c 2.c
ld.eld -shared 2.o -o lib2.so
clang -c 1.c
ld.eld -Bdynamic 1.o -L. -l2 -o a --reproduce a.tar

Extracting the tarball and running the response file, produces an error

ld.eld -Bdynamic Object/1.o.6060996770729379307 lib2.so -o a --mapping-file=mapping.ini
Fatal: cannot read file 'lib2.so'
Fatal: Linking had errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions