include/
* bfdlink.h (bfd_link_callbacks): Add error_handler. ld/ * ldmain.c (link_callbacks): Initialize error_handler. * ldmisc.c (error_handler): New function. * ldmisc.h (error_handler): New prototype.
This commit is contained in:
@ -481,6 +481,11 @@ struct bfd_link_callbacks
|
||||
bfd_boolean (*notice)
|
||||
PARAMS ((struct bfd_link_info *, const char *name,
|
||||
bfd *abfd, asection *section, bfd_vma address));
|
||||
/* A function which is called for reporting a linker error. ID is the
|
||||
error identifier. The remaining input is the same as einfo () in
|
||||
ld. */
|
||||
bfd_boolean (*error_handler)
|
||||
PARAMS ((int id, const char * fmt, ...));
|
||||
};
|
||||
|
||||
/* The linker builds link_order structures which tell the code how to
|
||||
|
Reference in New Issue
Block a user