On 11/10/2015 09:30 PM, Andris Pavenis wrote:
On 11/10/2015 11:20 PM, Jeff Law wrote:
On 11/10/2015 11:16 AM, Andris Pavenis wrote:
One may need to execute extra steps after linking program. This is
required
for example for DJGPP to run stubify.exe on file generated by linker.

The only way how to achieve was to use LINK_COMMAND_SPEC. It would be
much easier
and less error prone to use new macro POST_LINK_SPEC introduced in this
patch.

Andris

ChangeLog entry

2015 Nov 10 Andris Pavenis <andris.pave...@iki.fi>

     * gcc.c: new macro POST_LINK_SPEC
     * doc/tm.texi.in: document POST_LINK_SPEC
     * doc/tm.texi: regenerate

Can you also include the changes to djgpp.h which exploit this
capability?

Jeff

OK. I'm only sending changes for djgpp.h. There are required changes to
other files not included, so djgpp.h patch currently
to illustrate use of POST_LINK_SPEC only not committing.
Thanks. I think the key is that y'all have to essentially duplicate and hack of LINK_COMMAND_SPEC and this change allows the djgpp port to avoid that problem.

Thanks again,
Jeff

Reply via email to