Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F133320455
D9062.id23653.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
997 B
Referenced Files
None
Subscribers
None
D9062.id23653.diff
View Options
Index: sys/tools/embed_mfs.sh
===================================================================
--- sys/tools/embed_mfs.sh
+++ sys/tools/embed_mfs.sh
@@ -36,12 +36,12 @@
# If we can't determine MFS image size - bail.
[ -z ${mfs_size} ] && echo "Can't determine MFS image size" && exit 1
-sec_info=`${CROSS_BINUTILS_PREFIX}objdump -h $1 2> /dev/null | grep " oldmfs "`
+sec_info=`elfdump -c $1 2> /dev/null | grep "oldmfs" -A 5`
# If we can't find the mfs section within the given kernel - bail.
[ -z "${sec_info}" ] && echo "Can't locate mfs section within kernel" && exit 1
-sec_size=`echo ${sec_info} | awk '{printf("%d", "0x" $3)}' 2> /dev/null`
-sec_start=`echo ${sec_info} | awk '{printf("%d", "0x" $6)}' 2> /dev/null`
+sec_size=`echo ${sec_info} | cut -d ' ' -f 12 2> /dev/null`
+sec_start=`echo ${sec_info} | cut -d ' ' -f 10 2> /dev/null`
# If the mfs section size is smaller than the mfs image - bail.
[ ${sec_size} -lt ${mfs_size} ] && echo "MFS image too large" && exit 1
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Oct 25, 10:09 PM (3 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
24165952
Default Alt Text
D9062.id23653.diff (997 B)
Attached To
Mode
D9062: Replace using of objdump with elfdump
Attached
Detach File
Event Timeline
Log In to Comment