I am porting binutils to my new architecture. I have made changes similar to one of the architecture which GNU binutils already supports.
I am also able to do testing of binutils using dejaGNU. But, there are few options for which I am stuck up and not able to test these options. These are as follows if someone can help:
1. --strip-discarded
2. --no-strip-discarded
3. --embedded-relocs
4. --fatal-warnings
5. --no-fatal-warnings
6. -fini SYMBOL
7. --force-exe-suffix
8. --init SYMBOL
9. --no-undefined-version
10. --no-warn-mismatch
11. --no-warn-search-mismatch
12. --spare-dynamic-tags COUNT
13. --split-by-reloc [=COUNT]
14. --task-link SYMBOL
I need examples in C so that I can generate assemble from my compiler and use linker of binutils for these options