Make dynamic linker debugging always available.

If you need to build your own linker to get debugging, the debugging
is never available when you need it.

Change-Id: I5ff7e55753459d49a2990f25d9aa155e0b8602e0
This commit is contained in:
Elliott Hughes
2012-11-02 12:37:13 -07:00
parent ed537239a9
commit 61a9ccb41e
7 changed files with 80 additions and 166 deletions

View File

@@ -36,6 +36,7 @@
// We want to avoid dragging the whole C library fprintf()
// implementation into the dynamic linker since this creates
// issues (it uses malloc()/free()) and increases code size.
int format_buffer(char *buffer, size_t bufsize, const char *format, ...);
int format_buffer(char* buffer, size_t buffer_size, const char* format, ...)
__attribute__((__format__(printf, 3, 4)));
#endif /* _LINKER_FORMAT_H */