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] |
> I was unclear. In the case of a static link with a weak undefined > reference to __ehdr_start, that must resolve to 0 normally and not > generate an error. > The case I was talking about was under -shared, when the treatment of > an undefined symbol would normally be to generate a dynamic reloc. > In that case, I think it's acceptable to generate an error instead of > going back and resizing the dynamic sections and everything you'd have > to do. OK, here's a revised patch... -cary 2014-03-31 Cary Coutant <ccoutant@google.com> * gold/defstd.cc (in_segment): Define __ehdr_start here... * gold/layout.cc (Layout::finalize): ...Instead of here. Set the output segment when known. * gold/symtab.cc (Symbol::set_output_segment): New function. (Symbol::set_undefined): New function. * gold/symtab.h (Symbol::set_output_segment): New function. (Symbol::set_undefined): New function. * gold/target-reloc.h (issue_undefined_symbol_error): Check for hidden undefs.
Attachment:
ehdr-start-patch-2.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |