|
|
385abae |
Description: <short summary of the patch>
|
|
|
385abae |
TODO: Put a short summary on the line above and replace this paragraph
|
|
|
385abae |
with a longer explanation of this change. Complete the meta-information
|
|
|
385abae |
with other relevant fields (see below for details). To make it easier, the
|
|
|
385abae |
information below has been extracted from the changelog. Adjust it or drop
|
|
|
385abae |
it.
|
|
|
385abae |
.
|
|
|
385abae |
gcl (2.6.12-73) unstable; urgency=medium
|
|
|
385abae |
.
|
|
|
385abae |
* Version_2_6_13pre62
|
|
|
385abae |
Author: Camm Maguire <camm@debian.org>
|
|
|
385abae |
|
|
|
385abae |
---
|
|
|
385abae |
The information above should follow the Patch Tagging Guidelines, please
|
|
|
385abae |
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
|
|
|
385abae |
are templates for supplementary fields that you might want to add:
|
|
|
385abae |
|
|
|
385abae |
Origin: <vendor|upstream|other>, <url of original patch>
|
|
|
385abae |
Bug: <url in upstream bugtracker>
|
|
|
385abae |
Bug-Debian: https://bugs.debian.org/<bugnumber>
|
|
|
385abae |
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
|
|
|
385abae |
Forwarded: <no|not-needed|url proving that it has been forwarded>
|
|
|
385abae |
Reviewed-By: <name and email of someone who approved the patch>
|
|
|
385abae |
Last-Update: 2018-03-17
|
|
|
385abae |
|
|
|
385abae |
--- gcl-2.6.12.orig/h/elf64_alpha_reloc_special.h
|
|
|
385abae |
+++ gcl-2.6.12/h/elf64_alpha_reloc_special.h
|
|
|
385abae |
@@ -71,20 +71,21 @@ label_got_symbols(void *v1,Shdr *sec1,Sh
|
|
|
385abae |
sym->st_size=0;
|
|
|
385abae |
|
|
|
385abae |
for (*gs=0,sec=sec1;sec
|
|
|
385abae |
- for (v=v1+sec->sh_offset,ve=v+sec->sh_size,r=v;v<ve;v+=sec->sh_entsize,r=v)
|
|
|
385abae |
+ if (sec->sh_type==SHT_RELA || sec->sh_type==SHT_REL)
|
|
|
385abae |
+ for (v=v1+sec->sh_offset,ve=v+sec->sh_size,r=v;v<ve;v+=sec->sh_entsize,r=v)
|
|
|
385abae |
|
|
|
385abae |
- if (ELF_R_TYPE(r->r_info)==R_ALPHA_LITERAL) {
|
|
|
385abae |
+ if (ELF_R_TYPE(r->r_info)==R_ALPHA_LITERAL) {
|
|
|
385abae |
|
|
|
385abae |
- if (sec->sh_type!=SHT_RELA || !r->r_addend) {
|
|
|
385abae |
+ if (sec->sh_type!=SHT_RELA || !r->r_addend) {
|
|
|
385abae |
|
|
|
385abae |
- sym=sym1+ELF_R_SYM(r->r_info);
|
|
|
385abae |
+ sym=sym1+ELF_R_SYM(r->r_info);
|
|
|
385abae |
|
|
|
385abae |
- if (!sym->st_size) {
|
|
|
385abae |
- sym->st_size=++*gs;
|
|
|
385abae |
- massert(!make_got_room_for_stub(sec1,sece,sym,st1,gs));
|
|
|
385abae |
- }
|
|
|
385abae |
+ if (!sym->st_size) {
|
|
|
385abae |
+ sym->st_size=++*gs;
|
|
|
385abae |
+ massert(!make_got_room_for_stub(sec1,sece,sym,st1,gs));
|
|
|
385abae |
+ }
|
|
|
385abae |
|
|
|
385abae |
- } else {
|
|
|
385abae |
+ } else {
|
|
|
385abae |
|
|
|
385abae |
for (rr=vv=v-sec->sh_entsize;
|
|
|
385abae |
vv>=v1 && (ELF_R_TYPE(rr->r_info)!=ELF_R_TYPE(r->r_info) ||
|
|
|
385abae |
@@ -96,9 +97,9 @@ label_got_symbols(void *v1,Shdr *sec1,Sh
|
|
|
385abae |
massert(!(r->r_addend>>32));
|
|
|
385abae |
r->r_addend|=(q<<32);
|
|
|
385abae |
|
|
|
385abae |
- }
|
|
|
385abae |
+ }
|
|
|
385abae |
|
|
|
385abae |
- }
|
|
|
385abae |
+ }
|
|
|
385abae |
|
|
|
385abae |
return 0;
|
|
|
385abae |
|
|
|
385abae |
--- gcl-2.6.12.orig/o/gprof.c
|
|
|
385abae |
+++ gcl-2.6.12/o/gprof.c
|
|
|
385abae |
@@ -1,3 +1,5 @@
|
|
|
385abae |
+#include <string.h>
|
|
|
385abae |
+
|
|
|
385abae |
#include "include.h"
|
|
|
385abae |
#include "page.h"
|
|
|
385abae |
#include "ptable.h"
|