This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix thumb calls via PLT on ARM/SymbianOS (rfc)


>    (1) Add a seperate "-march=xyz -> --foobar=xyz" style passthrough.
>        This unfortunately gives ld and bfd a new and different concept of
>        what an architecture is.
>
>    (2) Use existing OUTPUT_ARCH machinery with a redefined --architecture
>        option, and:
>      (a) Don't use any automatic architecture passthrough from gcc, or
>      (b) Extend bfd machine table with all the architectures gcc knows
>          about, to enable .
>    (3) Forget this for now, and use my original SymbianOS-specific patch.
>
> I'm inclined towards 2a or 3. (e.g. for 2a, use explicit
> -Wl,--architecture,xyz when necessary). Comments?

I think passing though the gcc -march= and -mcpu= options (you need both) 
would be a waste of effort.  This should be mostly redundant once we 
implement build proper object build attributes.

Paul


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]