llvm/llvm-project

[clang] --entry command line option is broken

Open

#68 355 ouverte le 5 oct. 2023

Voir sur GitHub
 (16 commentaires) (1 réaction) (1 assigné)C++ (10 782 forks)batch import
clang:drivergood first issue

Métriques du dépôt

Stars
 (26 378 stars)
Métriques de merge PR
 (Merge moyen 1j 2h) (1 000 PRs mergées en 30 j)

Description

Optoion '--entry' ('--entry=') should be forwarded to linker the same way as its aliasee '-e' is forwarded. Currently, it complains about unsupported option.

clang test.c --entry=my_start
clang: error: unsupported option '--entry=my_start'

Apparently, the option is declared as a flag, i.e. clang accepts this, but linker non-surprisingly fails:

clang test.c --entry
/usr/bin/ld: warning: cannot find entry symbol --library=gcc; defaulting to 0000000000001040

Reference: https://gcc.gnu.org/onlinedocs/gcc/Link-Options.html#index-e

Guide contributeur