mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 08:03:01 +09:00
9 lines
259 B
Bash
Executable File
9 lines
259 B
Bash
Executable File
#!/bin/sh
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# Print the C compiler output file format, as determined by objdump.
|
|
t=`mktemp` || exit 1
|
|
echo 'void foo(void) {}' | $CC -x c - -c -o "$t" \
|
|
&& LC_ALL=C $OBJDUMP -p "$t" | awk '/file format/ {print $4}'
|
|
rm "$t"
|