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] | |
Hi Ahmad, > I think the ability to pipe files into size(1) (and maybe other binutils) would be convenient. e.g. > ./scripts/extract-vmlinuz | size - > echo "$SHELLCODE" | objdump -D -bbinary -mi386 - > > I'd like to contribute a patch for that, but want first to make sure this wasn't suggested and rejected before. No, as far as I am aware this has not been raised before. > * Have bfd_open and friends accept a "-" file name which means slurp stdin into a temp file and open it (and remove atexit(3)). Sounds good. > * Have bfd_open* accept a NULL parameter to mean the same. I prefer that so that size -- - may still be used to access a - file and the library interface stays backwards compatible. Also OK. > * Use the above only as fallback in case fopencookie or equivalent aren't available I did not know about fopencookie, but it looks like it might be quite complicated to use. If you want to try then by all means give it a go, but please remember the KISS principle. (Keep It Simple, Sir). > * Limit all modifications to the binutils and don't touch any bfd_* library functions No - make the changes in the bfd library. > In any case, this would still be a breaking change, because size - reads a - file at the moment. Should I add a command line flag? Yes. Presumably "--" would be the appropriate flag. Three more points. Firstly thanks for volunteering to work on this feature. It is always nice new contributors bring enhancements to the tools. Secondly, do you have an FSF copyright assignment for the binutils in place ? If not, you will need to get one before you can contribute any patches. (See the attached form) Lastly, it will be of a great help if you can follow the GNU Coding Standards when you write your code: https://www.gnu.org/prep/standards/ Cheers Nick
Attachment:
request-assign.future
Description: Text document
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |