From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oa1-x2e.google.com (mail-oa1-x2e.google.com [IPv6:2001:4860:4864:20::2e]) by sourceware.org (Postfix) with ESMTPS id 1CFC83856DDE for ; Fri, 29 Apr 2022 13:55:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 1CFC83856DDE Received: by mail-oa1-x2e.google.com with SMTP id 586e51a60fabf-e2fa360f6dso8211196fac.2 for ; Fri, 29 Apr 2022 06:55:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=tC1a5E7DyCMdu/zeuXdD4jSNuSUdIc8YhCOyBd2Awb8=; b=fWPVUsDiJ30fNh/l9fE8o6GIuXWs3gESRAcSQquBvUabbsF7LlBFmSxlQ9yV87JDmx q54wbZQkccbNM5FnRRhBGW9Dctvhqpy416zwBWQ5aJbBV6d9xCcS9jQWFndSm5qF0+8j D3dqiUkRgKuhNT86JTvDT22WToyd1FlABOyJD31wWGkJqboUvOt+xZrI/kJhgi6MPzkd Jcdpc9uunUpmjC/CPZSzf/J6KzJh4VToLZPxhWrFwL5PMlPxnfRfwGUd/4X7fJ+eiE09 jmrE9gxc8SbLZnUMMATMaeTTdekZ+7zmeMkpqdD0S/8GAyML//HuYRXsI91HLmZT5Mt4 2PyA== X-Gm-Message-State: AOAM533m23tsvoP66TxvMRpOqqQ85/d+95GOrDp1ib4auCnXRY+M565n BMjDb4fuKVw3oejEh+geGgxfqB1IBc0MEw== X-Google-Smtp-Source: ABdhPJxuoqQBP1zwQDmyhp7fLr/TW/jOAgIECa43ZTwrjO2U5OWS/jxMwAwb+u6/T2uxuIXF5TmdoQ== X-Received: by 2002:a05:6870:e989:b0:da:c099:7939 with SMTP id r9-20020a056870e98900b000dac0997939mr1372808oao.206.1651240550230; Fri, 29 Apr 2022 06:55:50 -0700 (PDT) Received: from ?IPV6:2804:431:c7cb:726:ddb4:c7ad:9b4b:dfd6? ([2804:431:c7cb:726:ddb4:c7ad:9b4b:dfd6]) by smtp.gmail.com with ESMTPSA id m4-20020a056870030400b000e686d13890sm2939188oaf.42.2022.04.29.06.55.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 29 Apr 2022 06:55:49 -0700 (PDT) Message-ID: Date: Fri, 29 Apr 2022 10:55:47 -0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH v3 2/2] Default to --with-default-link=no (bug 25812) Content-Language: en-US To: Florian Weimer Cc: libc-alpha@sourceware.org References: <15c7f6e9afe2c2b9c51ebc6372682a39b0932712.1649691083.git.fweimer@redhat.com> <138c11d6-0def-2ff4-73da-c4346a855043@linaro.org> <87a6c458r1.fsf@oldenburg.str.redhat.com> From: Adhemerval Zanella In-Reply-To: <87a6c458r1.fsf@oldenburg.str.redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Apr 2022 13:55:52 -0000 On 29/04/2022 10:17, Florian Weimer wrote: > * Adhemerval Zanella: > >> On 11/04/2022 12:32, Florian Weimer via Libc-alpha wrote: >>> This is necessary to place the libio vtables into the RELRO segment. >>> New tests elf/tst-relro-ldso and elf/tst-relro-libc are added to >>> verify that this is what actually happens. >>> >>> The new tests fail on ia64 due to lack of (default) RELRO support >>> inbutils, so they are XFAILed there. >> >> I always frown upon new configure options, since they tend to degrade over >> time (as --disable-shared for instance [1]) and require additional >> maintaining costs. Why can't we make the required semantic the default >> (since usually relro has minimal costs it a net gain in hardening)? > > This is what the patch does, I think. I meant to not add --with-default-link= and just not use the extra linker script.