libbpf: Improve handling of failed CO-RE relocations
[sfrench/cifs-2.6.git] / tools / lib / bpf / libbpf.h
index 2a5e3b087002e4b0e83959b9dedda18add97dee7..3fe12c9d1f9232725c1c2a27b4d8091361471319 100644 (file)
@@ -77,7 +77,11 @@ struct bpf_object_open_opts {
        const char *object_name;
        /* parse map definitions non-strictly, allowing extra attributes/data */
        bool relaxed_maps;
-       /* process CO-RE relocations non-strictly, allowing them to fail */
+       /* DEPRECATED: handle CO-RE relocations non-strictly, allowing failures.
+        * Value is ignored. Relocations always are processed non-strictly.
+        * Non-relocatable instructions are replaced with invalid ones to
+        * prevent accidental errors.
+        * */
        bool relaxed_core_relocs;
        /* maps that set the 'pinning' attribute in their definition will have
         * their pin_path attribute set to a file in this directory, and be