Skip to content
Snippets Groups Projects
Commit 0eaf2e1b authored by Alan Modra's avatar Alan Modra
Browse files

sparc-coff writing uninitialized memory

sparc-coff has a 20 byte symbol entry with an extra field, but neglects
to initialize the field.  Fix that.

	* coff/sparc.h (COFF_ADJUST_SYM_OUT_POST): Define.
parent ef53be89
No related branches found
No related tags found
No related merge requests found
2016-06-11 Alan Modra <amodra@gmail.com>
* coff/sparc.h (COFF_ADJUST_SYM_OUT_POST): Define.
2016-06-08 Jose E. Marchesi <jose.marchesi@oracle.com>
* opcode/sparc.h: Add missing documentation for hyperprivileged
......
......@@ -138,6 +138,14 @@ union external_auxent
#define AUXENT union external_auxent
#define AUXESZ 20
#define COFF_ADJUST_SYM_OUT_POST(ABFD, INP, EXTP) \
do \
{ \
SYMENT *extsym = (SYMENT *) (EXTP); \
extsym->padding[0] = 0; \
extsym->padding[1] = 0; \
} while (0)
#define _ETEXT "etext"
/********************** RELOCATION DIRECTIVES **********************/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment