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] |
1. To get the object file .o (Y in the patch). 2. To get the symbol or function that need the execstack (X in the patch).
+ for (inputobj = info->input_bfds; + inputobj; + inputobj = inputobj->link_next) + { + asection *s; + + if (inputobj->flags& (DYNAMIC | EXEC_P | BFD_LINKER_CREATED)) + continue; + s = bfd_get_section_by_name (inputobj, ".note.GNU-stack"); + if (s) + { + if (s->flags& SEC_CODE) + einfo ("ld: Y: warning: function X requiring executable stack\n"); + } + else if (bed->default_execstack) + einfo ("ld: Y: warning: function X requiring executable stack but object Y miss the .note.GNU-stack\n");
Cheers Nick
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |