From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=pass header.i=@linaro.org header.s=google header.b=xF3Jrw+J; spf=pass (domain: linaro.org, ip: 209.85.166.67, mailfrom: ard.biesheuvel@linaro.org) Received: from mail-io1-f67.google.com (mail-io1-f67.google.com [209.85.166.67]) by groups.io with SMTP; Sat, 15 Jun 2019 01:29:09 -0700 Received: by mail-io1-f67.google.com with SMTP id i10so10801799iol.13 for ; Sat, 15 Jun 2019 01:29:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zO/JWBAjAgh5Vp4BXZkgl2FJwuIGetwIQZnDQddG9AQ=; b=xF3Jrw+J83EghyA/hRYBYHTvzC3Joqi0nGDEhmeZrxswoDtEngQ0mW1qUXrhV2YdbL LrCmUwAtsNnwR8QLDehFgkro+eNmwN7a9QryZfqCrSA/aMC6brjII2gthfenf+J5hfh+ cgqDTz59AQLCJsJVsD56wt/02vJ+6VWm2bZDTnmTeSaXMr3aE8tpWbEF1HSFtKfdIJmC XbxslggnEBcRWcxHDKUmCUdSE3s1R0w1Y2zIn8uZfNdYoyAfv6tL/QkMJpnG7+pES0Xq P+mizEd/25qziEdMohZodt+vrSwp3hbEE6lo9myz9V5q6+MQ/Y1y9JT5NzYe8dB1N2UP RJng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zO/JWBAjAgh5Vp4BXZkgl2FJwuIGetwIQZnDQddG9AQ=; b=hQlL9Cz9tj+CJ0UyuObt+LghlSsdV7f7VR8Qq9f+s4XxCCiOhDs2zpA7G4NDcZJSR2 a62ZYhJMLL54fjGVJUUp0GSs6JVfqMW2FHc2+QtsoR+gqmo7DhlWiuMLjCVtLtaMmctN vpaTH/7OvfCj+T++BeOktlYVRF7eS47w4aPjq2Cjzwo9M5Y54bIA4rYPkWj5AZop1zKw PwqHCTbNveYMmoiWOznxnxbxe+Ir6CYXNc5ZFqH/BYzkiqCRHooX7aDhDrEV6drLS2Id 4BrKZc0nVUZAI3b9h91NCIWsBuHyWhjHDNYzRMycLIGwtagAqJr74ySVpsu7ns1K+wVC scKg== X-Gm-Message-State: APjAAAW1dfZLC3j3KpZWCTawwx1c9VL967ZnKhE+mm0YlnDg5n2hrU6d v11vAgPMA/bYBhGXEGYFVRdl8qLFh4H3BSXCnfVDMA== X-Google-Smtp-Source: APXvYqykvzScw5pgZ8X0s0bFvZ2+mqcIg7hSCZue5t+HpXDRdMjIS+UUKhoCZANBF3PQDaXgIUjoejxnM2TXegg9kfs= X-Received: by 2002:a5e:820a:: with SMTP id l10mr5905097iom.283.1560587349173; Sat, 15 Jun 2019 01:29:09 -0700 (PDT) MIME-Version: 1.0 References: <250c832b-150d-e63a-761c-8ac1666fbd80@redhat.com> <15A82D62E078CF58.4443@groups.io> In-Reply-To: From: "Ard Biesheuvel" Date: Sat, 15 Jun 2019 10:28:57 +0200 Message-ID: Subject: Re: [edk2-devel] [edk2-discuss] WriteSections64() To: Russell Peterson Cc: "discuss@edk2.groups.io" , edk2-devel-groups-io , Laszlo Ersek Content-Type: text/plain; charset="UTF-8" On Sat, 15 Jun 2019 at 02:17, Russell Peterson wrote: > > Here is a sample of the gcc command line: > > "/x/sdk/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-gcc" > -I/x/edk2/edk2/MlxPlatformPkg/Include -march=armv8-a+crc -g -fshort-wchar > -fno-builtin -fno-strict-aliasing -Wall -Werror -Wno-array-bounds -ffunction-sections -fdata-sections -incl\ > ude AutoGen.h -fno-common -DSTRING_ARRAY_NAME=BaseCryptLibStrings -g -Os -fshort-wchar -fno-builtin -fno-stri\ > ct-aliasing -Wall -Werror -Wno-array-bounds -include AutoGen.h -fno-common -mlittle-endian -fno-short-enums -\ > fverbose-asm -funsigned-char -ffunction-sections -fdata-sections -Wno-address -fno-asynchronous-unwind-tables\ > -fno-pic -fno-pie -ffixed-x18 -flto -Wno-unused-but-set-variable -Wno-unused-const-variable -mcmodel=tiny -n\ > ostdinc -nostdlib -DUEFI_C_SOURCE -DMDEPKG_NDEBUG -c -o /x/RELEASE_GCC5/AARCH64/CryptoPkg/Library/ > BaseCryptLib/BaseCryptLib/OUTPUT/Pk/CryptX509.obj <-I include files left out> /x/edk2/CryptoPkg/Library/BaseCryptLib/Pk/CryptX509.c > > echo --strip-unneeded -R .eh_frame /x/edk2/Build/RELEASE_GCC5/AARC\ > H64/MdeModulePkg/Universal/Network/DpcDxe/DpcDxe/DEBUG/DpcDxe.dll > --strip-unneeded -R .eh_frame /x/edk2/Build/RELEASE_GCC5/AARCH64/M\ > deModulePkg/Universal/Network/DpcDxe/DpcDxe/DEBUG/DpcDxe.dll > echo /x/edk2/Build/RELEASE_GCC5/AARCH64/MdeModulePkg/Universal/Ne\ > twork/DpcDxe/DpcDxe/DEBUG/DpcDxe.dll > Could you dump the section headers of such a .dll using readelf -S please?