This is the mail archive of the binutils@sourceware.org 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: Linker plugins should be aware of --defsym during symbol resolution


> This is a nice idea and I am able to make this work for defsym uses.
> Anything I could do for definitions too?  I could add a defined_ field
> in Symbol which is set to Defined::DEFSYM.  That would avoid
> is_defsym_def too.

I'd think Symbol::source() = Symbol::IS_CONSTANT would be the test you
need. That would also catch symbols defined in scripts, too.

-cary


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