mirror of
https://github.com/memtest86plus/memtest86plus
synced 2025-03-13 17:33:14 +03:00
Fix linking with latest gcc.
gas now adds a .note.gnu.property section to the object files. We need to strip it out when building the binaries.
This commit is contained in:
parent
f1f6d4ecae
commit
e7d22959ea
build32/ldscripts
build64/ldscripts
@ -15,6 +15,8 @@ SECTIONS {
|
||||
*(.data)
|
||||
_end = . ;
|
||||
}
|
||||
/DISCARD/ : { *(*) }
|
||||
|
||||
_sys_size = (_end - _start + 15) >> 4;
|
||||
_init_size = (_end - _start) + _bss_size;
|
||||
}
|
||||
|
@ -17,6 +17,7 @@ SECTIONS {
|
||||
. = ALIGN(512);
|
||||
_text_end = . ;
|
||||
}
|
||||
/DISCARD/ : { *(*) }
|
||||
|
||||
_text_size = (_text_end - _text_start);
|
||||
|
||||
|
@ -12,5 +12,7 @@ SECTIONS {
|
||||
*(.data)
|
||||
_end = . ;
|
||||
}
|
||||
/DISCARD/ : { *(*) }
|
||||
|
||||
_sys_size = (_end - _start + 15) >> 4;
|
||||
}
|
||||
|
@ -15,6 +15,8 @@ SECTIONS {
|
||||
*(.data)
|
||||
_end = . ;
|
||||
}
|
||||
/DISCARD/ : { *(*) }
|
||||
|
||||
_sys_size = (_end - _start + 15) >> 4;
|
||||
_init_size = (_end - _start) + _bss_size;
|
||||
}
|
||||
|
@ -17,6 +17,7 @@ SECTIONS {
|
||||
. = ALIGN(512);
|
||||
_text_end = . ;
|
||||
}
|
||||
/DISCARD/ : { *(*) }
|
||||
|
||||
_text_size = (_text_end - _text_start);
|
||||
|
||||
|
@ -12,5 +12,7 @@ SECTIONS {
|
||||
*(.data)
|
||||
_end = . ;
|
||||
}
|
||||
/DISCARD/ : { *(*) }
|
||||
|
||||
_sys_size = (_end - _start + 15) >> 4;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user