[PATCH] D30566: [ELF] - Do not try to create .eh_frame_hdr for relocatable output.

Ed Maste via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Mar 4 07:00:17 PST 2017


emaste added a comment.

> A user has explicitly requested two different features that cannot be used together.

In this case the user explicitly requested -r, and the compiler driver implicitly added --eh-frame-hdr. A sample command line that leads to this error:

`cc -target x86_64-unknown-freebsd12.0 --sysroot=/tank/emaste/obj/tank/emaste/src/freebsd-xlld/tmp -B/tank/emaste/obj/tank/emaste/src/freebsd-xlld/tmp/usr/bin -O2 -pipe   -std=gnu99    -Qunused-arguments   -nostdlib -Wl,-dc -r -o cat.lo cat_stub.o /tank/emaste/obj/tank/emaste/src/freebsd-xlld/rescue/rescue//tank/emaste/src/freebsd-xlld/bin/cat/cat.o`

It may well be the case that we should (also) change Clang to not add `--eh-frame-hdr` on relocatable links.


https://reviews.llvm.org/D30566





More information about the llvm-commits mailing list