Skip to content

meta bug: lift required arguments into the clang driver #812

Closed

Description

@DanAlbert

There are a handful of arguments that must be passed to Clang to compile for Android that ought to be handled by Clang itself. This bug tracks enumerating those and tracking the individual bugs for each.

Required, your code will not work without these (at least in some situations):

Technically required, but will not result in an error if not used because the linker assumes it to be true:

And finally,

  • Update Clang to pull in the above patches.

Moved to r21:

Activity

  1. added this to the r20 milestone on Oct 18, 2018
  2. pirama-arumuga-nainar commented on Oct 19, 2018

    @pirama-arumuga-nainar
    Collaborator

    Note that during LTO, assembly happens during linking; -Wa,--no-exec-stack should be passed to the linker plugin as well.

  3. DanAlbert commented on Oct 19, 2018

    @DanAlbert
    ContributorAuthor

    I think that should be handled by the change I uploaded to lift this into the driver, but should definitely check.

  4. pirama-arumuga-nainar commented on Oct 19, 2018

    @pirama-arumuga-nainar
    Collaborator

    Aah, sorry I brought it up here. LTO + -Wa,--no-exec-stack is currently broken and needs to be fixed - the -mnoexecstack doesn't get passed to the backend because LTO creates a new backend during linking. That's orthogonal to what you're doing here. I'll file an internal bug :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions