<feed xmlns='http://www.w3.org/2005/Atom'>
<title>gnu-efi-3.0.git/gnu-efi-3.0/apps/Makefile, branch bemk</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/bemk/public_git/gnu-efi-3.0.git/'/>
<entry>
<title>Make: Compile for aarch64 ... sorta</title>
<updated>2014-03-12T12:17:24+00:00</updated>
<author>
<name>Bart Kuivenhoven</name>
<email>bemk@redhat.com</email>
</author>
<published>2014-03-10T11:42:25+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/bemk/public_git/gnu-efi-3.0.git/commit/?id=54bfa07f00b25cd474be5ece09c85a211b1fdc2f'/>
<id>54bfa07f00b25cd474be5ece09c85a211b1fdc2f</id>
<content type='text'>
This commit fixes the build process for the current limitations of
objcopy. Objcopy still has the problem of not fully understanding
relocations so while this compiles, it will not be loadable by uefi.

Signed-off-by: Bart Kuivenhoven &lt;bemk@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit fixes the build process for the current limitations of
objcopy. Objcopy still has the problem of not fully understanding
relocations so while this compiles, it will not be loadable by uefi.

Signed-off-by: Bart Kuivenhoven &lt;bemk@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>efi-apps: Add objcopy support for pe-coff</title>
<updated>2014-03-12T12:17:10+00:00</updated>
<author>
<name>Bart Kuivenhoven</name>
<email>bemk@redhat.com</email>
</author>
<published>2013-11-11T14:28:19+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/bemk/public_git/gnu-efi-3.0.git/commit/?id=caf95212ec0add94925fef02d8daa0b90a3baee3'/>
<id>caf95212ec0add94925fef02d8daa0b90a3baee3</id>
<content type='text'>
Work has been underway to add support for pe-coff on aarch64 to the
binutils suite. This work has produced a framework which as of yet
requires these settings to be used.

Also there is something going on with a memset call that doesn't happen
on intel. There supposedly is a flag disabling it there, but I heavily
suspect this too hasn't been ported to aarch64 yet.

Signed-off-by: Bart Kuivenhoven &lt;bemk@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Work has been underway to add support for pe-coff on aarch64 to the
binutils suite. This work has produced a framework which as of yet
requires these settings to be used.

Also there is something going on with a memset call that doesn't happen
on intel. There supposedly is a flag disabling it there, but I heavily
suspect this too hasn't been ported to aarch64 yet.

Signed-off-by: Bart Kuivenhoven &lt;bemk@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Added two simple applications to allocate/free memory at EFI.</title>
<updated>2013-10-02T18:46:03+00:00</updated>
<author>
<name>croxon</name>
<email>croxon@earth.local</email>
</author>
<published>2013-10-02T18:46:03+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/bemk/public_git/gnu-efi-3.0.git/commit/?id=e7a2d1299ba50b819daeee87c017e5c260294269'/>
<id>e7a2d1299ba50b819daeee87c017e5c260294269</id>
<content type='text'>
Used to test/find memory fragmentation issues linux.

Signed-off-by: Jerry Hoemann &lt;jerry.hoemann@hp.com&gt;
Signed-off-by: Nigel Croxon &lt;nigel.croxon@hp.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Used to test/find memory fragmentation issues linux.

Signed-off-by: Jerry Hoemann &lt;jerry.hoemann@hp.com&gt;
Signed-off-by: Nigel Croxon &lt;nigel.croxon@hp.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Sample boot service driver.</title>
<updated>2013-06-25T12:53:58+00:00</updated>
<author>
<name>Nigel Croxon</name>
<email>ncroxon@redhat.com</email>
</author>
<published>2013-06-25T12:53:58+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/bemk/public_git/gnu-efi-3.0.git/commit/?id=8f5ba0e4fd398d49c0004164d18e50fb6acd36ca'/>
<id>8f5ba0e4fd398d49c0004164d18e50fb6acd36ca</id>
<content type='text'>
Signed-off-by: David Decotigny &lt;decot@googlers.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: David Decotigny &lt;decot@googlers.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>be more pedantic when linking</title>
<updated>2013-06-25T12:47:03+00:00</updated>
<author>
<name>Nigel Croxon</name>
<email>ncroxon@redhat.com</email>
</author>
<published>2013-06-25T12:47:03+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/bemk/public_git/gnu-efi-3.0.git/commit/?id=9d6b441ec581a2df92ccde627ab6ec8dfbb31ce6'/>
<id>9d6b441ec581a2df92ccde627ab6ec8dfbb31ce6</id>
<content type='text'>
Don't allow duplicate symbols, abort upon first error.
also make sure the linker script comes last for apps.

Signed-off-by: David Decotigny &lt;decot@googlers.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Don't allow duplicate symbols, abort upon first error.
also make sure the linker script comes last for apps.

Signed-off-by: David Decotigny &lt;decot@googlers.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>- Removes the ElfW() macro usage from reloc_ia32.c and reloc_x86_64.c. These</title>
<updated>2013-05-15T19:26:16+00:00</updated>
<author>
<name>noxorc</name>
<email>nigel.croxon@hp.com</email>
</author>
<published>2013-05-15T19:26:16+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/bemk/public_git/gnu-efi-3.0.git/commit/?id=0ca0dacb59d71d9078604df290ea285f460b61fc'/>
<id>0ca0dacb59d71d9078604df290ea285f460b61fc</id>
<content type='text'>
macros only exist in link.h on Linux. On FreeBSD, the equivalent macro is
__ElfN(). But the macro usage is redundant. You're only going to compile the
ia32 file for IA32 binaries and the x86_64 file for X64 binaries. If you had
just one file built for both cases, then using the macro might make more
sense.

- Removes the "#define foo_t efi_foo_t" macros from reloc_ia32.c and
reloc_x86_64.c.

- Modifies inc/x86_64/efibind.h and inc/ia32/efibind.h to use the new
definitions for uint64_t, int64_t and int8_t. The 64-bit types are now defined
as:

        typedef int __attribute__((__mode__(__DI__)))           int64_t;
        typedef unsigned int __attribute__((__mode__(__DI__)))  uint64_t;

This removes the conflict between the host types dragged in by elf.h and the
type definitions in efibind.h that made the #define foo_t efi_foo_t" hack
necessary. Also, int8_t is now defined as signed char instead of just char
(assuming char == signed char is apparently not good enough).

- Also modifies these files to use stdint.h instead of stdint-gcc.h. It's
unclear if this is completely correct, but stdint-gcc.h is not present with
all GCC installs, and if you use -std=c99 or later you will force this case to
be hit. This also can break clang, which doesn't have a stdint-gcc.h at all.

- Removes the #include of &lt;link.h&gt; from reloc_ia32.c and reloc_x86_64.c (since
with the previous changes it's not needed anymore).

- Places the #include of &lt;elf.h&gt; after #include &lt;efi&gt;/#include &lt;efilib.h&gt; so
that we know the types will always be defined properly, in case you build on a
system where &lt;elf.h&gt; doesn't automatically pull in the right header files to
define all the needed types. (This actually happens on VxWorks. It's harmless
elsewhere. If you don't care about VxWorks, you can leave this out.)

- Modifies setjmp_ia32.S and setjmp_x86_64.S so to change "function" to
@function. The clang compiler doesn't like the former. Clang and GCC both like
the latter.

- Modifles Make.defaults so that if ARCH is detected as "amd64," it's changed
to "x86_64." It happens that uname -m on 64-bit FreeBSD reports the former
rather than the latter, which breaks the build. This may also be the case on
some other OSes. There's a way to force uname(1) to return x86_64 as the
machine type, but this way is a little friendlier.

- Creates gnuefi/elf_ia32_fbsd_efi.lds which specifies the object file type as
elf-ia32-freebsd. This is required for building on FreeBSD/i386, not just
FreeBSD/amd64.

- Modifies apps/Makefile to always use
$(TOPDIR)/gnuefi/elf_$(ARCH)_fbsd_efi.lds when building on either 32-bit or
64-bit FreeBSD instead of just for the x86_64 case.

- Changed LDFLAGS in Make.defaults to include --no-undefined. This will cause
linking to fail if there are any unsatisfied symbols when creating foo.so
during any of the app builds, as opposed to just silently succeeding and
producing an unusable binary.

- Changed CFLAGS to include -ffreestanding -fno-stack-protector -fno-stack-
check. This prevents clang from inserting a call to memset() when compiling
the RtZeroMem() and RtSetMem() routines in lib/runtime/efirtlib.c and guards
against the native compiler in some Linux distros from adding in stack
checking code which relies on libc help that isn't present in the EFI runtime
environment.

This does the following:

- Cleans up the ia32 and x86-64 relocation code a bit (tries to break the
dependency between the host ELF headers and the EFI runtime environment)
- Avoids the dependency on stdint-gcc.h which may not always be available
- Allows GNU EFI to build out of the box on both FreeBSD/i386 and
FreeBSD/amd64
- Allows GNU EFI to build out of the box with either GCC or clang on
FreeBSD/i386 and FreeBSD/amd64 9.0 and later.
- Makes things a little easier to port to VxWorks
- Avoids creating un-runable binaries with unresolved symbol definitions
(which can be very confusing to debug)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
macros only exist in link.h on Linux. On FreeBSD, the equivalent macro is
__ElfN(). But the macro usage is redundant. You're only going to compile the
ia32 file for IA32 binaries and the x86_64 file for X64 binaries. If you had
just one file built for both cases, then using the macro might make more
sense.

- Removes the "#define foo_t efi_foo_t" macros from reloc_ia32.c and
reloc_x86_64.c.

- Modifies inc/x86_64/efibind.h and inc/ia32/efibind.h to use the new
definitions for uint64_t, int64_t and int8_t. The 64-bit types are now defined
as:

        typedef int __attribute__((__mode__(__DI__)))           int64_t;
        typedef unsigned int __attribute__((__mode__(__DI__)))  uint64_t;

This removes the conflict between the host types dragged in by elf.h and the
type definitions in efibind.h that made the #define foo_t efi_foo_t" hack
necessary. Also, int8_t is now defined as signed char instead of just char
(assuming char == signed char is apparently not good enough).

- Also modifies these files to use stdint.h instead of stdint-gcc.h. It's
unclear if this is completely correct, but stdint-gcc.h is not present with
all GCC installs, and if you use -std=c99 or later you will force this case to
be hit. This also can break clang, which doesn't have a stdint-gcc.h at all.

- Removes the #include of &lt;link.h&gt; from reloc_ia32.c and reloc_x86_64.c (since
with the previous changes it's not needed anymore).

- Places the #include of &lt;elf.h&gt; after #include &lt;efi&gt;/#include &lt;efilib.h&gt; so
that we know the types will always be defined properly, in case you build on a
system where &lt;elf.h&gt; doesn't automatically pull in the right header files to
define all the needed types. (This actually happens on VxWorks. It's harmless
elsewhere. If you don't care about VxWorks, you can leave this out.)

- Modifies setjmp_ia32.S and setjmp_x86_64.S so to change "function" to
@function. The clang compiler doesn't like the former. Clang and GCC both like
the latter.

- Modifles Make.defaults so that if ARCH is detected as "amd64," it's changed
to "x86_64." It happens that uname -m on 64-bit FreeBSD reports the former
rather than the latter, which breaks the build. This may also be the case on
some other OSes. There's a way to force uname(1) to return x86_64 as the
machine type, but this way is a little friendlier.

- Creates gnuefi/elf_ia32_fbsd_efi.lds which specifies the object file type as
elf-ia32-freebsd. This is required for building on FreeBSD/i386, not just
FreeBSD/amd64.

- Modifies apps/Makefile to always use
$(TOPDIR)/gnuefi/elf_$(ARCH)_fbsd_efi.lds when building on either 32-bit or
64-bit FreeBSD instead of just for the x86_64 case.

- Changed LDFLAGS in Make.defaults to include --no-undefined. This will cause
linking to fail if there are any unsatisfied symbols when creating foo.so
during any of the app builds, as opposed to just silently succeeding and
producing an unusable binary.

- Changed CFLAGS to include -ffreestanding -fno-stack-protector -fno-stack-
check. This prevents clang from inserting a call to memset() when compiling
the RtZeroMem() and RtSetMem() routines in lib/runtime/efirtlib.c and guards
against the native compiler in some Linux distros from adding in stack
checking code which relies on libc help that isn't present in the EFI runtime
environment.

This does the following:

- Cleans up the ia32 and x86-64 relocation code a bit (tries to break the
dependency between the host ELF headers and the EFI runtime environment)
- Avoids the dependency on stdint-gcc.h which may not always be available
- Allows GNU EFI to build out of the box on both FreeBSD/i386 and
FreeBSD/amd64
- Allows GNU EFI to build out of the box with either GCC or clang on
FreeBSD/i386 and FreeBSD/amd64 9.0 and later.
- Makes things a little easier to port to VxWorks
- Avoids creating un-runable binaries with unresolved symbol definitions
(which can be very confusing to debug)
</pre>
</div>
</content>
</entry>
<entry>
<title>version T</title>
<updated>2013-02-21T15:44:23+00:00</updated>
<author>
<name>noxorc</name>
<email>nigel.croxon@hp.com</email>
</author>
<published>2013-02-21T15:44:23+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/bemk/public_git/gnu-efi-3.0.git/commit/?id=1d931b46c01326854a706bb53aa4458c0b1bb8e8'/>
<id>1d931b46c01326854a706bb53aa4458c0b1bb8e8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Initial commit gnu-efi_3.0r</title>
<updated>2013-01-30T21:25:25+00:00</updated>
<author>
<name>croxon</name>
<email>croxon@z620.(none)</email>
</author>
<published>2013-01-30T21:25:25+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/bemk/public_git/gnu-efi-3.0.git/commit/?id=46bd1f50de1e265249020df6ef96768d488ce003'/>
<id>46bd1f50de1e265249020df6ef96768d488ce003</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
