elf: Add missing argument in 'elf-segment'.

* guix/elf.scm (elf-segment): Add missing argument N.
This commit is contained in:
Ludovic Courtès 2015-03-30 15:20:55 +02:00
parent 8d30be32fa
commit 96af558907
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,6 @@
;;; Guile ELF reader and writer
;; Copyright (C) 2011, 2012, 2013, 2014 Free Software Foundation, Inc.
;; Copyright (C) 2011, 2012, 2013, 2014, 2015 Free Software Foundation, Inc.
;;;; This library is free software; you can redistribute it and/or
;;;; modify it under the terms of the GNU Lesser General Public
@ -571,6 +571,7 @@
((4) parse-elf32-program-header)
((8) parse-elf64-program-header)
(else (error "unhandled pointer size")))
n
(elf-bytes elf)
(+ (elf-phoff elf) (* n (elf-phentsize elf)))
(elf-byte-order elf)))