mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-23 03:10:05 +00:00
Better error message for invalid relocatio in static binary.
This commit is contained in:
parent
b8706f7072
commit
b7629ee33f
@ -1,3 +1,9 @@
|
|||||||
|
2009-06-01 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
|
||||||
|
_exit.
|
||||||
|
* sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
|
||||||
|
|
||||||
2009-05-31 Ulrich Drepper <drepper@redhat.com>
|
2009-05-31 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
* sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
|
* sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
#ifndef _DL_IREL_H
|
#ifndef _DL_IREL_H
|
||||||
#define _DL_IREL_H
|
#define _DL_IREL_H
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#define ELF_MACHINE_IREL 1
|
#define ELF_MACHINE_IREL 1
|
||||||
@ -38,7 +39,7 @@ elf_irel (const Elf32_Rel *reloc)
|
|||||||
*reloc_addr = value;
|
*reloc_addr = value;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
_exit (-1);
|
__libc_fatal ("unexpected reloc type in static binary");
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* dl-irel.h */
|
#endif /* dl-irel.h */
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
#ifndef _DL_IREL_H
|
#ifndef _DL_IREL_H
|
||||||
#define _DL_IREL_H
|
#define _DL_IREL_H
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#define ELF_MACHINE_IRELA 1
|
#define ELF_MACHINE_IRELA 1
|
||||||
@ -38,7 +39,7 @@ elf_irela (const Elf64_Rela *reloc)
|
|||||||
*reloc_addr = value;
|
*reloc_addr = value;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
_exit (-1);
|
__libc_fatal ("unexpected reloc type in static binary");
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* dl-irel.h */
|
#endif /* dl-irel.h */
|
||||||
|
Loading…
Reference in New Issue
Block a user