mirror of
https://github.com/ipxe/ipxe
synced 2025-12-28 10:32:52 +03:00
[build] Use unique entry symbols for each prefix
Some binutils versions will drag in an object to satisfy the entry symbol; some won't. Try to cope with this exciting variety of behaviour by ensuring that all entry symbols are unique. Remove the explicit inclusion of the prefix object on the linker command line, since the entry symbol now provides all the information needed to identify the prefix. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -17,7 +17,7 @@ file_header:
|
||||
.byte 0
|
||||
.byte 0 /* No flags */
|
||||
.word 0x0000, 0x07c0 /* Load header to 0x07c0:0x0000 */
|
||||
.word start, 0x07c0 /* Start execution at 0x07c0:entry */
|
||||
.word _nbi_start, 0x07c0 /* Start execution at 0x07c0:entry */
|
||||
.size file_header, . - file_header
|
||||
|
||||
/*****************************************************************************
|
||||
@@ -49,8 +49,8 @@ memlen: .long -512
|
||||
* NBI entry point
|
||||
*****************************************************************************
|
||||
*/
|
||||
.globl start
|
||||
start:
|
||||
.globl _nbi_start
|
||||
_nbi_start:
|
||||
/* Install iPXE */
|
||||
call install
|
||||
|
||||
|
||||
Reference in New Issue
Block a user